@azure/storage-file-datalake 12.24.1-alpha.20241014.1 → 12.25.0-beta.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/dist/index.js CHANGED
@@ -50,8 +50,8 @@ const logger = logger$1.createClientLogger("storage-file-datalake");
50
50
 
51
51
  // Copyright (c) Microsoft Corporation.
52
52
  // Licensed under the MIT License.
53
- const SDK_VERSION = "12.24.1";
54
- const SERVICE_VERSION = "2024-11-04";
53
+ const SDK_VERSION = "12.25.0-beta.1";
54
+ const SERVICE_VERSION = "2025-01-05";
55
55
  const KB = 1024;
56
56
  const MB = KB * 1024;
57
57
  const DEFAULT_HIGH_LEVEL_CONCURRENCY = 5;
@@ -2794,7 +2794,7 @@ const timeout = {
2794
2794
  const version = {
2795
2795
  parameterPath: "version",
2796
2796
  mapper: {
2797
- defaultValue: "2024-11-04",
2797
+ defaultValue: "2025-01-05",
2798
2798
  isConstant: true,
2799
2799
  serializedName: "x-ms-version",
2800
2800
  type: {
@@ -4539,7 +4539,7 @@ let StorageClient$1 = class StorageClient extends coreHttpCompat__namespace.Exte
4539
4539
  const defaults = {
4540
4540
  requestContentType: "application/json; charset=utf-8"
4541
4541
  };
4542
- const packageDetails = `azsdk-js-azure-storage-datalake/12.24.0`;
4542
+ const packageDetails = `azsdk-js-azure-storage-datalake/12.25.0-beta.1`;
4543
4543
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
4544
4544
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
4545
4545
  : `${packageDetails}`;
@@ -4550,7 +4550,7 @@ let StorageClient$1 = class StorageClient extends coreHttpCompat__namespace.Exte
4550
4550
  // Parameter assignments
4551
4551
  this.url = url;
4552
4552
  // Assigning values to Constant parameters
4553
- this.version = options.version || "2024-11-04";
4553
+ this.version = options.version || "2025-01-05";
4554
4554
  this.resource = options.resource || "filesystem";
4555
4555
  this.service = new ServiceImpl(this);
4556
4556
  this.fileSystemOperations = new FileSystemOperationsImpl(this);
@@ -7721,6 +7721,52 @@ class DataLakeDirectoryClient extends DataLakePathClient {
7721
7721
  resolve(appendToURLQuery(this.url, sas));
7722
7722
  });
7723
7723
  }
7724
+ /**
7725
+ * Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
7726
+ * and parameters passed in.
7727
+ *
7728
+ * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
7729
+ *
7730
+ * @param options - Optional parameters.
7731
+ * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
7732
+ */
7733
+ /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/
7734
+ generateSasStringToSign(options) {
7735
+ if (!(this.credential instanceof storageBlob.StorageSharedKeyCredential)) {
7736
+ throw RangeError("Can only generate the SAS when the client is initialized with a shared key credential");
7737
+ }
7738
+ return generateDataLakeSASQueryParametersInternal(Object.assign({ fileSystemName: this.fileSystemName, pathName: this.name, isDirectory: true }, options), this.credential).stringToSign;
7739
+ }
7740
+ /**
7741
+ * Generates a Service Shared Access Signature (SAS) URI based on the client properties
7742
+ * and parameters passed in. The SAS is signed by the input user delegation key.
7743
+ *
7744
+ * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
7745
+ *
7746
+ * @param options - Optional parameters.
7747
+ * @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
7748
+ * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
7749
+ */
7750
+ generateUserDelegationSasUrl(options, userDelegationKey) {
7751
+ return new Promise((resolve) => {
7752
+ const sas = generateDataLakeSASQueryParameters(Object.assign({ fileSystemName: this.fileSystemName, pathName: this.name, isDirectory: true }, options), userDelegationKey, this.accountName).toString();
7753
+ resolve(appendToURLQuery(this.url, sas));
7754
+ });
7755
+ }
7756
+ /**
7757
+ * Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
7758
+ * and parameters passed in The SAS is signed by the input user delegation key.
7759
+ *
7760
+ * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
7761
+ *
7762
+ * @param options - Optional parameters.
7763
+ * @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
7764
+ * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
7765
+ */
7766
+ /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/
7767
+ generateUserDelegationSasStringToSign(options, userDelegationKey) {
7768
+ return generateDataLakeSASQueryParametersInternal(Object.assign({ fileSystemName: this.fileSystemName, pathName: this.name, isDirectory: true }, options), userDelegationKey, this.accountName).stringToSign;
7769
+ }
7724
7770
  }
7725
7771
  /**
7726
7772
  * A DataLakeFileClient represents a URL to the Azure Storage file.
@@ -8271,6 +8317,36 @@ class DataLakeFileClient extends DataLakePathClient {
8271
8317
  }
8272
8318
  return generateDataLakeSASQueryParametersInternal(Object.assign({ fileSystemName: this.fileSystemName, pathName: this.name }, options), this.credential).stringToSign;
8273
8319
  }
8320
+ /**
8321
+ * Generates a Service Shared Access Signature (SAS) URI based on the client properties
8322
+ * and parameters passed in. The SAS is signed by the input user delegation key.
8323
+ *
8324
+ * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
8325
+ *
8326
+ * @param options - Optional parameters.
8327
+ * @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
8328
+ * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
8329
+ */
8330
+ generateUserDelegationSasUrl(options, userDelegationKey) {
8331
+ return new Promise((resolve) => {
8332
+ const sas = generateDataLakeSASQueryParameters(Object.assign({ fileSystemName: this.fileSystemName, pathName: this.name }, options), userDelegationKey, this.accountName).toString();
8333
+ resolve(appendToURLQuery(this.url, sas));
8334
+ });
8335
+ }
8336
+ /**
8337
+ * Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
8338
+ * and parameters passed in. The SAS is signed by the input user delegation key.
8339
+ *
8340
+ * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
8341
+ *
8342
+ * @param options - Optional parameters.
8343
+ * @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
8344
+ * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
8345
+ */
8346
+ /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/
8347
+ generateUserDelegationSasStringToSign(options, userDelegationKey) {
8348
+ return generateDataLakeSASQueryParametersInternal(Object.assign({ fileSystemName: this.fileSystemName, pathName: this.name }, options), userDelegationKey, this.accountName).stringToSign;
8349
+ }
8274
8350
  }
8275
8351
 
8276
8352
  // Copyright (c) Microsoft Corporation.
@@ -8832,6 +8908,36 @@ class DataLakeFileSystemClient extends StorageClient {
8832
8908
  }
8833
8909
  return generateDataLakeSASQueryParametersInternal(Object.assign({ fileSystemName: this.name }, options), this.credential).stringToSign;
8834
8910
  }
8911
+ /**
8912
+ * Generates a Service Shared Access Signature (SAS) URI based on the client properties
8913
+ * and parameters passed in. The SAS is signed by the input user delegation key.
8914
+ *
8915
+ * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
8916
+ *
8917
+ * @param options - Optional parameters.
8918
+ * @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
8919
+ * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
8920
+ */
8921
+ generateUserDelegationSasUrl(options, userDelegationKey) {
8922
+ return new Promise((resolve) => {
8923
+ const sas = generateDataLakeSASQueryParameters(Object.assign({ fileSystemName: this.name }, options), userDelegationKey, this.accountName).toString();
8924
+ resolve(appendToURLQuery(this.url, sas));
8925
+ });
8926
+ }
8927
+ /**
8928
+ * Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
8929
+ * and parameters passed in. The SAS is signed by the input user delegation key.
8930
+ *
8931
+ * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
8932
+ *
8933
+ * @param options - Optional parameters.
8934
+ * @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
8935
+ * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
8936
+ */
8937
+ /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/
8938
+ generateUserDelegationSasStringToSign(options, userDelegationKey) {
8939
+ return generateDataLakeSASQueryParametersInternal(Object.assign({ fileSystemName: this.name }, options), userDelegationKey, this.accountName).stringToSign;
8940
+ }
8835
8941
  }
8836
8942
 
8837
8943
  // Copyright (c) Microsoft Corporation.