@azure/storage-file-share 12.17.0 → 12.18.1-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
@@ -334,8 +334,8 @@ function ipRangeToString(ipRange) {
334
334
 
335
335
  // Copyright (c) Microsoft Corporation.
336
336
  // Licensed under the MIT license.
337
- const SDK_VERSION = "12.17.0";
338
- const SERVICE_VERSION = "2023-11-03";
337
+ const SDK_VERSION = "12.18.1-beta.1";
338
+ const SERVICE_VERSION = "2024-05-04";
339
339
  const FILE_MAX_SIZE_BYTES = 4 * 1024 * 1024 * 1024 * 1024; // 4TB
340
340
  const FILE_RANGE_MAX_SIZE_BYTES = 4 * 1024 * 1024; // 4MB
341
341
  const DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS = 5;
@@ -2423,6 +2423,14 @@ const HandleItem = {
2423
2423
  name: "String"
2424
2424
  }
2425
2425
  },
2426
+ clientName: {
2427
+ serializedName: "ClientName",
2428
+ required: true,
2429
+ xmlName: "ClientName",
2430
+ type: {
2431
+ name: "String"
2432
+ }
2433
+ },
2426
2434
  openTime: {
2427
2435
  serializedName: "OpenTime",
2428
2436
  required: true,
@@ -6788,7 +6796,7 @@ const timeoutInSeconds = {
6788
6796
  const version = {
6789
6797
  parameterPath: "version",
6790
6798
  mapper: {
6791
- defaultValue: "2023-11-03",
6799
+ defaultValue: "2024-05-04",
6792
6800
  isConstant: true,
6793
6801
  serializedName: "x-ms-version",
6794
6802
  type: {
@@ -7806,6 +7814,16 @@ const prevsharesnapshot = {
7806
7814
  }
7807
7815
  }
7808
7816
  };
7817
+ const supportRename = {
7818
+ parameterPath: ["options", "supportRename"],
7819
+ mapper: {
7820
+ serializedName: "x-ms-file-support-rename",
7821
+ xmlName: "x-ms-file-support-rename",
7822
+ type: {
7823
+ name: "Boolean"
7824
+ }
7825
+ }
7826
+ };
7809
7827
  const filePermissionCopyMode = {
7810
7828
  parameterPath: ["options", "copyFileSmbInfo", "filePermissionCopyMode"],
7811
7829
  mapper: {
@@ -9703,6 +9721,7 @@ const uploadRangeFromURLOperationSpec = {
9703
9721
  version,
9704
9722
  accept1,
9705
9723
  leaseId,
9724
+ fileRequestIntent,
9706
9725
  allowTrailingDot,
9707
9726
  allowSourceTrailingDot,
9708
9727
  range1,
@@ -9745,7 +9764,8 @@ const getRangeListOperationSpec = {
9745
9764
  leaseId,
9746
9765
  fileRequestIntent,
9747
9766
  allowTrailingDot,
9748
- range
9767
+ range,
9768
+ supportRename
9749
9769
  ],
9750
9770
  isXML: true,
9751
9771
  serializer: xmlSerializer
@@ -10632,7 +10652,7 @@ function convertTracingToRequestOptionsBase(options) {
10632
10652
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
10633
10653
  */
10634
10654
  const packageName = "azure-storage-file-share";
10635
- const packageVersion = "12.17.0";
10655
+ const packageVersion = "12.18.1-beta.1";
10636
10656
  class StorageClientContext extends coreHttp__namespace.ServiceClient {
10637
10657
  /**
10638
10658
  * Initializes a new instance of the StorageClientContext class.
@@ -10658,7 +10678,7 @@ class StorageClientContext extends coreHttp__namespace.ServiceClient {
10658
10678
  // Parameter assignments
10659
10679
  this.url = url;
10660
10680
  // Assigning values to Constant parameters
10661
- this.version = options.version || "2023-11-03";
10681
+ this.version = options.version || "2024-05-04";
10662
10682
  this.fileRangeWriteFromUrl = options.fileRangeWriteFromUrl || "update";
10663
10683
  }
10664
10684
  }
@@ -14219,7 +14239,7 @@ class ShareFileClient extends StorageClient {
14219
14239
  async getRangeListDiff(prevShareSnapshot, options = {}) {
14220
14240
  const { span, updatedOptions } = createSpan("ShareFileClient-getRangeListDiff", options);
14221
14241
  try {
14222
- return await this.context.getRangeList(Object.assign(Object.assign(Object.assign(Object.assign({ prevsharesnapshot: prevShareSnapshot }, options), { range: options.range ? rangeToString(options.range) : undefined }), this.shareClientConfig), convertTracingToRequestOptionsBase(updatedOptions)));
14242
+ return await this.context.getRangeList(Object.assign(Object.assign(Object.assign(Object.assign({ prevsharesnapshot: prevShareSnapshot, supportRename: options.includeRenames }, options), { range: options.range ? rangeToString(options.range) : undefined }), this.shareClientConfig), convertTracingToRequestOptionsBase(updatedOptions)));
14223
14243
  }
14224
14244
  catch (e) {
14225
14245
  span.setStatus({