@azure/storage-file-share 12.25.0-beta.1 → 12.25.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +5 -4
- package/dist/index.js +49 -49
- package/dist/index.js.map +1 -1
- package/dist-esm/storage-blob/src/BatchResponse.js +1 -1
- package/dist-esm/storage-blob/src/BatchResponse.js.map +1 -1
- package/dist-esm/storage-blob/src/BatchResponseParser.js +1 -1
- package/dist-esm/storage-blob/src/BatchResponseParser.js.map +1 -1
- package/dist-esm/storage-blob/src/BatchUtils.js +1 -1
- package/dist-esm/storage-blob/src/BatchUtils.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobBatch.js +1 -1
- package/dist-esm/storage-blob/src/BlobBatch.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobBatchClient.js +1 -1
- package/dist-esm/storage-blob/src/BlobBatchClient.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobDownloadResponse.js +1 -1
- package/dist-esm/storage-blob/src/BlobDownloadResponse.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobLeaseClient.js +1 -1
- package/dist-esm/storage-blob/src/BlobLeaseClient.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobQueryResponse.js +1 -1
- package/dist-esm/storage-blob/src/BlobQueryResponse.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobServiceClient.js +1 -1
- package/dist-esm/storage-blob/src/BlobServiceClient.js.map +1 -1
- package/dist-esm/storage-blob/src/Clients.js +2 -1
- package/dist-esm/storage-blob/src/Clients.js.map +1 -1
- package/dist-esm/storage-blob/src/ContainerClient.js.map +1 -1
- package/dist-esm/storage-blob/src/PageBlobRangeResponse.js +1 -1
- package/dist-esm/storage-blob/src/PageBlobRangeResponse.js.map +1 -1
- package/dist-esm/storage-blob/src/Pipeline.js +1 -1
- package/dist-esm/storage-blob/src/Pipeline.js.map +1 -1
- package/dist-esm/storage-blob/src/Range.js +1 -1
- package/dist-esm/storage-blob/src/Range.js.map +1 -1
- package/dist-esm/storage-blob/src/StorageBrowserPolicyFactory.js +1 -1
- package/dist-esm/storage-blob/src/StorageBrowserPolicyFactory.js.map +1 -1
- package/dist-esm/storage-blob/src/StorageClient.js +1 -1
- package/dist-esm/storage-blob/src/StorageClient.js.map +1 -1
- package/dist-esm/storage-blob/src/StorageContextClient.js +1 -1
- package/dist-esm/storage-blob/src/StorageContextClient.js.map +1 -1
- package/dist-esm/storage-blob/src/StorageRetryPolicyFactory.js +1 -1
- package/dist-esm/storage-blob/src/StorageRetryPolicyFactory.js.map +1 -1
- package/dist-esm/storage-blob/src/credentials/AnonymousCredential.js +1 -1
- package/dist-esm/storage-blob/src/credentials/AnonymousCredential.js.map +1 -1
- package/dist-esm/storage-blob/src/credentials/Credential.js +1 -1
- package/dist-esm/storage-blob/src/credentials/Credential.js.map +1 -1
- package/dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.browser.js +1 -1
- package/dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.browser.js.map +1 -1
- package/dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.js +1 -1
- package/dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.js.map +1 -1
- package/dist-esm/storage-blob/src/credentials/UserDelegationKeyCredential.browser.js +1 -1
- package/dist-esm/storage-blob/src/credentials/UserDelegationKeyCredential.browser.js.map +1 -1
- package/dist-esm/storage-blob/src/credentials/UserDelegationKeyCredential.js +1 -1
- package/dist-esm/storage-blob/src/credentials/UserDelegationKeyCredential.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/storageClient.js +1 -1
- package/dist-esm/storage-blob/src/generated/src/storageClient.js.map +1 -1
- package/dist-esm/storage-blob/src/generatedModels.js +1 -1
- package/dist-esm/storage-blob/src/generatedModels.js.map +1 -1
- package/dist-esm/storage-blob/src/index.js +1 -1
- package/dist-esm/storage-blob/src/index.js.map +1 -1
- package/dist-esm/storage-blob/src/log.js +1 -1
- package/dist-esm/storage-blob/src/log.js.map +1 -1
- package/dist-esm/storage-blob/src/models.js +1 -1
- package/dist-esm/storage-blob/src/models.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/AnonymousCredentialPolicy.js +1 -1
- package/dist-esm/storage-blob/src/policies/AnonymousCredentialPolicy.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/CredentialPolicy.js +1 -1
- package/dist-esm/storage-blob/src/policies/CredentialPolicy.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/RequestPolicy.js +1 -1
- package/dist-esm/storage-blob/src/policies/RequestPolicy.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/StorageBrowserPolicy.js +1 -1
- package/dist-esm/storage-blob/src/policies/StorageBrowserPolicy.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/StorageBrowserPolicyV2.js +1 -1
- package/dist-esm/storage-blob/src/policies/StorageBrowserPolicyV2.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.browser.js +1 -1
- package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.browser.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.js +1 -1
- package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/StorageRetryPolicy.js +1 -1
- package/dist-esm/storage-blob/src/policies/StorageRetryPolicy.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/StorageRetryPolicyV2.js +1 -1
- package/dist-esm/storage-blob/src/policies/StorageRetryPolicyV2.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js +1 -1
- package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.browser.js +1 -1
- package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.browser.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.js +1 -1
- package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.js.map +1 -1
- package/dist-esm/storage-blob/src/pollers/BlobStartCopyFromUrlPoller.js +1 -1
- package/dist-esm/storage-blob/src/pollers/BlobStartCopyFromUrlPoller.js.map +1 -1
- package/dist-esm/storage-blob/src/sas/AccountSASPermissions.js +1 -1
- package/dist-esm/storage-blob/src/sas/AccountSASPermissions.js.map +1 -1
- package/dist-esm/storage-blob/src/sas/AccountSASResourceTypes.js +1 -1
- package/dist-esm/storage-blob/src/sas/AccountSASResourceTypes.js.map +1 -1
- package/dist-esm/storage-blob/src/sas/AccountSASServices.js +1 -1
- package/dist-esm/storage-blob/src/sas/AccountSASServices.js.map +1 -1
- package/dist-esm/storage-blob/src/sas/AccountSASSignatureValues.js +1 -1
- package/dist-esm/storage-blob/src/sas/AccountSASSignatureValues.js.map +1 -1
- package/dist-esm/storage-blob/src/sas/BlobSASPermissions.js +1 -1
- package/dist-esm/storage-blob/src/sas/BlobSASPermissions.js.map +1 -1
- package/dist-esm/storage-blob/src/sas/BlobSASSignatureValues.js +1 -1
- package/dist-esm/storage-blob/src/sas/BlobSASSignatureValues.js.map +1 -1
- package/dist-esm/storage-blob/src/sas/ContainerSASPermissions.js +1 -1
- package/dist-esm/storage-blob/src/sas/ContainerSASPermissions.js.map +1 -1
- package/dist-esm/storage-blob/src/sas/SASQueryParameters.js +1 -1
- package/dist-esm/storage-blob/src/sas/SASQueryParameters.js.map +1 -1
- package/dist-esm/storage-blob/src/sas/SasIPRange.js +1 -1
- package/dist-esm/storage-blob/src/sas/SasIPRange.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/Batch.js +1 -1
- package/dist-esm/storage-blob/src/utils/Batch.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/BlobQuickQueryStream.js +1 -1
- package/dist-esm/storage-blob/src/utils/BlobQuickQueryStream.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/Mutex.js +1 -1
- package/dist-esm/storage-blob/src/utils/Mutex.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/RetriableReadableStream.js +1 -1
- package/dist-esm/storage-blob/src/utils/RetriableReadableStream.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/SharedKeyComparator.js +1 -1
- package/dist-esm/storage-blob/src/utils/SharedKeyComparator.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/cache.js +1 -1
- package/dist-esm/storage-blob/src/utils/cache.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/constants.js +2 -2
- package/dist-esm/storage-blob/src/utils/constants.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/tracing.js +1 -1
- package/dist-esm/storage-blob/src/utils/tracing.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/utils.common.js +1 -1
- package/dist-esm/storage-blob/src/utils/utils.common.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/utils.node.js +1 -1
- package/dist-esm/storage-blob/src/utils/utils.node.js.map +1 -1
- package/dist-esm/storage-file-share/src/AccountSASPermissions.js +1 -1
- package/dist-esm/storage-file-share/src/AccountSASPermissions.js.map +1 -1
- package/dist-esm/storage-file-share/src/AccountSASResourceTypes.js +1 -1
- package/dist-esm/storage-file-share/src/AccountSASResourceTypes.js.map +1 -1
- package/dist-esm/storage-file-share/src/AccountSASServices.js +1 -1
- package/dist-esm/storage-file-share/src/AccountSASServices.js.map +1 -1
- package/dist-esm/storage-file-share/src/AccountSASSignatureValues.js +1 -1
- package/dist-esm/storage-file-share/src/AccountSASSignatureValues.js.map +1 -1
- package/dist-esm/storage-file-share/src/Clients.js +1 -1
- package/dist-esm/storage-file-share/src/Clients.js.map +1 -1
- package/dist-esm/storage-file-share/src/FileDownloadResponse.browser.js +1 -1
- package/dist-esm/storage-file-share/src/FileDownloadResponse.browser.js.map +1 -1
- package/dist-esm/storage-file-share/src/FileDownloadResponse.js +1 -1
- package/dist-esm/storage-file-share/src/FileDownloadResponse.js.map +1 -1
- package/dist-esm/storage-file-share/src/FileSASPermissions.js +1 -1
- package/dist-esm/storage-file-share/src/FileSASPermissions.js.map +1 -1
- package/dist-esm/storage-file-share/src/FileSASSignatureValues.js +1 -1
- package/dist-esm/storage-file-share/src/FileSASSignatureValues.js.map +1 -1
- package/dist-esm/storage-file-share/src/FileSystemAttributes.js +1 -1
- package/dist-esm/storage-file-share/src/FileSystemAttributes.js.map +1 -1
- package/dist-esm/storage-file-share/src/Pipeline.js +1 -1
- package/dist-esm/storage-file-share/src/Pipeline.js.map +1 -1
- package/dist-esm/storage-file-share/src/Range.js +1 -1
- package/dist-esm/storage-file-share/src/Range.js.map +1 -1
- package/dist-esm/storage-file-share/src/SASQueryParameters.js +1 -1
- package/dist-esm/storage-file-share/src/SASQueryParameters.js.map +1 -1
- package/dist-esm/storage-file-share/src/SasIPRange.js +1 -1
- package/dist-esm/storage-file-share/src/SasIPRange.js.map +1 -1
- package/dist-esm/storage-file-share/src/ShareClientInternal.js +1 -1
- package/dist-esm/storage-file-share/src/ShareClientInternal.js.map +1 -1
- package/dist-esm/storage-file-share/src/ShareSASPermissions.js +1 -1
- package/dist-esm/storage-file-share/src/ShareSASPermissions.js.map +1 -1
- package/dist-esm/storage-file-share/src/ShareServiceClient.js +1 -1
- package/dist-esm/storage-file-share/src/ShareServiceClient.js.map +1 -1
- package/dist-esm/storage-file-share/src/StorageClient.js +1 -1
- package/dist-esm/storage-file-share/src/StorageClient.js.map +1 -1
- package/dist-esm/storage-file-share/src/StorageContextClient.js +1 -1
- package/dist-esm/storage-file-share/src/StorageContextClient.js.map +1 -1
- package/dist-esm/storage-file-share/src/StorageRetryPolicyFactory.js +1 -1
- package/dist-esm/storage-file-share/src/StorageRetryPolicyFactory.js.map +1 -1
- package/dist-esm/storage-file-share/src/generated/src/storageClient.js +1 -1
- package/dist-esm/storage-file-share/src/generated/src/storageClient.js.map +1 -1
- package/dist-esm/storage-file-share/src/generatedModels.js +1 -1
- package/dist-esm/storage-file-share/src/generatedModels.js.map +1 -1
- package/dist-esm/storage-file-share/src/index.browser.js +1 -1
- package/dist-esm/storage-file-share/src/index.browser.js.map +1 -1
- package/dist-esm/storage-file-share/src/index.js +1 -1
- package/dist-esm/storage-file-share/src/index.js.map +1 -1
- package/dist-esm/storage-file-share/src/log.js +1 -1
- package/dist-esm/storage-file-share/src/log.js.map +1 -1
- package/dist-esm/storage-file-share/src/models.js +1 -1
- package/dist-esm/storage-file-share/src/models.js.map +1 -1
- package/dist-esm/storage-file-share/src/policies/StorageRetryPolicy.js +1 -1
- package/dist-esm/storage-file-share/src/policies/StorageRetryPolicy.js.map +1 -1
- package/dist-esm/storage-file-share/src/policies/StorageRetryPolicyV2.js +1 -1
- package/dist-esm/storage-file-share/src/policies/StorageRetryPolicyV2.js.map +1 -1
- package/dist-esm/storage-file-share/src/utils/Batch.js +1 -1
- package/dist-esm/storage-file-share/src/utils/Batch.js.map +1 -1
- package/dist-esm/storage-file-share/src/utils/BufferScheduler.js +1 -1
- package/dist-esm/storage-file-share/src/utils/BufferScheduler.js.map +1 -1
- package/dist-esm/storage-file-share/src/utils/RetriableReadableStream.js +1 -1
- package/dist-esm/storage-file-share/src/utils/RetriableReadableStream.js.map +1 -1
- package/dist-esm/storage-file-share/src/utils/constants.js +2 -2
- package/dist-esm/storage-file-share/src/utils/constants.js.map +1 -1
- package/dist-esm/storage-file-share/src/utils/tracing.js +1 -1
- package/dist-esm/storage-file-share/src/utils/tracing.js.map +1 -1
- package/dist-esm/storage-file-share/src/utils/utils.browser.js +1 -1
- package/dist-esm/storage-file-share/src/utils/utils.browser.js.map +1 -1
- package/dist-esm/storage-file-share/src/utils/utils.common.js +1 -1
- package/dist-esm/storage-file-share/src/utils/utils.common.js.map +1 -1
- package/dist-esm/storage-file-share/src/utils/utils.node.js +1 -1
- package/dist-esm/storage-file-share/src/utils/utils.node.js.map +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
@@ -213,7 +213,7 @@ const serviceClient = new ShareServiceClient(
|
|
213
213
|
);
|
214
214
|
|
215
215
|
async function main() {
|
216
|
-
|
216
|
+
const shareIter = serviceClient.listShares();
|
217
217
|
let i = 1;
|
218
218
|
for await (const share of shareIter) {
|
219
219
|
console.log(`Share${i}: ${share.name}`);
|
@@ -239,7 +239,7 @@ const serviceClient = new ShareServiceClient(
|
|
239
239
|
);
|
240
240
|
|
241
241
|
async function main() {
|
242
|
-
|
242
|
+
const shareIter = serviceClient.listShares();
|
243
243
|
let i = 1;
|
244
244
|
let shareItem = await shareIter.next();
|
245
245
|
while (!shareItem.done) {
|
@@ -338,7 +338,7 @@ const directoryName = "<directory name>";
|
|
338
338
|
async function main() {
|
339
339
|
const directoryClient = serviceClient.getShareClient(shareName).getDirectoryClient(directoryName);
|
340
340
|
|
341
|
-
|
341
|
+
const dirIter = directoryClient.listFilesAndDirectories();
|
342
342
|
let i = 1;
|
343
343
|
for await (const item of dirIter) {
|
344
344
|
if (item.kind === "directory") {
|
@@ -373,7 +373,7 @@ const directoryName = "<directory name>";
|
|
373
373
|
async function main() {
|
374
374
|
const directoryClient = serviceClient.getShareClient(shareName).getDirectoryClient(directoryName);
|
375
375
|
|
376
|
-
|
376
|
+
const dirIter = directoryClient.listFilesAndDirectories();
|
377
377
|
let i = 1;
|
378
378
|
let item = await dirIter.next();
|
379
379
|
while (!item.done) {
|
@@ -382,6 +382,7 @@ async function main() {
|
|
382
382
|
} else {
|
383
383
|
console.log(`${i} - file\t: ${item.value.name}`);
|
384
384
|
}
|
385
|
+
i++;
|
385
386
|
item = await dirIter.next();
|
386
387
|
}
|
387
388
|
}
|
package/dist/index.js
CHANGED
@@ -41,7 +41,7 @@ var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs);
|
|
41
41
|
var util__namespace = /*#__PURE__*/_interopNamespaceDefault(util);
|
42
42
|
|
43
43
|
// Copyright (c) Microsoft Corporation.
|
44
|
-
// Licensed under the MIT
|
44
|
+
// Licensed under the MIT License.
|
45
45
|
/**
|
46
46
|
* ONLY AVAILABLE IN NODE.JS RUNTIME.
|
47
47
|
*
|
@@ -169,7 +169,7 @@ class AccountSASPermissions {
|
|
169
169
|
}
|
170
170
|
|
171
171
|
// Copyright (c) Microsoft Corporation.
|
172
|
-
// Licensed under the MIT
|
172
|
+
// Licensed under the MIT License.
|
173
173
|
/**
|
174
174
|
* ONLY AVAILABLE IN NODE.JS RUNTIME.
|
175
175
|
*
|
@@ -241,7 +241,7 @@ class AccountSASResourceTypes {
|
|
241
241
|
}
|
242
242
|
|
243
243
|
// Copyright (c) Microsoft Corporation.
|
244
|
-
// Licensed under the MIT
|
244
|
+
// Licensed under the MIT License.
|
245
245
|
/**
|
246
246
|
* ONLY AVAILABLE IN NODE.JS RUNTIME.
|
247
247
|
*
|
@@ -321,7 +321,7 @@ class AccountSASServices {
|
|
321
321
|
}
|
322
322
|
|
323
323
|
// Copyright (c) Microsoft Corporation.
|
324
|
-
// Licensed under the MIT
|
324
|
+
// Licensed under the MIT License.
|
325
325
|
/**
|
326
326
|
* Generate SasIPRange format string. For example:
|
327
327
|
*
|
@@ -335,8 +335,8 @@ function ipRangeToString(ipRange) {
|
|
335
335
|
}
|
336
336
|
|
337
337
|
// Copyright (c) Microsoft Corporation.
|
338
|
-
// Licensed under the MIT
|
339
|
-
const SDK_VERSION = "12.25.0
|
338
|
+
// Licensed under the MIT License.
|
339
|
+
const SDK_VERSION = "12.25.0";
|
340
340
|
const SERVICE_VERSION = "2024-11-04";
|
341
341
|
const FILE_MAX_SIZE_BYTES = 4 * 1024 * 1024 * 1024 * 1024; // 4TB
|
342
342
|
const FILE_RANGE_MAX_SIZE_BYTES = 4 * 1024 * 1024; // 4MB
|
@@ -467,7 +467,7 @@ const PathStylePorts = [
|
|
467
467
|
];
|
468
468
|
|
469
469
|
// Copyright (c) Microsoft Corporation.
|
470
|
-
// Licensed under the MIT
|
470
|
+
// Licensed under the MIT License.
|
471
471
|
/**
|
472
472
|
* Reserved URL characters must be properly escaped for Storage services like Blob or File.
|
473
473
|
*
|
@@ -928,7 +928,7 @@ function asSharePermission(value) {
|
|
928
928
|
}
|
929
929
|
|
930
930
|
// Copyright (c) Microsoft Corporation.
|
931
|
-
// Licensed under the MIT
|
931
|
+
// Licensed under the MIT License.
|
932
932
|
/**
|
933
933
|
* Protocols for generated SAS.
|
934
934
|
*/
|
@@ -1103,7 +1103,7 @@ class SASQueryParameters {
|
|
1103
1103
|
}
|
1104
1104
|
|
1105
1105
|
// Copyright (c) Microsoft Corporation.
|
1106
|
-
// Licensed under the MIT
|
1106
|
+
// Licensed under the MIT License.
|
1107
1107
|
/**
|
1108
1108
|
* ONLY AVAILABLE IN NODE.JS RUNTIME.
|
1109
1109
|
*
|
@@ -1167,7 +1167,7 @@ function generateAccountSASQueryParametersInternal(accountSASSignatureValues, sh
|
|
1167
1167
|
}
|
1168
1168
|
|
1169
1169
|
// Copyright (c) Microsoft Corporation.
|
1170
|
-
// Licensed under the MIT
|
1170
|
+
// Licensed under the MIT License.
|
1171
1171
|
/**
|
1172
1172
|
* ONLY AVAILABLE IN NODE.JS RUNTIME.
|
1173
1173
|
*
|
@@ -1249,7 +1249,7 @@ class FileSASPermissions {
|
|
1249
1249
|
}
|
1250
1250
|
|
1251
1251
|
// Copyright (c) Microsoft Corporation.
|
1252
|
-
// Licensed under the MIT
|
1252
|
+
// Licensed under the MIT License.
|
1253
1253
|
/**
|
1254
1254
|
* This is a helper class to construct a string representing the permissions granted by a ServiceSAS to a share.
|
1255
1255
|
* Setting a value to true means that any SAS which uses these permissions will grant permissions for that operation.
|
@@ -1341,7 +1341,7 @@ class ShareSASPermissions {
|
|
1341
1341
|
}
|
1342
1342
|
|
1343
1343
|
// Copyright (c) Microsoft Corporation.
|
1344
|
-
// Licensed under the MIT
|
1344
|
+
// Licensed under the MIT License.
|
1345
1345
|
/**
|
1346
1346
|
* ONLY AVAILABLE IN NODE.JS RUNTIME.
|
1347
1347
|
*
|
@@ -1419,14 +1419,14 @@ function getCanonicalName(accountName, shareName, filePath) {
|
|
1419
1419
|
}
|
1420
1420
|
|
1421
1421
|
// Copyright (c) Microsoft Corporation.
|
1422
|
-
// Licensed under the MIT
|
1422
|
+
// Licensed under the MIT License.
|
1423
1423
|
/**
|
1424
1424
|
* The `@azure/logger` configuration for this package.
|
1425
1425
|
*/
|
1426
1426
|
const logger = logger$1.createClientLogger("storage-file-share");
|
1427
1427
|
|
1428
1428
|
// Copyright (c) Microsoft Corporation.
|
1429
|
-
// Licensed under the MIT
|
1429
|
+
// Licensed under the MIT License.
|
1430
1430
|
/**
|
1431
1431
|
* The base class from which all request policies derive.
|
1432
1432
|
*/
|
@@ -1466,7 +1466,7 @@ class BaseRequestPolicy {
|
|
1466
1466
|
}
|
1467
1467
|
|
1468
1468
|
// Copyright (c) Microsoft Corporation.
|
1469
|
-
// Licensed under the MIT
|
1469
|
+
// Licensed under the MIT License.
|
1470
1470
|
/**
|
1471
1471
|
* RetryPolicy types.
|
1472
1472
|
*/
|
@@ -1669,7 +1669,7 @@ class StorageRetryPolicy extends BaseRequestPolicy {
|
|
1669
1669
|
}
|
1670
1670
|
|
1671
1671
|
// Copyright (c) Microsoft Corporation.
|
1672
|
-
// Licensed under the MIT
|
1672
|
+
// Licensed under the MIT License.
|
1673
1673
|
/**
|
1674
1674
|
* StorageRetryPolicyFactory is a factory class helping generating {@link StorageRetryPolicy} objects.
|
1675
1675
|
*/
|
@@ -1693,7 +1693,7 @@ class StorageRetryPolicyFactory {
|
|
1693
1693
|
}
|
1694
1694
|
|
1695
1695
|
// Copyright (c) Microsoft Corporation.
|
1696
|
-
// Licensed under the MIT
|
1696
|
+
// Licensed under the MIT License.
|
1697
1697
|
const URLConstants = {
|
1698
1698
|
Parameters: {
|
1699
1699
|
FORCE_BROWSER_NO_CACHE: "_",
|
@@ -1731,7 +1731,7 @@ const HeaderConstants = {
|
|
1731
1731
|
};
|
1732
1732
|
|
1733
1733
|
// Copyright (c) Microsoft Corporation.
|
1734
|
-
// Licensed under the MIT
|
1734
|
+
// Licensed under the MIT License.
|
1735
1735
|
/**
|
1736
1736
|
* Set URL parameter name and value. If name exists in URL parameters, old value
|
1737
1737
|
* will be replaced by name key. If not provide value, the parameter will be deleted.
|
@@ -1805,7 +1805,7 @@ function getURLQueries(url) {
|
|
1805
1805
|
}
|
1806
1806
|
|
1807
1807
|
// Copyright (c) Microsoft Corporation.
|
1808
|
-
// Licensed under the MIT
|
1808
|
+
// Licensed under the MIT License.
|
1809
1809
|
/**
|
1810
1810
|
* Credential policy used to sign HTTP(S) requests before sending. This is an
|
1811
1811
|
* abstract class.
|
@@ -1833,7 +1833,7 @@ class CredentialPolicy extends BaseRequestPolicy {
|
|
1833
1833
|
}
|
1834
1834
|
|
1835
1835
|
// Copyright (c) Microsoft Corporation.
|
1836
|
-
// Licensed under the MIT
|
1836
|
+
// Licensed under the MIT License.
|
1837
1837
|
/*
|
1838
1838
|
* We need to imitate .Net culture-aware sorting, which is used in storage service.
|
1839
1839
|
* Below tables contain sort-keys for en-US culture.
|
@@ -1906,7 +1906,7 @@ function isLessThan(lhs, rhs) {
|
|
1906
1906
|
}
|
1907
1907
|
|
1908
1908
|
// Copyright (c) Microsoft Corporation.
|
1909
|
-
// Licensed under the MIT
|
1909
|
+
// Licensed under the MIT License.
|
1910
1910
|
/**
|
1911
1911
|
* StorageSharedKeyCredentialPolicy is a policy used to sign HTTP request with a shared key.
|
1912
1912
|
*/
|
@@ -2043,7 +2043,7 @@ class StorageSharedKeyCredentialPolicy extends CredentialPolicy {
|
|
2043
2043
|
}
|
2044
2044
|
|
2045
2045
|
// Copyright (c) Microsoft Corporation.
|
2046
|
-
// Licensed under the MIT
|
2046
|
+
// Licensed under the MIT License.
|
2047
2047
|
/**
|
2048
2048
|
* Credential is an abstract class for Azure Storage HTTP requests signing. This
|
2049
2049
|
* class will host an credentialPolicyCreator factory which generates CredentialPolicy.
|
@@ -2061,7 +2061,7 @@ class Credential {
|
|
2061
2061
|
}
|
2062
2062
|
|
2063
2063
|
// Copyright (c) Microsoft Corporation.
|
2064
|
-
// Licensed under the MIT
|
2064
|
+
// Licensed under the MIT License.
|
2065
2065
|
/**
|
2066
2066
|
* ONLY AVAILABLE IN NODE.JS RUNTIME.
|
2067
2067
|
*
|
@@ -2098,7 +2098,7 @@ class StorageSharedKeyCredential extends Credential {
|
|
2098
2098
|
}
|
2099
2099
|
|
2100
2100
|
// Copyright (c) Microsoft Corporation.
|
2101
|
-
// Licensed under the MIT
|
2101
|
+
// Licensed under the MIT License.
|
2102
2102
|
/**
|
2103
2103
|
* AnonymousCredentialPolicy is used with HTTP(S) requests that read public resources
|
2104
2104
|
* or for use with Shared Access Signatures (SAS).
|
@@ -2117,7 +2117,7 @@ class AnonymousCredentialPolicy extends CredentialPolicy {
|
|
2117
2117
|
}
|
2118
2118
|
|
2119
2119
|
// Copyright (c) Microsoft Corporation.
|
2120
|
-
// Licensed under the MIT
|
2120
|
+
// Licensed under the MIT License.
|
2121
2121
|
/**
|
2122
2122
|
* AnonymousCredential provides a credentialPolicyCreator member used to create
|
2123
2123
|
* AnonymousCredentialPolicy objects. AnonymousCredentialPolicy is used with
|
@@ -2137,7 +2137,7 @@ class AnonymousCredential extends Credential {
|
|
2137
2137
|
}
|
2138
2138
|
|
2139
2139
|
// Copyright (c) Microsoft Corporation.
|
2140
|
-
// Licensed under the MIT
|
2140
|
+
// Licensed under the MIT License.
|
2141
2141
|
let _defaultHttpClient;
|
2142
2142
|
function getCachedDefaultHttpClient() {
|
2143
2143
|
if (!_defaultHttpClient) {
|
@@ -2147,7 +2147,7 @@ function getCachedDefaultHttpClient() {
|
|
2147
2147
|
}
|
2148
2148
|
|
2149
2149
|
// Copyright (c) Microsoft Corporation.
|
2150
|
-
// Licensed under the MIT
|
2150
|
+
// Licensed under the MIT License.
|
2151
2151
|
/**
|
2152
2152
|
* The programmatic identifier of the StorageBrowserPolicy.
|
2153
2153
|
*/
|
@@ -2175,7 +2175,7 @@ function storageBrowserPolicy() {
|
|
2175
2175
|
}
|
2176
2176
|
|
2177
2177
|
// Copyright (c) Microsoft Corporation.
|
2178
|
-
// Licensed under the MIT
|
2178
|
+
// Licensed under the MIT License.
|
2179
2179
|
/**
|
2180
2180
|
* Name of the {@link storageRetryPolicy}
|
2181
2181
|
*/
|
@@ -2342,7 +2342,7 @@ function storageRetryPolicy(options = {}) {
|
|
2342
2342
|
}
|
2343
2343
|
|
2344
2344
|
// Copyright (c) Microsoft Corporation.
|
2345
|
-
// Licensed under the MIT
|
2345
|
+
// Licensed under the MIT License.
|
2346
2346
|
/**
|
2347
2347
|
* The programmatic identifier of the storageSharedKeyCredentialPolicy.
|
2348
2348
|
*/
|
@@ -2470,7 +2470,7 @@ function storageSharedKeyCredentialPolicy(options) {
|
|
2470
2470
|
}
|
2471
2471
|
|
2472
2472
|
// Copyright (c) Microsoft Corporation.
|
2473
|
-
// Licensed under the MIT
|
2473
|
+
// Licensed under the MIT License.
|
2474
2474
|
/**
|
2475
2475
|
* StorageBrowserPolicy will handle differences between Node.js and browser runtime, including:
|
2476
2476
|
*
|
@@ -2513,7 +2513,7 @@ class StorageBrowserPolicy extends BaseRequestPolicy {
|
|
2513
2513
|
}
|
2514
2514
|
|
2515
2515
|
// Copyright (c) Microsoft Corporation.
|
2516
|
-
// Licensed under the MIT
|
2516
|
+
// Licensed under the MIT License.
|
2517
2517
|
/**
|
2518
2518
|
* StorageBrowserPolicyFactory is a factory class helping generating StorageBrowserPolicy objects.
|
2519
2519
|
*/
|
@@ -2530,7 +2530,7 @@ class StorageBrowserPolicyFactory {
|
|
2530
2530
|
}
|
2531
2531
|
|
2532
2532
|
// Copyright (c) Microsoft Corporation.
|
2533
|
-
// Licensed under the MIT
|
2533
|
+
// Licensed under the MIT License.
|
2534
2534
|
/**
|
2535
2535
|
* The programmatic identifier of the storageCorrectContentLengthPolicy.
|
2536
2536
|
*/
|
@@ -2556,7 +2556,7 @@ function storageCorrectContentLengthPolicy() {
|
|
2556
2556
|
}
|
2557
2557
|
|
2558
2558
|
// Copyright (c) Microsoft Corporation.
|
2559
|
-
// Licensed under the MIT
|
2559
|
+
// Licensed under the MIT License.
|
2560
2560
|
/**
|
2561
2561
|
* A helper to decide if a given argument satisfies the Pipeline contract
|
2562
2562
|
* @param pipeline - An argument that may be a Pipeline
|
@@ -2797,7 +2797,7 @@ function isCoreHttpPolicyFactory(factory) {
|
|
2797
2797
|
}
|
2798
2798
|
|
2799
2799
|
// Copyright (c) Microsoft Corporation.
|
2800
|
-
// Licensed under the MIT
|
2800
|
+
// Licensed under the MIT License.
|
2801
2801
|
/**
|
2802
2802
|
* Creates a span using the global tracer.
|
2803
2803
|
* @internal
|
@@ -11359,7 +11359,7 @@ let StorageClient$1 = class StorageClient extends coreHttpCompat__namespace.Exte
|
|
11359
11359
|
const defaults = {
|
11360
11360
|
requestContentType: "application/json; charset=utf-8"
|
11361
11361
|
};
|
11362
|
-
const packageDetails = `azsdk-js-azure-storage-file-share/12.25.0
|
11362
|
+
const packageDetails = `azsdk-js-azure-storage-file-share/12.25.0`;
|
11363
11363
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
11364
11364
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
11365
11365
|
: `${packageDetails}`;
|
@@ -11380,7 +11380,7 @@ let StorageClient$1 = class StorageClient extends coreHttpCompat__namespace.Exte
|
|
11380
11380
|
};
|
11381
11381
|
|
11382
11382
|
// Copyright (c) Microsoft Corporation.
|
11383
|
-
// Licensed under the MIT
|
11383
|
+
// Licensed under the MIT License.
|
11384
11384
|
/**
|
11385
11385
|
* @internal
|
11386
11386
|
*/
|
@@ -11397,7 +11397,7 @@ class StorageContextClient extends StorageClient$1 {
|
|
11397
11397
|
}
|
11398
11398
|
|
11399
11399
|
// Copyright (c) Microsoft Corporation.
|
11400
|
-
// Licensed under the MIT
|
11400
|
+
// Licensed under the MIT License.
|
11401
11401
|
/**
|
11402
11402
|
* A StorageClient represents a base client class for ServiceClient, ContainerClient and etc.
|
11403
11403
|
*/
|
@@ -11424,7 +11424,7 @@ class StorageClient {
|
|
11424
11424
|
}
|
11425
11425
|
|
11426
11426
|
// Copyright (c) Microsoft Corporation.
|
11427
|
-
// Licensed under the MIT
|
11427
|
+
// Licensed under the MIT License.
|
11428
11428
|
/**
|
11429
11429
|
* This is a helper class to construct a string representing the NTFS attributes to a file or directory.
|
11430
11430
|
* @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-file#file-system-attributes
|
@@ -11568,7 +11568,7 @@ class FileSystemAttributes {
|
|
11568
11568
|
}
|
11569
11569
|
|
11570
11570
|
// Copyright (c) Microsoft Corporation.
|
11571
|
-
// Licensed under the MIT
|
11571
|
+
// Licensed under the MIT License.
|
11572
11572
|
/**
|
11573
11573
|
* ONLY AVAILABLE IN NODE.JS RUNTIME.
|
11574
11574
|
*
|
@@ -11685,7 +11685,7 @@ class RetriableReadableStream extends stream.Readable {
|
|
11685
11685
|
}
|
11686
11686
|
|
11687
11687
|
// Copyright (c) Microsoft Corporation.
|
11688
|
-
// Licensed under the MIT
|
11688
|
+
// Licensed under the MIT License.
|
11689
11689
|
/**
|
11690
11690
|
* ONLY AVAILABLE IN NODE.JS RUNTIME.
|
11691
11691
|
*
|
@@ -12043,7 +12043,7 @@ class FileDownloadResponse {
|
|
12043
12043
|
}
|
12044
12044
|
|
12045
12045
|
// Copyright (c) Microsoft Corporation.
|
12046
|
-
// Licensed under the MIT
|
12046
|
+
// Licensed under the MIT License.
|
12047
12047
|
/**
|
12048
12048
|
* Generate a range string. For example:
|
12049
12049
|
*
|
@@ -12065,7 +12065,7 @@ function rangeToString(range) {
|
|
12065
12065
|
}
|
12066
12066
|
|
12067
12067
|
// Copyright (c) Microsoft Corporation.
|
12068
|
-
// Licensed under the MIT
|
12068
|
+
// Licensed under the MIT License.
|
12069
12069
|
/**
|
12070
12070
|
* Convert protocols from joined string to ShareProtocols.
|
12071
12071
|
*
|
@@ -12177,7 +12177,7 @@ function getFileServiceAccountAudience(storageAccountName) {
|
|
12177
12177
|
}
|
12178
12178
|
|
12179
12179
|
// Copyright (c) Microsoft Corporation.
|
12180
|
-
// Licensed under the MIT
|
12180
|
+
// Licensed under the MIT License.
|
12181
12181
|
// In browser, during webpack or browserify bundling, this module will be replaced by 'events'
|
12182
12182
|
// https://github.com/Gozala/events
|
12183
12183
|
/**
|
@@ -12298,7 +12298,7 @@ class Batch {
|
|
12298
12298
|
}
|
12299
12299
|
|
12300
12300
|
// Copyright (c) Microsoft Corporation.
|
12301
|
-
// Licensed under the MIT
|
12301
|
+
// Licensed under the MIT License.
|
12302
12302
|
/**
|
12303
12303
|
* This class accepts a Node.js Readable stream as input, and keeps reading data
|
12304
12304
|
* from the stream into the internal buffer structure, until it reaches maxBuffers.
|
@@ -12561,7 +12561,7 @@ class BufferScheduler {
|
|
12561
12561
|
}
|
12562
12562
|
|
12563
12563
|
// Copyright (c) Microsoft Corporation.
|
12564
|
-
// Licensed under the MIT
|
12564
|
+
// Licensed under the MIT License.
|
12565
12565
|
/**
|
12566
12566
|
* Reads a readable stream into buffer. Fill the buffer from offset to end.
|
12567
12567
|
*
|
@@ -12637,7 +12637,7 @@ const fsStat = util__namespace.promisify(fs__namespace.stat);
|
|
12637
12637
|
const fsCreateReadStream = fs__namespace.createReadStream;
|
12638
12638
|
|
12639
12639
|
// Copyright (c) Microsoft Corporation.
|
12640
|
-
// Licensed under the MIT
|
12640
|
+
// Licensed under the MIT License.
|
12641
12641
|
/**
|
12642
12642
|
* A ShareClient represents a URL to the Azure Storage share allowing you to manipulate its directories and files.
|
12643
12643
|
*/
|
@@ -15184,7 +15184,7 @@ function isFile(fileOrShare) {
|
|
15184
15184
|
}
|
15185
15185
|
|
15186
15186
|
// Copyright (c) Microsoft Corporation.
|
15187
|
-
// Licensed under the MIT
|
15187
|
+
// Licensed under the MIT License.
|
15188
15188
|
/**
|
15189
15189
|
* ShareClientInternal is the thin wrapper for Share which contains internal helper methods.
|
15190
15190
|
*/
|
@@ -15199,7 +15199,7 @@ class ShareClientInternal extends StorageClient {
|
|
15199
15199
|
}
|
15200
15200
|
|
15201
15201
|
// Copyright (c) Microsoft Corporation.
|
15202
|
-
// Licensed under the MIT
|
15202
|
+
// Licensed under the MIT License.
|
15203
15203
|
/**
|
15204
15204
|
* A ShareServiceClient represents a URL to the Azure Storage File service allowing you
|
15205
15205
|
* to manipulate file shares.
|
@@ -15605,7 +15605,7 @@ class ShareServiceClient extends StorageClient {
|
|
15605
15605
|
}
|
15606
15606
|
|
15607
15607
|
// Copyright (c) Microsoft Corporation.
|
15608
|
-
// Licensed under the MIT
|
15608
|
+
// Licensed under the MIT License.
|
15609
15609
|
/** Known values of {@link ShareTokenIntent} that the service accepts. */
|
15610
15610
|
exports.KnownShareTokenIntent = void 0;
|
15611
15611
|
(function (KnownShareTokenIntent) {
|