@azure/storage-file-share 12.28.0-beta.1 → 12.29.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/AccountSASPermissions.d.ts +1 -1
- package/dist/browser/AccountSASPermissions.js +2 -2
- package/dist/browser/AccountSASPermissions.js.map +1 -1
- package/dist/browser/AccountSASResourceTypes.d.ts +1 -1
- package/dist/browser/AccountSASResourceTypes.js +1 -1
- package/dist/browser/AccountSASResourceTypes.js.map +1 -1
- package/dist/browser/AccountSASSignatureValues.d.ts +3 -3
- package/dist/browser/AccountSASSignatureValues.js +1 -1
- package/dist/browser/AccountSASSignatureValues.js.map +1 -1
- package/dist/browser/Clients.d.ts +53 -53
- package/dist/browser/Clients.d.ts.map +1 -1
- package/dist/browser/Clients.js +52 -51
- package/dist/browser/Clients.js.map +1 -1
- package/dist/browser/FileSASSignatureValues.d.ts +1 -1
- package/dist/browser/FileSASSignatureValues.js.map +1 -1
- package/dist/browser/FileSystemAttributes.d.ts +1 -1
- package/dist/browser/FileSystemAttributes.js +1 -1
- package/dist/browser/FileSystemAttributes.js.map +1 -1
- package/dist/browser/Pipeline.d.ts.map +1 -1
- package/dist/browser/Pipeline.js +2 -1
- package/dist/browser/Pipeline.js.map +1 -1
- package/dist/browser/Range.d.ts +1 -1
- package/dist/browser/Range.js.map +1 -1
- package/dist/browser/SASQueryParameters.d.ts +1 -1
- package/dist/browser/SASQueryParameters.js.map +1 -1
- package/dist/browser/ShareSASPermissions.d.ts +1 -1
- package/dist/browser/ShareSASPermissions.js +1 -1
- package/dist/browser/ShareSASPermissions.js.map +1 -1
- package/dist/browser/ShareServiceClient.d.ts +4 -4
- package/dist/browser/ShareServiceClient.js +4 -4
- package/dist/browser/ShareServiceClient.js.map +1 -1
- package/dist/browser/StorageRetryPolicyFactory.d.ts +1 -1
- package/dist/browser/StorageRetryPolicyFactory.js.map +1 -1
- package/dist/browser/generated/src/models/index.d.ts +62 -52
- package/dist/browser/generated/src/models/index.d.ts.map +1 -1
- package/dist/browser/generated/src/models/index.js +2 -0
- package/dist/browser/generated/src/models/index.js.map +1 -1
- package/dist/browser/generated/src/models/mappers.d.ts.map +1 -1
- package/dist/browser/generated/src/models/mappers.js +1779 -1730
- package/dist/browser/generated/src/models/mappers.js.map +1 -1
- package/dist/browser/generated/src/models/parameters.js +388 -388
- package/dist/browser/generated/src/models/parameters.js.map +1 -1
- package/dist/browser/generated/src/operations/directory.js +52 -52
- package/dist/browser/generated/src/operations/directory.js.map +1 -1
- package/dist/browser/generated/src/operations/file.js +113 -113
- package/dist/browser/generated/src/operations/file.js.map +1 -1
- package/dist/browser/generated/src/operations/service.js +18 -18
- package/dist/browser/generated/src/operations/service.js.map +1 -1
- package/dist/browser/generated/src/operations/share.js +104 -104
- package/dist/browser/generated/src/operations/share.js.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/directory.js.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/file.js.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/service.js.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/share.js.map +1 -1
- package/dist/browser/generated/src/storageClient.d.ts.map +1 -1
- package/dist/browser/generated/src/storageClient.js +5 -5
- package/dist/browser/generated/src/storageClient.js.map +1 -1
- package/dist/browser/policies/StorageRetryPolicy.d.ts.map +1 -1
- package/dist/browser/policies/StorageRetryPolicy.js +15 -17
- package/dist/browser/policies/StorageRetryPolicy.js.map +1 -1
- package/dist/browser/policies/StorageRetryPolicyV2.d.ts.map +1 -1
- package/dist/browser/policies/StorageRetryPolicyV2.js +15 -17
- package/dist/browser/policies/StorageRetryPolicyV2.js.map +1 -1
- package/dist/browser/utils/constants.js +2 -2
- package/dist/browser/utils/constants.js.map +1 -1
- package/dist/browser/utils/utils.common.d.ts +2 -2
- package/dist/browser/utils/utils.common.js +2 -2
- package/dist/browser/utils/utils.common.js.map +1 -1
- package/dist/commonjs/AccountSASPermissions.d.ts +1 -1
- package/dist/commonjs/AccountSASPermissions.js +2 -2
- package/dist/commonjs/AccountSASPermissions.js.map +1 -1
- package/dist/commonjs/AccountSASResourceTypes.d.ts +1 -1
- package/dist/commonjs/AccountSASResourceTypes.js +1 -1
- package/dist/commonjs/AccountSASResourceTypes.js.map +1 -1
- package/dist/commonjs/AccountSASSignatureValues.d.ts +3 -3
- package/dist/commonjs/AccountSASSignatureValues.js +1 -1
- package/dist/commonjs/AccountSASSignatureValues.js.map +1 -1
- package/dist/commonjs/Clients.d.ts +53 -53
- package/dist/commonjs/Clients.d.ts.map +1 -1
- package/dist/commonjs/Clients.js +52 -51
- package/dist/commonjs/Clients.js.map +1 -1
- package/dist/commonjs/FileSASSignatureValues.d.ts +1 -1
- package/dist/commonjs/FileSASSignatureValues.js.map +1 -1
- package/dist/commonjs/FileSystemAttributes.d.ts +1 -1
- package/dist/commonjs/FileSystemAttributes.js +1 -1
- package/dist/commonjs/FileSystemAttributes.js.map +1 -1
- package/dist/commonjs/Pipeline.d.ts.map +1 -1
- package/dist/commonjs/Pipeline.js +1 -0
- package/dist/commonjs/Pipeline.js.map +1 -1
- package/dist/commonjs/Range.d.ts +1 -1
- package/dist/commonjs/Range.js.map +1 -1
- package/dist/commonjs/SASQueryParameters.d.ts +1 -1
- package/dist/commonjs/SASQueryParameters.js.map +1 -1
- package/dist/commonjs/ShareSASPermissions.d.ts +1 -1
- package/dist/commonjs/ShareSASPermissions.js +1 -1
- package/dist/commonjs/ShareSASPermissions.js.map +1 -1
- package/dist/commonjs/ShareServiceClient.d.ts +4 -4
- package/dist/commonjs/ShareServiceClient.js +4 -4
- package/dist/commonjs/ShareServiceClient.js.map +1 -1
- package/dist/commonjs/StorageRetryPolicyFactory.d.ts +1 -1
- package/dist/commonjs/StorageRetryPolicyFactory.js.map +1 -1
- package/dist/commonjs/generated/src/models/index.d.ts +62 -52
- package/dist/commonjs/generated/src/models/index.d.ts.map +1 -1
- package/dist/commonjs/generated/src/models/index.js +2 -0
- package/dist/commonjs/generated/src/models/index.js.map +1 -1
- package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/generated/src/models/mappers.js +1779 -1730
- package/dist/commonjs/generated/src/models/mappers.js.map +1 -1
- package/dist/commonjs/generated/src/models/parameters.js +387 -387
- package/dist/commonjs/generated/src/models/parameters.js.map +1 -1
- package/dist/commonjs/generated/src/operations/directory.js +52 -52
- package/dist/commonjs/generated/src/operations/directory.js.map +1 -1
- package/dist/commonjs/generated/src/operations/file.js +113 -113
- package/dist/commonjs/generated/src/operations/file.js.map +1 -1
- package/dist/commonjs/generated/src/operations/service.js +18 -18
- package/dist/commonjs/generated/src/operations/service.js.map +1 -1
- package/dist/commonjs/generated/src/operations/share.js +104 -104
- package/dist/commonjs/generated/src/operations/share.js.map +1 -1
- package/dist/commonjs/generated/src/operationsInterfaces/directory.js.map +1 -1
- package/dist/commonjs/generated/src/operationsInterfaces/file.js.map +1 -1
- package/dist/commonjs/generated/src/operationsInterfaces/service.js.map +1 -1
- package/dist/commonjs/generated/src/operationsInterfaces/share.js.map +1 -1
- package/dist/commonjs/generated/src/storageClient.d.ts.map +1 -1
- package/dist/commonjs/generated/src/storageClient.js +4 -4
- package/dist/commonjs/generated/src/storageClient.js.map +1 -1
- package/dist/commonjs/policies/StorageRetryPolicy.d.ts.map +1 -1
- package/dist/commonjs/policies/StorageRetryPolicy.js +14 -16
- package/dist/commonjs/policies/StorageRetryPolicy.js.map +1 -1
- package/dist/commonjs/policies/StorageRetryPolicyV2.d.ts.map +1 -1
- package/dist/commonjs/policies/StorageRetryPolicyV2.js +14 -16
- package/dist/commonjs/policies/StorageRetryPolicyV2.js.map +1 -1
- package/dist/commonjs/utils/constants.js +2 -2
- package/dist/commonjs/utils/constants.js.map +1 -1
- package/dist/commonjs/utils/utils.common.d.ts +2 -2
- package/dist/commonjs/utils/utils.common.js +2 -2
- package/dist/commonjs/utils/utils.common.js.map +1 -1
- package/dist/esm/AccountSASPermissions.d.ts +1 -1
- package/dist/esm/AccountSASPermissions.js +2 -2
- package/dist/esm/AccountSASPermissions.js.map +1 -1
- package/dist/esm/AccountSASResourceTypes.d.ts +1 -1
- package/dist/esm/AccountSASResourceTypes.js +1 -1
- package/dist/esm/AccountSASResourceTypes.js.map +1 -1
- package/dist/esm/AccountSASSignatureValues.d.ts +3 -3
- package/dist/esm/AccountSASSignatureValues.js +1 -1
- package/dist/esm/AccountSASSignatureValues.js.map +1 -1
- package/dist/esm/Clients.d.ts +53 -53
- package/dist/esm/Clients.d.ts.map +1 -1
- package/dist/esm/Clients.js +52 -51
- package/dist/esm/Clients.js.map +1 -1
- package/dist/esm/FileSASSignatureValues.d.ts +1 -1
- package/dist/esm/FileSASSignatureValues.js.map +1 -1
- package/dist/esm/FileSystemAttributes.d.ts +1 -1
- package/dist/esm/FileSystemAttributes.js +1 -1
- package/dist/esm/FileSystemAttributes.js.map +1 -1
- package/dist/esm/Pipeline.d.ts.map +1 -1
- package/dist/esm/Pipeline.js +2 -1
- package/dist/esm/Pipeline.js.map +1 -1
- package/dist/esm/Range.d.ts +1 -1
- package/dist/esm/Range.js.map +1 -1
- package/dist/esm/SASQueryParameters.d.ts +1 -1
- package/dist/esm/SASQueryParameters.js.map +1 -1
- package/dist/esm/ShareSASPermissions.d.ts +1 -1
- package/dist/esm/ShareSASPermissions.js +1 -1
- package/dist/esm/ShareSASPermissions.js.map +1 -1
- package/dist/esm/ShareServiceClient.d.ts +4 -4
- package/dist/esm/ShareServiceClient.js +4 -4
- package/dist/esm/ShareServiceClient.js.map +1 -1
- package/dist/esm/StorageRetryPolicyFactory.d.ts +1 -1
- package/dist/esm/StorageRetryPolicyFactory.js.map +1 -1
- package/dist/esm/generated/src/models/index.d.ts +62 -52
- package/dist/esm/generated/src/models/index.d.ts.map +1 -1
- package/dist/esm/generated/src/models/index.js +2 -0
- package/dist/esm/generated/src/models/index.js.map +1 -1
- package/dist/esm/generated/src/models/mappers.d.ts.map +1 -1
- package/dist/esm/generated/src/models/mappers.js +1779 -1730
- package/dist/esm/generated/src/models/mappers.js.map +1 -1
- package/dist/esm/generated/src/models/parameters.js +388 -388
- package/dist/esm/generated/src/models/parameters.js.map +1 -1
- package/dist/esm/generated/src/operations/directory.js +52 -52
- package/dist/esm/generated/src/operations/directory.js.map +1 -1
- package/dist/esm/generated/src/operations/file.js +113 -113
- package/dist/esm/generated/src/operations/file.js.map +1 -1
- package/dist/esm/generated/src/operations/service.js +18 -18
- package/dist/esm/generated/src/operations/service.js.map +1 -1
- package/dist/esm/generated/src/operations/share.js +104 -104
- package/dist/esm/generated/src/operations/share.js.map +1 -1
- package/dist/esm/generated/src/operationsInterfaces/directory.js.map +1 -1
- package/dist/esm/generated/src/operationsInterfaces/file.js.map +1 -1
- package/dist/esm/generated/src/operationsInterfaces/service.js.map +1 -1
- package/dist/esm/generated/src/operationsInterfaces/share.js.map +1 -1
- package/dist/esm/generated/src/storageClient.d.ts.map +1 -1
- package/dist/esm/generated/src/storageClient.js +5 -5
- package/dist/esm/generated/src/storageClient.js.map +1 -1
- package/dist/esm/policies/StorageRetryPolicy.d.ts.map +1 -1
- package/dist/esm/policies/StorageRetryPolicy.js +15 -17
- package/dist/esm/policies/StorageRetryPolicy.js.map +1 -1
- package/dist/esm/policies/StorageRetryPolicyV2.d.ts.map +1 -1
- package/dist/esm/policies/StorageRetryPolicyV2.js +15 -17
- package/dist/esm/policies/StorageRetryPolicyV2.js.map +1 -1
- package/dist/esm/utils/constants.js +2 -2
- package/dist/esm/utils/constants.js.map +1 -1
- package/dist/esm/utils/utils.common.d.ts +2 -2
- package/dist/esm/utils/utils.common.js +2 -2
- package/dist/esm/utils/utils.common.js.map +1 -1
- package/dist/react-native/AccountSASPermissions.d.ts +1 -1
- package/dist/react-native/AccountSASPermissions.js +2 -2
- package/dist/react-native/AccountSASPermissions.js.map +1 -1
- package/dist/react-native/AccountSASResourceTypes.d.ts +1 -1
- package/dist/react-native/AccountSASResourceTypes.js +1 -1
- package/dist/react-native/AccountSASResourceTypes.js.map +1 -1
- package/dist/react-native/AccountSASSignatureValues.d.ts +3 -3
- package/dist/react-native/AccountSASSignatureValues.js +1 -1
- package/dist/react-native/AccountSASSignatureValues.js.map +1 -1
- package/dist/react-native/Clients.d.ts +53 -53
- package/dist/react-native/Clients.d.ts.map +1 -1
- package/dist/react-native/Clients.js +52 -51
- package/dist/react-native/Clients.js.map +1 -1
- package/dist/react-native/FileSASSignatureValues.d.ts +1 -1
- package/dist/react-native/FileSASSignatureValues.js.map +1 -1
- package/dist/react-native/FileSystemAttributes.d.ts +1 -1
- package/dist/react-native/FileSystemAttributes.js +1 -1
- package/dist/react-native/FileSystemAttributes.js.map +1 -1
- package/dist/react-native/Pipeline.d.ts.map +1 -1
- package/dist/react-native/Pipeline.js +2 -1
- package/dist/react-native/Pipeline.js.map +1 -1
- package/dist/react-native/Range.d.ts +1 -1
- package/dist/react-native/Range.js.map +1 -1
- package/dist/react-native/SASQueryParameters.d.ts +1 -1
- package/dist/react-native/SASQueryParameters.js.map +1 -1
- package/dist/react-native/ShareSASPermissions.d.ts +1 -1
- package/dist/react-native/ShareSASPermissions.js +1 -1
- package/dist/react-native/ShareSASPermissions.js.map +1 -1
- package/dist/react-native/ShareServiceClient.d.ts +4 -4
- package/dist/react-native/ShareServiceClient.js +4 -4
- package/dist/react-native/ShareServiceClient.js.map +1 -1
- package/dist/react-native/StorageRetryPolicyFactory.d.ts +1 -1
- package/dist/react-native/StorageRetryPolicyFactory.js.map +1 -1
- package/dist/react-native/generated/src/models/index.d.ts +62 -52
- package/dist/react-native/generated/src/models/index.d.ts.map +1 -1
- package/dist/react-native/generated/src/models/index.js +2 -0
- package/dist/react-native/generated/src/models/index.js.map +1 -1
- package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -1
- package/dist/react-native/generated/src/models/mappers.js +1779 -1730
- package/dist/react-native/generated/src/models/mappers.js.map +1 -1
- package/dist/react-native/generated/src/models/parameters.js +388 -388
- package/dist/react-native/generated/src/models/parameters.js.map +1 -1
- package/dist/react-native/generated/src/operations/directory.js +52 -52
- package/dist/react-native/generated/src/operations/directory.js.map +1 -1
- package/dist/react-native/generated/src/operations/file.js +113 -113
- package/dist/react-native/generated/src/operations/file.js.map +1 -1
- package/dist/react-native/generated/src/operations/service.js +18 -18
- package/dist/react-native/generated/src/operations/service.js.map +1 -1
- package/dist/react-native/generated/src/operations/share.js +104 -104
- package/dist/react-native/generated/src/operations/share.js.map +1 -1
- package/dist/react-native/generated/src/operationsInterfaces/directory.js.map +1 -1
- package/dist/react-native/generated/src/operationsInterfaces/file.js.map +1 -1
- package/dist/react-native/generated/src/operationsInterfaces/service.js.map +1 -1
- package/dist/react-native/generated/src/operationsInterfaces/share.js.map +1 -1
- package/dist/react-native/generated/src/storageClient.d.ts.map +1 -1
- package/dist/react-native/generated/src/storageClient.js +5 -5
- package/dist/react-native/generated/src/storageClient.js.map +1 -1
- package/dist/react-native/policies/StorageRetryPolicy.d.ts.map +1 -1
- package/dist/react-native/policies/StorageRetryPolicy.js +15 -17
- package/dist/react-native/policies/StorageRetryPolicy.js.map +1 -1
- package/dist/react-native/policies/StorageRetryPolicyV2.d.ts.map +1 -1
- package/dist/react-native/policies/StorageRetryPolicyV2.js +15 -17
- package/dist/react-native/policies/StorageRetryPolicyV2.js.map +1 -1
- package/dist/react-native/utils/constants.js +2 -2
- package/dist/react-native/utils/constants.js.map +1 -1
- package/dist/react-native/utils/utils.common.d.ts +2 -2
- package/dist/react-native/utils/utils.common.js +2 -2
- package/dist/react-native/utils/utils.common.js.map +1 -1
- package/package.json +5 -5
package/dist/browser/Clients.js
CHANGED
@@ -96,7 +96,7 @@ export class ShareClient extends StorageClient {
|
|
96
96
|
/**
|
97
97
|
* Creates a new share under the specified account. If the share with
|
98
98
|
* the same name already exists, the operation fails.
|
99
|
-
* @see https://learn.microsoft.com/
|
99
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-share
|
100
100
|
*
|
101
101
|
* @param options - Options to Share Create operation.
|
102
102
|
* @returns Response data for the Share Create operation.
|
@@ -109,7 +109,7 @@ export class ShareClient extends StorageClient {
|
|
109
109
|
/**
|
110
110
|
* Creates a new share under the specified account. If the share with
|
111
111
|
* the same name already exists, it is not changed.
|
112
|
-
* @see https://learn.microsoft.com/
|
112
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-share
|
113
113
|
*
|
114
114
|
* @param options -
|
115
115
|
*/
|
@@ -152,7 +152,7 @@ export class ShareClient extends StorageClient {
|
|
152
152
|
}
|
153
153
|
/**
|
154
154
|
* Creates a new subdirectory under this share.
|
155
|
-
* @see https://learn.microsoft.com/
|
155
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-directory
|
156
156
|
*
|
157
157
|
* @param directoryName -
|
158
158
|
* @param options - Options to Directory Create operation.
|
@@ -171,7 +171,7 @@ export class ShareClient extends StorageClient {
|
|
171
171
|
/**
|
172
172
|
* Removes the specified empty sub directory under this share.
|
173
173
|
* Note that the directory must be empty before it can be deleted.
|
174
|
-
* @see https://learn.microsoft.com/
|
174
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-directory
|
175
175
|
*
|
176
176
|
* @param directoryName -
|
177
177
|
* @param options - Options to Directory Delete operation.
|
@@ -186,7 +186,7 @@ export class ShareClient extends StorageClient {
|
|
186
186
|
/**
|
187
187
|
* Creates a new file or replaces a file under the root directory of this share.
|
188
188
|
* Note it only initializes the file with no content.
|
189
|
-
* @see https://learn.microsoft.com/
|
189
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-file
|
190
190
|
*
|
191
191
|
* @param fileName -
|
192
192
|
* @param size - Specifies the maximum size in bytes for the file, up to 4 TB.
|
@@ -217,7 +217,7 @@ export class ShareClient extends StorageClient {
|
|
217
217
|
* a share. An attempt to perform this operation on a share snapshot will fail with 400
|
218
218
|
* (`InvalidQueryParameterValue`)
|
219
219
|
*
|
220
|
-
* @see https://learn.microsoft.com/
|
220
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-file2
|
221
221
|
*
|
222
222
|
* @param directoryName -
|
223
223
|
* @param fileName -
|
@@ -257,7 +257,7 @@ export class ShareClient extends StorageClient {
|
|
257
257
|
/**
|
258
258
|
* Returns all user-defined metadata and system properties for the specified
|
259
259
|
* share.
|
260
|
-
* @see https://learn.microsoft.com/
|
260
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-share-properties
|
261
261
|
*
|
262
262
|
* WARNING: The `metadata` object returned in the response will have its keys in lowercase, even if
|
263
263
|
* they originally contained uppercase characters. This differs from the metadata keys returned by
|
@@ -275,7 +275,7 @@ export class ShareClient extends StorageClient {
|
|
275
275
|
/**
|
276
276
|
* Marks the specified share for deletion. The share and any directories or files
|
277
277
|
* contained within it are later deleted during garbage collection.
|
278
|
-
* @see https://learn.microsoft.com/
|
278
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-share
|
279
279
|
*
|
280
280
|
* @param options - Options to Share Delete operation.
|
281
281
|
* @returns Response data for the Share Delete operation.
|
@@ -288,20 +288,21 @@ export class ShareClient extends StorageClient {
|
|
288
288
|
/**
|
289
289
|
* Marks the specified share for deletion if it exists. The share and any directories or files
|
290
290
|
* contained within it are later deleted during garbage collection.
|
291
|
-
* @see https://learn.microsoft.com/
|
291
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-share
|
292
292
|
*
|
293
293
|
* @param options -
|
294
294
|
*/
|
295
295
|
async deleteIfExists(options = {}) {
|
296
296
|
return tracingClient.withSpan("ShareClient-deleteIfExists", options, async (updatedOptions) => {
|
297
|
-
var _a, _b;
|
297
|
+
var _a, _b, _c;
|
298
298
|
try {
|
299
299
|
const res = await this.delete(updatedOptions);
|
300
300
|
return Object.assign({ succeeded: true }, res);
|
301
301
|
}
|
302
302
|
catch (e) {
|
303
|
-
if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "ShareNotFound"
|
304
|
-
|
303
|
+
if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "ShareNotFound" ||
|
304
|
+
((_b = e.details) === null || _b === void 0 ? void 0 : _b.errorCode) === "ShareSnapshotNotFound") {
|
305
|
+
return Object.assign(Object.assign({ succeeded: false }, (_c = e.response) === null || _c === void 0 ? void 0 : _c.parsedHeaders), { _response: e.response });
|
305
306
|
}
|
306
307
|
throw e;
|
307
308
|
}
|
@@ -312,7 +313,7 @@ export class ShareClient extends StorageClient {
|
|
312
313
|
*
|
313
314
|
* If no option provided, or no metadata defined in the option parameter, the share
|
314
315
|
* metadata will be removed.
|
315
|
-
* @see https://learn.microsoft.com/
|
316
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-share-metadata
|
316
317
|
*
|
317
318
|
* @param metadata - If no metadata provided, all existing directory metadata will be removed.
|
318
319
|
* @param option - Options to Share Set Metadata operation.
|
@@ -330,7 +331,7 @@ export class ShareClient extends StorageClient {
|
|
330
331
|
* WARNING: JavaScript Date will potential lost precision when parsing start and expiry string.
|
331
332
|
* For example, new Date("2018-12-31T03:44:23.8827891Z").toISOString() will get "2018-12-31T03:44:23.882Z".
|
332
333
|
*
|
333
|
-
* @see https://learn.microsoft.com/
|
334
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-share-acl
|
334
335
|
*
|
335
336
|
* @param option - Options to Share Get Access Policy operation.
|
336
337
|
* @returns Response data for the Share Get Access Policy operation.
|
@@ -379,7 +380,7 @@ export class ShareClient extends StorageClient {
|
|
379
380
|
* When you establish a stored access policy on a share, it may take up to 30 seconds to take effect.
|
380
381
|
* During this interval, a shared access signature that is associated with the stored access policy will
|
381
382
|
* fail with status code 403 (Forbidden), until the access policy becomes active.
|
382
|
-
* @see https://learn.microsoft.com/
|
383
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-share-acl
|
383
384
|
*
|
384
385
|
* @param shareAcl - Array of signed identifiers, each having a unique Id and details of access policy.
|
385
386
|
* @param option - Options to Share Set Access Policy operation.
|
@@ -458,7 +459,7 @@ export class ShareClient extends StorageClient {
|
|
458
459
|
/**
|
459
460
|
* Creates a file permission (a security descriptor) at the share level.
|
460
461
|
* The created security descriptor can be used for the files/directories in the share.
|
461
|
-
* @see https://learn.microsoft.com/
|
462
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-permission
|
462
463
|
*
|
463
464
|
* @param options - Options to Share Create Permission operation.
|
464
465
|
* @param filePermission - File permission described in the SDDL
|
@@ -471,7 +472,7 @@ export class ShareClient extends StorageClient {
|
|
471
472
|
/**
|
472
473
|
* Gets the Security Descriptor Definition Language (SDDL) for a given file permission key
|
473
474
|
* which indicates a security descriptor.
|
474
|
-
* @see https://learn.microsoft.com/
|
475
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-permission
|
475
476
|
*
|
476
477
|
* @param options - Options to Share Create Permission operation.
|
477
478
|
* @param filePermissionKey - File permission key which indicates the security descriptor of the permission.
|
@@ -496,7 +497,7 @@ export class ShareClient extends StorageClient {
|
|
496
497
|
* Generates a Service Shared Access Signature (SAS) URI based on the client properties
|
497
498
|
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
498
499
|
*
|
499
|
-
* @see https://learn.microsoft.com/
|
500
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
500
501
|
*
|
501
502
|
* @param options - Optional parameters.
|
502
503
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
@@ -514,7 +515,7 @@ export class ShareClient extends StorageClient {
|
|
514
515
|
* Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
|
515
516
|
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
516
517
|
*
|
517
|
-
* @see https://learn.microsoft.com/
|
518
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
518
519
|
*
|
519
520
|
* @param options - Optional parameters.
|
520
521
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
@@ -576,7 +577,7 @@ export class ShareDirectoryClient extends StorageClient {
|
|
576
577
|
}
|
577
578
|
/**
|
578
579
|
* Creates a new directory under the specified share or parent directory.
|
579
|
-
* @see https://learn.microsoft.com/
|
580
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-directory
|
580
581
|
*
|
581
582
|
* @param options - Options to Directory Create operation.
|
582
583
|
* @returns Response data for the Directory operation.
|
@@ -602,7 +603,7 @@ export class ShareDirectoryClient extends StorageClient {
|
|
602
603
|
/**
|
603
604
|
* Creates a new directory under the specified share or parent directory if it does not already exists.
|
604
605
|
* If the directory already exists, it is not modified.
|
605
|
-
* @see https://learn.microsoft.com/
|
606
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-directory
|
606
607
|
*
|
607
608
|
* @param options -
|
608
609
|
*/
|
@@ -623,7 +624,7 @@ export class ShareDirectoryClient extends StorageClient {
|
|
623
624
|
}
|
624
625
|
/**
|
625
626
|
* Sets properties on the directory.
|
626
|
-
* @see https://learn.microsoft.com/
|
627
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-directory-properties
|
627
628
|
*
|
628
629
|
* @param DirectoryProperties - Directory properties. If no values are provided,
|
629
630
|
* existing values will be preserved.
|
@@ -674,7 +675,7 @@ export class ShareDirectoryClient extends StorageClient {
|
|
674
675
|
}
|
675
676
|
/**
|
676
677
|
* Creates a new subdirectory under this directory.
|
677
|
-
* @see https://learn.microsoft.com/
|
678
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-directory
|
678
679
|
*
|
679
680
|
* @param directoryName -
|
680
681
|
* @param options - Options to Directory Create operation.
|
@@ -693,7 +694,7 @@ export class ShareDirectoryClient extends StorageClient {
|
|
693
694
|
/**
|
694
695
|
* Removes the specified empty sub directory under this directory.
|
695
696
|
* Note that the directory must be empty before it can be deleted.
|
696
|
-
* @see https://learn.microsoft.com/
|
697
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-directory
|
697
698
|
*
|
698
699
|
* @param directoryName -
|
699
700
|
* @param options - Options to Directory Delete operation.
|
@@ -707,7 +708,7 @@ export class ShareDirectoryClient extends StorageClient {
|
|
707
708
|
}
|
708
709
|
/**
|
709
710
|
* Creates a new file or replaces a file under this directory. Note it only initializes the file with no content.
|
710
|
-
* @see https://learn.microsoft.com/
|
711
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-file
|
711
712
|
*
|
712
713
|
* @param fileName -
|
713
714
|
* @param size - Specifies the maximum size in bytes for the file, up to 4 TB.
|
@@ -736,7 +737,7 @@ export class ShareDirectoryClient extends StorageClient {
|
|
736
737
|
* Delete File is not supported on a share snapshot, which is a read-only copy of
|
737
738
|
* a share. An attempt to perform this operation on a share snapshot will fail with 400 (InvalidQueryParameterValue)
|
738
739
|
*
|
739
|
-
* @see https://learn.microsoft.com/
|
740
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-file2
|
740
741
|
*
|
741
742
|
* @param fileName - Name of the file to delete
|
742
743
|
* @param options - Options to File Delete operation.
|
@@ -815,7 +816,7 @@ export class ShareDirectoryClient extends StorageClient {
|
|
815
816
|
* Returns all system properties for the specified directory, and can also be used to check the
|
816
817
|
* existence of a directory. The data returned does not include the files in the directory or any
|
817
818
|
* subdirectories.
|
818
|
-
* @see https://learn.microsoft.com/
|
819
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-directory-properties
|
819
820
|
*
|
820
821
|
* @param options - Options to Directory Get Properties operation.
|
821
822
|
* @returns Response data for the Directory Get Properties operation.
|
@@ -834,7 +835,7 @@ export class ShareDirectoryClient extends StorageClient {
|
|
834
835
|
/**
|
835
836
|
* Removes the specified empty directory. Note that the directory must be empty before it can be
|
836
837
|
* deleted.
|
837
|
-
* @see https://learn.microsoft.com/
|
838
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-directory
|
838
839
|
*
|
839
840
|
* @param options - Options to Directory Delete operation.
|
840
841
|
* @returns Response data for the Directory Delete operation.
|
@@ -847,7 +848,7 @@ export class ShareDirectoryClient extends StorageClient {
|
|
847
848
|
/**
|
848
849
|
* Removes the specified empty directory if it exists. Note that the directory must be empty before it can be
|
849
850
|
* deleted.
|
850
|
-
* @see https://learn.microsoft.com/
|
851
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-directory
|
851
852
|
*
|
852
853
|
* @param options -
|
853
854
|
*/
|
@@ -869,7 +870,7 @@ export class ShareDirectoryClient extends StorageClient {
|
|
869
870
|
}
|
870
871
|
/**
|
871
872
|
* Updates user defined metadata for the specified directory.
|
872
|
-
* @see https://learn.microsoft.com/
|
873
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-directory-metadata
|
873
874
|
*
|
874
875
|
* @param metadata - If no metadata provided, all existing directory metadata will be removed
|
875
876
|
* @param options - Options to Directory Set Metadata operation.
|
@@ -1132,7 +1133,7 @@ export class ShareDirectoryClient extends StorageClient {
|
|
1132
1133
|
/**
|
1133
1134
|
* Returns a list of files or directories under the specified share or directory. It lists the
|
1134
1135
|
* contents only for a single level of the directory hierarchy.
|
1135
|
-
* @see https://learn.microsoft.com/
|
1136
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/list-directories-and-files
|
1136
1137
|
*
|
1137
1138
|
* @param marker - A string value that identifies the portion of the list to be returned with the next list operation.
|
1138
1139
|
* @param options - Options to Directory List Files and Directories Segment operation.
|
@@ -1349,7 +1350,7 @@ export class ShareDirectoryClient extends StorageClient {
|
|
1349
1350
|
}
|
1350
1351
|
/**
|
1351
1352
|
* Lists handles for a directory.
|
1352
|
-
* @see https://learn.microsoft.com/
|
1353
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/list-handles
|
1353
1354
|
*
|
1354
1355
|
* @param marker - Optional. A string value that identifies the portion of the list to be
|
1355
1356
|
* returned with the next list handles operation. The operation returns a
|
@@ -1373,7 +1374,7 @@ export class ShareDirectoryClient extends StorageClient {
|
|
1373
1374
|
}
|
1374
1375
|
/**
|
1375
1376
|
* Force close all handles for a directory.
|
1376
|
-
* @see https://learn.microsoft.com/
|
1377
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/force-close-handles
|
1377
1378
|
*
|
1378
1379
|
* @param marker - Optional. A string value that identifies the position of handles that will
|
1379
1380
|
* be closed with the next force close handles operation.
|
@@ -1394,7 +1395,7 @@ export class ShareDirectoryClient extends StorageClient {
|
|
1394
1395
|
}
|
1395
1396
|
/**
|
1396
1397
|
* Force close all handles for a directory.
|
1397
|
-
* @see https://learn.microsoft.com/
|
1398
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/force-close-handles
|
1398
1399
|
*
|
1399
1400
|
* @param options -
|
1400
1401
|
*/
|
@@ -1421,7 +1422,7 @@ export class ShareDirectoryClient extends StorageClient {
|
|
1421
1422
|
}
|
1422
1423
|
/**
|
1423
1424
|
* Force close a specific handle for a directory.
|
1424
|
-
* @see https://learn.microsoft.com/
|
1425
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/force-close-handles
|
1425
1426
|
*
|
1426
1427
|
* @param aborter - Create a new Aborter instance with Aborter.none or Aborter.timeout(),
|
1427
1428
|
* goto documents of Aborter for more examples about request cancellation
|
@@ -1565,7 +1566,7 @@ export class ShareFileClient extends StorageClient {
|
|
1565
1566
|
}
|
1566
1567
|
/**
|
1567
1568
|
* Creates a new file or replaces a file. Note it only initializes the file with no content.
|
1568
|
-
* @see https://learn.microsoft.com/
|
1569
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-file
|
1569
1570
|
*
|
1570
1571
|
* @param size - Specifies the maximum size in bytes for the file, up to 4 TB.
|
1571
1572
|
* @param options - Options to File Create operation.
|
@@ -1626,7 +1627,7 @@ export class ShareFileClient extends StorageClient {
|
|
1626
1627
|
* * In Node.js, data returns in a Readable stream `readableStreamBody`
|
1627
1628
|
* * In browsers, data returns in a promise `contentAsBlob`
|
1628
1629
|
*
|
1629
|
-
* @see https://learn.microsoft.com/
|
1630
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-file
|
1630
1631
|
*
|
1631
1632
|
* @param offset - From which position of the file to download, greater than or equal to 0
|
1632
1633
|
* @param count - How much data to be downloaded, greater than 0. Will download to the end when undefined
|
@@ -1781,7 +1782,7 @@ export class ShareFileClient extends StorageClient {
|
|
1781
1782
|
/**
|
1782
1783
|
* Returns all user-defined metadata, standard HTTP properties, and system properties
|
1783
1784
|
* for the file. It does not return the content of the file.
|
1784
|
-
* @see https://learn.microsoft.com/
|
1785
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-file-properties
|
1785
1786
|
*
|
1786
1787
|
* @param options - Options to File Get Properties operation.
|
1787
1788
|
* @returns Response data for the File Get Properties operation.
|
@@ -1800,7 +1801,7 @@ export class ShareFileClient extends StorageClient {
|
|
1800
1801
|
}
|
1801
1802
|
/**
|
1802
1803
|
* Sets properties on the file.
|
1803
|
-
* @see https://learn.microsoft.com/
|
1804
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-file-properties
|
1804
1805
|
*
|
1805
1806
|
* @param properties - File properties. For file HTTP headers(e.g. Content-Type),
|
1806
1807
|
* if no values are provided, existing HTTP headers will be removed.
|
@@ -1835,7 +1836,7 @@ export class ShareFileClient extends StorageClient {
|
|
1835
1836
|
* Delete File is not supported on a share snapshot, which is a read-only copy of
|
1836
1837
|
* a share. An attempt to perform this operation on a share snapshot will fail with 400 (InvalidQueryParameterValue)
|
1837
1838
|
*
|
1838
|
-
* @see https://learn.microsoft.com/
|
1839
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-file2
|
1839
1840
|
*
|
1840
1841
|
* @param options - Options to File Delete operation.
|
1841
1842
|
* @returns Response data for the File Delete operation.
|
@@ -1857,7 +1858,7 @@ export class ShareFileClient extends StorageClient {
|
|
1857
1858
|
* Delete File is not supported on a share snapshot, which is a read-only copy of
|
1858
1859
|
* a share. An attempt to perform this operation on a share snapshot will fail with 400 (InvalidQueryParameterValue)
|
1859
1860
|
*
|
1860
|
-
* @see https://learn.microsoft.com/
|
1861
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-file2
|
1861
1862
|
*
|
1862
1863
|
* @param options -
|
1863
1864
|
*/
|
@@ -1882,7 +1883,7 @@ export class ShareFileClient extends StorageClient {
|
|
1882
1883
|
*
|
1883
1884
|
* If no option provided, or no value provided for the file HTTP headers in the options,
|
1884
1885
|
* these file HTTP headers without a value will be cleared.
|
1885
|
-
* @see https://learn.microsoft.com/
|
1886
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-file-properties
|
1886
1887
|
*
|
1887
1888
|
* @param FileHttpHeaders - File HTTP headers like Content-Type.
|
1888
1889
|
* Provide undefined will remove existing HTTP headers.
|
@@ -1908,7 +1909,7 @@ export class ShareFileClient extends StorageClient {
|
|
1908
1909
|
/**
|
1909
1910
|
* Resize file.
|
1910
1911
|
*
|
1911
|
-
* @see https://learn.microsoft.com/
|
1912
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-file-properties
|
1912
1913
|
*
|
1913
1914
|
* @param length - Resizes a file to the specified size in bytes.
|
1914
1915
|
* If the specified byte value is less than the current size of the file,
|
@@ -1938,7 +1939,7 @@ export class ShareFileClient extends StorageClient {
|
|
1938
1939
|
*
|
1939
1940
|
* If no metadata defined in the option parameter, the file
|
1940
1941
|
* metadata will be removed.
|
1941
|
-
* @see https://learn.microsoft.com/
|
1942
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-file-metadata
|
1942
1943
|
*
|
1943
1944
|
* @param metadata - If no metadata provided, all existing directory metadata will be removed
|
1944
1945
|
* @param options - Options to File Set Metadata operation.
|
@@ -2091,7 +2092,7 @@ export class ShareFileClient extends StorageClient {
|
|
2091
2092
|
/**
|
2092
2093
|
* Aborts a pending Copy File operation, and leaves a destination file with zero length and full
|
2093
2094
|
* metadata.
|
2094
|
-
* @see https://learn.microsoft.com/
|
2095
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/abort-copy-file
|
2095
2096
|
*
|
2096
2097
|
* @param copyId - Id of the Copy File operation to abort.
|
2097
2098
|
* @param options - Options to File Abort Copy From URL operation.
|
@@ -2424,7 +2425,7 @@ export class ShareFileClient extends StorageClient {
|
|
2424
2425
|
}
|
2425
2426
|
/**
|
2426
2427
|
* Lists handles for a file.
|
2427
|
-
* @see https://learn.microsoft.com/
|
2428
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/list-handles
|
2428
2429
|
*
|
2429
2430
|
* @param marker - Optional. A string value that identifies the portion of the list to be
|
2430
2431
|
* returned with the next list handles operation. The operation returns a
|
@@ -2534,7 +2535,7 @@ export class ShareFileClient extends StorageClient {
|
|
2534
2535
|
}
|
2535
2536
|
/**
|
2536
2537
|
* Force close all handles for a file.
|
2537
|
-
* @see https://learn.microsoft.com/
|
2538
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/force-close-handles
|
2538
2539
|
*
|
2539
2540
|
* @param marker - Optional. A string value that identifies the position of handles that will
|
2540
2541
|
* be closed with the next force close handles operation.
|
@@ -2555,7 +2556,7 @@ export class ShareFileClient extends StorageClient {
|
|
2555
2556
|
}
|
2556
2557
|
/**
|
2557
2558
|
* Force close all handles for a file.
|
2558
|
-
* @see https://learn.microsoft.com/
|
2559
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/force-close-handles
|
2559
2560
|
*
|
2560
2561
|
* @param options - Options to force close handles operation.
|
2561
2562
|
*/
|
@@ -2582,7 +2583,7 @@ export class ShareFileClient extends StorageClient {
|
|
2582
2583
|
}
|
2583
2584
|
/**
|
2584
2585
|
* Force close a specific handle for a file.
|
2585
|
-
* @see https://learn.microsoft.com/
|
2586
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/force-close-handles
|
2586
2587
|
*
|
2587
2588
|
* @param handleId - Specific handle ID, cannot be asterisk "*".
|
2588
2589
|
* Use forceCloseAllHandles() to close all handles.
|
@@ -2660,7 +2661,7 @@ export class ShareFileClient extends StorageClient {
|
|
2660
2661
|
* Generates a Service Shared Access Signature (SAS) URI based on the client properties
|
2661
2662
|
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
2662
2663
|
*
|
2663
|
-
* @see https://learn.microsoft.com/
|
2664
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
2664
2665
|
*
|
2665
2666
|
* @param options - Optional parameters.
|
2666
2667
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
@@ -2678,7 +2679,7 @@ export class ShareFileClient extends StorageClient {
|
|
2678
2679
|
* Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
|
2679
2680
|
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
2680
2681
|
*
|
2681
|
-
* @see https://learn.microsoft.com/
|
2682
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
2682
2683
|
*
|
2683
2684
|
* @param options - Optional parameters.
|
2684
2685
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|