Skip to content

Commit

Permalink
[storage] added set Expiry (#9560)
Browse files Browse the repository at this point in the history
* add set expiry

* add check for input

* use Date instead of a time string

* call blob endpoint directly in datalake

* undo evenhub package.json

* add alternative version and use number instead of decimal string for
expiresOn relative

* add timeToExpireInMs to option

* use string literals instead of enum

* keep old enum for backward compatibility

* nit

Co-authored-by: Lin Jian <[email protected]>
  • Loading branch information
ljian3377 and Lin Jian authored Jun 30, 2020
1 parent 9528ba5 commit c3b4414
Show file tree
Hide file tree
Showing 22 changed files with 2,189 additions and 94 deletions.
4 changes: 3 additions & 1 deletion common/config/rush/common-versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
// Following is required to allow for backward compatibility with Event Processor Host Track 1
"@azure/event-hubs": ["^2.1.4"],
// Allow packages to continue to use old eslint-plugin-azure-sdk until they can adapt to 3.0.0
"@azure/eslint-plugin-azure-sdk": ["^2.0.1"]
"@azure/eslint-plugin-azure-sdk": ["^2.0.1"],
// Allow storage-blob-changefeed and storage-file-datalake to use the preview version of storage-blob.
"@azure/storage-blob": ["^12.2.0-preview.1"]
}
}
4 changes: 2 additions & 2 deletions sdk/storage/storage-blob-changefeed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
]
},
"dependencies": {
"@azure/storage-blob": "^12.1.2",
"@azure/storage-blob": "^12.2.0-preview.1",
"@azure/abort-controller": "^1.0.0",
"@azure/core-http": "^1.1.1",
"@azure/core-lro": "^1.0.2",
Expand Down Expand Up @@ -162,4 +162,4 @@
"util": "^0.12.1",
"sinon": "^9.0.2"
}
}
}
2 changes: 1 addition & 1 deletion sdk/storage/storage-blob/src/Clients.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6072,7 +6072,7 @@ export interface ContainerDeleteBlobOptions extends BlobDeleteOptions {
/**
* An opaque DateTime value that, when present, specifies the version
* of the blob to delete. It's for service version 2019-10-10 and newer.
*
*
* @type {string}
* @memberof ContainerDeleteBlobOptions
*/
Expand Down
4 changes: 2 additions & 2 deletions sdk/storage/storage-file-datalake/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"@azure/core-paging": "^1.1.1",
"@azure/core-tracing": "1.0.0-preview.8",
"@azure/logger": "^1.0.0",
"@azure/storage-blob": "^12.1.2",
"@azure/storage-blob": "^12.2.0-preview.1",
"events": "^3.0.0",
"tslib": "^2.0.0"
},
Expand Down Expand Up @@ -162,4 +162,4 @@
"typescript": "~3.9.3",
"util": "^0.12.1"
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c3b4414

Please sign in to comment.