@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.
Files changed (90) hide show
  1. package/LICENSE +3 -3
  2. package/README.md +20 -22
  3. package/dist/index.js +121 -136
  4. package/dist/index.js.map +1 -1
  5. package/dist-esm/storage-blob/src/BatchResponse.js.map +1 -1
  6. package/dist-esm/storage-blob/src/BatchResponseParser.js +1 -1
  7. package/dist-esm/storage-blob/src/BatchResponseParser.js.map +1 -1
  8. package/dist-esm/storage-blob/src/BatchUtils.browser.js.map +1 -1
  9. package/dist-esm/storage-blob/src/BatchUtils.js.map +1 -1
  10. package/dist-esm/storage-blob/src/BlobBatch.js +1 -1
  11. package/dist-esm/storage-blob/src/BlobBatch.js.map +1 -1
  12. package/dist-esm/storage-blob/src/BlobBatchClient.js +3 -3
  13. package/dist-esm/storage-blob/src/BlobBatchClient.js.map +1 -1
  14. package/dist-esm/storage-blob/src/BlobDownloadResponse.js +1 -1
  15. package/dist-esm/storage-blob/src/BlobDownloadResponse.js.map +1 -1
  16. package/dist-esm/storage-blob/src/BlobLeaseClient.js +10 -10
  17. package/dist-esm/storage-blob/src/BlobLeaseClient.js.map +1 -1
  18. package/dist-esm/storage-blob/src/BlobQueryResponse.browser.js.map +1 -1
  19. package/dist-esm/storage-blob/src/BlobQueryResponse.js.map +1 -1
  20. package/dist-esm/storage-blob/src/BlobServiceClient.js +12 -14
  21. package/dist-esm/storage-blob/src/BlobServiceClient.js.map +1 -1
  22. package/dist-esm/storage-blob/src/Clients.js +58 -59
  23. package/dist-esm/storage-blob/src/Clients.js.map +1 -1
  24. package/dist-esm/storage-blob/src/ContainerClient.js +20 -21
  25. package/dist-esm/storage-blob/src/ContainerClient.js.map +1 -1
  26. package/dist-esm/storage-blob/src/PageBlobRangeResponse.js.map +1 -1
  27. package/dist-esm/storage-blob/src/Pipeline.js.map +1 -1
  28. package/dist-esm/storage-blob/src/Range.js.map +1 -1
  29. package/dist-esm/storage-blob/src/StorageBrowserPolicyFactory.js.map +1 -1
  30. package/dist-esm/storage-blob/src/StorageClient.js.map +1 -1
  31. package/dist-esm/storage-blob/src/StorageContextClient.js.map +1 -1
  32. package/dist-esm/storage-blob/src/StorageRetryPolicyFactory.js.map +1 -1
  33. package/dist-esm/storage-blob/src/credentials/AnonymousCredential.js.map +1 -1
  34. package/dist-esm/storage-blob/src/credentials/Credential.js.map +1 -1
  35. package/dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.js.map +1 -1
  36. package/dist-esm/storage-blob/src/credentials/UserDelegationKeyCredential.js +1 -1
  37. package/dist-esm/storage-blob/src/credentials/UserDelegationKeyCredential.js.map +1 -1
  38. package/dist-esm/storage-blob/src/generated/src/models/parameters.js +1 -1
  39. package/dist-esm/storage-blob/src/generated/src/models/parameters.js.map +1 -1
  40. package/dist-esm/storage-blob/src/generated/src/storageClient.js +2 -2
  41. package/dist-esm/storage-blob/src/generated/src/storageClient.js.map +1 -1
  42. package/dist-esm/storage-blob/src/generatedModels.js.map +1 -1
  43. package/dist-esm/storage-blob/src/models.js +2 -2
  44. package/dist-esm/storage-blob/src/models.js.map +1 -1
  45. package/dist-esm/storage-blob/src/policies/AnonymousCredentialPolicy.js.map +1 -1
  46. package/dist-esm/storage-blob/src/policies/CredentialPolicy.js.map +1 -1
  47. package/dist-esm/storage-blob/src/policies/RequestPolicy.js.map +1 -1
  48. package/dist-esm/storage-blob/src/policies/StorageBrowserPolicy.js.map +1 -1
  49. package/dist-esm/storage-blob/src/policies/StorageBrowserPolicyV2.js.map +1 -1
  50. package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.browser.js.map +1 -1
  51. package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.js.map +1 -1
  52. package/dist-esm/storage-blob/src/policies/StorageRetryPolicy.js.map +1 -1
  53. package/dist-esm/storage-blob/src/policies/StorageRetryPolicyV2.js +1 -1
  54. package/dist-esm/storage-blob/src/policies/StorageRetryPolicyV2.js.map +1 -1
  55. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js +2 -2
  56. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js.map +1 -1
  57. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.browser.js.map +1 -1
  58. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.js +2 -2
  59. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.js.map +1 -1
  60. package/dist-esm/storage-blob/src/pollers/BlobStartCopyFromUrlPoller.js.map +1 -1
  61. package/dist-esm/storage-blob/src/sas/AccountSASPermissions.js +2 -2
  62. package/dist-esm/storage-blob/src/sas/AccountSASPermissions.js.map +1 -1
  63. package/dist-esm/storage-blob/src/sas/AccountSASResourceTypes.js +1 -1
  64. package/dist-esm/storage-blob/src/sas/AccountSASResourceTypes.js.map +1 -1
  65. package/dist-esm/storage-blob/src/sas/AccountSASSignatureValues.js +1 -1
  66. package/dist-esm/storage-blob/src/sas/AccountSASSignatureValues.js.map +1 -1
  67. package/dist-esm/storage-blob/src/sas/BlobSASSignatureValues.js +1 -1
  68. package/dist-esm/storage-blob/src/sas/BlobSASSignatureValues.js.map +1 -1
  69. package/dist-esm/storage-blob/src/sas/ContainerSASPermissions.js +1 -1
  70. package/dist-esm/storage-blob/src/sas/ContainerSASPermissions.js.map +1 -1
  71. package/dist-esm/storage-blob/src/sas/SASQueryParameters.js.map +1 -1
  72. package/dist-esm/storage-blob/src/utils/BlobQuickQueryStream.js.map +1 -1
  73. package/dist-esm/storage-blob/src/utils/RetriableReadableStream.js.map +1 -1
  74. package/dist-esm/storage-blob/src/utils/cache.js.map +1 -1
  75. package/dist-esm/storage-blob/src/utils/constants.js +2 -2
  76. package/dist-esm/storage-blob/src/utils/constants.js.map +1 -1
  77. package/dist-esm/storage-blob/src/utils/utils.common.js +3 -3
  78. package/dist-esm/storage-blob/src/utils/utils.common.js.map +1 -1
  79. package/dist-esm/storage-blob/src/utils/utils.node.js +1 -1
  80. package/dist-esm/storage-blob/src/utils/utils.node.js.map +1 -1
  81. package/dist-esm/storage-internal-avro/src/AvroParser.js +1 -1
  82. package/dist-esm/storage-internal-avro/src/AvroParser.js.map +1 -1
  83. package/dist-esm/storage-internal-avro/src/AvroReadable.js.map +1 -1
  84. package/dist-esm/storage-internal-avro/src/AvroReadableFromBlob.js.map +1 -1
  85. package/dist-esm/storage-internal-avro/src/AvroReadableFromStream.js.map +1 -1
  86. package/dist-esm/storage-internal-avro/src/AvroReader.js.map +1 -1
  87. package/dist-esm/storage-internal-avro/src/utils/utils.common.js +0 -1
  88. package/dist-esm/storage-internal-avro/src/utils/utils.common.js.map +1 -1
  89. package/package.json +13 -17
  90. package/types/latest/storage-blob.d.ts +153 -153
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
3
  import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
4
- import { getDefaultProxySettings, } from "@azure/core-rest-pipeline";
4
+ import { getDefaultProxySettings } from "@azure/core-rest-pipeline";
5
5
  import { isTokenCredential } from "@azure/core-auth";
6
6
  import { isNode } from "@azure/core-util";
7
7
  import { randomUUID } from "@azure/core-util";
@@ -9,10 +9,10 @@ import { BlobDownloadResponse } from "./BlobDownloadResponse";
9
9
  import { BlobQueryResponse } from "./BlobQueryResponse";
10
10
  import { AnonymousCredential } from "./credentials/AnonymousCredential";
11
11
  import { StorageSharedKeyCredential } from "./credentials/StorageSharedKeyCredential";
12
- import { ensureCpkIfSpecified, toAccessTier, } from "./models";
13
- import { rangeResponseFromModel, } from "./PageBlobRangeResponse";
12
+ import { ensureCpkIfSpecified, toAccessTier } from "./models";
13
+ import { rangeResponseFromModel } from "./PageBlobRangeResponse";
14
14
  import { newPipeline, isPipelineLike } from "./Pipeline";
15
- import { BlobBeginCopyFromUrlPoller, } from "./pollers/BlobStartCopyFromUrlPoller";
15
+ import { BlobBeginCopyFromUrlPoller } from "./pollers/BlobStartCopyFromUrlPoller";
16
16
  import { rangeToString } from "./Range";
17
17
  import { StorageClient } from "./StorageClient";
18
18
  import { Batch } from "./utils/Batch";
@@ -160,7 +160,7 @@ export class BlobClient extends StorageClient {
160
160
  * * In Node.js, data returns in a Readable stream readableStreamBody
161
161
  * * In browsers, data returns in a promise blobBody
162
162
  *
163
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-blob
163
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-blob
164
164
  *
165
165
  * @param offset - From which position of the blob to download, greater than or equal to 0
166
166
  * @param count - How much data to be downloaded, greater than 0. Will download to the end when undefined
@@ -176,16 +176,16 @@ export class BlobClient extends StorageClient {
176
176
  * console.log("Downloaded blob content:", downloaded.toString());
177
177
  *
178
178
  * async function streamToBuffer(readableStream) {
179
- * return new Promise((resolve, reject) => {
180
- * const chunks = [];
181
- * readableStream.on("data", (data) => {
182
- * chunks.push(data instanceof Buffer ? data : Buffer.from(data));
183
- * });
184
- * readableStream.on("end", () => {
185
- * resolve(Buffer.concat(chunks));
186
- * });
187
- * readableStream.on("error", reject);
188
- * });
179
+ * return new Promise((resolve, reject) => {
180
+ * const chunks = [];
181
+ * readableStream.on("data", (data) => {
182
+ * chunks.push(typeof data === "string" ? Buffer.from(data) : data);
183
+ * });
184
+ * readableStream.on("end", () => {
185
+ * resolve(Buffer.concat(chunks));
186
+ * });
187
+ * readableStream.on("error", reject);
188
+ * });
189
189
  * }
190
190
  * ```
191
191
  *
@@ -324,7 +324,7 @@ export class BlobClient extends StorageClient {
324
324
  /**
325
325
  * Returns all user-defined metadata, standard HTTP properties, and system properties
326
326
  * for the blob. It does not return the content of the blob.
327
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-blob-properties
327
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-blob-properties
328
328
  *
329
329
  * WARNING: The `metadata` object returned in the response will have its keys in lowercase, even if
330
330
  * they originally contained uppercase characters. This differs from the metadata keys returned by
@@ -353,7 +353,7 @@ export class BlobClient extends StorageClient {
353
353
  * during garbage collection. Note that in order to delete a blob, you must delete
354
354
  * all of its snapshots. You can delete both at the same time with the Delete
355
355
  * Blob operation.
356
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/delete-blob
356
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-blob
357
357
  *
358
358
  * @param options - Optional options to Blob Delete operation.
359
359
  */
@@ -375,7 +375,7 @@ export class BlobClient extends StorageClient {
375
375
  * during garbage collection. Note that in order to delete a blob, you must delete
376
376
  * all of its snapshots. You can delete both at the same time with the Delete
377
377
  * Blob operation.
378
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/delete-blob
378
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-blob
379
379
  *
380
380
  * @param options - Optional options to Blob Delete operation.
381
381
  */
@@ -398,7 +398,7 @@ export class BlobClient extends StorageClient {
398
398
  * Restores the contents and metadata of soft deleted blob and any associated
399
399
  * soft deleted snapshots. Undelete Blob is supported only on version 2017-07-29
400
400
  * or later.
401
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/undelete-blob
401
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/undelete-blob
402
402
  *
403
403
  * @param options - Optional options to Blob Undelete operation.
404
404
  */
@@ -415,7 +415,7 @@ export class BlobClient extends StorageClient {
415
415
  *
416
416
  * If no value provided, or no value provided for the specified blob HTTP headers,
417
417
  * these blob HTTP headers without a value will be cleared.
418
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-blob-properties
418
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-properties
419
419
  *
420
420
  * @param blobHTTPHeaders - If no value provided, or no value provided for
421
421
  * the specified blob HTTP headers, these blob HTTP
@@ -445,7 +445,7 @@ export class BlobClient extends StorageClient {
445
445
  *
446
446
  * If no option provided, or no metadata defined in the parameter, the blob
447
447
  * metadata will be removed.
448
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-blob-metadata
448
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-metadata
449
449
  *
450
450
  * @param metadata - Replace existing metadata with this value.
451
451
  * If no value provided the existing metadata will be removed.
@@ -517,7 +517,7 @@ export class BlobClient extends StorageClient {
517
517
  }
518
518
  /**
519
519
  * Creates a read-only snapshot of a blob.
520
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/snapshot-blob
520
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/snapshot-blob
521
521
  *
522
522
  * @param options - Optional options to the Blob Create Snapshot operation.
523
523
  */
@@ -551,7 +551,7 @@ export class BlobClient extends StorageClient {
551
551
  * an Azure file in any Azure storage account.
552
552
  * Only storage accounts created on or after June 7th, 2012 allow the Copy Blob
553
553
  * operation to copy from another storage account.
554
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/copy-blob
554
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/copy-blob
555
555
  *
556
556
  * Example using automatic polling:
557
557
  *
@@ -631,7 +631,7 @@ export class BlobClient extends StorageClient {
631
631
  /**
632
632
  * Aborts a pending asynchronous Copy Blob operation, and leaves a destination blob with zero
633
633
  * length and full metadata. Version 2012-02-12 and newer.
634
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/abort-copy-blob
634
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/abort-copy-blob
635
635
  *
636
636
  * @param copyId - Id of the Copy From URL operation.
637
637
  * @param options - Optional options to the Blob Abort Copy From URL operation.
@@ -648,7 +648,7 @@ export class BlobClient extends StorageClient {
648
648
  /**
649
649
  * The synchronous Copy From URL operation copies a blob or an internet resource to a new blob. It will not
650
650
  * return a response until the copy is complete.
651
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/copy-blob-from-url
651
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/copy-blob-from-url
652
652
  *
653
653
  * @param copySource - The source URL to copy from, Shared Access Signature(SAS) maybe needed for authentication
654
654
  * @param options -
@@ -688,7 +688,7 @@ export class BlobClient extends StorageClient {
688
688
  * storage only). A premium page blob's tier determines the allowed size, IOPS,
689
689
  * and bandwidth of the blob. A block blob's tier determines Hot/Cool/Archive
690
690
  * storage type. This operation does not update the blob's ETag.
691
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-blob-tier
691
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-tier
692
692
  *
693
693
  * @param tier - The tier to be set on the blob. Valid values are Hot, Cool, or Archive.
694
694
  * @param options - Optional options to the Blob Set Tier operation.
@@ -873,7 +873,7 @@ export class BlobClient extends StorageClient {
873
873
  * an Azure file in any Azure storage account.
874
874
  * Only storage accounts created on or after June 7th, 2012 allow the Copy Blob
875
875
  * operation to copy from another storage account.
876
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/copy-blob
876
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/copy-blob
877
877
  *
878
878
  * @param copySource - url to the source Azure Blob/File.
879
879
  * @param options - Optional options to the Blob Start Copy From URL operation.
@@ -912,7 +912,7 @@ export class BlobClient extends StorageClient {
912
912
  * Generates a Blob Service Shared Access Signature (SAS) URI based on the client properties
913
913
  * and parameters passed in. The SAS is signed by the shared key credential of the client.
914
914
  *
915
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
915
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
916
916
  *
917
917
  * @param options - Optional parameters.
918
918
  * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
@@ -932,7 +932,7 @@ export class BlobClient extends StorageClient {
932
932
  * Generates string to sign for a Blob Service Shared Access Signature (SAS) URI based on
933
933
  * the client properties and parameters passed in. The SAS is signed by the shared key credential of the client.
934
934
  *
935
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
935
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
936
936
  *
937
937
  * @param options - Optional parameters.
938
938
  * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
@@ -949,7 +949,7 @@ export class BlobClient extends StorageClient {
949
949
  * Generates a Blob Service Shared Access Signature (SAS) URI based on
950
950
  * the client properties and parameters passed in. The SAS is signed by the input user delegation key.
951
951
  *
952
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
952
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
953
953
  *
954
954
  * @param options - Optional parameters.
955
955
  * @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
@@ -967,13 +967,12 @@ export class BlobClient extends StorageClient {
967
967
  * Generates string to sign for a Blob Service Shared Access Signature (SAS) URI based on
968
968
  * the client properties and parameters passed in. The SAS is signed by the input user delegation key.
969
969
  *
970
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
970
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
971
971
  *
972
972
  * @param options - Optional parameters.
973
973
  * @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
974
974
  * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
975
975
  */
976
- /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/
977
976
  generateUserDelegationSasStringToSign(options, userDelegationKey) {
978
977
  return generateBlobSASQueryParametersInternal(Object.assign({ containerName: this._containerName, blobName: this._name, snapshotTime: this._snapshot, versionId: this._versionId }, options), userDelegationKey, this.accountName).stringToSign;
979
978
  }
@@ -1020,7 +1019,7 @@ export class BlobClient extends StorageClient {
1020
1019
  * for the specified account.
1021
1020
  * The Get Account Information operation is available on service versions beginning
1022
1021
  * with version 2018-03-28.
1023
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-account-information
1022
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-account-information
1024
1023
  *
1025
1024
  * @param options - Options to the Service Get Account Info operation.
1026
1025
  * @returns Response data for the Service Get Account Info operation.
@@ -1118,7 +1117,7 @@ export class AppendBlobClient extends BlobClient {
1118
1117
  }
1119
1118
  /**
1120
1119
  * Creates a 0-length append blob. Call AppendBlock to append data to an append blob.
1121
- * @see https://docs.microsoft.com/rest/api/storageservices/put-blob
1120
+ * @see https://learn.microsoft.com/rest/api/storageservices/put-blob
1122
1121
  *
1123
1122
  * @param options - Options to the Append Block Create operation.
1124
1123
  *
@@ -1154,7 +1153,7 @@ export class AppendBlobClient extends BlobClient {
1154
1153
  /**
1155
1154
  * Creates a 0-length append blob. Call AppendBlock to append data to an append blob.
1156
1155
  * If the blob with the same name already exists, the content of the existing blob will remain unchanged.
1157
- * @see https://docs.microsoft.com/rest/api/storageservices/put-blob
1156
+ * @see https://learn.microsoft.com/rest/api/storageservices/put-blob
1158
1157
  *
1159
1158
  * @param options -
1160
1159
  */
@@ -1194,7 +1193,7 @@ export class AppendBlobClient extends BlobClient {
1194
1193
  }
1195
1194
  /**
1196
1195
  * Commits a new block of data to the end of the existing append blob.
1197
- * @see https://docs.microsoft.com/rest/api/storageservices/append-block
1196
+ * @see https://learn.microsoft.com/rest/api/storageservices/append-block
1198
1197
  *
1199
1198
  * @param body - Data to be appended.
1200
1199
  * @param contentLength - Length of the body in bytes.
@@ -1240,7 +1239,7 @@ export class AppendBlobClient extends BlobClient {
1240
1239
  /**
1241
1240
  * The Append Block operation commits a new block of data to the end of an existing append blob
1242
1241
  * where the contents are read from a source url.
1243
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/append-block-from-url
1242
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/append-block-from-url
1244
1243
  *
1245
1244
  * @param sourceURL -
1246
1245
  * The url to the blob that will be the source of the copy. A source blob in the same storage account can
@@ -1382,7 +1381,7 @@ export class BlockBlobClient extends BlobClient {
1382
1381
  * return new Promise((resolve, reject) => {
1383
1382
  * const chunks = [];
1384
1383
  * readableStream.on("data", (data) => {
1385
- * chunks.push(data instanceof Buffer ? data : Buffer.from(data));
1384
+ * chunks.push(typeof data === "string" ? Buffer.from(data) : data);
1386
1385
  * });
1387
1386
  * readableStream.on("end", () => {
1388
1387
  * resolve(Buffer.concat(chunks));
@@ -1433,7 +1432,7 @@ export class BlockBlobClient extends BlobClient {
1433
1432
  * {@link uploadStream} or {@link uploadBrowserData} for better performance
1434
1433
  * with concurrency uploading.
1435
1434
  *
1436
- * @see https://docs.microsoft.com/rest/api/storageservices/put-blob
1435
+ * @see https://learn.microsoft.com/rest/api/storageservices/put-blob
1437
1436
  *
1438
1437
  * @param body - Blob, string, ArrayBuffer, ArrayBufferView or a function
1439
1438
  * which returns a new Readable stream whose offset is from data source beginning.
@@ -1509,7 +1508,7 @@ export class BlockBlobClient extends BlobClient {
1509
1508
  /**
1510
1509
  * Uploads the specified block to the block blob's "staging area" to be later
1511
1510
  * committed by a call to commitBlockList.
1512
- * @see https://docs.microsoft.com/rest/api/storageservices/put-block
1511
+ * @see https://learn.microsoft.com/rest/api/storageservices/put-block
1513
1512
  *
1514
1513
  * @param blockId - A 64-byte value that is base64-encoded
1515
1514
  * @param body - Data to upload to the staging area.
@@ -1538,7 +1537,7 @@ export class BlockBlobClient extends BlobClient {
1538
1537
  * The Stage Block From URL operation creates a new block to be committed as part
1539
1538
  * of a blob where the contents are read from a URL.
1540
1539
  * This API is available starting in version 2018-03-28.
1541
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/put-block-from-url
1540
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/put-block-from-url
1542
1541
  *
1543
1542
  * @param blockId - A 64-byte value that is base64-encoded
1544
1543
  * @param sourceURL - Specifies the URL of the blob. The value
@@ -1577,7 +1576,7 @@ export class BlockBlobClient extends BlobClient {
1577
1576
  * to the server in a prior {@link stageBlock} operation. You can call {@link commitBlockList} to
1578
1577
  * update a blob by uploading only those blocks that have changed, then committing the new and existing
1579
1578
  * blocks together. Any blocks not specified in the block list and permanently deleted.
1580
- * @see https://docs.microsoft.com/rest/api/storageservices/put-block-list
1579
+ * @see https://learn.microsoft.com/rest/api/storageservices/put-block-list
1581
1580
  *
1582
1581
  * @param blocks - Array of 64-byte value that is base64-encoded
1583
1582
  * @param options - Options to the Block Blob Commit Block List operation.
@@ -1608,7 +1607,7 @@ export class BlockBlobClient extends BlobClient {
1608
1607
  /**
1609
1608
  * Returns the list of blocks that have been uploaded as part of a block blob
1610
1609
  * using the specified block list filter.
1611
- * @see https://docs.microsoft.com/rest/api/storageservices/get-block-list
1610
+ * @see https://learn.microsoft.com/rest/api/storageservices/get-block-list
1612
1611
  *
1613
1612
  * @param listType - Specifies whether to return the list of committed blocks,
1614
1613
  * the list of uncommitted blocks, or both lists together.
@@ -1942,7 +1941,7 @@ export class PageBlobClient extends BlobClient {
1942
1941
  /**
1943
1942
  * Creates a page blob of the specified length. Call uploadPages to upload data
1944
1943
  * data to a page blob.
1945
- * @see https://docs.microsoft.com/rest/api/storageservices/put-blob
1944
+ * @see https://learn.microsoft.com/rest/api/storageservices/put-blob
1946
1945
  *
1947
1946
  * @param size - size of the page blob.
1948
1947
  * @param options - Options to the Page Blob Create operation.
@@ -1975,7 +1974,7 @@ export class PageBlobClient extends BlobClient {
1975
1974
  * Creates a page blob of the specified length. Call uploadPages to upload data
1976
1975
  * data to a page blob. If the blob with the same name already exists, the content
1977
1976
  * of the existing blob will remain unchanged.
1978
- * @see https://docs.microsoft.com/rest/api/storageservices/put-blob
1977
+ * @see https://learn.microsoft.com/rest/api/storageservices/put-blob
1979
1978
  *
1980
1979
  * @param size - size of the page blob.
1981
1980
  * @param options -
@@ -1998,7 +1997,7 @@ export class PageBlobClient extends BlobClient {
1998
1997
  }
1999
1998
  /**
2000
1999
  * Writes 1 or more pages to the page blob. The start and end offsets must be a multiple of 512.
2001
- * @see https://docs.microsoft.com/rest/api/storageservices/put-page
2000
+ * @see https://learn.microsoft.com/rest/api/storageservices/put-page
2002
2001
  *
2003
2002
  * @param body - Data to upload
2004
2003
  * @param offset - Offset of destination page blob
@@ -2031,7 +2030,7 @@ export class PageBlobClient extends BlobClient {
2031
2030
  /**
2032
2031
  * The Upload Pages operation writes a range of pages to a page blob where the
2033
2032
  * contents are read from a URL.
2034
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/put-page-from-url
2033
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/put-page-from-url
2035
2034
  *
2036
2035
  * @param sourceURL - Specify a URL to the copy source, Shared Access Signature(SAS) maybe needed for authentication
2037
2036
  * @param sourceOffset - The source offset to copy from. Pass 0 to copy from the beginning of source page blob
@@ -2067,7 +2066,7 @@ export class PageBlobClient extends BlobClient {
2067
2066
  }
2068
2067
  /**
2069
2068
  * Frees the specified pages from the page blob.
2070
- * @see https://docs.microsoft.com/rest/api/storageservices/put-page
2069
+ * @see https://learn.microsoft.com/rest/api/storageservices/put-page
2071
2070
  *
2072
2071
  * @param offset - Starting byte position of the pages to clear.
2073
2072
  * @param count - Number of bytes to clear.
@@ -2092,7 +2091,7 @@ export class PageBlobClient extends BlobClient {
2092
2091
  }
2093
2092
  /**
2094
2093
  * Returns the list of valid page ranges for a page blob or snapshot of a page blob.
2095
- * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges
2094
+ * @see https://learn.microsoft.com/rest/api/storageservices/get-page-ranges
2096
2095
  *
2097
2096
  * @param offset - Starting byte position of the page ranges.
2098
2097
  * @param count - Number of bytes to get.
@@ -2118,7 +2117,7 @@ export class PageBlobClient extends BlobClient {
2118
2117
  * specified Marker. Use an empty Marker to start enumeration from the beginning.
2119
2118
  * After getting a segment, process it, and then call getPageRangesSegment again
2120
2119
  * (passing the the previously-returned Marker) to get the next segment.
2121
- * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges
2120
+ * @see https://learn.microsoft.com/rest/api/storageservices/get-page-ranges
2122
2121
  *
2123
2122
  * @param offset - Starting byte position of the page ranges.
2124
2123
  * @param count - Number of bytes to get.
@@ -2195,7 +2194,7 @@ export class PageBlobClient extends BlobClient {
2195
2194
  }
2196
2195
  /**
2197
2196
  * Returns an async iterable iterator to list of page ranges for a page blob.
2198
- * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges
2197
+ * @see https://learn.microsoft.com/rest/api/storageservices/get-page-ranges
2199
2198
  *
2200
2199
  * .byPage() returns an async iterable iterator to list of page ranges for a page blob.
2201
2200
  *
@@ -2291,7 +2290,7 @@ export class PageBlobClient extends BlobClient {
2291
2290
  }
2292
2291
  /**
2293
2292
  * Gets the collection of page ranges that differ between a specified snapshot and this page blob.
2294
- * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges
2293
+ * @see https://learn.microsoft.com/rest/api/storageservices/get-page-ranges
2295
2294
  *
2296
2295
  * @param offset - Starting byte position of the page blob
2297
2296
  * @param count - Number of bytes to get ranges diff.
@@ -2320,7 +2319,7 @@ export class PageBlobClient extends BlobClient {
2320
2319
  * Use an empty Marker to start enumeration from the beginning.
2321
2320
  * After getting a segment, process it, and then call getPageRangesDiffSegment again
2322
2321
  * (passing the the previously-returned Marker) to get the next segment.
2323
- * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges
2322
+ * @see https://learn.microsoft.com/rest/api/storageservices/get-page-ranges
2324
2323
  *
2325
2324
  * @param offset - Starting byte position of the page ranges.
2326
2325
  * @param count - Number of bytes to get.
@@ -2405,7 +2404,7 @@ export class PageBlobClient extends BlobClient {
2405
2404
  }
2406
2405
  /**
2407
2406
  * Returns an async iterable iterator to list of page ranges that differ between a specified snapshot and this page blob.
2408
- * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges
2407
+ * @see https://learn.microsoft.com/rest/api/storageservices/get-page-ranges
2409
2408
  *
2410
2409
  * .byPage() returns an async iterable iterator to list of page ranges that differ between a specified snapshot and this page blob.
2411
2410
  *
@@ -2502,7 +2501,7 @@ export class PageBlobClient extends BlobClient {
2502
2501
  }
2503
2502
  /**
2504
2503
  * Gets the collection of page ranges that differ between a specified snapshot and this page blob for managed disks.
2505
- * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges
2504
+ * @see https://learn.microsoft.com/rest/api/storageservices/get-page-ranges
2506
2505
  *
2507
2506
  * @param offset - Starting byte position of the page blob
2508
2507
  * @param count - Number of bytes to get ranges diff.
@@ -2527,7 +2526,7 @@ export class PageBlobClient extends BlobClient {
2527
2526
  }
2528
2527
  /**
2529
2528
  * Resizes the page blob to the specified size (which must be a multiple of 512).
2530
- * @see https://docs.microsoft.com/rest/api/storageservices/set-blob-properties
2529
+ * @see https://learn.microsoft.com/rest/api/storageservices/set-blob-properties
2531
2530
  *
2532
2531
  * @param size - Target size
2533
2532
  * @param options - Options to the Page Blob Resize operation.
@@ -2548,7 +2547,7 @@ export class PageBlobClient extends BlobClient {
2548
2547
  }
2549
2548
  /**
2550
2549
  * Sets a page blob's sequence number.
2551
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-blob-properties
2550
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-properties
2552
2551
  *
2553
2552
  * @param sequenceNumberAction - Indicates how the service should modify the blob's sequence number.
2554
2553
  * @param sequenceNumber - Required if sequenceNumberAction is max or update
@@ -2573,8 +2572,8 @@ export class PageBlobClient extends BlobClient {
2573
2572
  * The snapshot is copied such that only the differential changes between the previously
2574
2573
  * copied snapshot are transferred to the destination.
2575
2574
  * The copied snapshots are complete copies of the original snapshot and can be read or copied from as usual.
2576
- * @see https://docs.microsoft.com/rest/api/storageservices/incremental-copy-blob
2577
- * @see https://docs.microsoft.com/en-us/azure/virtual-machines/windows/incremental-snapshots
2575
+ * @see https://learn.microsoft.com/rest/api/storageservices/incremental-copy-blob
2576
+ * @see https://learn.microsoft.com/en-us/azure/virtual-machines/windows/incremental-snapshots
2578
2577
  *
2579
2578
  * @param copySource - Specifies the name of the source page blob snapshot. For example,
2580
2579
  * https://myaccount.blob.core.windows.net/mycontainer/myblob?snapshot=<DateTime>