@azure/storage-blob 12.26.0-beta.1 → 12.27.0-alpha.20250319.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/LICENSE +3 -3
- package/README.md +20 -22
- package/dist/index.js +121 -136
- package/dist/index.js.map +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.browser.js.map +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 +3 -3
- 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 +10 -10
- package/dist-esm/storage-blob/src/BlobLeaseClient.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobQueryResponse.browser.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobQueryResponse.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobServiceClient.js +12 -14
- package/dist-esm/storage-blob/src/BlobServiceClient.js.map +1 -1
- package/dist-esm/storage-blob/src/Clients.js +58 -59
- package/dist-esm/storage-blob/src/Clients.js.map +1 -1
- package/dist-esm/storage-blob/src/ContainerClient.js +20 -21
- 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.map +1 -1
- package/dist-esm/storage-blob/src/Range.js.map +1 -1
- package/dist-esm/storage-blob/src/StorageBrowserPolicyFactory.js.map +1 -1
- package/dist-esm/storage-blob/src/StorageClient.js.map +1 -1
- package/dist-esm/storage-blob/src/StorageContextClient.js.map +1 -1
- package/dist-esm/storage-blob/src/StorageRetryPolicyFactory.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/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/models/parameters.js +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/storageClient.js +2 -2
- 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/models.js +2 -2
- package/dist-esm/storage-blob/src/models.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/AnonymousCredentialPolicy.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/CredentialPolicy.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/StorageCorrectContentLengthPolicy.browser.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.js.map +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 +2 -2
- 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 -2
- 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 +2 -2
- 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/AccountSASSignatureValues.js +1 -1
- package/dist-esm/storage-blob/src/sas/AccountSASSignatureValues.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.map +1 -1
- package/dist-esm/storage-blob/src/utils/BlobQuickQueryStream.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/RetriableReadableStream.js.map +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/utils.common.js +3 -3
- 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-internal-avro/src/AvroParser.js +1 -1
- package/dist-esm/storage-internal-avro/src/AvroParser.js.map +1 -1
- package/dist-esm/storage-internal-avro/src/AvroReadable.js.map +1 -1
- package/dist-esm/storage-internal-avro/src/AvroReadableFromBlob.js.map +1 -1
- package/dist-esm/storage-internal-avro/src/AvroReadableFromStream.js.map +1 -1
- package/dist-esm/storage-internal-avro/src/AvroReader.js.map +1 -1
- package/dist-esm/storage-internal-avro/src/utils/utils.common.js +0 -1
- package/dist-esm/storage-internal-avro/src/utils/utils.common.js.map +1 -1
- package/package.json +13 -17
- package/types/latest/storage-blob.d.ts +153 -153
package/dist/index.js
CHANGED
@@ -91,8 +91,8 @@ class BaseRequestPolicy {
|
|
91
91
|
|
92
92
|
// Copyright (c) Microsoft Corporation.
|
93
93
|
// Licensed under the MIT License.
|
94
|
-
const SDK_VERSION = "12.
|
95
|
-
const SERVICE_VERSION = "2025-
|
94
|
+
const SDK_VERSION = "12.27.0";
|
95
|
+
const SERVICE_VERSION = "2025-05-05";
|
96
96
|
const BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES = 256 * 1024 * 1024; // 256MB
|
97
97
|
const BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES = 4000 * 1024 * 1024; // 4000MB
|
98
98
|
const BLOCK_BLOB_MAX_BLOCKS = 50000;
|
@@ -107,22 +107,15 @@ const StorageOAuthScopes = "https://storage.azure.com/.default";
|
|
107
107
|
const URLConstants = {
|
108
108
|
Parameters: {
|
109
109
|
FORCE_BROWSER_NO_CACHE: "_",
|
110
|
-
SIGNATURE: "sig",
|
111
110
|
SNAPSHOT: "snapshot",
|
112
111
|
VERSIONID: "versionid",
|
113
112
|
TIMEOUT: "timeout",
|
114
113
|
},
|
115
114
|
};
|
116
115
|
const HTTPURLConnection = {
|
117
|
-
HTTP_ACCEPTED: 202
|
118
|
-
HTTP_CONFLICT: 409,
|
119
|
-
HTTP_NOT_FOUND: 404,
|
120
|
-
HTTP_PRECON_FAILED: 412,
|
121
|
-
HTTP_RANGE_NOT_SATISFIABLE: 416,
|
122
|
-
};
|
116
|
+
HTTP_ACCEPTED: 202};
|
123
117
|
const HeaderConstants = {
|
124
118
|
AUTHORIZATION: "Authorization",
|
125
|
-
AUTHORIZATION_SCHEME: "Bearer",
|
126
119
|
CONTENT_ENCODING: "Content-Encoding",
|
127
120
|
CONTENT_ID: "Content-ID",
|
128
121
|
CONTENT_LANGUAGE: "Content-Language",
|
@@ -138,14 +131,9 @@ const HeaderConstants = {
|
|
138
131
|
IF_UNMODIFIED_SINCE: "if-unmodified-since",
|
139
132
|
PREFIX_FOR_STORAGE: "x-ms-",
|
140
133
|
RANGE: "Range",
|
141
|
-
USER_AGENT: "User-Agent",
|
142
|
-
X_MS_CLIENT_REQUEST_ID: "x-ms-client-request-id",
|
143
|
-
X_MS_COPY_SOURCE: "x-ms-copy-source",
|
144
134
|
X_MS_DATE: "x-ms-date",
|
145
135
|
X_MS_ERROR_CODE: "x-ms-error-code",
|
146
|
-
X_MS_VERSION: "x-ms-version"
|
147
|
-
X_MS_CopySourceErrorCode: "x-ms-copy-source-error-code",
|
148
|
-
};
|
136
|
+
X_MS_VERSION: "x-ms-version"};
|
149
137
|
const ETagNone = "";
|
150
138
|
const ETagAny = "*";
|
151
139
|
const SIZE_1_MB = 1 * 1024 * 1024;
|
@@ -364,8 +352,8 @@ const PathStylePorts = [
|
|
364
352
|
*
|
365
353
|
* We will apply strategy one, and call encodeURIComponent for these parameters like blobName. Because what customers passes in is a plain name instead of a URL.
|
366
354
|
*
|
367
|
-
* @see https://
|
368
|
-
* @see https://
|
355
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata
|
356
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-shares--directories--files--and-metadata
|
369
357
|
*
|
370
358
|
* @param url -
|
371
359
|
*/
|
@@ -379,7 +367,7 @@ function escapeURLPath(url) {
|
|
379
367
|
}
|
380
368
|
function getProxyUriFromDevConnString(connectionString) {
|
381
369
|
// Development Connection String
|
382
|
-
// https://
|
370
|
+
// https://learn.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string#connect-to-the-emulator-account-using-the-well-known-account-name-and-key
|
383
371
|
let proxyUri = "";
|
384
372
|
if (connectionString.search("DevelopmentStorageProxyUri=") !== -1) {
|
385
373
|
// CONNECTION_STRING=UseDevelopmentStorage=true;DevelopmentStorageProxyUri=http://myProxyUri
|
@@ -1420,7 +1408,7 @@ class StorageSharedKeyCredentialPolicy extends CredentialPolicy {
|
|
1420
1408
|
}
|
1421
1409
|
/**
|
1422
1410
|
* Retrieve header value according to shared key sign rules.
|
1423
|
-
* @see https://
|
1411
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/authenticate-with-shared-key
|
1424
1412
|
*
|
1425
1413
|
* @param request -
|
1426
1414
|
* @param headerName -
|
@@ -1432,7 +1420,7 @@ class StorageSharedKeyCredentialPolicy extends CredentialPolicy {
|
|
1432
1420
|
}
|
1433
1421
|
// When using version 2015-02-21 or later, if Content-Length is zero, then
|
1434
1422
|
// set the Content-Length part of the StringToSign to an empty string.
|
1435
|
-
// https://
|
1423
|
+
// https://learn.microsoft.com/en-us/rest/api/storageservices/authenticate-with-shared-key
|
1436
1424
|
if (headerName === HeaderConstants.CONTENT_LENGTH && value === "0") {
|
1437
1425
|
return "";
|
1438
1426
|
}
|
@@ -1853,7 +1841,7 @@ function storageSharedKeyCredentialPolicy(options) {
|
|
1853
1841
|
}
|
1854
1842
|
/**
|
1855
1843
|
* Retrieve header value according to shared key sign rules.
|
1856
|
-
* @see https://
|
1844
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/authenticate-with-shared-key
|
1857
1845
|
*/
|
1858
1846
|
function getHeaderValueToSign(request, headerName) {
|
1859
1847
|
const value = request.headers.get(headerName);
|
@@ -1862,7 +1850,7 @@ function storageSharedKeyCredentialPolicy(options) {
|
|
1862
1850
|
}
|
1863
1851
|
// When using version 2015-02-21 or later, if Content-Length is zero, then
|
1864
1852
|
// set the Content-Length part of the StringToSign to an empty string.
|
1865
|
-
// https://
|
1853
|
+
// https://learn.microsoft.com/en-us/rest/api/storageservices/authenticate-with-shared-key
|
1866
1854
|
if (headerName === HeaderConstants.CONTENT_LENGTH && value === "0") {
|
1867
1855
|
return "";
|
1868
1856
|
}
|
@@ -10754,7 +10742,7 @@ const timeoutInSeconds = {
|
|
10754
10742
|
const version = {
|
10755
10743
|
parameterPath: "version",
|
10756
10744
|
mapper: {
|
10757
|
-
defaultValue: "2025-
|
10745
|
+
defaultValue: "2025-05-05",
|
10758
10746
|
isConstant: true,
|
10759
10747
|
serializedName: "x-ms-version",
|
10760
10748
|
type: {
|
@@ -15386,7 +15374,7 @@ let StorageClient$1 = class StorageClient extends coreHttpCompat__namespace.Exte
|
|
15386
15374
|
const defaults = {
|
15387
15375
|
requestContentType: "application/json; charset=utf-8",
|
15388
15376
|
};
|
15389
|
-
const packageDetails = `azsdk-js-azure-storage-blob/12.
|
15377
|
+
const packageDetails = `azsdk-js-azure-storage-blob/12.27.0`;
|
15390
15378
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
15391
15379
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
15392
15380
|
: `${packageDetails}`;
|
@@ -15397,7 +15385,7 @@ let StorageClient$1 = class StorageClient extends coreHttpCompat__namespace.Exte
|
|
15397
15385
|
// Parameter assignments
|
15398
15386
|
this.url = url;
|
15399
15387
|
// Assigning values to Constant parameters
|
15400
|
-
this.version = options.version || "2025-
|
15388
|
+
this.version = options.version || "2025-05-05";
|
15401
15389
|
this.service = new ServiceImpl(this);
|
15402
15390
|
this.container = new ContainerImpl(this);
|
15403
15391
|
this.blob = new BlobImpl(this);
|
@@ -15829,7 +15817,7 @@ class ContainerSASPermissions {
|
|
15829
15817
|
* order accepted by the service.
|
15830
15818
|
*
|
15831
15819
|
* The order of the characters should be as specified here to ensure correctness.
|
15832
|
-
* @see https://
|
15820
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
|
15833
15821
|
*
|
15834
15822
|
*/
|
15835
15823
|
toString() {
|
@@ -15883,7 +15871,7 @@ class ContainerSASPermissions {
|
|
15883
15871
|
* ONLY AVAILABLE IN NODE.JS RUNTIME.
|
15884
15872
|
*
|
15885
15873
|
* UserDelegationKeyCredential is only used for generation of user delegation SAS.
|
15886
|
-
* @see https://
|
15874
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-user-delegation-sas
|
15887
15875
|
*/
|
15888
15876
|
class UserDelegationKeyCredential {
|
15889
15877
|
/**
|
@@ -16180,7 +16168,7 @@ function generateBlobSASQueryParametersInternal(blobSASSignatureValues, sharedKe
|
|
16180
16168
|
}
|
16181
16169
|
// Version 2019-12-12 adds support for the blob tags permission.
|
16182
16170
|
// Version 2018-11-09 adds support for the signed resource and signed blob snapshot time fields.
|
16183
|
-
// https://
|
16171
|
+
// https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas#constructing-the-signature-string
|
16184
16172
|
if (version >= "2018-11-09") {
|
16185
16173
|
if (sharedKeyCredential !== undefined) {
|
16186
16174
|
return generateBlobSASQueryParameters20181109(blobSASSignatureValues, sharedKeyCredential);
|
@@ -16767,9 +16755,9 @@ class BlobLeaseClient {
|
|
16767
16755
|
* Establishes and manages a lock on a container for delete operations, or on a blob
|
16768
16756
|
* for write and delete operations.
|
16769
16757
|
* The lock duration can be 15 to 60 seconds, or can be infinite.
|
16770
|
-
* @see https://
|
16758
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/lease-container
|
16771
16759
|
* and
|
16772
|
-
* @see https://
|
16760
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/lease-blob
|
16773
16761
|
*
|
16774
16762
|
* @param duration - Must be between 15 to 60 seconds, or infinite (-1)
|
16775
16763
|
* @param options - option to configure lease management operations.
|
@@ -16796,9 +16784,9 @@ class BlobLeaseClient {
|
|
16796
16784
|
}
|
16797
16785
|
/**
|
16798
16786
|
* To change the ID of the lease.
|
16799
|
-
* @see https://
|
16787
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/lease-container
|
16800
16788
|
* and
|
16801
|
-
* @see https://
|
16789
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/lease-blob
|
16802
16790
|
*
|
16803
16791
|
* @param proposedLeaseId - the proposed new lease Id.
|
16804
16792
|
* @param options - option to configure lease management operations.
|
@@ -16826,9 +16814,9 @@ class BlobLeaseClient {
|
|
16826
16814
|
/**
|
16827
16815
|
* To free the lease if it is no longer needed so that another client may
|
16828
16816
|
* immediately acquire a lease against the container or the blob.
|
16829
|
-
* @see https://
|
16817
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/lease-container
|
16830
16818
|
* and
|
16831
|
-
* @see https://
|
16819
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/lease-blob
|
16832
16820
|
*
|
16833
16821
|
* @param options - option to configure lease management operations.
|
16834
16822
|
* @returns Response data for release lease operation.
|
@@ -16852,9 +16840,9 @@ class BlobLeaseClient {
|
|
16852
16840
|
}
|
16853
16841
|
/**
|
16854
16842
|
* To renew the lease.
|
16855
|
-
* @see https://
|
16843
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/lease-container
|
16856
16844
|
* and
|
16857
|
-
* @see https://
|
16845
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/lease-blob
|
16858
16846
|
*
|
16859
16847
|
* @param options - Optional option to configure lease management operations.
|
16860
16848
|
* @returns Response data for renew lease operation.
|
@@ -16879,9 +16867,9 @@ class BlobLeaseClient {
|
|
16879
16867
|
/**
|
16880
16868
|
* To end the lease but ensure that another client cannot acquire a new lease
|
16881
16869
|
* until the current lease period has expired.
|
16882
|
-
* @see https://
|
16870
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/lease-container
|
16883
16871
|
* and
|
16884
|
-
* @see https://
|
16872
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/lease-blob
|
16885
16873
|
*
|
16886
16874
|
* @param breakPeriod - Break period
|
16887
16875
|
* @param options - Optional options to configure lease management operations.
|
@@ -17688,7 +17676,7 @@ class AvroType {
|
|
17688
17676
|
return AvroType.fromStringSchema(type);
|
17689
17677
|
}
|
17690
17678
|
catch (_a) {
|
17691
|
-
//
|
17679
|
+
// no-op
|
17692
17680
|
}
|
17693
17681
|
switch (type) {
|
17694
17682
|
case AvroComplex.RECORD:
|
@@ -17815,7 +17803,6 @@ class AvroRecordType extends AvroType {
|
|
17815
17803
|
function arraysEqual(a, b) {
|
17816
17804
|
if (a === b)
|
17817
17805
|
return true;
|
17818
|
-
// eslint-disable-next-line eqeqeq
|
17819
17806
|
if (a == null || b == null)
|
17820
17807
|
return false;
|
17821
17808
|
if (a.length !== b.length)
|
@@ -18492,7 +18479,7 @@ class BlobQueryResponse {
|
|
18492
18479
|
// Licensed under the MIT License.
|
18493
18480
|
/**
|
18494
18481
|
* Represents the access tier on a blob.
|
18495
|
-
* For detailed information about block blob level tiering see {@link https://
|
18482
|
+
* For detailed information about block blob level tiering see {@link https://learn.microsoft.com/azure/storage/blobs/storage-blob-storage-tiers|Hot, cool and archive storage tiers.}
|
18496
18483
|
*/
|
18497
18484
|
exports.BlockBlobTier = void 0;
|
18498
18485
|
(function (BlockBlobTier) {
|
@@ -18516,7 +18503,7 @@ exports.BlockBlobTier = void 0;
|
|
18516
18503
|
})(exports.BlockBlobTier || (exports.BlockBlobTier = {}));
|
18517
18504
|
/**
|
18518
18505
|
* Specifies the page blob tier to set the blob to. This is only applicable to page blobs on premium storage accounts.
|
18519
|
-
* Please see {@link https://
|
18506
|
+
* Please see {@link https://learn.microsoft.com/azure/storage/storage-premium-storage#scalability-and-performance-targets|here}
|
18520
18507
|
* for detailed information on the corresponding IOPS and throughput per PageBlobTier.
|
18521
18508
|
*/
|
18522
18509
|
exports.PremiumPageBlobTier = void 0;
|
@@ -19559,7 +19546,7 @@ class BlobClient extends StorageClient {
|
|
19559
19546
|
* * In Node.js, data returns in a Readable stream readableStreamBody
|
19560
19547
|
* * In browsers, data returns in a promise blobBody
|
19561
19548
|
*
|
19562
|
-
* @see https://
|
19549
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-blob
|
19563
19550
|
*
|
19564
19551
|
* @param offset - From which position of the blob to download, greater than or equal to 0
|
19565
19552
|
* @param count - How much data to be downloaded, greater than 0. Will download to the end when undefined
|
@@ -19575,16 +19562,16 @@ class BlobClient extends StorageClient {
|
|
19575
19562
|
* console.log("Downloaded blob content:", downloaded.toString());
|
19576
19563
|
*
|
19577
19564
|
* async function streamToBuffer(readableStream) {
|
19578
|
-
*
|
19579
|
-
*
|
19580
|
-
*
|
19581
|
-
*
|
19582
|
-
*
|
19583
|
-
*
|
19584
|
-
*
|
19585
|
-
*
|
19586
|
-
*
|
19587
|
-
*
|
19565
|
+
* return new Promise((resolve, reject) => {
|
19566
|
+
* const chunks = [];
|
19567
|
+
* readableStream.on("data", (data) => {
|
19568
|
+
* chunks.push(typeof data === "string" ? Buffer.from(data) : data);
|
19569
|
+
* });
|
19570
|
+
* readableStream.on("end", () => {
|
19571
|
+
* resolve(Buffer.concat(chunks));
|
19572
|
+
* });
|
19573
|
+
* readableStream.on("error", reject);
|
19574
|
+
* });
|
19588
19575
|
* }
|
19589
19576
|
* ```
|
19590
19577
|
*
|
@@ -19723,7 +19710,7 @@ class BlobClient extends StorageClient {
|
|
19723
19710
|
/**
|
19724
19711
|
* Returns all user-defined metadata, standard HTTP properties, and system properties
|
19725
19712
|
* for the blob. It does not return the content of the blob.
|
19726
|
-
* @see https://
|
19713
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-blob-properties
|
19727
19714
|
*
|
19728
19715
|
* WARNING: The `metadata` object returned in the response will have its keys in lowercase, even if
|
19729
19716
|
* they originally contained uppercase characters. This differs from the metadata keys returned by
|
@@ -19752,7 +19739,7 @@ class BlobClient extends StorageClient {
|
|
19752
19739
|
* during garbage collection. Note that in order to delete a blob, you must delete
|
19753
19740
|
* all of its snapshots. You can delete both at the same time with the Delete
|
19754
19741
|
* Blob operation.
|
19755
|
-
* @see https://
|
19742
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-blob
|
19756
19743
|
*
|
19757
19744
|
* @param options - Optional options to Blob Delete operation.
|
19758
19745
|
*/
|
@@ -19774,7 +19761,7 @@ class BlobClient extends StorageClient {
|
|
19774
19761
|
* during garbage collection. Note that in order to delete a blob, you must delete
|
19775
19762
|
* all of its snapshots. You can delete both at the same time with the Delete
|
19776
19763
|
* Blob operation.
|
19777
|
-
* @see https://
|
19764
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-blob
|
19778
19765
|
*
|
19779
19766
|
* @param options - Optional options to Blob Delete operation.
|
19780
19767
|
*/
|
@@ -19797,7 +19784,7 @@ class BlobClient extends StorageClient {
|
|
19797
19784
|
* Restores the contents and metadata of soft deleted blob and any associated
|
19798
19785
|
* soft deleted snapshots. Undelete Blob is supported only on version 2017-07-29
|
19799
19786
|
* or later.
|
19800
|
-
* @see https://
|
19787
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/undelete-blob
|
19801
19788
|
*
|
19802
19789
|
* @param options - Optional options to Blob Undelete operation.
|
19803
19790
|
*/
|
@@ -19814,7 +19801,7 @@ class BlobClient extends StorageClient {
|
|
19814
19801
|
*
|
19815
19802
|
* If no value provided, or no value provided for the specified blob HTTP headers,
|
19816
19803
|
* these blob HTTP headers without a value will be cleared.
|
19817
|
-
* @see https://
|
19804
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-properties
|
19818
19805
|
*
|
19819
19806
|
* @param blobHTTPHeaders - If no value provided, or no value provided for
|
19820
19807
|
* the specified blob HTTP headers, these blob HTTP
|
@@ -19844,7 +19831,7 @@ class BlobClient extends StorageClient {
|
|
19844
19831
|
*
|
19845
19832
|
* If no option provided, or no metadata defined in the parameter, the blob
|
19846
19833
|
* metadata will be removed.
|
19847
|
-
* @see https://
|
19834
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-metadata
|
19848
19835
|
*
|
19849
19836
|
* @param metadata - Replace existing metadata with this value.
|
19850
19837
|
* If no value provided the existing metadata will be removed.
|
@@ -19916,7 +19903,7 @@ class BlobClient extends StorageClient {
|
|
19916
19903
|
}
|
19917
19904
|
/**
|
19918
19905
|
* Creates a read-only snapshot of a blob.
|
19919
|
-
* @see https://
|
19906
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/snapshot-blob
|
19920
19907
|
*
|
19921
19908
|
* @param options - Optional options to the Blob Create Snapshot operation.
|
19922
19909
|
*/
|
@@ -19950,7 +19937,7 @@ class BlobClient extends StorageClient {
|
|
19950
19937
|
* an Azure file in any Azure storage account.
|
19951
19938
|
* Only storage accounts created on or after June 7th, 2012 allow the Copy Blob
|
19952
19939
|
* operation to copy from another storage account.
|
19953
|
-
* @see https://
|
19940
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/copy-blob
|
19954
19941
|
*
|
19955
19942
|
* Example using automatic polling:
|
19956
19943
|
*
|
@@ -20030,7 +20017,7 @@ class BlobClient extends StorageClient {
|
|
20030
20017
|
/**
|
20031
20018
|
* Aborts a pending asynchronous Copy Blob operation, and leaves a destination blob with zero
|
20032
20019
|
* length and full metadata. Version 2012-02-12 and newer.
|
20033
|
-
* @see https://
|
20020
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/abort-copy-blob
|
20034
20021
|
*
|
20035
20022
|
* @param copyId - Id of the Copy From URL operation.
|
20036
20023
|
* @param options - Optional options to the Blob Abort Copy From URL operation.
|
@@ -20047,7 +20034,7 @@ class BlobClient extends StorageClient {
|
|
20047
20034
|
/**
|
20048
20035
|
* The synchronous Copy From URL operation copies a blob or an internet resource to a new blob. It will not
|
20049
20036
|
* return a response until the copy is complete.
|
20050
|
-
* @see https://
|
20037
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/copy-blob-from-url
|
20051
20038
|
*
|
20052
20039
|
* @param copySource - The source URL to copy from, Shared Access Signature(SAS) maybe needed for authentication
|
20053
20040
|
* @param options -
|
@@ -20087,7 +20074,7 @@ class BlobClient extends StorageClient {
|
|
20087
20074
|
* storage only). A premium page blob's tier determines the allowed size, IOPS,
|
20088
20075
|
* and bandwidth of the blob. A block blob's tier determines Hot/Cool/Archive
|
20089
20076
|
* storage type. This operation does not update the blob's ETag.
|
20090
|
-
* @see https://
|
20077
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-tier
|
20091
20078
|
*
|
20092
20079
|
* @param tier - The tier to be set on the blob. Valid values are Hot, Cool, or Archive.
|
20093
20080
|
* @param options - Optional options to the Blob Set Tier operation.
|
@@ -20272,7 +20259,7 @@ class BlobClient extends StorageClient {
|
|
20272
20259
|
* an Azure file in any Azure storage account.
|
20273
20260
|
* Only storage accounts created on or after June 7th, 2012 allow the Copy Blob
|
20274
20261
|
* operation to copy from another storage account.
|
20275
|
-
* @see https://
|
20262
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/copy-blob
|
20276
20263
|
*
|
20277
20264
|
* @param copySource - url to the source Azure Blob/File.
|
20278
20265
|
* @param options - Optional options to the Blob Start Copy From URL operation.
|
@@ -20311,7 +20298,7 @@ class BlobClient extends StorageClient {
|
|
20311
20298
|
* Generates a Blob Service Shared Access Signature (SAS) URI based on the client properties
|
20312
20299
|
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
20313
20300
|
*
|
20314
|
-
* @see https://
|
20301
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
|
20315
20302
|
*
|
20316
20303
|
* @param options - Optional parameters.
|
20317
20304
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
@@ -20331,7 +20318,7 @@ class BlobClient extends StorageClient {
|
|
20331
20318
|
* Generates string to sign for a Blob Service Shared Access Signature (SAS) URI based on
|
20332
20319
|
* the client properties and parameters passed in. The SAS is signed by the shared key credential of the client.
|
20333
20320
|
*
|
20334
|
-
* @see https://
|
20321
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
|
20335
20322
|
*
|
20336
20323
|
* @param options - Optional parameters.
|
20337
20324
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
@@ -20348,7 +20335,7 @@ class BlobClient extends StorageClient {
|
|
20348
20335
|
* Generates a Blob Service Shared Access Signature (SAS) URI based on
|
20349
20336
|
* the client properties and parameters passed in. The SAS is signed by the input user delegation key.
|
20350
20337
|
*
|
20351
|
-
* @see https://
|
20338
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
|
20352
20339
|
*
|
20353
20340
|
* @param options - Optional parameters.
|
20354
20341
|
* @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
|
@@ -20366,13 +20353,12 @@ class BlobClient extends StorageClient {
|
|
20366
20353
|
* Generates string to sign for a Blob Service Shared Access Signature (SAS) URI based on
|
20367
20354
|
* the client properties and parameters passed in. The SAS is signed by the input user delegation key.
|
20368
20355
|
*
|
20369
|
-
* @see https://
|
20356
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
|
20370
20357
|
*
|
20371
20358
|
* @param options - Optional parameters.
|
20372
20359
|
* @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
|
20373
20360
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
20374
20361
|
*/
|
20375
|
-
/* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/
|
20376
20362
|
generateUserDelegationSasStringToSign(options, userDelegationKey) {
|
20377
20363
|
return generateBlobSASQueryParametersInternal(Object.assign({ containerName: this._containerName, blobName: this._name, snapshotTime: this._snapshot, versionId: this._versionId }, options), userDelegationKey, this.accountName).stringToSign;
|
20378
20364
|
}
|
@@ -20419,7 +20405,7 @@ class BlobClient extends StorageClient {
|
|
20419
20405
|
* for the specified account.
|
20420
20406
|
* The Get Account Information operation is available on service versions beginning
|
20421
20407
|
* with version 2018-03-28.
|
20422
|
-
* @see https://
|
20408
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-account-information
|
20423
20409
|
*
|
20424
20410
|
* @param options - Options to the Service Get Account Info operation.
|
20425
20411
|
* @returns Response data for the Service Get Account Info operation.
|
@@ -20517,7 +20503,7 @@ class AppendBlobClient extends BlobClient {
|
|
20517
20503
|
}
|
20518
20504
|
/**
|
20519
20505
|
* Creates a 0-length append blob. Call AppendBlock to append data to an append blob.
|
20520
|
-
* @see https://
|
20506
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/put-blob
|
20521
20507
|
*
|
20522
20508
|
* @param options - Options to the Append Block Create operation.
|
20523
20509
|
*
|
@@ -20553,7 +20539,7 @@ class AppendBlobClient extends BlobClient {
|
|
20553
20539
|
/**
|
20554
20540
|
* Creates a 0-length append blob. Call AppendBlock to append data to an append blob.
|
20555
20541
|
* If the blob with the same name already exists, the content of the existing blob will remain unchanged.
|
20556
|
-
* @see https://
|
20542
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/put-blob
|
20557
20543
|
*
|
20558
20544
|
* @param options -
|
20559
20545
|
*/
|
@@ -20593,7 +20579,7 @@ class AppendBlobClient extends BlobClient {
|
|
20593
20579
|
}
|
20594
20580
|
/**
|
20595
20581
|
* Commits a new block of data to the end of the existing append blob.
|
20596
|
-
* @see https://
|
20582
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/append-block
|
20597
20583
|
*
|
20598
20584
|
* @param body - Data to be appended.
|
20599
20585
|
* @param contentLength - Length of the body in bytes.
|
@@ -20639,7 +20625,7 @@ class AppendBlobClient extends BlobClient {
|
|
20639
20625
|
/**
|
20640
20626
|
* The Append Block operation commits a new block of data to the end of an existing append blob
|
20641
20627
|
* where the contents are read from a source url.
|
20642
|
-
* @see https://
|
20628
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/append-block-from-url
|
20643
20629
|
*
|
20644
20630
|
* @param sourceURL -
|
20645
20631
|
* The url to the blob that will be the source of the copy. A source blob in the same storage account can
|
@@ -20781,7 +20767,7 @@ class BlockBlobClient extends BlobClient {
|
|
20781
20767
|
* return new Promise((resolve, reject) => {
|
20782
20768
|
* const chunks = [];
|
20783
20769
|
* readableStream.on("data", (data) => {
|
20784
|
-
* chunks.push(data
|
20770
|
+
* chunks.push(typeof data === "string" ? Buffer.from(data) : data);
|
20785
20771
|
* });
|
20786
20772
|
* readableStream.on("end", () => {
|
20787
20773
|
* resolve(Buffer.concat(chunks));
|
@@ -20832,7 +20818,7 @@ class BlockBlobClient extends BlobClient {
|
|
20832
20818
|
* {@link uploadStream} or {@link uploadBrowserData} for better performance
|
20833
20819
|
* with concurrency uploading.
|
20834
20820
|
*
|
20835
|
-
* @see https://
|
20821
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/put-blob
|
20836
20822
|
*
|
20837
20823
|
* @param body - Blob, string, ArrayBuffer, ArrayBufferView or a function
|
20838
20824
|
* which returns a new Readable stream whose offset is from data source beginning.
|
@@ -20908,7 +20894,7 @@ class BlockBlobClient extends BlobClient {
|
|
20908
20894
|
/**
|
20909
20895
|
* Uploads the specified block to the block blob's "staging area" to be later
|
20910
20896
|
* committed by a call to commitBlockList.
|
20911
|
-
* @see https://
|
20897
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/put-block
|
20912
20898
|
*
|
20913
20899
|
* @param blockId - A 64-byte value that is base64-encoded
|
20914
20900
|
* @param body - Data to upload to the staging area.
|
@@ -20937,7 +20923,7 @@ class BlockBlobClient extends BlobClient {
|
|
20937
20923
|
* The Stage Block From URL operation creates a new block to be committed as part
|
20938
20924
|
* of a blob where the contents are read from a URL.
|
20939
20925
|
* This API is available starting in version 2018-03-28.
|
20940
|
-
* @see https://
|
20926
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/put-block-from-url
|
20941
20927
|
*
|
20942
20928
|
* @param blockId - A 64-byte value that is base64-encoded
|
20943
20929
|
* @param sourceURL - Specifies the URL of the blob. The value
|
@@ -20976,7 +20962,7 @@ class BlockBlobClient extends BlobClient {
|
|
20976
20962
|
* to the server in a prior {@link stageBlock} operation. You can call {@link commitBlockList} to
|
20977
20963
|
* update a blob by uploading only those blocks that have changed, then committing the new and existing
|
20978
20964
|
* blocks together. Any blocks not specified in the block list and permanently deleted.
|
20979
|
-
* @see https://
|
20965
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/put-block-list
|
20980
20966
|
*
|
20981
20967
|
* @param blocks - Array of 64-byte value that is base64-encoded
|
20982
20968
|
* @param options - Options to the Block Blob Commit Block List operation.
|
@@ -21007,7 +20993,7 @@ class BlockBlobClient extends BlobClient {
|
|
21007
20993
|
/**
|
21008
20994
|
* Returns the list of blocks that have been uploaded as part of a block blob
|
21009
20995
|
* using the specified block list filter.
|
21010
|
-
* @see https://
|
20996
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-block-list
|
21011
20997
|
*
|
21012
20998
|
* @param listType - Specifies whether to return the list of committed blocks,
|
21013
20999
|
* the list of uncommitted blocks, or both lists together.
|
@@ -21341,7 +21327,7 @@ class PageBlobClient extends BlobClient {
|
|
21341
21327
|
/**
|
21342
21328
|
* Creates a page blob of the specified length. Call uploadPages to upload data
|
21343
21329
|
* data to a page blob.
|
21344
|
-
* @see https://
|
21330
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/put-blob
|
21345
21331
|
*
|
21346
21332
|
* @param size - size of the page blob.
|
21347
21333
|
* @param options - Options to the Page Blob Create operation.
|
@@ -21374,7 +21360,7 @@ class PageBlobClient extends BlobClient {
|
|
21374
21360
|
* Creates a page blob of the specified length. Call uploadPages to upload data
|
21375
21361
|
* data to a page blob. If the blob with the same name already exists, the content
|
21376
21362
|
* of the existing blob will remain unchanged.
|
21377
|
-
* @see https://
|
21363
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/put-blob
|
21378
21364
|
*
|
21379
21365
|
* @param size - size of the page blob.
|
21380
21366
|
* @param options -
|
@@ -21397,7 +21383,7 @@ class PageBlobClient extends BlobClient {
|
|
21397
21383
|
}
|
21398
21384
|
/**
|
21399
21385
|
* Writes 1 or more pages to the page blob. The start and end offsets must be a multiple of 512.
|
21400
|
-
* @see https://
|
21386
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/put-page
|
21401
21387
|
*
|
21402
21388
|
* @param body - Data to upload
|
21403
21389
|
* @param offset - Offset of destination page blob
|
@@ -21430,7 +21416,7 @@ class PageBlobClient extends BlobClient {
|
|
21430
21416
|
/**
|
21431
21417
|
* The Upload Pages operation writes a range of pages to a page blob where the
|
21432
21418
|
* contents are read from a URL.
|
21433
|
-
* @see https://
|
21419
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/put-page-from-url
|
21434
21420
|
*
|
21435
21421
|
* @param sourceURL - Specify a URL to the copy source, Shared Access Signature(SAS) maybe needed for authentication
|
21436
21422
|
* @param sourceOffset - The source offset to copy from. Pass 0 to copy from the beginning of source page blob
|
@@ -21466,7 +21452,7 @@ class PageBlobClient extends BlobClient {
|
|
21466
21452
|
}
|
21467
21453
|
/**
|
21468
21454
|
* Frees the specified pages from the page blob.
|
21469
|
-
* @see https://
|
21455
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/put-page
|
21470
21456
|
*
|
21471
21457
|
* @param offset - Starting byte position of the pages to clear.
|
21472
21458
|
* @param count - Number of bytes to clear.
|
@@ -21491,7 +21477,7 @@ class PageBlobClient extends BlobClient {
|
|
21491
21477
|
}
|
21492
21478
|
/**
|
21493
21479
|
* Returns the list of valid page ranges for a page blob or snapshot of a page blob.
|
21494
|
-
* @see https://
|
21480
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-page-ranges
|
21495
21481
|
*
|
21496
21482
|
* @param offset - Starting byte position of the page ranges.
|
21497
21483
|
* @param count - Number of bytes to get.
|
@@ -21517,7 +21503,7 @@ class PageBlobClient extends BlobClient {
|
|
21517
21503
|
* specified Marker. Use an empty Marker to start enumeration from the beginning.
|
21518
21504
|
* After getting a segment, process it, and then call getPageRangesSegment again
|
21519
21505
|
* (passing the the previously-returned Marker) to get the next segment.
|
21520
|
-
* @see https://
|
21506
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-page-ranges
|
21521
21507
|
*
|
21522
21508
|
* @param offset - Starting byte position of the page ranges.
|
21523
21509
|
* @param count - Number of bytes to get.
|
@@ -21594,7 +21580,7 @@ class PageBlobClient extends BlobClient {
|
|
21594
21580
|
}
|
21595
21581
|
/**
|
21596
21582
|
* Returns an async iterable iterator to list of page ranges for a page blob.
|
21597
|
-
* @see https://
|
21583
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-page-ranges
|
21598
21584
|
*
|
21599
21585
|
* .byPage() returns an async iterable iterator to list of page ranges for a page blob.
|
21600
21586
|
*
|
@@ -21690,7 +21676,7 @@ class PageBlobClient extends BlobClient {
|
|
21690
21676
|
}
|
21691
21677
|
/**
|
21692
21678
|
* Gets the collection of page ranges that differ between a specified snapshot and this page blob.
|
21693
|
-
* @see https://
|
21679
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-page-ranges
|
21694
21680
|
*
|
21695
21681
|
* @param offset - Starting byte position of the page blob
|
21696
21682
|
* @param count - Number of bytes to get ranges diff.
|
@@ -21719,7 +21705,7 @@ class PageBlobClient extends BlobClient {
|
|
21719
21705
|
* Use an empty Marker to start enumeration from the beginning.
|
21720
21706
|
* After getting a segment, process it, and then call getPageRangesDiffSegment again
|
21721
21707
|
* (passing the the previously-returned Marker) to get the next segment.
|
21722
|
-
* @see https://
|
21708
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-page-ranges
|
21723
21709
|
*
|
21724
21710
|
* @param offset - Starting byte position of the page ranges.
|
21725
21711
|
* @param count - Number of bytes to get.
|
@@ -21804,7 +21790,7 @@ class PageBlobClient extends BlobClient {
|
|
21804
21790
|
}
|
21805
21791
|
/**
|
21806
21792
|
* Returns an async iterable iterator to list of page ranges that differ between a specified snapshot and this page blob.
|
21807
|
-
* @see https://
|
21793
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-page-ranges
|
21808
21794
|
*
|
21809
21795
|
* .byPage() returns an async iterable iterator to list of page ranges that differ between a specified snapshot and this page blob.
|
21810
21796
|
*
|
@@ -21901,7 +21887,7 @@ class PageBlobClient extends BlobClient {
|
|
21901
21887
|
}
|
21902
21888
|
/**
|
21903
21889
|
* Gets the collection of page ranges that differ between a specified snapshot and this page blob for managed disks.
|
21904
|
-
* @see https://
|
21890
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-page-ranges
|
21905
21891
|
*
|
21906
21892
|
* @param offset - Starting byte position of the page blob
|
21907
21893
|
* @param count - Number of bytes to get ranges diff.
|
@@ -21926,7 +21912,7 @@ class PageBlobClient extends BlobClient {
|
|
21926
21912
|
}
|
21927
21913
|
/**
|
21928
21914
|
* Resizes the page blob to the specified size (which must be a multiple of 512).
|
21929
|
-
* @see https://
|
21915
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-blob-properties
|
21930
21916
|
*
|
21931
21917
|
* @param size - Target size
|
21932
21918
|
* @param options - Options to the Page Blob Resize operation.
|
@@ -21947,7 +21933,7 @@ class PageBlobClient extends BlobClient {
|
|
21947
21933
|
}
|
21948
21934
|
/**
|
21949
21935
|
* Sets a page blob's sequence number.
|
21950
|
-
* @see https://
|
21936
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-properties
|
21951
21937
|
*
|
21952
21938
|
* @param sequenceNumberAction - Indicates how the service should modify the blob's sequence number.
|
21953
21939
|
* @param sequenceNumber - Required if sequenceNumberAction is max or update
|
@@ -21972,8 +21958,8 @@ class PageBlobClient extends BlobClient {
|
|
21972
21958
|
* The snapshot is copied such that only the differential changes between the previously
|
21973
21959
|
* copied snapshot are transferred to the destination.
|
21974
21960
|
* The copied snapshots are complete copies of the original snapshot and can be read or copied from as usual.
|
21975
|
-
* @see https://
|
21976
|
-
* @see https://
|
21961
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/incremental-copy-blob
|
21962
|
+
* @see https://learn.microsoft.com/en-us/azure/virtual-machines/windows/incremental-snapshots
|
21977
21963
|
*
|
21978
21964
|
* @param copySource - Specifies the name of the source page blob snapshot. For example,
|
21979
21965
|
* https://myaccount.blob.core.windows.net/mycontainer/myblob?snapshot=<DateTime>
|
@@ -22029,7 +22015,7 @@ class BatchResponseParser {
|
|
22029
22015
|
this.perResponsePrefix = `--${this.responseBatchBoundary}${HTTP_LINE_ENDING}`;
|
22030
22016
|
this.batchResponseEnding = `--${this.responseBatchBoundary}--`;
|
22031
22017
|
}
|
22032
|
-
// For example of response, please refer to https://
|
22018
|
+
// For example of response, please refer to https://learn.microsoft.com/en-us/rest/api/storageservices/blob-batch#response
|
22033
22019
|
async parseBatchResponse() {
|
22034
22020
|
// When logic reach here, suppose batch request has already succeeded with 202, so we can further parse
|
22035
22021
|
// sub request's response.
|
@@ -22324,7 +22310,7 @@ class BlobBatch {
|
|
22324
22310
|
}
|
22325
22311
|
/**
|
22326
22312
|
* Inner batch request class which is responsible for assembling and serializing sub requests.
|
22327
|
-
* See https://
|
22313
|
+
* See https://learn.microsoft.com/en-us/rest/api/storageservices/blob-batch#request-body for how requests are assembled.
|
22328
22314
|
*/
|
22329
22315
|
class InnerBatchRequest {
|
22330
22316
|
constructor() {
|
@@ -22459,7 +22445,7 @@ function batchHeaderFilterPolicy() {
|
|
22459
22445
|
/**
|
22460
22446
|
* A BlobBatchClient allows you to make batched requests to the Azure Storage Blob service.
|
22461
22447
|
*
|
22462
|
-
* @see https://
|
22448
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/blob-batch
|
22463
22449
|
*/
|
22464
22450
|
class BlobBatchClient {
|
22465
22451
|
constructor(url, credentialOrPipeline,
|
@@ -22554,7 +22540,7 @@ class BlobBatchClient {
|
|
22554
22540
|
* console.log(batchResp.subResponsesSucceededCount);
|
22555
22541
|
* ```
|
22556
22542
|
*
|
22557
|
-
* @see https://
|
22543
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/blob-batch
|
22558
22544
|
*
|
22559
22545
|
* @param batchRequest - A set of Delete or SetTier operations.
|
22560
22546
|
* @param options -
|
@@ -22661,7 +22647,7 @@ class ContainerClient extends StorageClient {
|
|
22661
22647
|
/**
|
22662
22648
|
* Creates a new container under the specified account. If the container with
|
22663
22649
|
* the same name already exists, the operation fails.
|
22664
|
-
* @see https://
|
22650
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-container
|
22665
22651
|
* Naming rules: @see https://learn.microsoft.com/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata
|
22666
22652
|
*
|
22667
22653
|
* @param options - Options to Container Create operation.
|
@@ -22683,7 +22669,7 @@ class ContainerClient extends StorageClient {
|
|
22683
22669
|
/**
|
22684
22670
|
* Creates a new container under the specified account. If the container with
|
22685
22671
|
* the same name already exists, it is not changed.
|
22686
|
-
* @see https://
|
22672
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-container
|
22687
22673
|
* Naming rules: @see https://learn.microsoft.com/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata
|
22688
22674
|
*
|
22689
22675
|
* @param options -
|
@@ -22777,7 +22763,7 @@ class ContainerClient extends StorageClient {
|
|
22777
22763
|
/**
|
22778
22764
|
* Returns all user-defined metadata and system properties for the specified
|
22779
22765
|
* container. The data returned does not include the container's list of blobs.
|
22780
|
-
* @see https://
|
22766
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-container-properties
|
22781
22767
|
*
|
22782
22768
|
* WARNING: The `metadata` object returned in the response will have its keys in lowercase, even if
|
22783
22769
|
* they originally contained uppercase characters. This differs from the metadata keys returned by
|
@@ -22797,7 +22783,7 @@ class ContainerClient extends StorageClient {
|
|
22797
22783
|
/**
|
22798
22784
|
* Marks the specified container for deletion. The container and any blobs
|
22799
22785
|
* contained within it are later deleted during garbage collection.
|
22800
|
-
* @see https://
|
22786
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-container
|
22801
22787
|
*
|
22802
22788
|
* @param options - Options to Container Delete operation.
|
22803
22789
|
*/
|
@@ -22817,7 +22803,7 @@ class ContainerClient extends StorageClient {
|
|
22817
22803
|
/**
|
22818
22804
|
* Marks the specified container for deletion if it exists. The container and any blobs
|
22819
22805
|
* contained within it are later deleted during garbage collection.
|
22820
|
-
* @see https://
|
22806
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-container
|
22821
22807
|
*
|
22822
22808
|
* @param options - Options to Container Delete operation.
|
22823
22809
|
*/
|
@@ -22842,7 +22828,7 @@ class ContainerClient extends StorageClient {
|
|
22842
22828
|
* If no option provided, or no metadata defined in the parameter, the container
|
22843
22829
|
* metadata will be removed.
|
22844
22830
|
*
|
22845
|
-
* @see https://
|
22831
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-container-metadata
|
22846
22832
|
*
|
22847
22833
|
* @param metadata - Replace existing metadata with this value.
|
22848
22834
|
* If no value provided the existing metadata will be removed.
|
@@ -22872,7 +22858,7 @@ class ContainerClient extends StorageClient {
|
|
22872
22858
|
* WARNING: JavaScript Date will potentially lose precision when parsing startsOn and expiresOn strings.
|
22873
22859
|
* For example, new Date("2018-12-31T03:44:23.8827891Z").toISOString() will get "2018-12-31T03:44:23.882Z".
|
22874
22860
|
*
|
22875
|
-
* @see https://
|
22861
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-container-acl
|
22876
22862
|
*
|
22877
22863
|
* @param options - Options to Container Get Access Policy operation.
|
22878
22864
|
*/
|
@@ -22930,7 +22916,7 @@ class ContainerClient extends StorageClient {
|
|
22930
22916
|
* When you establish a stored access policy on a container, it may take up to 30 seconds to take effect.
|
22931
22917
|
* During this interval, a shared access signature that is associated with the stored access policy will
|
22932
22918
|
* fail with status code 403 (Forbidden), until the access policy becomes active.
|
22933
|
-
* @see https://
|
22919
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-container-acl
|
22934
22920
|
*
|
22935
22921
|
* @param access - The level of public access to data in the container.
|
22936
22922
|
* @param containerAcl - Array of elements each having a unique Id and details of the access policy.
|
@@ -22985,7 +22971,7 @@ class ContainerClient extends StorageClient {
|
|
22985
22971
|
* {@link BlockBlobClient.uploadStream} or {@link BlockBlobClient.uploadBrowserData} for better
|
22986
22972
|
* performance with concurrency uploading.
|
22987
22973
|
*
|
22988
|
-
* @see https://
|
22974
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/put-blob
|
22989
22975
|
*
|
22990
22976
|
* @param blobName - Name of the block blob to create or update.
|
22991
22977
|
* @param body - Blob, string, ArrayBuffer, ArrayBufferView or a function
|
@@ -23010,7 +22996,7 @@ class ContainerClient extends StorageClient {
|
|
23010
22996
|
* during garbage collection. Note that in order to delete a blob, you must delete
|
23011
22997
|
* all of its snapshots. You can delete both at the same time with the Delete
|
23012
22998
|
* Blob operation.
|
23013
|
-
* @see https://
|
22999
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-blob
|
23014
23000
|
*
|
23015
23001
|
* @param blobName -
|
23016
23002
|
* @param options - Options to Blob Delete operation.
|
@@ -23030,7 +23016,7 @@ class ContainerClient extends StorageClient {
|
|
23030
23016
|
* specified Marker. Use an empty Marker to start enumeration from the beginning.
|
23031
23017
|
* After getting a segment, process it, and then call listBlobsFlatSegment again
|
23032
23018
|
* (passing the the previously-returned Marker) to get the next segment.
|
23033
|
-
* @see https://
|
23019
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/list-blobs
|
23034
23020
|
*
|
23035
23021
|
* @param marker - A string value that identifies the portion of the list to be returned with the next list operation.
|
23036
23022
|
* @param options - Options to Container List Blob Flat Segment operation.
|
@@ -23050,7 +23036,7 @@ class ContainerClient extends StorageClient {
|
|
23050
23036
|
* the specified Marker. Use an empty Marker to start enumeration from the
|
23051
23037
|
* beginning. After getting a segment, process it, and then call listBlobsHierarchicalSegment
|
23052
23038
|
* again (passing the the previously-returned Marker) to get the next segment.
|
23053
|
-
* @see https://
|
23039
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/list-blobs
|
23054
23040
|
*
|
23055
23041
|
* @param delimiter - The character or string used to define the virtual hierarchy
|
23056
23042
|
* @param marker - A string value that identifies the portion of the list to be returned with the next list operation.
|
@@ -23652,7 +23638,7 @@ class ContainerClient extends StorageClient {
|
|
23652
23638
|
* for the specified account.
|
23653
23639
|
* The Get Account Information operation is available on service versions beginning
|
23654
23640
|
* with version 2018-03-28.
|
23655
|
-
* @see https://
|
23641
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-account-information
|
23656
23642
|
*
|
23657
23643
|
* @param options - Options to the Service Get Account Info operation.
|
23658
23644
|
* @returns Response data for the Service Get Account Info operation.
|
@@ -23708,7 +23694,7 @@ class ContainerClient extends StorageClient {
|
|
23708
23694
|
* Generates a Blob Container Service Shared Access Signature (SAS) URI based on the client properties
|
23709
23695
|
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
23710
23696
|
*
|
23711
|
-
* @see https://
|
23697
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
|
23712
23698
|
*
|
23713
23699
|
* @param options - Optional parameters.
|
23714
23700
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
@@ -23728,7 +23714,7 @@ class ContainerClient extends StorageClient {
|
|
23728
23714
|
* Generates string to sign for a Blob Container Service Shared Access Signature (SAS) URI
|
23729
23715
|
* based on the client properties and parameters passed in. The SAS is signed by the shared key credential of the client.
|
23730
23716
|
*
|
23731
|
-
* @see https://
|
23717
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
|
23732
23718
|
*
|
23733
23719
|
* @param options - Optional parameters.
|
23734
23720
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
@@ -23744,7 +23730,7 @@ class ContainerClient extends StorageClient {
|
|
23744
23730
|
* Generates a Blob Container Service Shared Access Signature (SAS) URI based on the client properties
|
23745
23731
|
* and parameters passed in. The SAS is signed by the input user delegation key.
|
23746
23732
|
*
|
23747
|
-
* @see https://
|
23733
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
|
23748
23734
|
*
|
23749
23735
|
* @param options - Optional parameters.
|
23750
23736
|
* @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
|
@@ -23760,20 +23746,19 @@ class ContainerClient extends StorageClient {
|
|
23760
23746
|
* Generates string to sign for a Blob Container Service Shared Access Signature (SAS) URI
|
23761
23747
|
* based on the client properties and parameters passed in. The SAS is signed by the input user delegation key.
|
23762
23748
|
*
|
23763
|
-
* @see https://
|
23749
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
|
23764
23750
|
*
|
23765
23751
|
* @param options - Optional parameters.
|
23766
23752
|
* @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
|
23767
23753
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
23768
23754
|
*/
|
23769
|
-
/* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/
|
23770
23755
|
generateUserDelegationSasStringToSign(options, userDelegationKey) {
|
23771
23756
|
return generateBlobSASQueryParametersInternal(Object.assign({ containerName: this._containerName }, options), userDelegationKey, this.accountName).stringToSign;
|
23772
23757
|
}
|
23773
23758
|
/**
|
23774
23759
|
* Creates a BlobBatchClient object to conduct batch operations.
|
23775
23760
|
*
|
23776
|
-
* @see https://
|
23761
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/blob-batch
|
23777
23762
|
*
|
23778
23763
|
* @returns A new BlobBatchClient object for this container.
|
23779
23764
|
*/
|
@@ -23958,12 +23943,12 @@ class AccountSASPermissions {
|
|
23958
23943
|
* Using this method will guarantee the resource types are in
|
23959
23944
|
* an order accepted by the service.
|
23960
23945
|
*
|
23961
|
-
* @see https://
|
23946
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-an-account-sas
|
23962
23947
|
*
|
23963
23948
|
*/
|
23964
23949
|
toString() {
|
23965
23950
|
// The order of the characters should be as specified here to ensure correctness:
|
23966
|
-
// https://
|
23951
|
+
// https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-an-account-sas
|
23967
23952
|
// Use a string array instead of string concatenating += operator for performance
|
23968
23953
|
const permissions = [];
|
23969
23954
|
if (this.read) {
|
@@ -24063,7 +24048,7 @@ class AccountSASResourceTypes {
|
|
24063
24048
|
/**
|
24064
24049
|
* Converts the given resource types to a string.
|
24065
24050
|
*
|
24066
|
-
* @see https://
|
24051
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-an-account-sas
|
24067
24052
|
*
|
24068
24053
|
*/
|
24069
24054
|
toString() {
|
@@ -24169,7 +24154,7 @@ class AccountSASServices {
|
|
24169
24154
|
* Generates a {@link SASQueryParameters} object which contains all SAS query parameters needed to make an actual
|
24170
24155
|
* REST request.
|
24171
24156
|
*
|
24172
|
-
* @see https://
|
24157
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-an-account-sas
|
24173
24158
|
*
|
24174
24159
|
* @param accountSASSignatureValues -
|
24175
24160
|
* @param sharedKeyCredential -
|
@@ -24334,7 +24319,7 @@ class BlobServiceClient extends StorageClient {
|
|
24334
24319
|
return new ContainerClient(appendToURLPath(this.url, encodeURIComponent(containerName)), this.pipeline);
|
24335
24320
|
}
|
24336
24321
|
/**
|
24337
|
-
* Create a Blob container. @see https://
|
24322
|
+
* Create a Blob container. @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-container
|
24338
24323
|
*
|
24339
24324
|
* @param containerName - Name of the container to create.
|
24340
24325
|
* @param options - Options to configure Container Create operation.
|
@@ -24407,7 +24392,7 @@ class BlobServiceClient extends StorageClient {
|
|
24407
24392
|
/**
|
24408
24393
|
* Gets the properties of a storage account’s Blob service, including properties
|
24409
24394
|
* for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.
|
24410
|
-
* @see https://
|
24395
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-blob-service-properties
|
24411
24396
|
*
|
24412
24397
|
* @param options - Options to the Service Get Properties operation.
|
24413
24398
|
* @returns Response data for the Service Get Properties operation.
|
@@ -24423,7 +24408,7 @@ class BlobServiceClient extends StorageClient {
|
|
24423
24408
|
/**
|
24424
24409
|
* Sets properties for a storage account’s Blob service endpoint, including properties
|
24425
24410
|
* for Storage Analytics, CORS (Cross-Origin Resource Sharing) rules and soft delete settings.
|
24426
|
-
* @see https://
|
24411
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-service-properties
|
24427
24412
|
*
|
24428
24413
|
* @param properties -
|
24429
24414
|
* @param options - Options to the Service Set Properties operation.
|
@@ -24441,7 +24426,7 @@ class BlobServiceClient extends StorageClient {
|
|
24441
24426
|
* Retrieves statistics related to replication for the Blob service. It is only
|
24442
24427
|
* available on the secondary location endpoint when read-access geo-redundant
|
24443
24428
|
* replication is enabled for the storage account.
|
24444
|
-
* @see https://
|
24429
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-blob-service-stats
|
24445
24430
|
*
|
24446
24431
|
* @param options - Options to the Service Get Statistics operation.
|
24447
24432
|
* @returns Response data for the Service Get Statistics operation.
|
@@ -24459,7 +24444,7 @@ class BlobServiceClient extends StorageClient {
|
|
24459
24444
|
* for the specified account.
|
24460
24445
|
* The Get Account Information operation is available on service versions beginning
|
24461
24446
|
* with version 2018-03-28.
|
24462
|
-
* @see https://
|
24447
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-account-information
|
24463
24448
|
*
|
24464
24449
|
* @param options - Options to the Service Get Account Info operation.
|
24465
24450
|
* @returns Response data for the Service Get Account Info operation.
|
@@ -24474,7 +24459,7 @@ class BlobServiceClient extends StorageClient {
|
|
24474
24459
|
}
|
24475
24460
|
/**
|
24476
24461
|
* Returns a list of the containers under the specified account.
|
24477
|
-
* @see https://
|
24462
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/list-containers2
|
24478
24463
|
*
|
24479
24464
|
* @param marker - A string value that identifies the portion of
|
24480
24465
|
* the list of containers to be returned with the next listing operation. The
|
@@ -24594,7 +24579,7 @@ class BlobServiceClient extends StorageClient {
|
|
24594
24579
|
*
|
24595
24580
|
* .byPage() returns an async iterable iterator to list the blobs in pages.
|
24596
24581
|
*
|
24597
|
-
* @see https://
|
24582
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-blob-service-properties
|
24598
24583
|
*
|
24599
24584
|
* Example using `for await` syntax:
|
24600
24585
|
*
|
@@ -24862,7 +24847,7 @@ class BlobServiceClient extends StorageClient {
|
|
24862
24847
|
* Retrieves a user delegation key for the Blob service. This is only a valid operation when using
|
24863
24848
|
* bearer token authentication.
|
24864
24849
|
*
|
24865
|
-
* @see https://
|
24850
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-user-delegation-key
|
24866
24851
|
*
|
24867
24852
|
* @param startsOn - The start time for the user delegation SAS. Must be within 7 days of the current time
|
24868
24853
|
* @param expiresOn - The end time for the user delegation SAS. Must be within 7 days of the current time
|
@@ -24892,7 +24877,7 @@ class BlobServiceClient extends StorageClient {
|
|
24892
24877
|
/**
|
24893
24878
|
* Creates a BlobBatchClient object to conduct batch operations.
|
24894
24879
|
*
|
24895
|
-
* @see https://
|
24880
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/blob-batch
|
24896
24881
|
*
|
24897
24882
|
* @returns A new BlobBatchClient object for this service.
|
24898
24883
|
*/
|
@@ -24905,7 +24890,7 @@ class BlobServiceClient extends StorageClient {
|
|
24905
24890
|
* Generates a Blob account Shared Access Signature (SAS) URI based on the client properties
|
24906
24891
|
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
24907
24892
|
*
|
24908
|
-
* @see https://
|
24893
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-account-sas
|
24909
24894
|
*
|
24910
24895
|
* @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not provided.
|
24911
24896
|
* @param permissions - Specifies the list of permissions to be associated with the SAS.
|
@@ -24932,7 +24917,7 @@ class BlobServiceClient extends StorageClient {
|
|
24932
24917
|
* Generates string to sign for a Blob account Shared Access Signature (SAS) URI based on
|
24933
24918
|
* the client properties and parameters passed in. The SAS is signed by the shared key credential of the client.
|
24934
24919
|
*
|
24935
|
-
* @see https://
|
24920
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-account-sas
|
24936
24921
|
*
|
24937
24922
|
* @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not provided.
|
24938
24923
|
* @param permissions - Specifies the list of permissions to be associated with the SAS.
|