@azure/storage-file-datalake 12.25.0 → 12.26.0-alpha.20250320.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 (47) hide show
  1. package/LICENSE +3 -3
  2. package/README.md +25 -30
  3. package/dist/index.js +63 -64
  4. package/dist/index.js.map +1 -1
  5. package/dist-esm/storage-blob/src/StorageRetryPolicyFactory.js.map +1 -1
  6. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js +2 -2
  7. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js.map +1 -1
  8. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.js +2 -2
  9. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.js.map +1 -1
  10. package/dist-esm/storage-blob/src/utils/constants.js +2 -2
  11. package/dist-esm/storage-blob/src/utils/constants.js.map +1 -1
  12. package/dist-esm/storage-blob/src/utils/utils.common.js +3 -3
  13. package/dist-esm/storage-blob/src/utils/utils.common.js.map +1 -1
  14. package/dist-esm/storage-blob/src/utils/utils.node.js +1 -1
  15. package/dist-esm/storage-blob/src/utils/utils.node.js.map +1 -1
  16. package/dist-esm/storage-file-datalake/src/DataLakeFileSystemClient.js +15 -15
  17. package/dist-esm/storage-file-datalake/src/DataLakeFileSystemClient.js.map +1 -1
  18. package/dist-esm/storage-file-datalake/src/DataLakeServiceClient.js +6 -6
  19. package/dist-esm/storage-file-datalake/src/DataLakeServiceClient.js.map +1 -1
  20. package/dist-esm/storage-file-datalake/src/clients.js +25 -25
  21. package/dist-esm/storage-file-datalake/src/clients.js.map +1 -1
  22. package/dist-esm/storage-file-datalake/src/credentials/UserDelegationKeyCredential.js +1 -1
  23. package/dist-esm/storage-file-datalake/src/credentials/UserDelegationKeyCredential.js.map +1 -1
  24. package/dist-esm/storage-file-datalake/src/generated/src/models/parameters.js +1 -1
  25. package/dist-esm/storage-file-datalake/src/generated/src/models/parameters.js.map +1 -1
  26. package/dist-esm/storage-file-datalake/src/generated/src/storageClient.js +2 -2
  27. package/dist-esm/storage-file-datalake/src/generated/src/storageClient.js.map +1 -1
  28. package/dist-esm/storage-file-datalake/src/models.js.map +1 -1
  29. package/dist-esm/storage-file-datalake/src/sas/AccountSASPermissions.js +2 -2
  30. package/dist-esm/storage-file-datalake/src/sas/AccountSASPermissions.js.map +1 -1
  31. package/dist-esm/storage-file-datalake/src/sas/AccountSASResourceTypes.js +1 -1
  32. package/dist-esm/storage-file-datalake/src/sas/AccountSASResourceTypes.js.map +1 -1
  33. package/dist-esm/storage-file-datalake/src/sas/AccountSASSignatureValues.js +1 -1
  34. package/dist-esm/storage-file-datalake/src/sas/AccountSASSignatureValues.js.map +1 -1
  35. package/dist-esm/storage-file-datalake/src/sas/DataLakeSASSignatureValues.js +1 -1
  36. package/dist-esm/storage-file-datalake/src/sas/DataLakeSASSignatureValues.js.map +1 -1
  37. package/dist-esm/storage-file-datalake/src/sas/DirectorySASPermissions.js +1 -1
  38. package/dist-esm/storage-file-datalake/src/sas/DirectorySASPermissions.js.map +1 -1
  39. package/dist-esm/storage-file-datalake/src/sas/FileSystemSASPermissions.js +1 -1
  40. package/dist-esm/storage-file-datalake/src/sas/FileSystemSASPermissions.js.map +1 -1
  41. package/dist-esm/storage-file-datalake/src/sas/SASQueryParameters.js.map +1 -1
  42. package/dist-esm/storage-file-datalake/src/utils/constants.js +2 -2
  43. package/dist-esm/storage-file-datalake/src/utils/constants.js.map +1 -1
  44. package/dist-esm/storage-file-datalake/src/utils/utils.common.js +3 -3
  45. package/dist-esm/storage-file-datalake/src/utils/utils.common.js.map +1 -1
  46. package/package.json +11 -11
  47. package/types/latest/storage-file-datalake.d.ts +69 -69
@@ -150,7 +150,7 @@ export class DataLakePathClient extends StorageClient {
150
150
  /**
151
151
  * Create a directory or path.
152
152
  *
153
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/create
153
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/create
154
154
  *
155
155
  * @param resourceType - Resource type, "directory" or "file".
156
156
  * @param options - Optional. Options when creating path.
@@ -179,7 +179,7 @@ export class DataLakePathClient extends StorageClient {
179
179
  /**
180
180
  * Create a directory or file. If the resource already exists, it is not changed.
181
181
  *
182
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/create
182
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/create
183
183
  *
184
184
  * @param resourceType - Resource type, "directory" or "file".
185
185
  * @param options -
@@ -217,7 +217,7 @@ export class DataLakePathClient extends StorageClient {
217
217
  /**
218
218
  * Delete current path (directory or file).
219
219
  *
220
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/delete
220
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/delete
221
221
  *
222
222
  * @param recursive - Required and valid only when the resource is a directory. If "true", all paths beneath the directory will be deleted.
223
223
  * @param options - Optional. Options when deleting path.
@@ -251,7 +251,7 @@ export class DataLakePathClient extends StorageClient {
251
251
  /**
252
252
  * Delete current path (directory or file) if it exists.
253
253
  *
254
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/delete
254
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/delete
255
255
  *
256
256
  * @param recursive - Required and valid only when the resource is a directory. If "true", all paths beneath the directory will be deleted.
257
257
  * @param options -
@@ -275,7 +275,7 @@ export class DataLakePathClient extends StorageClient {
275
275
  /**
276
276
  * Returns the access control data for a path (directory of file).
277
277
  *
278
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/getproperties
278
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/getproperties
279
279
  *
280
280
  * @param options - Optional. Options when getting file access control.
281
281
  */
@@ -289,7 +289,7 @@ export class DataLakePathClient extends StorageClient {
289
289
  /**
290
290
  * Set the access control data for a path (directory of file).
291
291
  *
292
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/update
292
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/update
293
293
  *
294
294
  * @param acl - The POSIX access control list for the file or directory.
295
295
  * @param options - Optional. Options when setting path access control.
@@ -303,7 +303,7 @@ export class DataLakePathClient extends StorageClient {
303
303
  /**
304
304
  * Sets the Access Control on a path and sub paths.
305
305
  *
306
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/update
306
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/update
307
307
  *
308
308
  * @param acl - The POSIX access control list for the file or directory.
309
309
  * @param options - Optional. Options
@@ -316,7 +316,7 @@ export class DataLakePathClient extends StorageClient {
316
316
  /**
317
317
  * Modifies the Access Control on a path and sub paths.
318
318
  *
319
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/update
319
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/update
320
320
  *
321
321
  * @param acl - The POSIX access control list for the file or directory.
322
322
  * @param options - Optional. Options
@@ -329,7 +329,7 @@ export class DataLakePathClient extends StorageClient {
329
329
  /**
330
330
  * Removes the Access Control on a path and sub paths.
331
331
  *
332
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/update
332
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/update
333
333
  *
334
334
  * @param acl - The POSIX access control list for the file or directory.
335
335
  * @param options - Optional. Options
@@ -342,7 +342,7 @@ export class DataLakePathClient extends StorageClient {
342
342
  /**
343
343
  * Sets the file permissions on a path.
344
344
  *
345
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/update
345
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/update
346
346
  *
347
347
  * @param permissions - The POSIX access permissions for the file owner, the file owning group, and others.
348
348
  * @param options - Optional. Options when setting path permissions.
@@ -362,7 +362,7 @@ export class DataLakePathClient extends StorageClient {
362
362
  * the methods of {@link DataLakeFileSystemClient} that list paths using the `includeMetadata` option, which
363
363
  * will retain their original casing.
364
364
  *
365
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-blob-properties
365
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-blob-properties
366
366
  *
367
367
  * @param options - Optional. Options when getting path properties.
368
368
  */
@@ -377,7 +377,7 @@ export class DataLakePathClient extends StorageClient {
377
377
  *
378
378
  * If no value provided, or no value provided for the specified blob HTTP headers,
379
379
  * these blob HTTP headers without a value will be cleared.
380
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-blob-properties
380
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-properties
381
381
  *
382
382
  * @param httpHeaders -
383
383
  * @param options -
@@ -400,7 +400,7 @@ export class DataLakePathClient extends StorageClient {
400
400
  * If no option provided, or no metadata defined in the parameter, the path
401
401
  * metadata will be removed.
402
402
  *
403
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-blob-metadata
403
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-metadata
404
404
  *
405
405
  * @param metadata - Optional. Replace existing metadata with this value.
406
406
  * If no value provided the existing metadata will be removed.
@@ -505,7 +505,7 @@ export class DataLakeDirectoryClient extends DataLakePathClient {
505
505
  * Generates a Service Shared Access Signature (SAS) URI based on the client properties
506
506
  * and parameters passed in. The SAS is signed by the shared key credential of the client.
507
507
  *
508
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
508
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
509
509
  *
510
510
  * @param options - Optional parameters.
511
511
  * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
@@ -523,7 +523,7 @@ export class DataLakeDirectoryClient extends DataLakePathClient {
523
523
  * Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
524
524
  * and parameters passed in.
525
525
  *
526
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
526
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
527
527
  *
528
528
  * @param options - Optional parameters.
529
529
  * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
@@ -539,7 +539,7 @@ export class DataLakeDirectoryClient extends DataLakePathClient {
539
539
  * Generates a Service Shared Access Signature (SAS) URI based on the client properties
540
540
  * and parameters passed in. The SAS is signed by the input user delegation key.
541
541
  *
542
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
542
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
543
543
  *
544
544
  * @param options - Optional parameters.
545
545
  * @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
@@ -555,7 +555,7 @@ export class DataLakeDirectoryClient extends DataLakePathClient {
555
555
  * Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
556
556
  * and parameters passed in The SAS is signed by the input user delegation key.
557
557
  *
558
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
558
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
559
559
  *
560
560
  * @param options - Optional parameters.
561
561
  * @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
@@ -623,7 +623,7 @@ export class DataLakeFileClient extends DataLakePathClient {
623
623
  * * In Node.js, data returns in a Readable stream readableStreamBody
624
624
  * * In browsers, data returns in a promise contentAsBlob
625
625
  *
626
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-blob
626
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-blob
627
627
  *
628
628
  * * Example usage (Node.js):
629
629
  *
@@ -637,7 +637,7 @@ export class DataLakeFileClient extends DataLakePathClient {
637
637
  * return new Promise((resolve, reject) => {
638
638
  * const chunks = [];
639
639
  * readableStream.on("data", (data) => {
640
- * chunks.push(data instanceof Buffer ? data : Buffer.from(data));
640
+ * chunks.push(typeof data === "string" ? Buffer.from(data) : data);
641
641
  * });
642
642
  * readableStream.on("end", () => {
643
643
  * resolve(Buffer.concat(chunks));
@@ -690,7 +690,7 @@ export class DataLakeFileClient extends DataLakePathClient {
690
690
  * Uploads data to be appended to a file. Data can only be appended to a file.
691
691
  * To apply perviously uploaded data to a file, call flush.
692
692
  *
693
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/update
693
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/update
694
694
  *
695
695
  * @param body - Content to be uploaded.
696
696
  * @param offset - Append offset in bytes.
@@ -1017,7 +1017,7 @@ export class DataLakeFileClient extends DataLakePathClient {
1017
1017
  * return new Promise((resolve, reject) => {
1018
1018
  * const chunks = [];
1019
1019
  * readableStream.on("data", (data) => {
1020
- * chunks.push(data instanceof Buffer ? data : Buffer.from(data));
1020
+ * chunks.push(typeof data === "string" ? Buffer.from(data) : data);
1021
1021
  * });
1022
1022
  * readableStream.on("end", () => {
1023
1023
  * resolve(Buffer.concat(chunks));
@@ -1082,7 +1082,7 @@ export class DataLakeFileClient extends DataLakePathClient {
1082
1082
  * Generates a Service Shared Access Signature (SAS) URI based on the client properties
1083
1083
  * and parameters passed in. The SAS is signed by the shared key credential of the client.
1084
1084
  *
1085
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
1085
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
1086
1086
  *
1087
1087
  * @param options - Optional parameters.
1088
1088
  * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
@@ -1102,7 +1102,7 @@ export class DataLakeFileClient extends DataLakePathClient {
1102
1102
  * Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
1103
1103
  * and parameters passed in. The SAS is signed by the shared key credential of the client.
1104
1104
  *
1105
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
1105
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
1106
1106
  *
1107
1107
  * @param options - Optional parameters.
1108
1108
  * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
@@ -1118,7 +1118,7 @@ export class DataLakeFileClient extends DataLakePathClient {
1118
1118
  * Generates a Service Shared Access Signature (SAS) URI based on the client properties
1119
1119
  * and parameters passed in. The SAS is signed by the input user delegation key.
1120
1120
  *
1121
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
1121
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
1122
1122
  *
1123
1123
  * @param options - Optional parameters.
1124
1124
  * @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
@@ -1134,7 +1134,7 @@ export class DataLakeFileClient extends DataLakePathClient {
1134
1134
  * Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
1135
1135
  * and parameters passed in. The SAS is signed by the input user delegation key.
1136
1136
  *
1137
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
1137
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
1138
1138
  *
1139
1139
  * @param options - Optional parameters.
1140
1140
  * @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`