@azure/storage-queue 12.23.0-alpha.20231031.2 → 12.23.0-alpha.20240612.4
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/index.js +228 -181
- package/dist/index.js.map +1 -1
- package/dist-esm/storage-blob/src/BatchResponseParser.js.map +1 -1
- package/dist-esm/storage-blob/src/BatchUtils.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobBatch.js +5 -5
- package/dist-esm/storage-blob/src/BlobBatch.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobBatchClient.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobDownloadResponse.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobLeaseClient.js +2 -2
- package/dist-esm/storage-blob/src/BlobLeaseClient.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobQueryResponse.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobServiceClient.js +8 -8
- package/dist-esm/storage-blob/src/BlobServiceClient.js.map +1 -1
- package/dist-esm/storage-blob/src/Clients.js +27 -7
- package/dist-esm/storage-blob/src/Clients.js.map +1 -1
- package/dist-esm/storage-blob/src/ContainerClient.js +30 -12
- package/dist-esm/storage-blob/src/ContainerClient.js.map +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.map +1 -1
- package/dist-esm/storage-blob/src/StorageContextClient.js.map +1 -1
- package/dist-esm/storage-blob/src/credentials/AnonymousCredential.js.map +1 -1
- package/dist-esm/storage-blob/src/credentials/Credential.js.map +1 -1
- package/dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/index.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/mappers.js +2383 -2362
- package/dist-esm/storage-blob/src/generated/src/models/mappers.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/parameters.js +444 -444
- package/dist-esm/storage-blob/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/appendBlob.js +20 -20
- package/dist-esm/storage-blob/src/generated/src/operations/appendBlob.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/blob.js +144 -136
- package/dist-esm/storage-blob/src/generated/src/operations/blob.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/blockBlob.js +33 -33
- package/dist-esm/storage-blob/src/generated/src/operations/blockBlob.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/container.js +117 -109
- package/dist-esm/storage-blob/src/generated/src/operations/container.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/pageBlob.js +47 -47
- package/dist-esm/storage-blob/src/generated/src/operations/pageBlob.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/service.js +56 -48
- package/dist-esm/storage-blob/src/generated/src/operations/service.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/appendBlob.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/blob.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/blockBlob.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/container.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/pageBlob.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/service.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/storageClient.js +5 -5
- package/dist-esm/storage-blob/src/generated/src/storageClient.js.map +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/models.js +7 -0
- package/dist-esm/storage-blob/src/models.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/RequestPolicy.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/StorageBrowserPolicy.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/StorageBrowserPolicyV2.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/StorageRetryPolicy.js +15 -0
- package/dist-esm/storage-blob/src/policies/StorageRetryPolicy.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/StorageRetryPolicyV2.js +15 -0
- package/dist-esm/storage-blob/src/policies/StorageRetryPolicyV2.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js +2 -1
- package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.browser.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.js +2 -1
- package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.js.map +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.map +1 -1
- package/dist-esm/storage-blob/src/sas/AccountSASServices.js.map +1 -1
- package/dist-esm/storage-blob/src/sas/AccountSASSignatureValues.js.map +1 -1
- package/dist-esm/storage-blob/src/sas/BlobSASPermissions.js.map +1 -1
- package/dist-esm/storage-blob/src/sas/BlobSASSignatureValues.js +2 -2
- package/dist-esm/storage-blob/src/sas/BlobSASSignatureValues.js.map +1 -1
- package/dist-esm/storage-blob/src/sas/ContainerSASPermissions.js.map +1 -1
- package/dist-esm/storage-blob/src/sas/SASQueryParameters.js +6 -6
- package/dist-esm/storage-blob/src/sas/SASQueryParameters.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/Batch.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/BlobQuickQueryStream.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/Mutex.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/RetriableReadableStream.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/SharedKeyComparator.js +73 -0
- package/dist-esm/storage-blob/src/utils/SharedKeyComparator.js.map +1 -0
- package/dist-esm/storage-blob/src/utils/cache.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/constants.js +5 -2
- package/dist-esm/storage-blob/src/utils/constants.js.map +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.map +1 -1
- package/dist-esm/storage-queue/src/AccountSASPermissions.js.map +1 -1
- package/dist-esm/storage-queue/src/AccountSASResourceTypes.js.map +1 -1
- package/dist-esm/storage-queue/src/AccountSASServices.js.map +1 -1
- package/dist-esm/storage-queue/src/AccountSASSignatureValues.js +1 -1
- package/dist-esm/storage-queue/src/AccountSASSignatureValues.js.map +1 -1
- package/dist-esm/storage-queue/src/Pipeline.js +259 -0
- package/dist-esm/storage-queue/src/Pipeline.js.map +1 -0
- package/dist-esm/storage-queue/src/QueueClient.js +2 -2
- package/dist-esm/storage-queue/src/QueueClient.js.map +1 -1
- package/dist-esm/storage-queue/src/QueueSASPermissions.js.map +1 -1
- package/dist-esm/storage-queue/src/QueueSASSignatureValues.js.map +1 -1
- package/dist-esm/storage-queue/src/QueueServiceClient.js +6 -7
- package/dist-esm/storage-queue/src/QueueServiceClient.js.map +1 -1
- package/dist-esm/storage-queue/src/SASQueryParameters.js.map +1 -1
- package/dist-esm/storage-queue/src/StorageClient.js +1 -1
- package/dist-esm/storage-queue/src/StorageClient.js.map +1 -1
- package/dist-esm/storage-queue/src/StorageContextClient.js.map +1 -1
- package/dist-esm/storage-queue/src/generated/src/models/index.js.map +1 -1
- package/dist-esm/storage-queue/src/generated/src/models/mappers.js +7 -0
- package/dist-esm/storage-queue/src/generated/src/models/mappers.js.map +1 -1
- package/dist-esm/storage-queue/src/generated/src/models/parameters.js +1 -1
- package/dist-esm/storage-queue/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/storage-queue/src/generated/src/storageClient.js +1 -1
- package/dist-esm/storage-queue/src/generated/src/storageClient.js.map +1 -1
- package/dist-esm/storage-queue/src/index.browser.js +1 -1
- package/dist-esm/storage-queue/src/index.browser.js.map +1 -1
- package/dist-esm/storage-queue/src/index.js +2 -1
- package/dist-esm/storage-queue/src/index.js.map +1 -1
- package/dist-esm/storage-queue/src/models.js +16 -1
- package/dist-esm/storage-queue/src/models.js.map +1 -1
- package/dist-esm/storage-queue/src/utils/constants.js +1 -1
- package/dist-esm/storage-queue/src/utils/constants.js.map +1 -1
- package/dist-esm/storage-queue/src/utils/utils.common.js.map +1 -1
- package/package.json +17 -31
- package/types/latest/storage-queue.d.ts +17 -1
- package/dist-esm/storage-blob/src/BatchUtils.browser.js +0 -11
- package/dist-esm/storage-blob/src/BatchUtils.browser.js.map +0 -1
- package/dist-esm/storage-blob/src/BlobDownloadResponse.browser.js +0 -7
- package/dist-esm/storage-blob/src/BlobDownloadResponse.browser.js.map +0 -1
- package/dist-esm/storage-blob/src/BlobQueryResponse.browser.js +0 -362
- package/dist-esm/storage-blob/src/BlobQueryResponse.browser.js.map +0 -1
- package/dist-esm/storage-blob/src/index.browser.js +0 -23
- package/dist-esm/storage-blob/src/index.browser.js.map +0 -1
- package/dist-esm/storage-blob/src/utils/utils.browser.js +0 -48
- package/dist-esm/storage-blob/src/utils/utils.browser.js.map +0 -1
- package/types/3.1/storage-queue.d.ts +0 -2659
package/dist/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
4
6
|
var crypto = require('crypto');
|
|
5
7
|
var coreUtil = require('@azure/core-util');
|
|
@@ -11,7 +13,6 @@ var coreAuth = require('@azure/core-auth');
|
|
|
11
13
|
var logger$2 = require('@azure/logger');
|
|
12
14
|
var abortController = require('@azure/abort-controller');
|
|
13
15
|
var coreTracing = require('@azure/core-tracing');
|
|
14
|
-
require('@azure/core-paging');
|
|
15
16
|
|
|
16
17
|
function _interopNamespaceDefault(e) {
|
|
17
18
|
var n = Object.create(null);
|
|
@@ -328,11 +329,62 @@ function ipRangeToString(ipRange) {
|
|
|
328
329
|
|
|
329
330
|
// Copyright (c) Microsoft Corporation.
|
|
330
331
|
// Licensed under the MIT license.
|
|
331
|
-
const SDK_VERSION
|
|
332
|
-
const SERVICE_VERSION = "
|
|
332
|
+
const SDK_VERSION = "12.23.0-beta.1";
|
|
333
|
+
const SERVICE_VERSION = "2024-08-04";
|
|
334
|
+
/**
|
|
335
|
+
* The OAuth scope to use with Azure Storage.
|
|
336
|
+
*/
|
|
337
|
+
const StorageOAuthScopes = "https://storage.azure.com/.default";
|
|
333
338
|
const DevelopmentConnectionString = `DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;
|
|
334
339
|
AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;
|
|
335
340
|
QueueEndpoint=http://127.0.0.1:10001/devstoreaccount1;`;
|
|
341
|
+
const StorageQueueLoggingAllowedHeaderNames = [
|
|
342
|
+
"Access-Control-Allow-Origin",
|
|
343
|
+
"Cache-Control",
|
|
344
|
+
"Content-Length",
|
|
345
|
+
"Content-Type",
|
|
346
|
+
"Date",
|
|
347
|
+
"Request-Id",
|
|
348
|
+
"traceparent",
|
|
349
|
+
"Transfer-Encoding",
|
|
350
|
+
"User-Agent",
|
|
351
|
+
"x-ms-client-request-id",
|
|
352
|
+
"x-ms-date",
|
|
353
|
+
"x-ms-error-code",
|
|
354
|
+
"x-ms-request-id",
|
|
355
|
+
"x-ms-return-client-request-id",
|
|
356
|
+
"x-ms-version",
|
|
357
|
+
"x-ms-approximate-messages-count",
|
|
358
|
+
"x-ms-popreceipt",
|
|
359
|
+
"x-ms-time-next-visible",
|
|
360
|
+
];
|
|
361
|
+
const StorageQueueLoggingAllowedQueryParameters = [
|
|
362
|
+
"comp",
|
|
363
|
+
"maxresults",
|
|
364
|
+
"rscc",
|
|
365
|
+
"rscd",
|
|
366
|
+
"rsce",
|
|
367
|
+
"rscl",
|
|
368
|
+
"rsct",
|
|
369
|
+
"se",
|
|
370
|
+
"si",
|
|
371
|
+
"sip",
|
|
372
|
+
"sp",
|
|
373
|
+
"spr",
|
|
374
|
+
"sr",
|
|
375
|
+
"srt",
|
|
376
|
+
"ss",
|
|
377
|
+
"st",
|
|
378
|
+
"sv",
|
|
379
|
+
"include",
|
|
380
|
+
"marker",
|
|
381
|
+
"prefix",
|
|
382
|
+
"messagettl",
|
|
383
|
+
"numofmessages",
|
|
384
|
+
"peekonly",
|
|
385
|
+
"popreceipt",
|
|
386
|
+
"visibilitytimeout",
|
|
387
|
+
];
|
|
336
388
|
/// List of ports used for path style addressing.
|
|
337
389
|
/// Path style addressing means that storage account is put in URI's Path segment in instead of in host.
|
|
338
390
|
const PathStylePorts = [
|
|
@@ -728,7 +780,7 @@ function generateAccountSASQueryParameters(accountSASSignatureValues, sharedKeyC
|
|
|
728
780
|
accountSASSignatureValues.ipRange ? ipRangeToString(accountSASSignatureValues.ipRange) : "",
|
|
729
781
|
accountSASSignatureValues.protocol ? accountSASSignatureValues.protocol : "",
|
|
730
782
|
version,
|
|
731
|
-
"",
|
|
783
|
+
"", // Reserved for encryption scope
|
|
732
784
|
"", // Account SAS requires an additional newline character
|
|
733
785
|
].join("\n");
|
|
734
786
|
}
|
|
@@ -879,11 +931,6 @@ class AnonymousCredential extends Credential {
|
|
|
879
931
|
|
|
880
932
|
// Copyright (c) Microsoft Corporation.
|
|
881
933
|
// Licensed under the MIT license.
|
|
882
|
-
const SDK_VERSION = "12.23.0-beta.1";
|
|
883
|
-
/**
|
|
884
|
-
* The OAuth scope to use with Azure Storage.
|
|
885
|
-
*/
|
|
886
|
-
const StorageOAuthScopes = "https://storage.azure.com/.default";
|
|
887
934
|
const URLConstants = {
|
|
888
935
|
Parameters: {
|
|
889
936
|
FORCE_BROWSER_NO_CACHE: "_",
|
|
@@ -917,138 +964,8 @@ const HeaderConstants = {
|
|
|
917
964
|
X_MS_DATE: "x-ms-date",
|
|
918
965
|
X_MS_ERROR_CODE: "x-ms-error-code",
|
|
919
966
|
X_MS_VERSION: "x-ms-version",
|
|
967
|
+
X_MS_CopySourceErrorCode: "x-ms-copy-source-error-code",
|
|
920
968
|
};
|
|
921
|
-
const StorageBlobLoggingAllowedHeaderNames = [
|
|
922
|
-
"Access-Control-Allow-Origin",
|
|
923
|
-
"Cache-Control",
|
|
924
|
-
"Content-Length",
|
|
925
|
-
"Content-Type",
|
|
926
|
-
"Date",
|
|
927
|
-
"Request-Id",
|
|
928
|
-
"traceparent",
|
|
929
|
-
"Transfer-Encoding",
|
|
930
|
-
"User-Agent",
|
|
931
|
-
"x-ms-client-request-id",
|
|
932
|
-
"x-ms-date",
|
|
933
|
-
"x-ms-error-code",
|
|
934
|
-
"x-ms-request-id",
|
|
935
|
-
"x-ms-return-client-request-id",
|
|
936
|
-
"x-ms-version",
|
|
937
|
-
"Accept-Ranges",
|
|
938
|
-
"Content-Disposition",
|
|
939
|
-
"Content-Encoding",
|
|
940
|
-
"Content-Language",
|
|
941
|
-
"Content-MD5",
|
|
942
|
-
"Content-Range",
|
|
943
|
-
"ETag",
|
|
944
|
-
"Last-Modified",
|
|
945
|
-
"Server",
|
|
946
|
-
"Vary",
|
|
947
|
-
"x-ms-content-crc64",
|
|
948
|
-
"x-ms-copy-action",
|
|
949
|
-
"x-ms-copy-completion-time",
|
|
950
|
-
"x-ms-copy-id",
|
|
951
|
-
"x-ms-copy-progress",
|
|
952
|
-
"x-ms-copy-status",
|
|
953
|
-
"x-ms-has-immutability-policy",
|
|
954
|
-
"x-ms-has-legal-hold",
|
|
955
|
-
"x-ms-lease-state",
|
|
956
|
-
"x-ms-lease-status",
|
|
957
|
-
"x-ms-range",
|
|
958
|
-
"x-ms-request-server-encrypted",
|
|
959
|
-
"x-ms-server-encrypted",
|
|
960
|
-
"x-ms-snapshot",
|
|
961
|
-
"x-ms-source-range",
|
|
962
|
-
"If-Match",
|
|
963
|
-
"If-Modified-Since",
|
|
964
|
-
"If-None-Match",
|
|
965
|
-
"If-Unmodified-Since",
|
|
966
|
-
"x-ms-access-tier",
|
|
967
|
-
"x-ms-access-tier-change-time",
|
|
968
|
-
"x-ms-access-tier-inferred",
|
|
969
|
-
"x-ms-account-kind",
|
|
970
|
-
"x-ms-archive-status",
|
|
971
|
-
"x-ms-blob-append-offset",
|
|
972
|
-
"x-ms-blob-cache-control",
|
|
973
|
-
"x-ms-blob-committed-block-count",
|
|
974
|
-
"x-ms-blob-condition-appendpos",
|
|
975
|
-
"x-ms-blob-condition-maxsize",
|
|
976
|
-
"x-ms-blob-content-disposition",
|
|
977
|
-
"x-ms-blob-content-encoding",
|
|
978
|
-
"x-ms-blob-content-language",
|
|
979
|
-
"x-ms-blob-content-length",
|
|
980
|
-
"x-ms-blob-content-md5",
|
|
981
|
-
"x-ms-blob-content-type",
|
|
982
|
-
"x-ms-blob-public-access",
|
|
983
|
-
"x-ms-blob-sequence-number",
|
|
984
|
-
"x-ms-blob-type",
|
|
985
|
-
"x-ms-copy-destination-snapshot",
|
|
986
|
-
"x-ms-creation-time",
|
|
987
|
-
"x-ms-default-encryption-scope",
|
|
988
|
-
"x-ms-delete-snapshots",
|
|
989
|
-
"x-ms-delete-type-permanent",
|
|
990
|
-
"x-ms-deny-encryption-scope-override",
|
|
991
|
-
"x-ms-encryption-algorithm",
|
|
992
|
-
"x-ms-if-sequence-number-eq",
|
|
993
|
-
"x-ms-if-sequence-number-le",
|
|
994
|
-
"x-ms-if-sequence-number-lt",
|
|
995
|
-
"x-ms-incremental-copy",
|
|
996
|
-
"x-ms-lease-action",
|
|
997
|
-
"x-ms-lease-break-period",
|
|
998
|
-
"x-ms-lease-duration",
|
|
999
|
-
"x-ms-lease-id",
|
|
1000
|
-
"x-ms-lease-time",
|
|
1001
|
-
"x-ms-page-write",
|
|
1002
|
-
"x-ms-proposed-lease-id",
|
|
1003
|
-
"x-ms-range-get-content-md5",
|
|
1004
|
-
"x-ms-rehydrate-priority",
|
|
1005
|
-
"x-ms-sequence-number-action",
|
|
1006
|
-
"x-ms-sku-name",
|
|
1007
|
-
"x-ms-source-content-md5",
|
|
1008
|
-
"x-ms-source-if-match",
|
|
1009
|
-
"x-ms-source-if-modified-since",
|
|
1010
|
-
"x-ms-source-if-none-match",
|
|
1011
|
-
"x-ms-source-if-unmodified-since",
|
|
1012
|
-
"x-ms-tag-count",
|
|
1013
|
-
"x-ms-encryption-key-sha256",
|
|
1014
|
-
"x-ms-if-tags",
|
|
1015
|
-
"x-ms-source-if-tags",
|
|
1016
|
-
];
|
|
1017
|
-
const StorageBlobLoggingAllowedQueryParameters = [
|
|
1018
|
-
"comp",
|
|
1019
|
-
"maxresults",
|
|
1020
|
-
"rscc",
|
|
1021
|
-
"rscd",
|
|
1022
|
-
"rsce",
|
|
1023
|
-
"rscl",
|
|
1024
|
-
"rsct",
|
|
1025
|
-
"se",
|
|
1026
|
-
"si",
|
|
1027
|
-
"sip",
|
|
1028
|
-
"sp",
|
|
1029
|
-
"spr",
|
|
1030
|
-
"sr",
|
|
1031
|
-
"srt",
|
|
1032
|
-
"ss",
|
|
1033
|
-
"st",
|
|
1034
|
-
"sv",
|
|
1035
|
-
"include",
|
|
1036
|
-
"marker",
|
|
1037
|
-
"prefix",
|
|
1038
|
-
"copyid",
|
|
1039
|
-
"restype",
|
|
1040
|
-
"blockid",
|
|
1041
|
-
"blocklisttype",
|
|
1042
|
-
"delimiter",
|
|
1043
|
-
"prevsnapshot",
|
|
1044
|
-
"ske",
|
|
1045
|
-
"skoid",
|
|
1046
|
-
"sks",
|
|
1047
|
-
"skt",
|
|
1048
|
-
"sktid",
|
|
1049
|
-
"skv",
|
|
1050
|
-
"snapshot",
|
|
1051
|
-
];
|
|
1052
969
|
|
|
1053
970
|
// Copyright (c) Microsoft Corporation.
|
|
1054
971
|
// Licensed under the MIT license.
|
|
@@ -1165,6 +1082,79 @@ async function delay(timeInMs, aborter, abortError) {
|
|
|
1165
1082
|
});
|
|
1166
1083
|
}
|
|
1167
1084
|
|
|
1085
|
+
// Copyright (c) Microsoft Corporation.
|
|
1086
|
+
// Licensed under the MIT license.
|
|
1087
|
+
/*
|
|
1088
|
+
* We need to imitate .Net culture-aware sorting, which is used in storage service.
|
|
1089
|
+
* Below tables contain sort-keys for en-US culture.
|
|
1090
|
+
*/
|
|
1091
|
+
const table_lv0 = new Uint32Array([
|
|
1092
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
1093
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x71c, 0x0, 0x71f, 0x721,
|
|
1094
|
+
0x723, 0x725, 0x0, 0x0, 0x0, 0x72d, 0x803, 0x0, 0x0, 0x733, 0x0, 0xd03, 0xd1a, 0xd1c, 0xd1e,
|
|
1095
|
+
0xd20, 0xd22, 0xd24, 0xd26, 0xd28, 0xd2a, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe02, 0xe09, 0xe0a,
|
|
1096
|
+
0xe1a, 0xe21, 0xe23, 0xe25, 0xe2c, 0xe32, 0xe35, 0xe36, 0xe48, 0xe51, 0xe70, 0xe7c, 0xe7e, 0xe89,
|
|
1097
|
+
0xe8a, 0xe91, 0xe99, 0xe9f, 0xea2, 0xea4, 0xea6, 0xea7, 0xea9, 0x0, 0x0, 0x0, 0x743, 0x744, 0x748,
|
|
1098
|
+
0xe02, 0xe09, 0xe0a, 0xe1a, 0xe21, 0xe23, 0xe25, 0xe2c, 0xe32, 0xe35, 0xe36, 0xe48, 0xe51, 0xe70,
|
|
1099
|
+
0xe7c, 0xe7e, 0xe89, 0xe8a, 0xe91, 0xe99, 0xe9f, 0xea2, 0xea4, 0xea6, 0xea7, 0xea9, 0x0, 0x74c,
|
|
1100
|
+
0x0, 0x750, 0x0,
|
|
1101
|
+
]);
|
|
1102
|
+
const table_lv2 = new Uint32Array([
|
|
1103
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
1104
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
1105
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
1106
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12,
|
|
1107
|
+
0x12, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12,
|
|
1108
|
+
0x12, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
1109
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
1110
|
+
]);
|
|
1111
|
+
const table_lv4 = new Uint32Array([
|
|
1112
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
1113
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
1114
|
+
0x0, 0x8012, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8212, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
1115
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
1116
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
1117
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
1118
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
1119
|
+
]);
|
|
1120
|
+
function compareHeader(lhs, rhs) {
|
|
1121
|
+
if (isLessThan(lhs, rhs))
|
|
1122
|
+
return -1;
|
|
1123
|
+
return 1;
|
|
1124
|
+
}
|
|
1125
|
+
function isLessThan(lhs, rhs) {
|
|
1126
|
+
const tables = [table_lv0, table_lv2, table_lv4];
|
|
1127
|
+
let curr_level = 0;
|
|
1128
|
+
let i = 0;
|
|
1129
|
+
let j = 0;
|
|
1130
|
+
while (curr_level < tables.length) {
|
|
1131
|
+
if (curr_level === tables.length - 1 && i !== j) {
|
|
1132
|
+
return i > j;
|
|
1133
|
+
}
|
|
1134
|
+
const weight1 = i < lhs.length ? tables[curr_level][lhs[i].charCodeAt(0)] : 0x1;
|
|
1135
|
+
const weight2 = j < rhs.length ? tables[curr_level][rhs[j].charCodeAt(0)] : 0x1;
|
|
1136
|
+
if (weight1 === 0x1 && weight2 === 0x1) {
|
|
1137
|
+
i = 0;
|
|
1138
|
+
j = 0;
|
|
1139
|
+
++curr_level;
|
|
1140
|
+
}
|
|
1141
|
+
else if (weight1 === weight2) {
|
|
1142
|
+
++i;
|
|
1143
|
+
++j;
|
|
1144
|
+
}
|
|
1145
|
+
else if (weight1 === 0) {
|
|
1146
|
+
++i;
|
|
1147
|
+
}
|
|
1148
|
+
else if (weight2 === 0) {
|
|
1149
|
+
++j;
|
|
1150
|
+
}
|
|
1151
|
+
else {
|
|
1152
|
+
return weight1 < weight2;
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
return false;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1168
1158
|
// Copyright (c) Microsoft Corporation.
|
|
1169
1159
|
// Licensed under the MIT license.
|
|
1170
1160
|
/**
|
|
@@ -1256,7 +1246,7 @@ class StorageSharedKeyCredentialPolicy extends CredentialPolicy {
|
|
|
1256
1246
|
return value.name.toLowerCase().startsWith(HeaderConstants.PREFIX_FOR_STORAGE);
|
|
1257
1247
|
});
|
|
1258
1248
|
headersArray.sort((a, b) => {
|
|
1259
|
-
return a.name.toLowerCase()
|
|
1249
|
+
return compareHeader(a.name.toLowerCase(), b.name.toLowerCase());
|
|
1260
1250
|
});
|
|
1261
1251
|
// Remove duplicate headers
|
|
1262
1252
|
headersArray = headersArray.filter((value, index, array) => {
|
|
@@ -1344,7 +1334,14 @@ class StorageSharedKeyCredential extends Credential {
|
|
|
1344
1334
|
/**
|
|
1345
1335
|
* The `@azure/logger` configuration for this package.
|
|
1346
1336
|
*/
|
|
1347
|
-
const logger$1 = logger$2.createClientLogger("storage-
|
|
1337
|
+
const logger$1 = logger$2.createClientLogger("storage-queue");
|
|
1338
|
+
|
|
1339
|
+
// Copyright (c) Microsoft Corporation.
|
|
1340
|
+
// Licensed under the MIT license.
|
|
1341
|
+
/**
|
|
1342
|
+
* The `@azure/logger` configuration for this package.
|
|
1343
|
+
*/
|
|
1344
|
+
const logger = logger$2.createClientLogger("storage-blob");
|
|
1348
1345
|
|
|
1349
1346
|
// Copyright (c) Microsoft Corporation.
|
|
1350
1347
|
// Licensed under the MIT license.
|
|
@@ -1442,7 +1439,7 @@ class StorageRetryPolicy extends BaseRequestPolicy {
|
|
|
1442
1439
|
}
|
|
1443
1440
|
let response;
|
|
1444
1441
|
try {
|
|
1445
|
-
logger
|
|
1442
|
+
logger.info(`RetryPolicy: =====> Try=${attempt} ${isPrimaryRetry ? "Primary" : "Secondary"}`);
|
|
1446
1443
|
response = await this._nextPolicy.sendRequest(newRequest);
|
|
1447
1444
|
if (!this.shouldRetry(isPrimaryRetry, attempt, response)) {
|
|
1448
1445
|
return response;
|
|
@@ -1450,7 +1447,7 @@ class StorageRetryPolicy extends BaseRequestPolicy {
|
|
|
1450
1447
|
secondaryHas404 = secondaryHas404 || (!isPrimaryRetry && response.status === 404);
|
|
1451
1448
|
}
|
|
1452
1449
|
catch (err) {
|
|
1453
|
-
logger
|
|
1450
|
+
logger.error(`RetryPolicy: Caught error, message: ${err.message}, code: ${err.code}`);
|
|
1454
1451
|
if (!this.shouldRetry(isPrimaryRetry, attempt, response, err)) {
|
|
1455
1452
|
throw err;
|
|
1456
1453
|
}
|
|
@@ -1468,7 +1465,7 @@ class StorageRetryPolicy extends BaseRequestPolicy {
|
|
|
1468
1465
|
*/
|
|
1469
1466
|
shouldRetry(isPrimaryRetry, attempt, response, err) {
|
|
1470
1467
|
if (attempt >= this.retryOptions.maxTries) {
|
|
1471
|
-
logger
|
|
1468
|
+
logger.info(`RetryPolicy: Attempt(s) ${attempt} >= maxTries ${this.retryOptions
|
|
1472
1469
|
.maxTries}, no further try.`);
|
|
1473
1470
|
return false;
|
|
1474
1471
|
}
|
|
@@ -1490,7 +1487,7 @@ class StorageRetryPolicy extends BaseRequestPolicy {
|
|
|
1490
1487
|
if (err.name.toUpperCase().includes(retriableError) ||
|
|
1491
1488
|
err.message.toUpperCase().includes(retriableError) ||
|
|
1492
1489
|
(err.code && err.code.toString().toUpperCase() === retriableError)) {
|
|
1493
|
-
logger
|
|
1490
|
+
logger.info(`RetryPolicy: Network error ${retriableError} found, will retry.`);
|
|
1494
1491
|
return true;
|
|
1495
1492
|
}
|
|
1496
1493
|
}
|
|
@@ -1501,17 +1498,32 @@ class StorageRetryPolicy extends BaseRequestPolicy {
|
|
|
1501
1498
|
if (response || err) {
|
|
1502
1499
|
const statusCode = response ? response.status : err ? err.statusCode : 0;
|
|
1503
1500
|
if (!isPrimaryRetry && statusCode === 404) {
|
|
1504
|
-
logger
|
|
1501
|
+
logger.info(`RetryPolicy: Secondary access with 404, will retry.`);
|
|
1505
1502
|
return true;
|
|
1506
1503
|
}
|
|
1507
1504
|
// Server internal error or server timeout
|
|
1508
1505
|
if (statusCode === 503 || statusCode === 500) {
|
|
1509
|
-
logger
|
|
1506
|
+
logger.info(`RetryPolicy: Will retry for status code ${statusCode}.`);
|
|
1510
1507
|
return true;
|
|
1511
1508
|
}
|
|
1512
1509
|
}
|
|
1510
|
+
// [Copy source error code] Feature is pending on service side, skip retry on copy source error for now.
|
|
1511
|
+
// if (response) {
|
|
1512
|
+
// // Retry select Copy Source Error Codes.
|
|
1513
|
+
// if (response?.status >= 400) {
|
|
1514
|
+
// const copySourceError = response.headers.get(HeaderConstants.X_MS_CopySourceErrorCode);
|
|
1515
|
+
// if (copySourceError !== undefined) {
|
|
1516
|
+
// switch (copySourceError) {
|
|
1517
|
+
// case "InternalError":
|
|
1518
|
+
// case "OperationTimedOut":
|
|
1519
|
+
// case "ServerBusy":
|
|
1520
|
+
// return true;
|
|
1521
|
+
// }
|
|
1522
|
+
// }
|
|
1523
|
+
// }
|
|
1524
|
+
// }
|
|
1513
1525
|
if ((err === null || err === void 0 ? void 0 : err.code) === "PARSE_ERROR" && (err === null || err === void 0 ? void 0 : err.message.startsWith(`Error "Error: Unclosed root tag`))) {
|
|
1514
|
-
logger
|
|
1526
|
+
logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");
|
|
1515
1527
|
return true;
|
|
1516
1528
|
}
|
|
1517
1529
|
return false;
|
|
@@ -1538,7 +1550,7 @@ class StorageRetryPolicy extends BaseRequestPolicy {
|
|
|
1538
1550
|
else {
|
|
1539
1551
|
delayTimeInMs = Math.random() * 1000;
|
|
1540
1552
|
}
|
|
1541
|
-
logger
|
|
1553
|
+
logger.info(`RetryPolicy: Delay for ${delayTimeInMs}ms`);
|
|
1542
1554
|
return delay(delayTimeInMs, abortSignal, RETRY_ABORT_ERROR$1);
|
|
1543
1555
|
}
|
|
1544
1556
|
}
|
|
@@ -1660,7 +1672,7 @@ function storageRetryPolicy(options = {}) {
|
|
|
1660
1672
|
function shouldRetry({ isPrimaryRetry, attempt, response, error, }) {
|
|
1661
1673
|
var _a, _b;
|
|
1662
1674
|
if (attempt >= maxTries) {
|
|
1663
|
-
logger
|
|
1675
|
+
logger.info(`RetryPolicy: Attempt(s) ${attempt} >= maxTries ${maxTries}, no further try.`);
|
|
1664
1676
|
return false;
|
|
1665
1677
|
}
|
|
1666
1678
|
if (error) {
|
|
@@ -1668,13 +1680,13 @@ function storageRetryPolicy(options = {}) {
|
|
|
1668
1680
|
if (error.name.toUpperCase().includes(retriableError) ||
|
|
1669
1681
|
error.message.toUpperCase().includes(retriableError) ||
|
|
1670
1682
|
(error.code && error.code.toString().toUpperCase() === retriableError)) {
|
|
1671
|
-
logger
|
|
1683
|
+
logger.info(`RetryPolicy: Network error ${retriableError} found, will retry.`);
|
|
1672
1684
|
return true;
|
|
1673
1685
|
}
|
|
1674
1686
|
}
|
|
1675
1687
|
if ((error === null || error === void 0 ? void 0 : error.code) === "PARSE_ERROR" &&
|
|
1676
1688
|
(error === null || error === void 0 ? void 0 : error.message.startsWith(`Error "Error: Unclosed root tag`))) {
|
|
1677
|
-
logger
|
|
1689
|
+
logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");
|
|
1678
1690
|
return true;
|
|
1679
1691
|
}
|
|
1680
1692
|
}
|
|
@@ -1684,15 +1696,30 @@ function storageRetryPolicy(options = {}) {
|
|
|
1684
1696
|
if (response || error) {
|
|
1685
1697
|
const statusCode = (_b = (_a = response === null || response === void 0 ? void 0 : response.status) !== null && _a !== void 0 ? _a : error === null || error === void 0 ? void 0 : error.statusCode) !== null && _b !== void 0 ? _b : 0;
|
|
1686
1698
|
if (!isPrimaryRetry && statusCode === 404) {
|
|
1687
|
-
logger
|
|
1699
|
+
logger.info(`RetryPolicy: Secondary access with 404, will retry.`);
|
|
1688
1700
|
return true;
|
|
1689
1701
|
}
|
|
1690
1702
|
// Server internal error or server timeout
|
|
1691
1703
|
if (statusCode === 503 || statusCode === 500) {
|
|
1692
|
-
logger
|
|
1704
|
+
logger.info(`RetryPolicy: Will retry for status code ${statusCode}.`);
|
|
1693
1705
|
return true;
|
|
1694
1706
|
}
|
|
1695
1707
|
}
|
|
1708
|
+
// [Copy source error code] Feature is pending on service side, skip retry on copy source error for now.
|
|
1709
|
+
// if (response) {
|
|
1710
|
+
// // Retry select Copy Source Error Codes.
|
|
1711
|
+
// if (response?.status >= 400) {
|
|
1712
|
+
// const copySourceError = response.headers.get(HeaderConstants.X_MS_CopySourceErrorCode);
|
|
1713
|
+
// if (copySourceError !== undefined) {
|
|
1714
|
+
// switch (copySourceError) {
|
|
1715
|
+
// case "InternalError":
|
|
1716
|
+
// case "OperationTimedOut":
|
|
1717
|
+
// case "ServerBusy":
|
|
1718
|
+
// return true;
|
|
1719
|
+
// }
|
|
1720
|
+
// }
|
|
1721
|
+
// }
|
|
1722
|
+
// }
|
|
1696
1723
|
return false;
|
|
1697
1724
|
}
|
|
1698
1725
|
function calculateDelay(isPrimaryRetry, attempt) {
|
|
@@ -1710,7 +1737,7 @@ function storageRetryPolicy(options = {}) {
|
|
|
1710
1737
|
else {
|
|
1711
1738
|
delayTimeInMs = Math.random() * 1000;
|
|
1712
1739
|
}
|
|
1713
|
-
logger
|
|
1740
|
+
logger.info(`RetryPolicy: Delay for ${delayTimeInMs}ms`);
|
|
1714
1741
|
return delayTimeInMs;
|
|
1715
1742
|
}
|
|
1716
1743
|
return {
|
|
@@ -1736,17 +1763,17 @@ function storageRetryPolicy(options = {}) {
|
|
|
1736
1763
|
response = undefined;
|
|
1737
1764
|
error = undefined;
|
|
1738
1765
|
try {
|
|
1739
|
-
logger
|
|
1766
|
+
logger.info(`RetryPolicy: =====> Try=${attempt} ${isPrimaryRetry ? "Primary" : "Secondary"}`);
|
|
1740
1767
|
response = await next(request);
|
|
1741
1768
|
secondaryHas404 = secondaryHas404 || (!isPrimaryRetry && response.status === 404);
|
|
1742
1769
|
}
|
|
1743
1770
|
catch (e) {
|
|
1744
1771
|
if (coreRestPipeline.isRestError(e)) {
|
|
1745
|
-
logger
|
|
1772
|
+
logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);
|
|
1746
1773
|
error = e;
|
|
1747
1774
|
}
|
|
1748
1775
|
else {
|
|
1749
|
-
logger
|
|
1776
|
+
logger.error(`RetryPolicy: Caught error, message: ${coreUtil.getErrorMessage(e)}`);
|
|
1750
1777
|
throw e;
|
|
1751
1778
|
}
|
|
1752
1779
|
}
|
|
@@ -1844,7 +1871,7 @@ function storageSharedKeyCredentialPolicy(options) {
|
|
|
1844
1871
|
}
|
|
1845
1872
|
}
|
|
1846
1873
|
headersArray.sort((a, b) => {
|
|
1847
|
-
return a.name.toLowerCase()
|
|
1874
|
+
return compareHeader(a.name.toLowerCase(), b.name.toLowerCase());
|
|
1848
1875
|
});
|
|
1849
1876
|
// Remove duplicate headers
|
|
1850
1877
|
headersArray = headersArray.filter((value, index, array) => {
|
|
@@ -2055,8 +2082,8 @@ function getCoreClientOptions(pipeline) {
|
|
|
2055
2082
|
? `${restOptions.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
2056
2083
|
: `${packageDetails}`;
|
|
2057
2084
|
corePipeline = coreClient.createClientPipeline(Object.assign(Object.assign({}, restOptions), { loggingOptions: {
|
|
2058
|
-
additionalAllowedHeaderNames:
|
|
2059
|
-
additionalAllowedQueryParameters:
|
|
2085
|
+
additionalAllowedHeaderNames: StorageQueueLoggingAllowedHeaderNames,
|
|
2086
|
+
additionalAllowedQueryParameters: StorageQueueLoggingAllowedQueryParameters,
|
|
2060
2087
|
logger: logger$1.info,
|
|
2061
2088
|
}, userAgentOptions: {
|
|
2062
2089
|
userAgentPrefix,
|
|
@@ -2103,7 +2130,7 @@ function getCoreClientOptions(pipeline) {
|
|
|
2103
2130
|
}
|
|
2104
2131
|
pipeline._corePipeline = corePipeline;
|
|
2105
2132
|
}
|
|
2106
|
-
return Object.assign(Object.assign({}, restOptions), { httpClient, pipeline: corePipeline });
|
|
2133
|
+
return Object.assign(Object.assign({}, restOptions), { allowInsecureConnection: true, httpClient, pipeline: corePipeline });
|
|
2107
2134
|
}
|
|
2108
2135
|
function getCredentialFromPipeline(pipeline) {
|
|
2109
2136
|
// see if we squirreled one away on the type itself
|
|
@@ -2192,6 +2219,25 @@ function isCoreHttpPolicyFactory(factory) {
|
|
|
2192
2219
|
});
|
|
2193
2220
|
}
|
|
2194
2221
|
|
|
2222
|
+
// Copyright (c) Microsoft Corporation.
|
|
2223
|
+
// Licensed under the MIT license.
|
|
2224
|
+
/**
|
|
2225
|
+
* Defines the known cloud audiences for Storage.
|
|
2226
|
+
*/
|
|
2227
|
+
exports.StorageQueueAudience = void 0;
|
|
2228
|
+
(function (StorageQueueAudience) {
|
|
2229
|
+
/**
|
|
2230
|
+
* The OAuth scope to use to retrieve an AAD token for Azure Storage.
|
|
2231
|
+
*/
|
|
2232
|
+
StorageQueueAudience["StorageOAuthScopes"] = "https://storage.azure.com/.default";
|
|
2233
|
+
})(exports.StorageQueueAudience || (exports.StorageQueueAudience = {}));
|
|
2234
|
+
/**
|
|
2235
|
+
* To get OAuth audience for a storage account for queue service.
|
|
2236
|
+
*/
|
|
2237
|
+
function getQueueServiceAccountAudience(storageAccountName) {
|
|
2238
|
+
return `https://${storageAccountName}.queue.core.windows.net/.default`;
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2195
2241
|
/*
|
|
2196
2242
|
* Copyright (c) Microsoft Corporation.
|
|
2197
2243
|
* Licensed under the MIT License.
|
|
@@ -2434,6 +2480,13 @@ const StorageError = {
|
|
|
2434
2480
|
type: {
|
|
2435
2481
|
name: "String"
|
|
2436
2482
|
}
|
|
2483
|
+
},
|
|
2484
|
+
authenticationErrorDetail: {
|
|
2485
|
+
serializedName: "AuthenticationErrorDetail",
|
|
2486
|
+
xmlName: "AuthenticationErrorDetail",
|
|
2487
|
+
type: {
|
|
2488
|
+
name: "String"
|
|
2489
|
+
}
|
|
2437
2490
|
}
|
|
2438
2491
|
}
|
|
2439
2492
|
}
|
|
@@ -4038,7 +4091,7 @@ const timeoutInSeconds = {
|
|
|
4038
4091
|
const version = {
|
|
4039
4092
|
parameterPath: "version",
|
|
4040
4093
|
mapper: {
|
|
4041
|
-
defaultValue: "
|
|
4094
|
+
defaultValue: "2024-08-04",
|
|
4042
4095
|
isConstant: true,
|
|
4043
4096
|
serializedName: "x-ms-version",
|
|
4044
4097
|
type: {
|
|
@@ -4990,7 +5043,7 @@ let StorageClient$1 = class StorageClient extends coreHttpCompat__namespace.Exte
|
|
|
4990
5043
|
// Parameter assignments
|
|
4991
5044
|
this.url = url;
|
|
4992
5045
|
// Assigning values to Constant parameters
|
|
4993
|
-
this.version = options.version || "
|
|
5046
|
+
this.version = options.version || "2024-08-04";
|
|
4994
5047
|
this.service = new ServiceImpl(this);
|
|
4995
5048
|
this.queue = new QueueImpl(this);
|
|
4996
5049
|
this.messages = new MessagesImpl(this);
|
|
@@ -5061,7 +5114,7 @@ function getStorageClientContext(url, pipeline) {
|
|
|
5061
5114
|
*/
|
|
5062
5115
|
const tracingClient = coreTracing.createTracingClient({
|
|
5063
5116
|
packageName: "@azure/storage-queue",
|
|
5064
|
-
packageVersion: SDK_VERSION
|
|
5117
|
+
packageVersion: SDK_VERSION,
|
|
5065
5118
|
namespace: "Microsoft.Storage",
|
|
5066
5119
|
});
|
|
5067
5120
|
|
|
@@ -5219,7 +5272,7 @@ class QueueClient extends StorageClient {
|
|
|
5219
5272
|
options = options || {};
|
|
5220
5273
|
let pipeline;
|
|
5221
5274
|
let url;
|
|
5222
|
-
if (credentialOrPipelineOrQueueName
|
|
5275
|
+
if (isPipelineLike(credentialOrPipelineOrQueueName)) {
|
|
5223
5276
|
// (url: string, pipeline: Pipeline)
|
|
5224
5277
|
url = urlOrConnectionString;
|
|
5225
5278
|
pipeline = credentialOrPipelineOrQueueName;
|
|
@@ -5789,7 +5842,7 @@ class QueueServiceClient extends StorageClient {
|
|
|
5789
5842
|
/* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */
|
|
5790
5843
|
options) {
|
|
5791
5844
|
let pipeline;
|
|
5792
|
-
if (credentialOrPipeline
|
|
5845
|
+
if (isPipelineLike(credentialOrPipeline)) {
|
|
5793
5846
|
pipeline = credentialOrPipeline;
|
|
5794
5847
|
}
|
|
5795
5848
|
else if ((coreUtil.isNode && credentialOrPipeline instanceof StorageSharedKeyCredential) ||
|
|
@@ -5854,8 +5907,8 @@ class QueueServiceClient extends StorageClient {
|
|
|
5854
5907
|
* items. The marker value is opaque to the client.
|
|
5855
5908
|
* @param options - Options to list queues operation.
|
|
5856
5909
|
*/
|
|
5857
|
-
listSegments(
|
|
5858
|
-
return tslib.__asyncGenerator(this, arguments, function* listSegments_1() {
|
|
5910
|
+
listSegments(marker_1) {
|
|
5911
|
+
return tslib.__asyncGenerator(this, arguments, function* listSegments_1(marker, options = {}) {
|
|
5859
5912
|
if (options.prefix === "") {
|
|
5860
5913
|
options.prefix = undefined;
|
|
5861
5914
|
}
|
|
@@ -5872,8 +5925,8 @@ class QueueServiceClient extends StorageClient {
|
|
|
5872
5925
|
*
|
|
5873
5926
|
* @param options - Options to list queues operation.
|
|
5874
5927
|
*/
|
|
5875
|
-
listItems(
|
|
5876
|
-
return tslib.__asyncGenerator(this, arguments, function* listItems_1() {
|
|
5928
|
+
listItems() {
|
|
5929
|
+
return tslib.__asyncGenerator(this, arguments, function* listItems_1(options = {}) {
|
|
5877
5930
|
var _a, e_1, _b, _c;
|
|
5878
5931
|
if (options.prefix === "") {
|
|
5879
5932
|
options.prefix = undefined;
|
|
@@ -6099,14 +6152,7 @@ class QueueServiceClient extends StorageClient {
|
|
|
6099
6152
|
}
|
|
6100
6153
|
}
|
|
6101
6154
|
|
|
6102
|
-
|
|
6103
|
-
// Licensed under the MIT license.
|
|
6104
|
-
/**
|
|
6105
|
-
* The `@azure/logger` configuration for this package.
|
|
6106
|
-
*/
|
|
6107
|
-
const logger = logger$2.createClientLogger("storage-queue");
|
|
6108
|
-
|
|
6109
|
-
Object.defineProperty(exports, 'RestError', {
|
|
6155
|
+
Object.defineProperty(exports, "RestError", {
|
|
6110
6156
|
enumerable: true,
|
|
6111
6157
|
get: function () { return coreRestPipeline.RestError; }
|
|
6112
6158
|
});
|
|
@@ -6132,7 +6178,8 @@ exports.StorageSharedKeyCredential = StorageSharedKeyCredential;
|
|
|
6132
6178
|
exports.StorageSharedKeyCredentialPolicy = StorageSharedKeyCredentialPolicy;
|
|
6133
6179
|
exports.generateAccountSASQueryParameters = generateAccountSASQueryParameters;
|
|
6134
6180
|
exports.generateQueueSASQueryParameters = generateQueueSASQueryParameters;
|
|
6181
|
+
exports.getQueueServiceAccountAudience = getQueueServiceAccountAudience;
|
|
6135
6182
|
exports.isPipelineLike = isPipelineLike;
|
|
6136
|
-
exports.logger = logger;
|
|
6183
|
+
exports.logger = logger$1;
|
|
6137
6184
|
exports.newPipeline = newPipeline;
|
|
6138
6185
|
//# sourceMappingURL=index.js.map
|