@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/commonjs/Clients.js
CHANGED
@@ -99,7 +99,7 @@ class ShareClient extends StorageClient_js_1.StorageClient {
|
|
99
99
|
/**
|
100
100
|
* Creates a new share under the specified account. If the share with
|
101
101
|
* the same name already exists, the operation fails.
|
102
|
-
* @see https://learn.microsoft.com/
|
102
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-share
|
103
103
|
*
|
104
104
|
* @param options - Options to Share Create operation.
|
105
105
|
* @returns Response data for the Share Create operation.
|
@@ -112,7 +112,7 @@ class ShareClient extends StorageClient_js_1.StorageClient {
|
|
112
112
|
/**
|
113
113
|
* Creates a new share under the specified account. If the share with
|
114
114
|
* the same name already exists, it is not changed.
|
115
|
-
* @see https://learn.microsoft.com/
|
115
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-share
|
116
116
|
*
|
117
117
|
* @param options -
|
118
118
|
*/
|
@@ -155,7 +155,7 @@ class ShareClient extends StorageClient_js_1.StorageClient {
|
|
155
155
|
}
|
156
156
|
/**
|
157
157
|
* Creates a new subdirectory under this share.
|
158
|
-
* @see https://learn.microsoft.com/
|
158
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-directory
|
159
159
|
*
|
160
160
|
* @param directoryName -
|
161
161
|
* @param options - Options to Directory Create operation.
|
@@ -174,7 +174,7 @@ class ShareClient extends StorageClient_js_1.StorageClient {
|
|
174
174
|
/**
|
175
175
|
* Removes the specified empty sub directory under this share.
|
176
176
|
* Note that the directory must be empty before it can be deleted.
|
177
|
-
* @see https://learn.microsoft.com/
|
177
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-directory
|
178
178
|
*
|
179
179
|
* @param directoryName -
|
180
180
|
* @param options - Options to Directory Delete operation.
|
@@ -189,7 +189,7 @@ class ShareClient extends StorageClient_js_1.StorageClient {
|
|
189
189
|
/**
|
190
190
|
* Creates a new file or replaces a file under the root directory of this share.
|
191
191
|
* Note it only initializes the file with no content.
|
192
|
-
* @see https://learn.microsoft.com/
|
192
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-file
|
193
193
|
*
|
194
194
|
* @param fileName -
|
195
195
|
* @param size - Specifies the maximum size in bytes for the file, up to 4 TB.
|
@@ -220,7 +220,7 @@ class ShareClient extends StorageClient_js_1.StorageClient {
|
|
220
220
|
* a share. An attempt to perform this operation on a share snapshot will fail with 400
|
221
221
|
* (`InvalidQueryParameterValue`)
|
222
222
|
*
|
223
|
-
* @see https://learn.microsoft.com/
|
223
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-file2
|
224
224
|
*
|
225
225
|
* @param directoryName -
|
226
226
|
* @param fileName -
|
@@ -260,7 +260,7 @@ class ShareClient extends StorageClient_js_1.StorageClient {
|
|
260
260
|
/**
|
261
261
|
* Returns all user-defined metadata and system properties for the specified
|
262
262
|
* share.
|
263
|
-
* @see https://learn.microsoft.com/
|
263
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-share-properties
|
264
264
|
*
|
265
265
|
* WARNING: The `metadata` object returned in the response will have its keys in lowercase, even if
|
266
266
|
* they originally contained uppercase characters. This differs from the metadata keys returned by
|
@@ -278,7 +278,7 @@ class ShareClient extends StorageClient_js_1.StorageClient {
|
|
278
278
|
/**
|
279
279
|
* Marks the specified share for deletion. The share and any directories or files
|
280
280
|
* contained within it are later deleted during garbage collection.
|
281
|
-
* @see https://learn.microsoft.com/
|
281
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-share
|
282
282
|
*
|
283
283
|
* @param options - Options to Share Delete operation.
|
284
284
|
* @returns Response data for the Share Delete operation.
|
@@ -291,20 +291,21 @@ class ShareClient extends StorageClient_js_1.StorageClient {
|
|
291
291
|
/**
|
292
292
|
* Marks the specified share for deletion if it exists. The share and any directories or files
|
293
293
|
* contained within it are later deleted during garbage collection.
|
294
|
-
* @see https://learn.microsoft.com/
|
294
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-share
|
295
295
|
*
|
296
296
|
* @param options -
|
297
297
|
*/
|
298
298
|
async deleteIfExists(options = {}) {
|
299
299
|
return tracing_js_1.tracingClient.withSpan("ShareClient-deleteIfExists", options, async (updatedOptions) => {
|
300
|
-
var _a, _b;
|
300
|
+
var _a, _b, _c;
|
301
301
|
try {
|
302
302
|
const res = await this.delete(updatedOptions);
|
303
303
|
return Object.assign({ succeeded: true }, res);
|
304
304
|
}
|
305
305
|
catch (e) {
|
306
|
-
if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "ShareNotFound"
|
307
|
-
|
306
|
+
if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "ShareNotFound" ||
|
307
|
+
((_b = e.details) === null || _b === void 0 ? void 0 : _b.errorCode) === "ShareSnapshotNotFound") {
|
308
|
+
return Object.assign(Object.assign({ succeeded: false }, (_c = e.response) === null || _c === void 0 ? void 0 : _c.parsedHeaders), { _response: e.response });
|
308
309
|
}
|
309
310
|
throw e;
|
310
311
|
}
|
@@ -315,7 +316,7 @@ class ShareClient extends StorageClient_js_1.StorageClient {
|
|
315
316
|
*
|
316
317
|
* If no option provided, or no metadata defined in the option parameter, the share
|
317
318
|
* metadata will be removed.
|
318
|
-
* @see https://learn.microsoft.com/
|
319
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-share-metadata
|
319
320
|
*
|
320
321
|
* @param metadata - If no metadata provided, all existing directory metadata will be removed.
|
321
322
|
* @param option - Options to Share Set Metadata operation.
|
@@ -333,7 +334,7 @@ class ShareClient extends StorageClient_js_1.StorageClient {
|
|
333
334
|
* WARNING: JavaScript Date will potential lost precision when parsing start and expiry string.
|
334
335
|
* For example, new Date("2018-12-31T03:44:23.8827891Z").toISOString() will get "2018-12-31T03:44:23.882Z".
|
335
336
|
*
|
336
|
-
* @see https://learn.microsoft.com/
|
337
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-share-acl
|
337
338
|
*
|
338
339
|
* @param option - Options to Share Get Access Policy operation.
|
339
340
|
* @returns Response data for the Share Get Access Policy operation.
|
@@ -382,7 +383,7 @@ class ShareClient extends StorageClient_js_1.StorageClient {
|
|
382
383
|
* When you establish a stored access policy on a share, it may take up to 30 seconds to take effect.
|
383
384
|
* During this interval, a shared access signature that is associated with the stored access policy will
|
384
385
|
* fail with status code 403 (Forbidden), until the access policy becomes active.
|
385
|
-
* @see https://learn.microsoft.com/
|
386
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-share-acl
|
386
387
|
*
|
387
388
|
* @param shareAcl - Array of signed identifiers, each having a unique Id and details of access policy.
|
388
389
|
* @param option - Options to Share Set Access Policy operation.
|
@@ -461,7 +462,7 @@ class ShareClient extends StorageClient_js_1.StorageClient {
|
|
461
462
|
/**
|
462
463
|
* Creates a file permission (a security descriptor) at the share level.
|
463
464
|
* The created security descriptor can be used for the files/directories in the share.
|
464
|
-
* @see https://learn.microsoft.com/
|
465
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-permission
|
465
466
|
*
|
466
467
|
* @param options - Options to Share Create Permission operation.
|
467
468
|
* @param filePermission - File permission described in the SDDL
|
@@ -474,7 +475,7 @@ class ShareClient extends StorageClient_js_1.StorageClient {
|
|
474
475
|
/**
|
475
476
|
* Gets the Security Descriptor Definition Language (SDDL) for a given file permission key
|
476
477
|
* which indicates a security descriptor.
|
477
|
-
* @see https://learn.microsoft.com/
|
478
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-permission
|
478
479
|
*
|
479
480
|
* @param options - Options to Share Create Permission operation.
|
480
481
|
* @param filePermissionKey - File permission key which indicates the security descriptor of the permission.
|
@@ -499,7 +500,7 @@ class ShareClient extends StorageClient_js_1.StorageClient {
|
|
499
500
|
* Generates a Service Shared Access Signature (SAS) URI based on the client properties
|
500
501
|
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
501
502
|
*
|
502
|
-
* @see https://learn.microsoft.com/
|
503
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
503
504
|
*
|
504
505
|
* @param options - Optional parameters.
|
505
506
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
@@ -517,7 +518,7 @@ class ShareClient extends StorageClient_js_1.StorageClient {
|
|
517
518
|
* Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
|
518
519
|
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
519
520
|
*
|
520
|
-
* @see https://learn.microsoft.com/
|
521
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
521
522
|
*
|
522
523
|
* @param options - Optional parameters.
|
523
524
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
@@ -580,7 +581,7 @@ class ShareDirectoryClient extends StorageClient_js_1.StorageClient {
|
|
580
581
|
}
|
581
582
|
/**
|
582
583
|
* Creates a new directory under the specified share or parent directory.
|
583
|
-
* @see https://learn.microsoft.com/
|
584
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-directory
|
584
585
|
*
|
585
586
|
* @param options - Options to Directory Create operation.
|
586
587
|
* @returns Response data for the Directory operation.
|
@@ -606,7 +607,7 @@ class ShareDirectoryClient extends StorageClient_js_1.StorageClient {
|
|
606
607
|
/**
|
607
608
|
* Creates a new directory under the specified share or parent directory if it does not already exists.
|
608
609
|
* If the directory already exists, it is not modified.
|
609
|
-
* @see https://learn.microsoft.com/
|
610
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-directory
|
610
611
|
*
|
611
612
|
* @param options -
|
612
613
|
*/
|
@@ -627,7 +628,7 @@ class ShareDirectoryClient extends StorageClient_js_1.StorageClient {
|
|
627
628
|
}
|
628
629
|
/**
|
629
630
|
* Sets properties on the directory.
|
630
|
-
* @see https://learn.microsoft.com/
|
631
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-directory-properties
|
631
632
|
*
|
632
633
|
* @param DirectoryProperties - Directory properties. If no values are provided,
|
633
634
|
* existing values will be preserved.
|
@@ -678,7 +679,7 @@ class ShareDirectoryClient extends StorageClient_js_1.StorageClient {
|
|
678
679
|
}
|
679
680
|
/**
|
680
681
|
* Creates a new subdirectory under this directory.
|
681
|
-
* @see https://learn.microsoft.com/
|
682
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-directory
|
682
683
|
*
|
683
684
|
* @param directoryName -
|
684
685
|
* @param options - Options to Directory Create operation.
|
@@ -697,7 +698,7 @@ class ShareDirectoryClient extends StorageClient_js_1.StorageClient {
|
|
697
698
|
/**
|
698
699
|
* Removes the specified empty sub directory under this directory.
|
699
700
|
* Note that the directory must be empty before it can be deleted.
|
700
|
-
* @see https://learn.microsoft.com/
|
701
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-directory
|
701
702
|
*
|
702
703
|
* @param directoryName -
|
703
704
|
* @param options - Options to Directory Delete operation.
|
@@ -711,7 +712,7 @@ class ShareDirectoryClient extends StorageClient_js_1.StorageClient {
|
|
711
712
|
}
|
712
713
|
/**
|
713
714
|
* Creates a new file or replaces a file under this directory. Note it only initializes the file with no content.
|
714
|
-
* @see https://learn.microsoft.com/
|
715
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-file
|
715
716
|
*
|
716
717
|
* @param fileName -
|
717
718
|
* @param size - Specifies the maximum size in bytes for the file, up to 4 TB.
|
@@ -740,7 +741,7 @@ class ShareDirectoryClient extends StorageClient_js_1.StorageClient {
|
|
740
741
|
* Delete File is not supported on a share snapshot, which is a read-only copy of
|
741
742
|
* a share. An attempt to perform this operation on a share snapshot will fail with 400 (InvalidQueryParameterValue)
|
742
743
|
*
|
743
|
-
* @see https://learn.microsoft.com/
|
744
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-file2
|
744
745
|
*
|
745
746
|
* @param fileName - Name of the file to delete
|
746
747
|
* @param options - Options to File Delete operation.
|
@@ -819,7 +820,7 @@ class ShareDirectoryClient extends StorageClient_js_1.StorageClient {
|
|
819
820
|
* Returns all system properties for the specified directory, and can also be used to check the
|
820
821
|
* existence of a directory. The data returned does not include the files in the directory or any
|
821
822
|
* subdirectories.
|
822
|
-
* @see https://learn.microsoft.com/
|
823
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-directory-properties
|
823
824
|
*
|
824
825
|
* @param options - Options to Directory Get Properties operation.
|
825
826
|
* @returns Response data for the Directory Get Properties operation.
|
@@ -838,7 +839,7 @@ class ShareDirectoryClient extends StorageClient_js_1.StorageClient {
|
|
838
839
|
/**
|
839
840
|
* Removes the specified empty directory. Note that the directory must be empty before it can be
|
840
841
|
* deleted.
|
841
|
-
* @see https://learn.microsoft.com/
|
842
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-directory
|
842
843
|
*
|
843
844
|
* @param options - Options to Directory Delete operation.
|
844
845
|
* @returns Response data for the Directory Delete operation.
|
@@ -851,7 +852,7 @@ class ShareDirectoryClient extends StorageClient_js_1.StorageClient {
|
|
851
852
|
/**
|
852
853
|
* Removes the specified empty directory if it exists. Note that the directory must be empty before it can be
|
853
854
|
* deleted.
|
854
|
-
* @see https://learn.microsoft.com/
|
855
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-directory
|
855
856
|
*
|
856
857
|
* @param options -
|
857
858
|
*/
|
@@ -873,7 +874,7 @@ class ShareDirectoryClient extends StorageClient_js_1.StorageClient {
|
|
873
874
|
}
|
874
875
|
/**
|
875
876
|
* Updates user defined metadata for the specified directory.
|
876
|
-
* @see https://learn.microsoft.com/
|
877
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-directory-metadata
|
877
878
|
*
|
878
879
|
* @param metadata - If no metadata provided, all existing directory metadata will be removed
|
879
880
|
* @param options - Options to Directory Set Metadata operation.
|
@@ -1136,7 +1137,7 @@ class ShareDirectoryClient extends StorageClient_js_1.StorageClient {
|
|
1136
1137
|
/**
|
1137
1138
|
* Returns a list of files or directories under the specified share or directory. It lists the
|
1138
1139
|
* contents only for a single level of the directory hierarchy.
|
1139
|
-
* @see https://learn.microsoft.com/
|
1140
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/list-directories-and-files
|
1140
1141
|
*
|
1141
1142
|
* @param marker - A string value that identifies the portion of the list to be returned with the next list operation.
|
1142
1143
|
* @param options - Options to Directory List Files and Directories Segment operation.
|
@@ -1353,7 +1354,7 @@ class ShareDirectoryClient extends StorageClient_js_1.StorageClient {
|
|
1353
1354
|
}
|
1354
1355
|
/**
|
1355
1356
|
* Lists handles for a directory.
|
1356
|
-
* @see https://learn.microsoft.com/
|
1357
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/list-handles
|
1357
1358
|
*
|
1358
1359
|
* @param marker - Optional. A string value that identifies the portion of the list to be
|
1359
1360
|
* returned with the next list handles operation. The operation returns a
|
@@ -1377,7 +1378,7 @@ class ShareDirectoryClient extends StorageClient_js_1.StorageClient {
|
|
1377
1378
|
}
|
1378
1379
|
/**
|
1379
1380
|
* Force close all handles for a directory.
|
1380
|
-
* @see https://learn.microsoft.com/
|
1381
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/force-close-handles
|
1381
1382
|
*
|
1382
1383
|
* @param marker - Optional. A string value that identifies the position of handles that will
|
1383
1384
|
* be closed with the next force close handles operation.
|
@@ -1398,7 +1399,7 @@ class ShareDirectoryClient extends StorageClient_js_1.StorageClient {
|
|
1398
1399
|
}
|
1399
1400
|
/**
|
1400
1401
|
* Force close all handles for a directory.
|
1401
|
-
* @see https://learn.microsoft.com/
|
1402
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/force-close-handles
|
1402
1403
|
*
|
1403
1404
|
* @param options -
|
1404
1405
|
*/
|
@@ -1425,7 +1426,7 @@ class ShareDirectoryClient extends StorageClient_js_1.StorageClient {
|
|
1425
1426
|
}
|
1426
1427
|
/**
|
1427
1428
|
* Force close a specific handle for a directory.
|
1428
|
-
* @see https://learn.microsoft.com/
|
1429
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/force-close-handles
|
1429
1430
|
*
|
1430
1431
|
* @param aborter - Create a new Aborter instance with Aborter.none or Aborter.timeout(),
|
1431
1432
|
* goto documents of Aborter for more examples about request cancellation
|
@@ -1570,7 +1571,7 @@ class ShareFileClient extends StorageClient_js_1.StorageClient {
|
|
1570
1571
|
}
|
1571
1572
|
/**
|
1572
1573
|
* Creates a new file or replaces a file. Note it only initializes the file with no content.
|
1573
|
-
* @see https://learn.microsoft.com/
|
1574
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-file
|
1574
1575
|
*
|
1575
1576
|
* @param size - Specifies the maximum size in bytes for the file, up to 4 TB.
|
1576
1577
|
* @param options - Options to File Create operation.
|
@@ -1631,7 +1632,7 @@ class ShareFileClient extends StorageClient_js_1.StorageClient {
|
|
1631
1632
|
* * In Node.js, data returns in a Readable stream `readableStreamBody`
|
1632
1633
|
* * In browsers, data returns in a promise `contentAsBlob`
|
1633
1634
|
*
|
1634
|
-
* @see https://learn.microsoft.com/
|
1635
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-file
|
1635
1636
|
*
|
1636
1637
|
* @param offset - From which position of the file to download, greater than or equal to 0
|
1637
1638
|
* @param count - How much data to be downloaded, greater than 0. Will download to the end when undefined
|
@@ -1786,7 +1787,7 @@ class ShareFileClient extends StorageClient_js_1.StorageClient {
|
|
1786
1787
|
/**
|
1787
1788
|
* Returns all user-defined metadata, standard HTTP properties, and system properties
|
1788
1789
|
* for the file. It does not return the content of the file.
|
1789
|
-
* @see https://learn.microsoft.com/
|
1790
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-file-properties
|
1790
1791
|
*
|
1791
1792
|
* @param options - Options to File Get Properties operation.
|
1792
1793
|
* @returns Response data for the File Get Properties operation.
|
@@ -1805,7 +1806,7 @@ class ShareFileClient extends StorageClient_js_1.StorageClient {
|
|
1805
1806
|
}
|
1806
1807
|
/**
|
1807
1808
|
* Sets properties on the file.
|
1808
|
-
* @see https://learn.microsoft.com/
|
1809
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-file-properties
|
1809
1810
|
*
|
1810
1811
|
* @param properties - File properties. For file HTTP headers(e.g. Content-Type),
|
1811
1812
|
* if no values are provided, existing HTTP headers will be removed.
|
@@ -1840,7 +1841,7 @@ class ShareFileClient extends StorageClient_js_1.StorageClient {
|
|
1840
1841
|
* Delete File is not supported on a share snapshot, which is a read-only copy of
|
1841
1842
|
* a share. An attempt to perform this operation on a share snapshot will fail with 400 (InvalidQueryParameterValue)
|
1842
1843
|
*
|
1843
|
-
* @see https://learn.microsoft.com/
|
1844
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-file2
|
1844
1845
|
*
|
1845
1846
|
* @param options - Options to File Delete operation.
|
1846
1847
|
* @returns Response data for the File Delete operation.
|
@@ -1862,7 +1863,7 @@ class ShareFileClient extends StorageClient_js_1.StorageClient {
|
|
1862
1863
|
* Delete File is not supported on a share snapshot, which is a read-only copy of
|
1863
1864
|
* a share. An attempt to perform this operation on a share snapshot will fail with 400 (InvalidQueryParameterValue)
|
1864
1865
|
*
|
1865
|
-
* @see https://learn.microsoft.com/
|
1866
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-file2
|
1866
1867
|
*
|
1867
1868
|
* @param options -
|
1868
1869
|
*/
|
@@ -1887,7 +1888,7 @@ class ShareFileClient extends StorageClient_js_1.StorageClient {
|
|
1887
1888
|
*
|
1888
1889
|
* If no option provided, or no value provided for the file HTTP headers in the options,
|
1889
1890
|
* these file HTTP headers without a value will be cleared.
|
1890
|
-
* @see https://learn.microsoft.com/
|
1891
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-file-properties
|
1891
1892
|
*
|
1892
1893
|
* @param FileHttpHeaders - File HTTP headers like Content-Type.
|
1893
1894
|
* Provide undefined will remove existing HTTP headers.
|
@@ -1913,7 +1914,7 @@ class ShareFileClient extends StorageClient_js_1.StorageClient {
|
|
1913
1914
|
/**
|
1914
1915
|
* Resize file.
|
1915
1916
|
*
|
1916
|
-
* @see https://learn.microsoft.com/
|
1917
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-file-properties
|
1917
1918
|
*
|
1918
1919
|
* @param length - Resizes a file to the specified size in bytes.
|
1919
1920
|
* If the specified byte value is less than the current size of the file,
|
@@ -1943,7 +1944,7 @@ class ShareFileClient extends StorageClient_js_1.StorageClient {
|
|
1943
1944
|
*
|
1944
1945
|
* If no metadata defined in the option parameter, the file
|
1945
1946
|
* metadata will be removed.
|
1946
|
-
* @see https://learn.microsoft.com/
|
1947
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-file-metadata
|
1947
1948
|
*
|
1948
1949
|
* @param metadata - If no metadata provided, all existing directory metadata will be removed
|
1949
1950
|
* @param options - Options to File Set Metadata operation.
|
@@ -2096,7 +2097,7 @@ class ShareFileClient extends StorageClient_js_1.StorageClient {
|
|
2096
2097
|
/**
|
2097
2098
|
* Aborts a pending Copy File operation, and leaves a destination file with zero length and full
|
2098
2099
|
* metadata.
|
2099
|
-
* @see https://learn.microsoft.com/
|
2100
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/abort-copy-file
|
2100
2101
|
*
|
2101
2102
|
* @param copyId - Id of the Copy File operation to abort.
|
2102
2103
|
* @param options - Options to File Abort Copy From URL operation.
|
@@ -2429,7 +2430,7 @@ class ShareFileClient extends StorageClient_js_1.StorageClient {
|
|
2429
2430
|
}
|
2430
2431
|
/**
|
2431
2432
|
* Lists handles for a file.
|
2432
|
-
* @see https://learn.microsoft.com/
|
2433
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/list-handles
|
2433
2434
|
*
|
2434
2435
|
* @param marker - Optional. A string value that identifies the portion of the list to be
|
2435
2436
|
* returned with the next list handles operation. The operation returns a
|
@@ -2539,7 +2540,7 @@ class ShareFileClient extends StorageClient_js_1.StorageClient {
|
|
2539
2540
|
}
|
2540
2541
|
/**
|
2541
2542
|
* Force close all handles for a file.
|
2542
|
-
* @see https://learn.microsoft.com/
|
2543
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/force-close-handles
|
2543
2544
|
*
|
2544
2545
|
* @param marker - Optional. A string value that identifies the position of handles that will
|
2545
2546
|
* be closed with the next force close handles operation.
|
@@ -2560,7 +2561,7 @@ class ShareFileClient extends StorageClient_js_1.StorageClient {
|
|
2560
2561
|
}
|
2561
2562
|
/**
|
2562
2563
|
* Force close all handles for a file.
|
2563
|
-
* @see https://learn.microsoft.com/
|
2564
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/force-close-handles
|
2564
2565
|
*
|
2565
2566
|
* @param options - Options to force close handles operation.
|
2566
2567
|
*/
|
@@ -2587,7 +2588,7 @@ class ShareFileClient extends StorageClient_js_1.StorageClient {
|
|
2587
2588
|
}
|
2588
2589
|
/**
|
2589
2590
|
* Force close a specific handle for a file.
|
2590
|
-
* @see https://learn.microsoft.com/
|
2591
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/force-close-handles
|
2591
2592
|
*
|
2592
2593
|
* @param handleId - Specific handle ID, cannot be asterisk "*".
|
2593
2594
|
* Use forceCloseAllHandles() to close all handles.
|
@@ -2665,7 +2666,7 @@ class ShareFileClient extends StorageClient_js_1.StorageClient {
|
|
2665
2666
|
* Generates a Service Shared Access Signature (SAS) URI based on the client properties
|
2666
2667
|
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
2667
2668
|
*
|
2668
|
-
* @see https://learn.microsoft.com/
|
2669
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
2669
2670
|
*
|
2670
2671
|
* @param options - Optional parameters.
|
2671
2672
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
@@ -2683,7 +2684,7 @@ class ShareFileClient extends StorageClient_js_1.StorageClient {
|
|
2683
2684
|
* Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
|
2684
2685
|
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
2685
2686
|
*
|
2686
|
-
* @see https://learn.microsoft.com/
|
2687
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
2687
2688
|
*
|
2688
2689
|
* @param options - Optional parameters.
|
2689
2690
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|