@azure/storage-file-share 12.26.0-beta.1 → 12.27.0-alpha.20250217.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. package/LICENSE +3 -3
  2. package/README.md +16 -18
  3. package/dist/index.js +1428 -431
  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.js.map +1 -1
  9. package/dist-esm/storage-blob/src/BlobBatch.js +1 -1
  10. package/dist-esm/storage-blob/src/BlobBatch.js.map +1 -1
  11. package/dist-esm/storage-blob/src/BlobBatchClient.js +3 -3
  12. package/dist-esm/storage-blob/src/BlobBatchClient.js.map +1 -1
  13. package/dist-esm/storage-blob/src/BlobDownloadResponse.js +1 -1
  14. package/dist-esm/storage-blob/src/BlobDownloadResponse.js.map +1 -1
  15. package/dist-esm/storage-blob/src/BlobLeaseClient.js +10 -10
  16. package/dist-esm/storage-blob/src/BlobLeaseClient.js.map +1 -1
  17. package/dist-esm/storage-blob/src/BlobQueryResponse.js.map +1 -1
  18. package/dist-esm/storage-blob/src/BlobServiceClient.js +12 -14
  19. package/dist-esm/storage-blob/src/BlobServiceClient.js.map +1 -1
  20. package/dist-esm/storage-blob/src/Clients.js +47 -48
  21. package/dist-esm/storage-blob/src/Clients.js.map +1 -1
  22. package/dist-esm/storage-blob/src/ContainerClient.js +20 -21
  23. package/dist-esm/storage-blob/src/ContainerClient.js.map +1 -1
  24. package/dist-esm/storage-blob/src/PageBlobRangeResponse.js.map +1 -1
  25. package/dist-esm/storage-blob/src/Pipeline.js.map +1 -1
  26. package/dist-esm/storage-blob/src/Range.js.map +1 -1
  27. package/dist-esm/storage-blob/src/StorageBrowserPolicyFactory.js.map +1 -1
  28. package/dist-esm/storage-blob/src/StorageClient.js.map +1 -1
  29. package/dist-esm/storage-blob/src/StorageContextClient.js.map +1 -1
  30. package/dist-esm/storage-blob/src/StorageRetryPolicyFactory.js.map +1 -1
  31. package/dist-esm/storage-blob/src/credentials/AnonymousCredential.js.map +1 -1
  32. package/dist-esm/storage-blob/src/credentials/Credential.js.map +1 -1
  33. package/dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.js.map +1 -1
  34. package/dist-esm/storage-blob/src/credentials/UserDelegationKeyCredential.js +1 -1
  35. package/dist-esm/storage-blob/src/credentials/UserDelegationKeyCredential.js.map +1 -1
  36. package/dist-esm/storage-blob/src/generated/src/storageClient.js +1 -1
  37. package/dist-esm/storage-blob/src/generated/src/storageClient.js.map +1 -1
  38. package/dist-esm/storage-blob/src/generatedModels.js.map +1 -1
  39. package/dist-esm/storage-blob/src/models.js +2 -2
  40. package/dist-esm/storage-blob/src/models.js.map +1 -1
  41. package/dist-esm/storage-blob/src/policies/AnonymousCredentialPolicy.js.map +1 -1
  42. package/dist-esm/storage-blob/src/policies/CredentialPolicy.js.map +1 -1
  43. package/dist-esm/storage-blob/src/policies/RequestPolicy.js.map +1 -1
  44. package/dist-esm/storage-blob/src/policies/StorageBrowserPolicy.js.map +1 -1
  45. package/dist-esm/storage-blob/src/policies/StorageBrowserPolicyV2.js.map +1 -1
  46. package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.browser.js.map +1 -1
  47. package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.js.map +1 -1
  48. package/dist-esm/storage-blob/src/policies/StorageRetryPolicy.js.map +1 -1
  49. package/dist-esm/storage-blob/src/policies/StorageRetryPolicyV2.js +1 -1
  50. package/dist-esm/storage-blob/src/policies/StorageRetryPolicyV2.js.map +1 -1
  51. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js +2 -2
  52. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js.map +1 -1
  53. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.browser.js.map +1 -1
  54. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.js +2 -2
  55. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.js.map +1 -1
  56. package/dist-esm/storage-blob/src/pollers/BlobStartCopyFromUrlPoller.js.map +1 -1
  57. package/dist-esm/storage-blob/src/sas/AccountSASPermissions.js +2 -2
  58. package/dist-esm/storage-blob/src/sas/AccountSASPermissions.js.map +1 -1
  59. package/dist-esm/storage-blob/src/sas/AccountSASResourceTypes.js +1 -1
  60. package/dist-esm/storage-blob/src/sas/AccountSASResourceTypes.js.map +1 -1
  61. package/dist-esm/storage-blob/src/sas/AccountSASSignatureValues.js +1 -1
  62. package/dist-esm/storage-blob/src/sas/AccountSASSignatureValues.js.map +1 -1
  63. package/dist-esm/storage-blob/src/sas/BlobSASSignatureValues.js +1 -1
  64. package/dist-esm/storage-blob/src/sas/BlobSASSignatureValues.js.map +1 -1
  65. package/dist-esm/storage-blob/src/sas/ContainerSASPermissions.js +1 -1
  66. package/dist-esm/storage-blob/src/sas/ContainerSASPermissions.js.map +1 -1
  67. package/dist-esm/storage-blob/src/sas/SASQueryParameters.js.map +1 -1
  68. package/dist-esm/storage-blob/src/utils/BlobQuickQueryStream.js.map +1 -1
  69. package/dist-esm/storage-blob/src/utils/RetriableReadableStream.js.map +1 -1
  70. package/dist-esm/storage-blob/src/utils/cache.js.map +1 -1
  71. package/dist-esm/storage-blob/src/utils/constants.js +1 -1
  72. package/dist-esm/storage-blob/src/utils/constants.js.map +1 -1
  73. package/dist-esm/storage-blob/src/utils/utils.common.js +3 -3
  74. package/dist-esm/storage-blob/src/utils/utils.common.js.map +1 -1
  75. package/dist-esm/storage-blob/src/utils/utils.node.js +1 -1
  76. package/dist-esm/storage-blob/src/utils/utils.node.js.map +1 -1
  77. package/dist-esm/storage-file-share/src/AccountSASPermissions.js +2 -2
  78. package/dist-esm/storage-file-share/src/AccountSASPermissions.js.map +1 -1
  79. package/dist-esm/storage-file-share/src/AccountSASResourceTypes.js +1 -1
  80. package/dist-esm/storage-file-share/src/AccountSASResourceTypes.js.map +1 -1
  81. package/dist-esm/storage-file-share/src/AccountSASSignatureValues.js +1 -1
  82. package/dist-esm/storage-file-share/src/AccountSASSignatureValues.js.map +1 -1
  83. package/dist-esm/storage-file-share/src/Clients.js +103 -79
  84. package/dist-esm/storage-file-share/src/Clients.js.map +1 -1
  85. package/dist-esm/storage-file-share/src/FileDownloadResponse.js +25 -1
  86. package/dist-esm/storage-file-share/src/FileDownloadResponse.js.map +1 -1
  87. package/dist-esm/storage-file-share/src/FileSASSignatureValues.js.map +1 -1
  88. package/dist-esm/storage-file-share/src/FileSystemAttributes.js +1 -1
  89. package/dist-esm/storage-file-share/src/FileSystemAttributes.js.map +1 -1
  90. package/dist-esm/storage-file-share/src/Pipeline.js.map +1 -1
  91. package/dist-esm/storage-file-share/src/Range.js.map +1 -1
  92. package/dist-esm/storage-file-share/src/SASQueryParameters.js.map +1 -1
  93. package/dist-esm/storage-file-share/src/ShareClientInternal.js.map +1 -1
  94. package/dist-esm/storage-file-share/src/ShareSASPermissions.js +1 -1
  95. package/dist-esm/storage-file-share/src/ShareSASPermissions.js.map +1 -1
  96. package/dist-esm/storage-file-share/src/ShareServiceClient.js +13 -7
  97. package/dist-esm/storage-file-share/src/ShareServiceClient.js.map +1 -1
  98. package/dist-esm/storage-file-share/src/StorageClient.js.map +1 -1
  99. package/dist-esm/storage-file-share/src/StorageContextClient.js.map +1 -1
  100. package/dist-esm/storage-file-share/src/StorageRetryPolicyFactory.js.map +1 -1
  101. package/dist-esm/storage-file-share/src/generated/src/models/index.js +10 -0
  102. package/dist-esm/storage-file-share/src/generated/src/models/index.js.map +1 -1
  103. package/dist-esm/storage-file-share/src/generated/src/models/mappers.js +544 -0
  104. package/dist-esm/storage-file-share/src/generated/src/models/mappers.js.map +1 -1
  105. package/dist-esm/storage-file-share/src/generated/src/models/parameters.js +108 -3
  106. package/dist-esm/storage-file-share/src/generated/src/models/parameters.js.map +1 -1
  107. package/dist-esm/storage-file-share/src/generated/src/operations/directory.js +12 -10
  108. package/dist-esm/storage-file-share/src/generated/src/operations/directory.js.map +1 -1
  109. package/dist-esm/storage-file-share/src/generated/src/operations/file.js +125 -10
  110. package/dist-esm/storage-file-share/src/generated/src/operations/file.js.map +1 -1
  111. package/dist-esm/storage-file-share/src/generated/src/operationsInterfaces/directory.js.map +1 -1
  112. package/dist-esm/storage-file-share/src/generated/src/operationsInterfaces/file.js.map +1 -1
  113. package/dist-esm/storage-file-share/src/generated/src/storageClient.js +2 -2
  114. package/dist-esm/storage-file-share/src/generated/src/storageClient.js.map +1 -1
  115. package/dist-esm/storage-file-share/src/generatedModels.js.map +1 -1
  116. package/dist-esm/storage-file-share/src/index.browser.js +1 -0
  117. package/dist-esm/storage-file-share/src/index.browser.js.map +1 -1
  118. package/dist-esm/storage-file-share/src/index.js +1 -0
  119. package/dist-esm/storage-file-share/src/index.js.map +1 -1
  120. package/dist-esm/storage-file-share/src/models.js +0 -21
  121. package/dist-esm/storage-file-share/src/models.js.map +1 -1
  122. package/dist-esm/storage-file-share/src/policies/StorageRetryPolicy.js.map +1 -1
  123. package/dist-esm/storage-file-share/src/policies/StorageRetryPolicyV2.js +1 -1
  124. package/dist-esm/storage-file-share/src/policies/StorageRetryPolicyV2.js.map +1 -1
  125. package/dist-esm/storage-file-share/src/utils/BufferScheduler.js.map +1 -1
  126. package/dist-esm/storage-file-share/src/utils/RetriableReadableStream.js.map +1 -1
  127. package/dist-esm/storage-file-share/src/utils/constants.js +2 -2
  128. package/dist-esm/storage-file-share/src/utils/constants.js.map +1 -1
  129. package/dist-esm/storage-file-share/src/utils/utils.common.js +214 -3
  130. package/dist-esm/storage-file-share/src/utils/utils.common.js.map +1 -1
  131. package/package.json +11 -15
  132. package/types/latest/storage-file-share.d.ts +978 -144
package/dist/index.js CHANGED
@@ -132,12 +132,12 @@ class AccountSASPermissions {
132
132
  * Using this method will guarantee the resource types are in
133
133
  * an order accepted by the service.
134
134
  *
135
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-an-account-sas
135
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-an-account-sas
136
136
  *
137
137
  */
138
138
  toString() {
139
139
  // The order of the characters should be as specified here to ensure correctness:
140
- // https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-an-account-sas
140
+ // https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-an-account-sas
141
141
  // Use a string array instead of string concatenating += operator for performance
142
142
  const permissions = [];
143
143
  if (this.read) {
@@ -222,7 +222,7 @@ class AccountSASResourceTypes {
222
222
  /**
223
223
  * Converts the given resource types to a string.
224
224
  *
225
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-an-account-sas
225
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-an-account-sas
226
226
  *
227
227
  */
228
228
  toString() {
@@ -336,8 +336,8 @@ function ipRangeToString(ipRange) {
336
336
 
337
337
  // Copyright (c) Microsoft Corporation.
338
338
  // Licensed under the MIT License.
339
- const SDK_VERSION = "12.26.0-beta.1";
340
- const SERVICE_VERSION = "2025-01-05";
339
+ const SDK_VERSION = "12.27.0-beta.1";
340
+ const SERVICE_VERSION = "2025-05-05";
341
341
  const FILE_MAX_SIZE_BYTES = 4 * 1024 * 1024 * 1024 * 1024; // 4TB
342
342
  const FILE_RANGE_MAX_SIZE_BYTES = 4 * 1024 * 1024; // 4MB
343
343
  const DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS = 5;
@@ -349,14 +349,10 @@ const REQUEST_TIMEOUT = 100 * 1000; // In ms
349
349
  const StorageOAuthScopes = "https://storage.azure.com/.default";
350
350
  const URLConstants$1 = {
351
351
  Parameters: {
352
- FORCE_BROWSER_NO_CACHE: "_",
353
352
  SHARE_SNAPSHOT: "sharesnapshot",
354
- SIGNATURE: "sig",
355
353
  TIMEOUT: "timeout",
356
354
  },
357
355
  };
358
- const FileAttributesPreserve = "Preserve";
359
- const FileAttributesNone = "None";
360
356
  const StorageFileLoggingAllowedHeaderNames = [
361
357
  "Access-Control-Allow-Origin",
362
358
  "Cache-Control",
@@ -515,8 +511,8 @@ const PathStylePorts = [
515
511
  *
516
512
  * 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.
517
513
  *
518
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata
519
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-shares--directories--files--and-metadata
514
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata
515
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-shares--directories--files--and-metadata
520
516
  *
521
517
  * @param url -
522
518
  */
@@ -717,7 +713,6 @@ async function delay(timeInMs, aborter, abortError) {
717
713
  }
718
714
  resolve();
719
715
  };
720
- /* eslint-disable-next-line prefer-const */
721
716
  timeout = setTimeout(resolveHandler, timeInMs);
722
717
  if (aborter !== undefined) {
723
718
  aborter.addEventListener("abort", abortHandler);
@@ -926,6 +921,218 @@ function asSharePermission(value) {
926
921
  permission: value,
927
922
  };
928
923
  }
924
+ /**
925
+ * Parse 4-digit octal string representation of a File Mode to a {@link NfsFileMode} structure.
926
+ */
927
+ function parseOctalFileMode(input) {
928
+ if (input === undefined) {
929
+ return undefined;
930
+ }
931
+ if ((input === null || input === void 0 ? void 0 : input.length) !== 4) {
932
+ throw new Error("Invalid format of input string");
933
+ }
934
+ const nfsFileMode = {
935
+ owner: parseOctalRolePermissions(input[1]),
936
+ group: parseOctalRolePermissions(input[2]),
937
+ other: parseOctalRolePermissions(input[3]),
938
+ effectiveUserIdentity: false,
939
+ effectiveGroupIdentity: false,
940
+ stickyBit: false,
941
+ };
942
+ const value = Number.parseInt(input[0]);
943
+ if ((value & 4) > 0) {
944
+ nfsFileMode.effectiveUserIdentity = true;
945
+ }
946
+ if ((value & 2) > 0) {
947
+ nfsFileMode.effectiveGroupIdentity = true;
948
+ }
949
+ if ((value & 1) > 0) {
950
+ nfsFileMode.stickyBit = true;
951
+ }
952
+ return nfsFileMode;
953
+ }
954
+ /**
955
+ * Convert {@link NfsFileMode} structure to a 4-digit octal string represenation.
956
+ */
957
+ function toOctalFileMode(input) {
958
+ if (input === undefined)
959
+ return undefined;
960
+ let higherOrderDigit = 0;
961
+ if (input === null || input === void 0 ? void 0 : input.effectiveUserIdentity) {
962
+ higherOrderDigit |= 4;
963
+ }
964
+ if (input === null || input === void 0 ? void 0 : input.effectiveGroupIdentity) {
965
+ higherOrderDigit |= 2;
966
+ }
967
+ if (input === null || input === void 0 ? void 0 : input.stickyBit) {
968
+ higherOrderDigit |= 1;
969
+ }
970
+ let stringFileMode = higherOrderDigit.toString();
971
+ stringFileMode += toOctalRolePermissions(input.owner);
972
+ stringFileMode += toOctalRolePermissions(input.group);
973
+ stringFileMode += toOctalRolePermissions(input.other);
974
+ return stringFileMode;
975
+ }
976
+ /**
977
+ * Convert a {@link NfsFileMode} to a string in symbolic notation.
978
+ */
979
+ function toSymbolicFileMode(input) {
980
+ if (input === undefined)
981
+ return undefined;
982
+ let ownerPermissions = toSymbolicRolePermissions(input.owner);
983
+ let groupPermissions = toSymbolicRolePermissions(input.group);
984
+ let otherPermissions = toSymbolicRolePermissions(input.other);
985
+ if (input.effectiveUserIdentity) {
986
+ if (ownerPermissions[2] === "x") {
987
+ ownerPermissions = ownerPermissions.substring(0, 2) + "s";
988
+ }
989
+ else {
990
+ ownerPermissions = ownerPermissions.substring(0, 2) + "S";
991
+ }
992
+ }
993
+ if (input.effectiveGroupIdentity) {
994
+ if (groupPermissions[2] === "x") {
995
+ groupPermissions = groupPermissions.substring(0, 2) + "s";
996
+ }
997
+ else {
998
+ groupPermissions = groupPermissions.substring(0, 2) + "S";
999
+ }
1000
+ }
1001
+ if (input.stickyBit) {
1002
+ if (otherPermissions[2] === "x") {
1003
+ otherPermissions = otherPermissions.substring(0, 2) + "t";
1004
+ }
1005
+ else {
1006
+ otherPermissions = otherPermissions.substring(0, 2) + "T";
1007
+ }
1008
+ }
1009
+ return ownerPermissions + groupPermissions + otherPermissions;
1010
+ }
1011
+ /**
1012
+ * Parse a 9-character symbolic string representation of a File Mode to a {@link NfsFileMode} structure.
1013
+ */
1014
+ function parseSymbolicFileMode(input) {
1015
+ if (input === undefined)
1016
+ return undefined;
1017
+ if ((input === null || input === void 0 ? void 0 : input.length) !== 9) {
1018
+ throw new Error("Invalid format of input string");
1019
+ }
1020
+ const ownerPermissions = parseSymbolicRolePermissions(input.substring(0, 3));
1021
+ const groupPermissions = parseSymbolicRolePermissions(input.substring(3, 6));
1022
+ const otherPermissions = parseSymbolicRolePermissions(input.substring(6, 9));
1023
+ const nfsFileMode = {
1024
+ owner: ownerPermissions.rolePermissions,
1025
+ group: groupPermissions.rolePermissions,
1026
+ other: otherPermissions.rolePermissions,
1027
+ effectiveUserIdentity: ownerPermissions.setSticky,
1028
+ effectiveGroupIdentity: groupPermissions.setSticky,
1029
+ stickyBit: otherPermissions.setSticky,
1030
+ };
1031
+ return nfsFileMode;
1032
+ }
1033
+ function parseOctalRolePermissions(c) {
1034
+ const rolePermissions = {
1035
+ read: false,
1036
+ write: false,
1037
+ execute: false,
1038
+ };
1039
+ const value = Number.parseInt(c);
1040
+ if (value < 0 || value > 7) {
1041
+ throw new Error("MustBeBetweenInclusive");
1042
+ }
1043
+ if ((value & 4) > 0) {
1044
+ rolePermissions.read = true;
1045
+ }
1046
+ if ((value & 2) > 0) {
1047
+ rolePermissions.write = true;
1048
+ }
1049
+ if ((value & 1) > 0) {
1050
+ rolePermissions.execute = true;
1051
+ }
1052
+ return rolePermissions;
1053
+ }
1054
+ function toOctalRolePermissions(rolePermissions) {
1055
+ let result = 0;
1056
+ if (rolePermissions.read === true) {
1057
+ result |= 4;
1058
+ }
1059
+ if (rolePermissions.write === true) {
1060
+ result |= 2;
1061
+ }
1062
+ if (rolePermissions.execute === true) {
1063
+ result |= 1;
1064
+ }
1065
+ return result.toString();
1066
+ }
1067
+ function toSymbolicRolePermissions(rolePermissions) {
1068
+ let symbolicRolePermissions = "";
1069
+ if (rolePermissions.read === true) {
1070
+ symbolicRolePermissions += "r";
1071
+ }
1072
+ else {
1073
+ symbolicRolePermissions += "-";
1074
+ }
1075
+ if (rolePermissions.write === true) {
1076
+ symbolicRolePermissions += "w";
1077
+ }
1078
+ else {
1079
+ symbolicRolePermissions += "-";
1080
+ }
1081
+ if (rolePermissions.execute === true) {
1082
+ symbolicRolePermissions += "x";
1083
+ }
1084
+ else {
1085
+ symbolicRolePermissions += "-";
1086
+ }
1087
+ return symbolicRolePermissions;
1088
+ }
1089
+ function parseSymbolicRolePermissions(input) {
1090
+ if (input.length !== 3) {
1091
+ throw new Error("input must be 3 characters long");
1092
+ }
1093
+ const rolePermissions = {
1094
+ read: false,
1095
+ write: false,
1096
+ execute: false,
1097
+ };
1098
+ let setSticky = false;
1099
+ // Read character
1100
+ if (input[0] === "r") {
1101
+ rolePermissions.read = true;
1102
+ }
1103
+ else if (input[0] !== "-") {
1104
+ throw new Error(`Invalid character in symbolic role permission: ${input[0]}`);
1105
+ }
1106
+ // Write character
1107
+ if (input[1] === "w") {
1108
+ rolePermissions.write = true;
1109
+ }
1110
+ else if (input[1] !== "-") {
1111
+ throw new Error(`Invalid character in symbolic role permission: ${input[1]}`);
1112
+ }
1113
+ // Execute character
1114
+ if (input[2] === "x" || input[2] === "s" || input[2] === "t") {
1115
+ rolePermissions.execute = true;
1116
+ if (input[2] === "s" || input[2] === "t") {
1117
+ setSticky = true;
1118
+ }
1119
+ }
1120
+ if (input[2] === "S" || input[2] === "T") {
1121
+ setSticky = true;
1122
+ }
1123
+ if (input[2] !== "x" &&
1124
+ input[2] !== "s" &&
1125
+ input[2] !== "S" &&
1126
+ input[2] !== "t" &&
1127
+ input[2] !== "T" &&
1128
+ input[2] !== "-") {
1129
+ throw new Error(`Invalid character in symbolic role permission: ${input[2]}`);
1130
+ }
1131
+ return {
1132
+ rolePermissions,
1133
+ setSticky,
1134
+ };
1135
+ }
929
1136
 
930
1137
  // Copyright (c) Microsoft Corporation.
931
1138
  // Licensed under the MIT License.
@@ -1110,7 +1317,7 @@ class SASQueryParameters {
1110
1317
  * Generates a {@link SASQueryParameters} object which contains all SAS query parameters needed to make an actual
1111
1318
  * REST request.
1112
1319
  *
1113
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-an-account-sas
1320
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-an-account-sas
1114
1321
  *
1115
1322
  * @param sharedKeyCredential -
1116
1323
  */
@@ -1316,7 +1523,7 @@ class ShareSASPermissions {
1316
1523
  * order accepted by the service.
1317
1524
  *
1318
1525
  * The order of the characters should be as specified here to ensure correctness.
1319
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
1526
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
1320
1527
  *
1321
1528
  */
1322
1529
  toString() {
@@ -1696,22 +1903,14 @@ class StorageRetryPolicyFactory {
1696
1903
  // Licensed under the MIT License.
1697
1904
  const URLConstants = {
1698
1905
  Parameters: {
1699
- FORCE_BROWSER_NO_CACHE: "_",
1700
- SIGNATURE: "sig",
1701
- SNAPSHOT: "snapshot",
1702
- VERSIONID: "versionid",
1703
- TIMEOUT: "timeout",
1704
- },
1906
+ FORCE_BROWSER_NO_CACHE: "_"},
1705
1907
  };
1706
1908
  const HeaderConstants = {
1707
1909
  AUTHORIZATION: "Authorization",
1708
- AUTHORIZATION_SCHEME: "Bearer",
1709
1910
  CONTENT_ENCODING: "Content-Encoding",
1710
- CONTENT_ID: "Content-ID",
1711
1911
  CONTENT_LANGUAGE: "Content-Language",
1712
1912
  CONTENT_LENGTH: "Content-Length",
1713
1913
  CONTENT_MD5: "Content-Md5",
1714
- CONTENT_TRANSFER_ENCODING: "Content-Transfer-Encoding",
1715
1914
  CONTENT_TYPE: "Content-Type",
1716
1915
  COOKIE: "Cookie",
1717
1916
  DATE: "date",
@@ -1721,14 +1920,7 @@ const HeaderConstants = {
1721
1920
  IF_UNMODIFIED_SINCE: "if-unmodified-since",
1722
1921
  PREFIX_FOR_STORAGE: "x-ms-",
1723
1922
  RANGE: "Range",
1724
- USER_AGENT: "User-Agent",
1725
- X_MS_CLIENT_REQUEST_ID: "x-ms-client-request-id",
1726
- X_MS_COPY_SOURCE: "x-ms-copy-source",
1727
- X_MS_DATE: "x-ms-date",
1728
- X_MS_ERROR_CODE: "x-ms-error-code",
1729
- X_MS_VERSION: "x-ms-version",
1730
- X_MS_CopySourceErrorCode: "x-ms-copy-source-error-code",
1731
- };
1923
+ X_MS_DATE: "x-ms-date"};
1732
1924
 
1733
1925
  // Copyright (c) Microsoft Corporation.
1734
1926
  // Licensed under the MIT License.
@@ -1960,7 +2152,7 @@ class StorageSharedKeyCredentialPolicy extends CredentialPolicy {
1960
2152
  }
1961
2153
  /**
1962
2154
  * Retrieve header value according to shared key sign rules.
1963
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/authenticate-with-shared-key
2155
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/authenticate-with-shared-key
1964
2156
  *
1965
2157
  * @param request -
1966
2158
  * @param headerName -
@@ -1972,7 +2164,7 @@ class StorageSharedKeyCredentialPolicy extends CredentialPolicy {
1972
2164
  }
1973
2165
  // When using version 2015-02-21 or later, if Content-Length is zero, then
1974
2166
  // set the Content-Length part of the StringToSign to an empty string.
1975
- // https://docs.microsoft.com/en-us/rest/api/storageservices/authenticate-with-shared-key
2167
+ // https://learn.microsoft.com/en-us/rest/api/storageservices/authenticate-with-shared-key
1976
2168
  if (headerName === HeaderConstants.CONTENT_LENGTH && value === "0") {
1977
2169
  return "";
1978
2170
  }
@@ -2200,7 +2392,6 @@ const DEFAULT_RETRY_OPTIONS = {
2200
2392
  maxTries: 4,
2201
2393
  retryDelayInMs: 4 * 1000,
2202
2394
  retryPolicyType: StorageRetryPolicyType.EXPONENTIAL,
2203
- secondaryHost: "",
2204
2395
  tryTimeoutInMs: undefined, // Use server side default timeout strategy
2205
2396
  };
2206
2397
  const retriableErrors = [
@@ -2251,10 +2442,6 @@ function storageRetryPolicy(options = {}) {
2251
2442
  // case, we'll never try the secondary again for this operation.
2252
2443
  if (response || error) {
2253
2444
  const statusCode = (_b = (_a = response === null || response === void 0 ? void 0 : response.status) !== null && _a !== void 0 ? _a : error === null || error === void 0 ? void 0 : error.statusCode) !== null && _b !== void 0 ? _b : 0;
2254
- if (!isPrimaryRetry && statusCode === 404) {
2255
- logger.info(`RetryPolicy: Secondary access with 404, will retry.`);
2256
- return true;
2257
- }
2258
2445
  // Server internal error or server timeout
2259
2446
  if (statusCode === 503 || statusCode === 500) {
2260
2447
  logger.info(`RetryPolicy: Will retry for status code ${statusCode}.`);
@@ -2386,7 +2573,7 @@ function storageSharedKeyCredentialPolicy(options) {
2386
2573
  }
2387
2574
  /**
2388
2575
  * Retrieve header value according to shared key sign rules.
2389
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/authenticate-with-shared-key
2576
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/authenticate-with-shared-key
2390
2577
  */
2391
2578
  function getHeaderValueToSign(request, headerName) {
2392
2579
  const value = request.headers.get(headerName);
@@ -2395,7 +2582,7 @@ function storageSharedKeyCredentialPolicy(options) {
2395
2582
  }
2396
2583
  // When using version 2015-02-21 or later, if Content-Length is zero, then
2397
2584
  // set the Content-Length part of the StringToSign to an empty string.
2398
- // https://docs.microsoft.com/en-us/rest/api/storageservices/authenticate-with-shared-key
2585
+ // https://learn.microsoft.com/en-us/rest/api/storageservices/authenticate-with-shared-key
2399
2586
  if (headerName === HeaderConstants.CONTENT_LENGTH && value === "0") {
2400
2587
  return "";
2401
2588
  }
@@ -5713,6 +5900,34 @@ const DirectoryCreateHeaders = {
5713
5900
  name: "String"
5714
5901
  }
5715
5902
  },
5903
+ fileMode: {
5904
+ serializedName: "x-ms-mode",
5905
+ xmlName: "x-ms-mode",
5906
+ type: {
5907
+ name: "String"
5908
+ }
5909
+ },
5910
+ owner: {
5911
+ serializedName: "x-ms-owner",
5912
+ xmlName: "x-ms-owner",
5913
+ type: {
5914
+ name: "String"
5915
+ }
5916
+ },
5917
+ group: {
5918
+ serializedName: "x-ms-group",
5919
+ xmlName: "x-ms-group",
5920
+ type: {
5921
+ name: "String"
5922
+ }
5923
+ },
5924
+ nfsFileType: {
5925
+ serializedName: "x-ms-file-file-type",
5926
+ xmlName: "x-ms-file-file-type",
5927
+ type: {
5928
+ name: "String"
5929
+ }
5930
+ },
5716
5931
  errorCode: {
5717
5932
  serializedName: "x-ms-error-code",
5718
5933
  xmlName: "x-ms-error-code",
@@ -5845,6 +6060,34 @@ const DirectoryGetPropertiesHeaders = {
5845
6060
  name: "String"
5846
6061
  }
5847
6062
  },
6063
+ fileMode: {
6064
+ serializedName: "x-ms-mode",
6065
+ xmlName: "x-ms-mode",
6066
+ type: {
6067
+ name: "String"
6068
+ }
6069
+ },
6070
+ owner: {
6071
+ serializedName: "x-ms-owner",
6072
+ xmlName: "x-ms-owner",
6073
+ type: {
6074
+ name: "String"
6075
+ }
6076
+ },
6077
+ group: {
6078
+ serializedName: "x-ms-group",
6079
+ xmlName: "x-ms-group",
6080
+ type: {
6081
+ name: "String"
6082
+ }
6083
+ },
6084
+ nfsFileType: {
6085
+ serializedName: "x-ms-file-file-type",
6086
+ xmlName: "x-ms-file-file-type",
6087
+ type: {
6088
+ name: "String"
6089
+ }
6090
+ },
5848
6091
  errorCode: {
5849
6092
  serializedName: "x-ms-error-code",
5850
6093
  xmlName: "x-ms-error-code",
@@ -6021,6 +6264,27 @@ const DirectorySetPropertiesHeaders = {
6021
6264
  name: "String"
6022
6265
  }
6023
6266
  },
6267
+ fileMode: {
6268
+ serializedName: "x-ms-mode",
6269
+ xmlName: "x-ms-mode",
6270
+ type: {
6271
+ name: "String"
6272
+ }
6273
+ },
6274
+ owner: {
6275
+ serializedName: "x-ms-owner",
6276
+ xmlName: "x-ms-owner",
6277
+ type: {
6278
+ name: "String"
6279
+ }
6280
+ },
6281
+ group: {
6282
+ serializedName: "x-ms-group",
6283
+ xmlName: "x-ms-group",
6284
+ type: {
6285
+ name: "String"
6286
+ }
6287
+ },
6024
6288
  errorCode: {
6025
6289
  serializedName: "x-ms-error-code",
6026
6290
  xmlName: "x-ms-error-code",
@@ -6521,6 +6785,34 @@ const FileCreateHeaders = {
6521
6785
  name: "String"
6522
6786
  }
6523
6787
  },
6788
+ fileMode: {
6789
+ serializedName: "x-ms-mode",
6790
+ xmlName: "x-ms-mode",
6791
+ type: {
6792
+ name: "String"
6793
+ }
6794
+ },
6795
+ owner: {
6796
+ serializedName: "x-ms-owner",
6797
+ xmlName: "x-ms-owner",
6798
+ type: {
6799
+ name: "String"
6800
+ }
6801
+ },
6802
+ group: {
6803
+ serializedName: "x-ms-group",
6804
+ xmlName: "x-ms-group",
6805
+ type: {
6806
+ name: "String"
6807
+ }
6808
+ },
6809
+ nfsFileType: {
6810
+ serializedName: "x-ms-file-file-type",
6811
+ xmlName: "x-ms-file-file-type",
6812
+ type: {
6813
+ name: "String"
6814
+ }
6815
+ },
6524
6816
  errorCode: {
6525
6817
  serializedName: "x-ms-error-code",
6526
6818
  xmlName: "x-ms-error-code",
@@ -6796,6 +7088,34 @@ const FileDownloadHeaders = {
6796
7088
  allowedValues: ["locked", "unlocked"]
6797
7089
  }
6798
7090
  },
7091
+ fileMode: {
7092
+ serializedName: "x-ms-mode",
7093
+ xmlName: "x-ms-mode",
7094
+ type: {
7095
+ name: "String"
7096
+ }
7097
+ },
7098
+ owner: {
7099
+ serializedName: "x-ms-owner",
7100
+ xmlName: "x-ms-owner",
7101
+ type: {
7102
+ name: "String"
7103
+ }
7104
+ },
7105
+ group: {
7106
+ serializedName: "x-ms-group",
7107
+ xmlName: "x-ms-group",
7108
+ type: {
7109
+ name: "String"
7110
+ }
7111
+ },
7112
+ linkCount: {
7113
+ serializedName: "x-ms-link-count",
7114
+ xmlName: "x-ms-link-count",
7115
+ type: {
7116
+ name: "Number"
7117
+ }
7118
+ },
6799
7119
  errorCode: {
6800
7120
  serializedName: "x-ms-error-code",
6801
7121
  xmlName: "x-ms-error-code",
@@ -7057,6 +7377,41 @@ const FileGetPropertiesHeaders = {
7057
7377
  allowedValues: ["locked", "unlocked"]
7058
7378
  }
7059
7379
  },
7380
+ fileMode: {
7381
+ serializedName: "x-ms-mode",
7382
+ xmlName: "x-ms-mode",
7383
+ type: {
7384
+ name: "String"
7385
+ }
7386
+ },
7387
+ owner: {
7388
+ serializedName: "x-ms-owner",
7389
+ xmlName: "x-ms-owner",
7390
+ type: {
7391
+ name: "String"
7392
+ }
7393
+ },
7394
+ group: {
7395
+ serializedName: "x-ms-group",
7396
+ xmlName: "x-ms-group",
7397
+ type: {
7398
+ name: "String"
7399
+ }
7400
+ },
7401
+ linkCount: {
7402
+ serializedName: "x-ms-link-count",
7403
+ xmlName: "x-ms-link-count",
7404
+ type: {
7405
+ name: "Number"
7406
+ }
7407
+ },
7408
+ nfsFileType: {
7409
+ serializedName: "x-ms-file-file-type",
7410
+ xmlName: "x-ms-file-file-type",
7411
+ type: {
7412
+ name: "String"
7413
+ }
7414
+ },
7060
7415
  errorCode: {
7061
7416
  serializedName: "x-ms-error-code",
7062
7417
  xmlName: "x-ms-error-code",
@@ -7110,6 +7465,13 @@ const FileDeleteHeaders = {
7110
7465
  name: "DateTimeRfc1123"
7111
7466
  }
7112
7467
  },
7468
+ linkCount: {
7469
+ serializedName: "x-ms-link-count",
7470
+ xmlName: "x-ms-link-count",
7471
+ type: {
7472
+ name: "Number"
7473
+ }
7474
+ },
7113
7475
  errorCode: {
7114
7476
  serializedName: "x-ms-error-code",
7115
7477
  xmlName: "x-ms-error-code",
@@ -7233,6 +7595,34 @@ const FileSetHttpHeadersHeaders = {
7233
7595
  name: "String"
7234
7596
  }
7235
7597
  },
7598
+ fileMode: {
7599
+ serializedName: "x-ms-mode",
7600
+ xmlName: "x-ms-mode",
7601
+ type: {
7602
+ name: "String"
7603
+ }
7604
+ },
7605
+ owner: {
7606
+ serializedName: "x-ms-owner",
7607
+ xmlName: "x-ms-owner",
7608
+ type: {
7609
+ name: "String"
7610
+ }
7611
+ },
7612
+ group: {
7613
+ serializedName: "x-ms-group",
7614
+ xmlName: "x-ms-group",
7615
+ type: {
7616
+ name: "String"
7617
+ }
7618
+ },
7619
+ linkCount: {
7620
+ serializedName: "x-ms-link-count",
7621
+ xmlName: "x-ms-link-count",
7622
+ type: {
7623
+ name: "Number"
7624
+ }
7625
+ },
7236
7626
  errorCode: {
7237
7627
  serializedName: "x-ms-error-code",
7238
7628
  xmlName: "x-ms-error-code",
@@ -8250,68 +8640,415 @@ const FileRenameExceptionHeaders = {
8250
8640
  }
8251
8641
  }
8252
8642
  };
8253
-
8254
- var Mappers = /*#__PURE__*/Object.freeze({
8255
- __proto__: null,
8256
- AccessPolicy: AccessPolicy,
8257
- ClearRange: ClearRange,
8258
- CorsRule: CorsRule,
8259
- DirectoryCreateExceptionHeaders: DirectoryCreateExceptionHeaders,
8260
- DirectoryCreateHeaders: DirectoryCreateHeaders,
8261
- DirectoryDeleteExceptionHeaders: DirectoryDeleteExceptionHeaders,
8262
- DirectoryDeleteHeaders: DirectoryDeleteHeaders,
8263
- DirectoryForceCloseHandlesExceptionHeaders: DirectoryForceCloseHandlesExceptionHeaders,
8264
- DirectoryForceCloseHandlesHeaders: DirectoryForceCloseHandlesHeaders,
8265
- DirectoryGetPropertiesExceptionHeaders: DirectoryGetPropertiesExceptionHeaders,
8266
- DirectoryGetPropertiesHeaders: DirectoryGetPropertiesHeaders,
8267
- DirectoryItem: DirectoryItem,
8268
- DirectoryListFilesAndDirectoriesSegmentExceptionHeaders: DirectoryListFilesAndDirectoriesSegmentExceptionHeaders,
8269
- DirectoryListFilesAndDirectoriesSegmentHeaders: DirectoryListFilesAndDirectoriesSegmentHeaders,
8270
- DirectoryListHandlesExceptionHeaders: DirectoryListHandlesExceptionHeaders,
8271
- DirectoryListHandlesHeaders: DirectoryListHandlesHeaders,
8272
- DirectoryRenameExceptionHeaders: DirectoryRenameExceptionHeaders,
8273
- DirectoryRenameHeaders: DirectoryRenameHeaders,
8274
- DirectorySetMetadataExceptionHeaders: DirectorySetMetadataExceptionHeaders,
8275
- DirectorySetMetadataHeaders: DirectorySetMetadataHeaders,
8276
- DirectorySetPropertiesExceptionHeaders: DirectorySetPropertiesExceptionHeaders,
8277
- DirectorySetPropertiesHeaders: DirectorySetPropertiesHeaders,
8278
- FileAbortCopyExceptionHeaders: FileAbortCopyExceptionHeaders,
8279
- FileAbortCopyHeaders: FileAbortCopyHeaders,
8280
- FileAcquireLeaseExceptionHeaders: FileAcquireLeaseExceptionHeaders,
8281
- FileAcquireLeaseHeaders: FileAcquireLeaseHeaders,
8282
- FileBreakLeaseExceptionHeaders: FileBreakLeaseExceptionHeaders,
8283
- FileBreakLeaseHeaders: FileBreakLeaseHeaders,
8284
- FileChangeLeaseExceptionHeaders: FileChangeLeaseExceptionHeaders,
8285
- FileChangeLeaseHeaders: FileChangeLeaseHeaders,
8286
- FileCreateExceptionHeaders: FileCreateExceptionHeaders,
8287
- FileCreateHeaders: FileCreateHeaders,
8288
- FileDeleteExceptionHeaders: FileDeleteExceptionHeaders,
8289
- FileDeleteHeaders: FileDeleteHeaders,
8290
- FileDownloadExceptionHeaders: FileDownloadExceptionHeaders,
8291
- FileDownloadHeaders: FileDownloadHeaders,
8292
- FileForceCloseHandlesExceptionHeaders: FileForceCloseHandlesExceptionHeaders,
8293
- FileForceCloseHandlesHeaders: FileForceCloseHandlesHeaders,
8294
- FileGetPropertiesExceptionHeaders: FileGetPropertiesExceptionHeaders,
8295
- FileGetPropertiesHeaders: FileGetPropertiesHeaders,
8296
- FileGetRangeListExceptionHeaders: FileGetRangeListExceptionHeaders,
8297
- FileGetRangeListHeaders: FileGetRangeListHeaders,
8298
- FileItem: FileItem,
8299
- FileListHandlesExceptionHeaders: FileListHandlesExceptionHeaders,
8300
- FileListHandlesHeaders: FileListHandlesHeaders,
8301
- FileProperty: FileProperty,
8302
- FileRange: FileRange,
8303
- FileReleaseLeaseExceptionHeaders: FileReleaseLeaseExceptionHeaders,
8304
- FileReleaseLeaseHeaders: FileReleaseLeaseHeaders,
8305
- FileRenameExceptionHeaders: FileRenameExceptionHeaders,
8306
- FileRenameHeaders: FileRenameHeaders,
8307
- FileServiceProperties: FileServiceProperties,
8308
- FileSetHttpHeadersExceptionHeaders: FileSetHttpHeadersExceptionHeaders,
8309
- FileSetHttpHeadersHeaders: FileSetHttpHeadersHeaders,
8310
- FileSetMetadataExceptionHeaders: FileSetMetadataExceptionHeaders,
8311
- FileSetMetadataHeaders: FileSetMetadataHeaders,
8312
- FileStartCopyExceptionHeaders: FileStartCopyExceptionHeaders,
8313
- FileStartCopyHeaders: FileStartCopyHeaders,
8314
- FileUploadRangeExceptionHeaders: FileUploadRangeExceptionHeaders,
8643
+ const FileCreateSymbolicLinkHeaders = {
8644
+ serializedName: "File_createSymbolicLinkHeaders",
8645
+ type: {
8646
+ name: "Composite",
8647
+ className: "FileCreateSymbolicLinkHeaders",
8648
+ modelProperties: {
8649
+ etag: {
8650
+ serializedName: "etag",
8651
+ xmlName: "etag",
8652
+ type: {
8653
+ name: "String"
8654
+ }
8655
+ },
8656
+ lastModified: {
8657
+ serializedName: "last-modified",
8658
+ xmlName: "last-modified",
8659
+ type: {
8660
+ name: "DateTimeRfc1123"
8661
+ }
8662
+ },
8663
+ requestId: {
8664
+ serializedName: "x-ms-request-id",
8665
+ xmlName: "x-ms-request-id",
8666
+ type: {
8667
+ name: "String"
8668
+ }
8669
+ },
8670
+ version: {
8671
+ serializedName: "x-ms-version",
8672
+ xmlName: "x-ms-version",
8673
+ type: {
8674
+ name: "String"
8675
+ }
8676
+ },
8677
+ date: {
8678
+ serializedName: "date",
8679
+ xmlName: "date",
8680
+ type: {
8681
+ name: "DateTimeRfc1123"
8682
+ }
8683
+ },
8684
+ fileCreationTime: {
8685
+ serializedName: "x-ms-file-creation-time",
8686
+ xmlName: "x-ms-file-creation-time",
8687
+ type: {
8688
+ name: "DateTimeRfc1123"
8689
+ }
8690
+ },
8691
+ fileLastWriteTime: {
8692
+ serializedName: "x-ms-file-last-write-time",
8693
+ xmlName: "x-ms-file-last-write-time",
8694
+ type: {
8695
+ name: "DateTimeRfc1123"
8696
+ }
8697
+ },
8698
+ fileChangeTime: {
8699
+ serializedName: "x-ms-file-change-time",
8700
+ xmlName: "x-ms-file-change-time",
8701
+ type: {
8702
+ name: "DateTimeRfc1123"
8703
+ }
8704
+ },
8705
+ fileId: {
8706
+ serializedName: "x-ms-file-id",
8707
+ xmlName: "x-ms-file-id",
8708
+ type: {
8709
+ name: "String"
8710
+ }
8711
+ },
8712
+ fileParentId: {
8713
+ serializedName: "x-ms-file-parent-id",
8714
+ xmlName: "x-ms-file-parent-id",
8715
+ type: {
8716
+ name: "String"
8717
+ }
8718
+ },
8719
+ clientRequestId: {
8720
+ serializedName: "x-ms-client-request-id",
8721
+ xmlName: "x-ms-client-request-id",
8722
+ type: {
8723
+ name: "String"
8724
+ }
8725
+ },
8726
+ fileMode: {
8727
+ serializedName: "x-ms-mode",
8728
+ xmlName: "x-ms-mode",
8729
+ type: {
8730
+ name: "String"
8731
+ }
8732
+ },
8733
+ owner: {
8734
+ serializedName: "x-ms-owner",
8735
+ xmlName: "x-ms-owner",
8736
+ type: {
8737
+ name: "String"
8738
+ }
8739
+ },
8740
+ group: {
8741
+ serializedName: "x-ms-group",
8742
+ xmlName: "x-ms-group",
8743
+ type: {
8744
+ name: "String"
8745
+ }
8746
+ },
8747
+ nfsFileType: {
8748
+ serializedName: "x-ms-file-file-type",
8749
+ xmlName: "x-ms-file-file-type",
8750
+ type: {
8751
+ name: "String"
8752
+ }
8753
+ }
8754
+ }
8755
+ }
8756
+ };
8757
+ const FileCreateSymbolicLinkExceptionHeaders = {
8758
+ serializedName: "File_createSymbolicLinkExceptionHeaders",
8759
+ type: {
8760
+ name: "Composite",
8761
+ className: "FileCreateSymbolicLinkExceptionHeaders",
8762
+ modelProperties: {
8763
+ errorCode: {
8764
+ serializedName: "x-ms-error-code",
8765
+ xmlName: "x-ms-error-code",
8766
+ type: {
8767
+ name: "String"
8768
+ }
8769
+ }
8770
+ }
8771
+ }
8772
+ };
8773
+ const FileGetSymbolicLinkHeaders = {
8774
+ serializedName: "File_getSymbolicLinkHeaders",
8775
+ type: {
8776
+ name: "Composite",
8777
+ className: "FileGetSymbolicLinkHeaders",
8778
+ modelProperties: {
8779
+ etag: {
8780
+ serializedName: "etag",
8781
+ xmlName: "etag",
8782
+ type: {
8783
+ name: "String"
8784
+ }
8785
+ },
8786
+ lastModified: {
8787
+ serializedName: "last-modified",
8788
+ xmlName: "last-modified",
8789
+ type: {
8790
+ name: "DateTimeRfc1123"
8791
+ }
8792
+ },
8793
+ requestId: {
8794
+ serializedName: "x-ms-request-id",
8795
+ xmlName: "x-ms-request-id",
8796
+ type: {
8797
+ name: "String"
8798
+ }
8799
+ },
8800
+ version: {
8801
+ serializedName: "x-ms-version",
8802
+ xmlName: "x-ms-version",
8803
+ type: {
8804
+ name: "String"
8805
+ }
8806
+ },
8807
+ date: {
8808
+ serializedName: "date",
8809
+ xmlName: "date",
8810
+ type: {
8811
+ name: "DateTimeRfc1123"
8812
+ }
8813
+ },
8814
+ linkText: {
8815
+ serializedName: "x-ms-link-text",
8816
+ xmlName: "x-ms-link-text",
8817
+ type: {
8818
+ name: "String"
8819
+ }
8820
+ },
8821
+ clientRequestId: {
8822
+ serializedName: "x-ms-client-request-id",
8823
+ xmlName: "x-ms-client-request-id",
8824
+ type: {
8825
+ name: "String"
8826
+ }
8827
+ }
8828
+ }
8829
+ }
8830
+ };
8831
+ const FileGetSymbolicLinkExceptionHeaders = {
8832
+ serializedName: "File_getSymbolicLinkExceptionHeaders",
8833
+ type: {
8834
+ name: "Composite",
8835
+ className: "FileGetSymbolicLinkExceptionHeaders",
8836
+ modelProperties: {
8837
+ errorCode: {
8838
+ serializedName: "x-ms-error-code",
8839
+ xmlName: "x-ms-error-code",
8840
+ type: {
8841
+ name: "String"
8842
+ }
8843
+ }
8844
+ }
8845
+ }
8846
+ };
8847
+ const FileCreateHardLinkHeaders = {
8848
+ serializedName: "File_createHardLinkHeaders",
8849
+ type: {
8850
+ name: "Composite",
8851
+ className: "FileCreateHardLinkHeaders",
8852
+ modelProperties: {
8853
+ etag: {
8854
+ serializedName: "etag",
8855
+ xmlName: "etag",
8856
+ type: {
8857
+ name: "String"
8858
+ }
8859
+ },
8860
+ lastModified: {
8861
+ serializedName: "last-modified",
8862
+ xmlName: "last-modified",
8863
+ type: {
8864
+ name: "DateTimeRfc1123"
8865
+ }
8866
+ },
8867
+ requestId: {
8868
+ serializedName: "x-ms-request-id",
8869
+ xmlName: "x-ms-request-id",
8870
+ type: {
8871
+ name: "String"
8872
+ }
8873
+ },
8874
+ version: {
8875
+ serializedName: "x-ms-version",
8876
+ xmlName: "x-ms-version",
8877
+ type: {
8878
+ name: "String"
8879
+ }
8880
+ },
8881
+ date: {
8882
+ serializedName: "date",
8883
+ xmlName: "date",
8884
+ type: {
8885
+ name: "DateTimeRfc1123"
8886
+ }
8887
+ },
8888
+ fileCreationTime: {
8889
+ serializedName: "x-ms-file-creation-time",
8890
+ xmlName: "x-ms-file-creation-time",
8891
+ type: {
8892
+ name: "DateTimeRfc1123"
8893
+ }
8894
+ },
8895
+ fileLastWriteTime: {
8896
+ serializedName: "x-ms-file-last-write-time",
8897
+ xmlName: "x-ms-file-last-write-time",
8898
+ type: {
8899
+ name: "DateTimeRfc1123"
8900
+ }
8901
+ },
8902
+ fileChangeTime: {
8903
+ serializedName: "x-ms-file-change-time",
8904
+ xmlName: "x-ms-file-change-time",
8905
+ type: {
8906
+ name: "DateTimeRfc1123"
8907
+ }
8908
+ },
8909
+ fileId: {
8910
+ serializedName: "x-ms-file-id",
8911
+ xmlName: "x-ms-file-id",
8912
+ type: {
8913
+ name: "String"
8914
+ }
8915
+ },
8916
+ fileParentId: {
8917
+ serializedName: "x-ms-file-parent-id",
8918
+ xmlName: "x-ms-file-parent-id",
8919
+ type: {
8920
+ name: "String"
8921
+ }
8922
+ },
8923
+ clientRequestId: {
8924
+ serializedName: "x-ms-client-request-id",
8925
+ xmlName: "x-ms-client-request-id",
8926
+ type: {
8927
+ name: "String"
8928
+ }
8929
+ },
8930
+ linkCount: {
8931
+ serializedName: "x-ms-link-count",
8932
+ xmlName: "x-ms-link-count",
8933
+ type: {
8934
+ name: "Number"
8935
+ }
8936
+ },
8937
+ fileMode: {
8938
+ serializedName: "x-ms-mode",
8939
+ xmlName: "x-ms-mode",
8940
+ type: {
8941
+ name: "String"
8942
+ }
8943
+ },
8944
+ owner: {
8945
+ serializedName: "x-ms-owner",
8946
+ xmlName: "x-ms-owner",
8947
+ type: {
8948
+ name: "String"
8949
+ }
8950
+ },
8951
+ group: {
8952
+ serializedName: "x-ms-group",
8953
+ xmlName: "x-ms-group",
8954
+ type: {
8955
+ name: "String"
8956
+ }
8957
+ },
8958
+ nfsFileType: {
8959
+ serializedName: "x-ms-file-file-type",
8960
+ xmlName: "x-ms-file-file-type",
8961
+ type: {
8962
+ name: "String"
8963
+ }
8964
+ }
8965
+ }
8966
+ }
8967
+ };
8968
+ const FileCreateHardLinkExceptionHeaders = {
8969
+ serializedName: "File_createHardLinkExceptionHeaders",
8970
+ type: {
8971
+ name: "Composite",
8972
+ className: "FileCreateHardLinkExceptionHeaders",
8973
+ modelProperties: {
8974
+ errorCode: {
8975
+ serializedName: "x-ms-error-code",
8976
+ xmlName: "x-ms-error-code",
8977
+ type: {
8978
+ name: "String"
8979
+ }
8980
+ }
8981
+ }
8982
+ }
8983
+ };
8984
+
8985
+ var Mappers = /*#__PURE__*/Object.freeze({
8986
+ __proto__: null,
8987
+ AccessPolicy: AccessPolicy,
8988
+ ClearRange: ClearRange,
8989
+ CorsRule: CorsRule,
8990
+ DirectoryCreateExceptionHeaders: DirectoryCreateExceptionHeaders,
8991
+ DirectoryCreateHeaders: DirectoryCreateHeaders,
8992
+ DirectoryDeleteExceptionHeaders: DirectoryDeleteExceptionHeaders,
8993
+ DirectoryDeleteHeaders: DirectoryDeleteHeaders,
8994
+ DirectoryForceCloseHandlesExceptionHeaders: DirectoryForceCloseHandlesExceptionHeaders,
8995
+ DirectoryForceCloseHandlesHeaders: DirectoryForceCloseHandlesHeaders,
8996
+ DirectoryGetPropertiesExceptionHeaders: DirectoryGetPropertiesExceptionHeaders,
8997
+ DirectoryGetPropertiesHeaders: DirectoryGetPropertiesHeaders,
8998
+ DirectoryItem: DirectoryItem,
8999
+ DirectoryListFilesAndDirectoriesSegmentExceptionHeaders: DirectoryListFilesAndDirectoriesSegmentExceptionHeaders,
9000
+ DirectoryListFilesAndDirectoriesSegmentHeaders: DirectoryListFilesAndDirectoriesSegmentHeaders,
9001
+ DirectoryListHandlesExceptionHeaders: DirectoryListHandlesExceptionHeaders,
9002
+ DirectoryListHandlesHeaders: DirectoryListHandlesHeaders,
9003
+ DirectoryRenameExceptionHeaders: DirectoryRenameExceptionHeaders,
9004
+ DirectoryRenameHeaders: DirectoryRenameHeaders,
9005
+ DirectorySetMetadataExceptionHeaders: DirectorySetMetadataExceptionHeaders,
9006
+ DirectorySetMetadataHeaders: DirectorySetMetadataHeaders,
9007
+ DirectorySetPropertiesExceptionHeaders: DirectorySetPropertiesExceptionHeaders,
9008
+ DirectorySetPropertiesHeaders: DirectorySetPropertiesHeaders,
9009
+ FileAbortCopyExceptionHeaders: FileAbortCopyExceptionHeaders,
9010
+ FileAbortCopyHeaders: FileAbortCopyHeaders,
9011
+ FileAcquireLeaseExceptionHeaders: FileAcquireLeaseExceptionHeaders,
9012
+ FileAcquireLeaseHeaders: FileAcquireLeaseHeaders,
9013
+ FileBreakLeaseExceptionHeaders: FileBreakLeaseExceptionHeaders,
9014
+ FileBreakLeaseHeaders: FileBreakLeaseHeaders,
9015
+ FileChangeLeaseExceptionHeaders: FileChangeLeaseExceptionHeaders,
9016
+ FileChangeLeaseHeaders: FileChangeLeaseHeaders,
9017
+ FileCreateExceptionHeaders: FileCreateExceptionHeaders,
9018
+ FileCreateHardLinkExceptionHeaders: FileCreateHardLinkExceptionHeaders,
9019
+ FileCreateHardLinkHeaders: FileCreateHardLinkHeaders,
9020
+ FileCreateHeaders: FileCreateHeaders,
9021
+ FileCreateSymbolicLinkExceptionHeaders: FileCreateSymbolicLinkExceptionHeaders,
9022
+ FileCreateSymbolicLinkHeaders: FileCreateSymbolicLinkHeaders,
9023
+ FileDeleteExceptionHeaders: FileDeleteExceptionHeaders,
9024
+ FileDeleteHeaders: FileDeleteHeaders,
9025
+ FileDownloadExceptionHeaders: FileDownloadExceptionHeaders,
9026
+ FileDownloadHeaders: FileDownloadHeaders,
9027
+ FileForceCloseHandlesExceptionHeaders: FileForceCloseHandlesExceptionHeaders,
9028
+ FileForceCloseHandlesHeaders: FileForceCloseHandlesHeaders,
9029
+ FileGetPropertiesExceptionHeaders: FileGetPropertiesExceptionHeaders,
9030
+ FileGetPropertiesHeaders: FileGetPropertiesHeaders,
9031
+ FileGetRangeListExceptionHeaders: FileGetRangeListExceptionHeaders,
9032
+ FileGetRangeListHeaders: FileGetRangeListHeaders,
9033
+ FileGetSymbolicLinkExceptionHeaders: FileGetSymbolicLinkExceptionHeaders,
9034
+ FileGetSymbolicLinkHeaders: FileGetSymbolicLinkHeaders,
9035
+ FileItem: FileItem,
9036
+ FileListHandlesExceptionHeaders: FileListHandlesExceptionHeaders,
9037
+ FileListHandlesHeaders: FileListHandlesHeaders,
9038
+ FileProperty: FileProperty,
9039
+ FileRange: FileRange,
9040
+ FileReleaseLeaseExceptionHeaders: FileReleaseLeaseExceptionHeaders,
9041
+ FileReleaseLeaseHeaders: FileReleaseLeaseHeaders,
9042
+ FileRenameExceptionHeaders: FileRenameExceptionHeaders,
9043
+ FileRenameHeaders: FileRenameHeaders,
9044
+ FileServiceProperties: FileServiceProperties,
9045
+ FileSetHttpHeadersExceptionHeaders: FileSetHttpHeadersExceptionHeaders,
9046
+ FileSetHttpHeadersHeaders: FileSetHttpHeadersHeaders,
9047
+ FileSetMetadataExceptionHeaders: FileSetMetadataExceptionHeaders,
9048
+ FileSetMetadataHeaders: FileSetMetadataHeaders,
9049
+ FileStartCopyExceptionHeaders: FileStartCopyExceptionHeaders,
9050
+ FileStartCopyHeaders: FileStartCopyHeaders,
9051
+ FileUploadRangeExceptionHeaders: FileUploadRangeExceptionHeaders,
8315
9052
  FileUploadRangeFromURLExceptionHeaders: FileUploadRangeFromURLExceptionHeaders,
8316
9053
  FileUploadRangeFromURLHeaders: FileUploadRangeFromURLHeaders,
8317
9054
  FileUploadRangeHeaders: FileUploadRangeHeaders,
@@ -8458,7 +9195,7 @@ const timeoutInSeconds = {
8458
9195
  const version = {
8459
9196
  parameterPath: "version",
8460
9197
  mapper: {
8461
- defaultValue: "2025-01-05",
9198
+ defaultValue: "2025-05-05",
8462
9199
  isConstant: true,
8463
9200
  serializedName: "x-ms-version",
8464
9201
  type: {
@@ -9019,10 +9756,9 @@ const filePermissionKey1 = {
9019
9756
  }
9020
9757
  };
9021
9758
  const fileAttributes = {
9022
- parameterPath: "fileAttributes",
9759
+ parameterPath: ["options", "fileAttributes"],
9023
9760
  mapper: {
9024
9761
  serializedName: "x-ms-file-attributes",
9025
- required: true,
9026
9762
  xmlName: "x-ms-file-attributes",
9027
9763
  type: {
9028
9764
  name: "String"
@@ -9059,6 +9795,36 @@ const fileChangeOn = {
9059
9795
  }
9060
9796
  }
9061
9797
  };
9798
+ const owner = {
9799
+ parameterPath: ["options", "owner"],
9800
+ mapper: {
9801
+ serializedName: "x-ms-owner",
9802
+ xmlName: "x-ms-owner",
9803
+ type: {
9804
+ name: "String"
9805
+ }
9806
+ }
9807
+ };
9808
+ const group = {
9809
+ parameterPath: ["options", "group"],
9810
+ mapper: {
9811
+ serializedName: "x-ms-group",
9812
+ xmlName: "x-ms-group",
9813
+ type: {
9814
+ name: "String"
9815
+ }
9816
+ }
9817
+ };
9818
+ const fileMode = {
9819
+ parameterPath: ["options", "fileMode"],
9820
+ mapper: {
9821
+ serializedName: "x-ms-mode",
9822
+ xmlName: "x-ms-mode",
9823
+ type: {
9824
+ name: "String"
9825
+ }
9826
+ }
9827
+ };
9062
9828
  const include1 = {
9063
9829
  parameterPath: ["options", "include"],
9064
9830
  mapper: {
@@ -9328,6 +10094,16 @@ const fileContentDisposition = {
9328
10094
  }
9329
10095
  }
9330
10096
  };
10097
+ const nfsFileType = {
10098
+ parameterPath: ["options", "nfsFileType"],
10099
+ mapper: {
10100
+ serializedName: "x-ms-file-file-type",
10101
+ xmlName: "x-ms-file-file-type",
10102
+ type: {
10103
+ name: "String"
10104
+ }
10105
+ }
10106
+ };
9331
10107
  const range = {
9332
10108
  parameterPath: ["options", "range"],
9333
10109
  mapper: {
@@ -9599,34 +10375,100 @@ const setArchiveAttribute = {
9599
10375
  }
9600
10376
  }
9601
10377
  };
9602
- const comp14 = {
9603
- parameterPath: "comp",
10378
+ const fileModeCopyMode = {
10379
+ parameterPath: ["options", "fileModeCopyMode"],
10380
+ mapper: {
10381
+ serializedName: "x-ms-file-mode-copy-mode",
10382
+ xmlName: "x-ms-file-mode-copy-mode",
10383
+ type: {
10384
+ name: "Enum",
10385
+ allowedValues: ["source", "override"]
10386
+ }
10387
+ }
10388
+ };
10389
+ const fileOwnerCopyMode = {
10390
+ parameterPath: ["options", "fileOwnerCopyMode"],
10391
+ mapper: {
10392
+ serializedName: "x-ms-file-owner-copy-mode",
10393
+ xmlName: "x-ms-file-owner-copy-mode",
10394
+ type: {
10395
+ name: "Enum",
10396
+ allowedValues: ["source", "override"]
10397
+ }
10398
+ }
10399
+ };
10400
+ const comp14 = {
10401
+ parameterPath: "comp",
10402
+ mapper: {
10403
+ defaultValue: "copy",
10404
+ isConstant: true,
10405
+ serializedName: "comp",
10406
+ type: {
10407
+ name: "String"
10408
+ }
10409
+ }
10410
+ };
10411
+ const copyId = {
10412
+ parameterPath: "copyId",
10413
+ mapper: {
10414
+ serializedName: "copyid",
10415
+ required: true,
10416
+ xmlName: "copyid",
10417
+ type: {
10418
+ name: "String"
10419
+ }
10420
+ }
10421
+ };
10422
+ const copyActionAbortConstant = {
10423
+ parameterPath: "copyActionAbortConstant",
10424
+ mapper: {
10425
+ defaultValue: "abort",
10426
+ isConstant: true,
10427
+ serializedName: "x-ms-copy-action",
10428
+ type: {
10429
+ name: "String"
10430
+ }
10431
+ }
10432
+ };
10433
+ const restype3 = {
10434
+ parameterPath: "restype",
9604
10435
  mapper: {
9605
- defaultValue: "copy",
10436
+ defaultValue: "symboliclink",
9606
10437
  isConstant: true,
9607
- serializedName: "comp",
10438
+ serializedName: "restype",
9608
10439
  type: {
9609
10440
  name: "String"
9610
10441
  }
9611
10442
  }
9612
10443
  };
9613
- const copyId = {
9614
- parameterPath: "copyId",
10444
+ const linkText = {
10445
+ parameterPath: "linkText",
9615
10446
  mapper: {
9616
- serializedName: "copyid",
10447
+ serializedName: "x-ms-link-text",
9617
10448
  required: true,
9618
- xmlName: "copyid",
10449
+ xmlName: "x-ms-link-text",
9619
10450
  type: {
9620
10451
  name: "String"
9621
10452
  }
9622
10453
  }
9623
10454
  };
9624
- const copyActionAbortConstant = {
9625
- parameterPath: "copyActionAbortConstant",
10455
+ const restype4 = {
10456
+ parameterPath: "restype",
9626
10457
  mapper: {
9627
- defaultValue: "abort",
10458
+ defaultValue: "hardlink",
9628
10459
  isConstant: true,
9629
- serializedName: "x-ms-copy-action",
10460
+ serializedName: "restype",
10461
+ type: {
10462
+ name: "String"
10463
+ }
10464
+ }
10465
+ };
10466
+ const targetFile = {
10467
+ parameterPath: "targetFile",
10468
+ mapper: {
10469
+ serializedName: "x-ms-file-target-file",
10470
+ required: true,
10471
+ xmlName: "x-ms-file-target-file",
9630
10472
  type: {
9631
10473
  name: "String"
9632
10474
  }
@@ -10451,12 +11293,10 @@ class DirectoryImpl {
10451
11293
  }
10452
11294
  /**
10453
11295
  * Creates a new directory under the specified share or parent directory.
10454
- * @param fileAttributes If specified, the provided file attributes shall be set. Default value:
10455
- * ‘Archive’ for file and ‘Directory’ for directory. ‘None’ can also be specified as default.
10456
11296
  * @param options The options parameters.
10457
11297
  */
10458
- create(fileAttributes, options) {
10459
- return this.client.sendOperationRequest({ fileAttributes, options }, createOperationSpec$1);
11298
+ create(options) {
11299
+ return this.client.sendOperationRequest({ options }, createOperationSpec$1);
10460
11300
  }
10461
11301
  /**
10462
11302
  * Returns all system properties for the specified directory, and can also be used to check the
@@ -10477,12 +11317,10 @@ class DirectoryImpl {
10477
11317
  }
10478
11318
  /**
10479
11319
  * Sets properties on the directory.
10480
- * @param fileAttributes If specified, the provided file attributes shall be set. Default value:
10481
- * ‘Archive’ for file and ‘Directory’ for directory. ‘None’ can also be specified as default.
10482
11320
  * @param options The options parameters.
10483
11321
  */
10484
- setProperties(fileAttributes, options) {
10485
- return this.client.sendOperationRequest({ fileAttributes, options }, setPropertiesOperationSpec);
11322
+ setProperties(options) {
11323
+ return this.client.sendOperationRequest({ options }, setPropertiesOperationSpec);
10486
11324
  }
10487
11325
  /**
10488
11326
  * Updates user defined metadata for the specified directory.
@@ -10552,7 +11390,10 @@ const createOperationSpec$1 = {
10552
11390
  fileAttributes,
10553
11391
  fileCreatedOn,
10554
11392
  fileLastWriteOn,
10555
- fileChangeOn
11393
+ fileChangeOn,
11394
+ owner,
11395
+ group,
11396
+ fileMode
10556
11397
  ],
10557
11398
  isXML: true,
10558
11399
  serializer: xmlSerializer$1
@@ -10636,7 +11477,10 @@ const setPropertiesOperationSpec = {
10636
11477
  fileAttributes,
10637
11478
  fileCreatedOn,
10638
11479
  fileLastWriteOn,
10639
- fileChangeOn
11480
+ fileChangeOn,
11481
+ owner,
11482
+ group,
11483
+ fileMode
10640
11484
  ],
10641
11485
  isXML: true,
10642
11486
  serializer: xmlSerializer$1
@@ -10825,12 +11669,10 @@ class FileImpl {
10825
11669
  /**
10826
11670
  * Creates a new file or replaces a file. Note it only initializes the file with no content.
10827
11671
  * @param fileContentLength Specifies the maximum size for the file, up to 4 TB.
10828
- * @param fileAttributes If specified, the provided file attributes shall be set. Default value:
10829
- * ‘Archive’ for file and ‘Directory’ for directory. ‘None’ can also be specified as default.
10830
11672
  * @param options The options parameters.
10831
11673
  */
10832
- create(fileContentLength, fileAttributes, options) {
10833
- return this.client.sendOperationRequest({ fileContentLength, fileAttributes, options }, createOperationSpec);
11674
+ create(fileContentLength, options) {
11675
+ return this.client.sendOperationRequest({ fileContentLength, options }, createOperationSpec);
10834
11676
  }
10835
11677
  /**
10836
11678
  * Reads or downloads a file from the system, including its metadata and properties.
@@ -10856,12 +11698,10 @@ class FileImpl {
10856
11698
  }
10857
11699
  /**
10858
11700
  * Sets HTTP headers on the file.
10859
- * @param fileAttributes If specified, the provided file attributes shall be set. Default value:
10860
- * ‘Archive’ for file and ‘Directory’ for directory. ‘None’ can also be specified as default.
10861
11701
  * @param options The options parameters.
10862
11702
  */
10863
- setHttpHeaders(fileAttributes, options) {
10864
- return this.client.sendOperationRequest({ fileAttributes, options }, setHttpHeadersOperationSpec);
11703
+ setHttpHeaders(options) {
11704
+ return this.client.sendOperationRequest({ options }, setHttpHeadersOperationSpec);
10865
11705
  }
10866
11706
  /**
10867
11707
  * Updates user-defined metadata for the specified file.
@@ -10993,6 +11833,30 @@ class FileImpl {
10993
11833
  rename(renameSource, options) {
10994
11834
  return this.client.sendOperationRequest({ renameSource, options }, renameOperationSpec);
10995
11835
  }
11836
+ /**
11837
+ * Creates a symbolic link.
11838
+ * @param linkText NFS only. Required. The path to the original file, the symbolic link is pointing to.
11839
+ * The path is of type string which is not resolved and is stored as is. The path can be absolute path
11840
+ * or the relative path depending on the content stored in the symbolic link file.
11841
+ * @param options The options parameters.
11842
+ */
11843
+ createSymbolicLink(linkText, options) {
11844
+ return this.client.sendOperationRequest({ linkText, options }, createSymbolicLinkOperationSpec);
11845
+ }
11846
+ /** @param options The options parameters. */
11847
+ getSymbolicLink(options) {
11848
+ return this.client.sendOperationRequest({ options }, getSymbolicLinkOperationSpec);
11849
+ }
11850
+ /**
11851
+ * Creates a hard link.
11852
+ * @param targetFile NFS only. Required. Specifies the path of the target file to which the link will
11853
+ * be created, up to 2 KiB in length. It should be full path of the target from the root.The target
11854
+ * file must be in the same share and hence the same storage account.
11855
+ * @param options The options parameters.
11856
+ */
11857
+ createHardLink(targetFile, options) {
11858
+ return this.client.sendOperationRequest({ targetFile, options }, createHardLinkOperationSpec);
11859
+ }
10996
11860
  }
10997
11861
  // Operation Specifications
10998
11862
  const xmlSerializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ true);
@@ -11024,6 +11888,9 @@ const createOperationSpec = {
11024
11888
  fileCreatedOn,
11025
11889
  fileLastWriteOn,
11026
11890
  fileChangeOn,
11891
+ owner,
11892
+ group,
11893
+ fileMode,
11027
11894
  fileContentLength,
11028
11895
  fileTypeConstant,
11029
11896
  fileContentType,
@@ -11031,7 +11898,8 @@ const createOperationSpec = {
11031
11898
  fileContentLanguage,
11032
11899
  fileCacheControl,
11033
11900
  fileContentMD5,
11034
- fileContentDisposition
11901
+ fileContentDisposition,
11902
+ nfsFileType
11035
11903
  ],
11036
11904
  isXML: true,
11037
11905
  serializer: xmlSerializer
@@ -11148,6 +12016,9 @@ const setHttpHeadersOperationSpec = {
11148
12016
  fileCreatedOn,
11149
12017
  fileLastWriteOn,
11150
12018
  fileChangeOn,
12019
+ owner,
12020
+ group,
12021
+ fileMode,
11151
12022
  fileContentType,
11152
12023
  fileContentEncoding,
11153
12024
  fileContentLanguage,
@@ -11414,6 +12285,9 @@ const startCopyOperationSpec = {
11414
12285
  allowTrailingDot,
11415
12286
  filePermission,
11416
12287
  filePermissionKey1,
12288
+ owner,
12289
+ group,
12290
+ fileMode,
11417
12291
  fileAttributes1,
11418
12292
  fileCreationTime,
11419
12293
  fileLastWriteTime,
@@ -11422,7 +12296,9 @@ const startCopyOperationSpec = {
11422
12296
  copySource,
11423
12297
  filePermissionCopyMode,
11424
12298
  ignoreReadOnly1,
11425
- setArchiveAttribute
12299
+ setArchiveAttribute,
12300
+ fileModeCopyMode,
12301
+ fileOwnerCopyMode
11426
12302
  ],
11427
12303
  isXML: true,
11428
12304
  serializer: xmlSerializer
@@ -11553,6 +12429,89 @@ const renameOperationSpec = {
11553
12429
  isXML: true,
11554
12430
  serializer: xmlSerializer
11555
12431
  };
12432
+ const createSymbolicLinkOperationSpec = {
12433
+ path: "/{shareName}/{directory}/{fileName}",
12434
+ httpMethod: "PUT",
12435
+ responses: {
12436
+ 201: {
12437
+ headersMapper: FileCreateSymbolicLinkHeaders
12438
+ },
12439
+ default: {
12440
+ bodyMapper: StorageError,
12441
+ headersMapper: FileCreateSymbolicLinkExceptionHeaders
12442
+ }
12443
+ },
12444
+ queryParameters: [timeoutInSeconds, restype3],
12445
+ urlParameters: [url],
12446
+ headerParameters: [
12447
+ version,
12448
+ fileRequestIntent,
12449
+ accept1,
12450
+ metadata,
12451
+ leaseId,
12452
+ requestId,
12453
+ fileCreatedOn,
12454
+ fileLastWriteOn,
12455
+ owner,
12456
+ group,
12457
+ linkText
12458
+ ],
12459
+ isXML: true,
12460
+ serializer: xmlSerializer
12461
+ };
12462
+ const getSymbolicLinkOperationSpec = {
12463
+ path: "/{shareName}/{directory}/{fileName}",
12464
+ httpMethod: "GET",
12465
+ responses: {
12466
+ 200: {
12467
+ headersMapper: FileGetSymbolicLinkHeaders
12468
+ },
12469
+ default: {
12470
+ bodyMapper: StorageError,
12471
+ headersMapper: FileGetSymbolicLinkExceptionHeaders
12472
+ }
12473
+ },
12474
+ queryParameters: [
12475
+ timeoutInSeconds,
12476
+ shareSnapshot,
12477
+ restype3
12478
+ ],
12479
+ urlParameters: [url],
12480
+ headerParameters: [
12481
+ version,
12482
+ fileRequestIntent,
12483
+ accept1,
12484
+ requestId
12485
+ ],
12486
+ isXML: true,
12487
+ serializer: xmlSerializer
12488
+ };
12489
+ const createHardLinkOperationSpec = {
12490
+ path: "/{shareName}/{directory}/{fileName}",
12491
+ httpMethod: "PUT",
12492
+ responses: {
12493
+ 201: {
12494
+ headersMapper: FileCreateHardLinkHeaders
12495
+ },
12496
+ default: {
12497
+ bodyMapper: StorageError,
12498
+ headersMapper: FileCreateHardLinkExceptionHeaders
12499
+ }
12500
+ },
12501
+ queryParameters: [timeoutInSeconds, restype4],
12502
+ urlParameters: [url],
12503
+ headerParameters: [
12504
+ version,
12505
+ fileRequestIntent,
12506
+ accept1,
12507
+ leaseId,
12508
+ requestId,
12509
+ fileTypeConstant,
12510
+ targetFile
12511
+ ],
12512
+ isXML: true,
12513
+ serializer: xmlSerializer
12514
+ };
11556
12515
 
11557
12516
  /*
11558
12517
  * Copyright (c) Microsoft Corporation.
@@ -11580,7 +12539,7 @@ let StorageClient$1 = class StorageClient extends coreHttpCompat__namespace.Exte
11580
12539
  const defaults = {
11581
12540
  requestContentType: "application/json; charset=utf-8"
11582
12541
  };
11583
- const packageDetails = `azsdk-js-azure-storage-file-share/12.26.0-beta.1`;
12542
+ const packageDetails = `azsdk-js-azure-storage-file-share/12.27.0-beta.1`;
11584
12543
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
11585
12544
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
11586
12545
  : `${packageDetails}`;
@@ -11591,200 +12550,56 @@ let StorageClient$1 = class StorageClient extends coreHttpCompat__namespace.Exte
11591
12550
  // Parameter assignments
11592
12551
  this.url = url;
11593
12552
  // Assigning values to Constant parameters
11594
- this.version = options.version || "2025-01-05";
11595
- this.fileRangeWriteFromUrl = options.fileRangeWriteFromUrl || "update";
11596
- this.service = new ServiceImpl(this);
11597
- this.share = new ShareImpl(this);
11598
- this.directory = new DirectoryImpl(this);
11599
- this.file = new FileImpl(this);
11600
- }
11601
- };
11602
-
11603
- // Copyright (c) Microsoft Corporation.
11604
- // Licensed under the MIT License.
11605
- /**
11606
- * @internal
11607
- */
11608
- class StorageContextClient extends StorageClient$1 {
11609
- async sendOperationRequest(operationArguments, operationSpec) {
11610
- const operationSpecToSend = Object.assign({}, operationSpec);
11611
- if (operationSpecToSend.path === "/{shareName}" ||
11612
- operationSpecToSend.path === "/{shareName}/{directory}" ||
11613
- operationSpecToSend.path === "/{shareName}/{directory}/{fileName}") {
11614
- operationSpecToSend.path = "";
11615
- }
11616
- return super.sendOperationRequest(operationArguments, operationSpecToSend);
11617
- }
11618
- }
11619
-
11620
- // Copyright (c) Microsoft Corporation.
11621
- // Licensed under the MIT License.
11622
- /**
11623
- * A StorageClient represents a base client class for ServiceClient, ContainerClient and etc.
11624
- */
11625
- class StorageClient {
11626
- /**
11627
- * Creates an instance of StorageClient.
11628
- * @param url -
11629
- * @param pipeline -
11630
- */
11631
- constructor(url, pipeline) {
11632
- // URL should be encoded and only once, protocol layer shouldn't encode URL again
11633
- this.url = escapeURLPath(url);
11634
- this.accountName = getAccountNameFromUrl(url);
11635
- this.pipeline = pipeline;
11636
- this.storageClientContext = new StorageContextClient(this.url, getCoreClientOptions(pipeline));
11637
- // Remove the default content-type in generated code of StorageClientContext
11638
- const storageClientContext = this.storageClientContext;
11639
- if (storageClientContext.requestContentType) {
11640
- storageClientContext.requestContentType = undefined;
11641
- }
11642
- const credential = getCredentialFromPipeline(pipeline);
11643
- this.credential = credential;
11644
- }
11645
- }
11646
-
11647
- // Copyright (c) Microsoft Corporation.
11648
- // Licensed under the MIT License.
11649
- /**
11650
- * This is a helper class to construct a string representing the NTFS attributes to a file or directory.
11651
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-file#file-system-attributes
11652
- */
11653
- class FileSystemAttributes {
11654
- constructor() {
11655
- /**
11656
- * Specifies a directory or file that is read-only.
11657
- */
11658
- this.readonly = false;
11659
- /**
11660
- * Specifies a directory or file is hidden.
11661
- */
11662
- this.hidden = false;
11663
- /**
11664
- * Specifies a directory or file that the operating system uses a part of, or uses exclusively.
11665
- */
11666
- this.system = false;
11667
- /**
11668
- * Specifies a directory or file that does not have other attributes set. This attribute is valid only when used alone.
11669
- */
11670
- this.none = false;
11671
- /**
11672
- * Specifies the handle identifies a directory.
11673
- */
11674
- this.directory = false;
11675
- /**
11676
- * Specifies a directory or file is an archive. Applications typically use this attribute to mark files for backup or removal.
11677
- */
11678
- this.archive = false;
11679
- /**
11680
- * Specifies if a file is temporary.
11681
- */
11682
- this.temporary = false;
11683
- /**
11684
- * Specifies the data of a directory or file is not available immediately.
11685
- * This file system attribute is presented primarily to provide compatibility with Windows - Azure Files does not support with offline storage options.
11686
- */
11687
- this.offline = false;
11688
- /**
11689
- * Specifies the directory or file is not to be indexed by the content indexing service.
11690
- */
11691
- this.notContentIndexed = false;
11692
- /**
11693
- * Specifies the user data stream not to be read by the background data integrity scanner.
11694
- * This file system attribute is presented primarily to provide compatibility with Windows.
11695
- * Applicable to directory or file.
11696
- */
11697
- this.noScrubData = false;
11698
- }
11699
- /**
11700
- * Creates a FileSystemAttributes from the specified attributes string. This method will throw an
11701
- * Error if it encounters a string that does not correspond to a valid attributes.
11702
- *
11703
- * @param fileAttributes - The value of header x-ms-file-attributes.
11704
- */
11705
- static parse(fileAttributes) {
11706
- if (!fileAttributes) {
11707
- throw new RangeError(`Invalid fileAttributes: '${fileAttributes}'.`);
11708
- }
11709
- const fileSystemAttributes = new FileSystemAttributes();
11710
- const attributes = fileAttributes.trim().split("|");
11711
- for (let str of attributes) {
11712
- str = str.trim();
11713
- switch (str) {
11714
- case "ReadOnly":
11715
- fileSystemAttributes.readonly = true;
11716
- break;
11717
- case "Hidden":
11718
- fileSystemAttributes.hidden = true;
11719
- break;
11720
- case "System":
11721
- fileSystemAttributes.system = true;
11722
- break;
11723
- case "None":
11724
- fileSystemAttributes.none = true;
11725
- break;
11726
- case "Temporary":
11727
- fileSystemAttributes.temporary = true;
11728
- break;
11729
- case "Offline":
11730
- fileSystemAttributes.offline = true;
11731
- break;
11732
- case "Directory":
11733
- fileSystemAttributes.directory = true;
11734
- break;
11735
- case "Archive":
11736
- fileSystemAttributes.archive = true;
11737
- break;
11738
- case "NotContentIndexed":
11739
- fileSystemAttributes.notContentIndexed = true;
11740
- break;
11741
- case "NoScrubData":
11742
- fileSystemAttributes.noScrubData = true;
11743
- break;
11744
- default:
11745
- throw new RangeError(`Invalid attribute: ${str}`);
11746
- }
12553
+ this.version = options.version || "2025-05-05";
12554
+ this.fileRangeWriteFromUrl = options.fileRangeWriteFromUrl || "update";
12555
+ this.service = new ServiceImpl(this);
12556
+ this.share = new ShareImpl(this);
12557
+ this.directory = new DirectoryImpl(this);
12558
+ this.file = new FileImpl(this);
12559
+ }
12560
+ };
12561
+
12562
+ // Copyright (c) Microsoft Corporation.
12563
+ // Licensed under the MIT License.
12564
+ /**
12565
+ * @internal
12566
+ */
12567
+ class StorageContextClient extends StorageClient$1 {
12568
+ async sendOperationRequest(operationArguments, operationSpec) {
12569
+ const operationSpecToSend = Object.assign({}, operationSpec);
12570
+ if (operationSpecToSend.path === "/{shareName}" ||
12571
+ operationSpecToSend.path === "/{shareName}/{directory}" ||
12572
+ operationSpecToSend.path === "/{shareName}/{directory}/{fileName}") {
12573
+ operationSpecToSend.path = "";
11747
12574
  }
11748
- return fileSystemAttributes;
12575
+ return super.sendOperationRequest(operationArguments, operationSpecToSend);
11749
12576
  }
12577
+ }
12578
+
12579
+ // Copyright (c) Microsoft Corporation.
12580
+ // Licensed under the MIT License.
12581
+ /**
12582
+ * A StorageClient represents a base client class for ServiceClient, ContainerClient and etc.
12583
+ */
12584
+ class StorageClient {
11750
12585
  /**
11751
- * Converts the given attributes to a string.
11752
- *
11753
- * @returns A string which represents the FileSystemAttributes
12586
+ * Creates an instance of StorageClient.
12587
+ * @param url -
12588
+ * @param pipeline -
11754
12589
  */
11755
- toString() {
11756
- const attributes = [];
11757
- if (this.readonly) {
11758
- attributes.push("ReadOnly");
11759
- }
11760
- if (this.hidden) {
11761
- attributes.push("Hidden");
11762
- }
11763
- if (this.system) {
11764
- attributes.push("System");
11765
- }
11766
- if (this.none) {
11767
- attributes.push("None");
11768
- }
11769
- if (this.temporary) {
11770
- attributes.push("Temporary");
11771
- }
11772
- if (this.directory) {
11773
- attributes.push("Directory");
11774
- }
11775
- if (this.archive) {
11776
- attributes.push("Archive");
11777
- }
11778
- if (this.offline) {
11779
- attributes.push("Offline");
11780
- }
11781
- if (this.notContentIndexed) {
11782
- attributes.push("NotContentIndexed");
11783
- }
11784
- if (this.noScrubData) {
11785
- attributes.push("NoScrubData");
12590
+ constructor(url, pipeline) {
12591
+ // URL should be encoded and only once, protocol layer shouldn't encode URL again
12592
+ this.url = escapeURLPath(url);
12593
+ this.accountName = getAccountNameFromUrl(url);
12594
+ this.pipeline = pipeline;
12595
+ this.storageClientContext = new StorageContextClient(this.url, getCoreClientOptions(pipeline));
12596
+ // Remove the default content-type in generated code of StorageClientContext
12597
+ const storageClientContext = this.storageClientContext;
12598
+ if (storageClientContext.requestContentType) {
12599
+ storageClientContext.requestContentType = undefined;
11786
12600
  }
11787
- return attributes.join("|");
12601
+ const credential = getCredentialFromPipeline(pipeline);
12602
+ this.credential = credential;
11788
12603
  }
11789
12604
  }
11790
12605
 
@@ -12234,6 +13049,30 @@ class FileDownloadResponse {
12234
13049
  get leaseStatus() {
12235
13050
  return this.originalResponse.leaseStatus;
12236
13051
  }
13052
+ /**
13053
+ * NFS only. The mode of the file or directory.
13054
+ */
13055
+ get fileMode() {
13056
+ return this.originalResponse.fileMode;
13057
+ }
13058
+ /**
13059
+ * TNFS only. The owner of the file or directory.
13060
+ */
13061
+ get owner() {
13062
+ return this.originalResponse.owner;
13063
+ }
13064
+ /**
13065
+ * NFS only. The owning group of the file or directory.
13066
+ */
13067
+ get group() {
13068
+ return this.originalResponse.group;
13069
+ }
13070
+ /**
13071
+ * NFS only. The link count of the file or directory.
13072
+ */
13073
+ get linkCount() {
13074
+ return this.originalResponse.linkCount;
13075
+ }
12237
13076
  /**
12238
13077
  * The response body as a node.js Readable stream.
12239
13078
  * Always undefined in the browser.
@@ -12285,6 +13124,150 @@ function rangeToString(range) {
12285
13124
  : `bytes=${range.offset}-`;
12286
13125
  }
12287
13126
 
13127
+ // Copyright (c) Microsoft Corporation.
13128
+ // Licensed under the MIT License.
13129
+ /**
13130
+ * This is a helper class to construct a string representing the NTFS attributes to a file or directory.
13131
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-file#file-system-attributes
13132
+ */
13133
+ class FileSystemAttributes {
13134
+ constructor() {
13135
+ /**
13136
+ * Specifies a directory or file that is read-only.
13137
+ */
13138
+ this.readonly = false;
13139
+ /**
13140
+ * Specifies a directory or file is hidden.
13141
+ */
13142
+ this.hidden = false;
13143
+ /**
13144
+ * Specifies a directory or file that the operating system uses a part of, or uses exclusively.
13145
+ */
13146
+ this.system = false;
13147
+ /**
13148
+ * Specifies a directory or file that does not have other attributes set. This attribute is valid only when used alone.
13149
+ */
13150
+ this.none = false;
13151
+ /**
13152
+ * Specifies the handle identifies a directory.
13153
+ */
13154
+ this.directory = false;
13155
+ /**
13156
+ * Specifies a directory or file is an archive. Applications typically use this attribute to mark files for backup or removal.
13157
+ */
13158
+ this.archive = false;
13159
+ /**
13160
+ * Specifies if a file is temporary.
13161
+ */
13162
+ this.temporary = false;
13163
+ /**
13164
+ * Specifies the data of a directory or file is not available immediately.
13165
+ * This file system attribute is presented primarily to provide compatibility with Windows - Azure Files does not support with offline storage options.
13166
+ */
13167
+ this.offline = false;
13168
+ /**
13169
+ * Specifies the directory or file is not to be indexed by the content indexing service.
13170
+ */
13171
+ this.notContentIndexed = false;
13172
+ /**
13173
+ * Specifies the user data stream not to be read by the background data integrity scanner.
13174
+ * This file system attribute is presented primarily to provide compatibility with Windows.
13175
+ * Applicable to directory or file.
13176
+ */
13177
+ this.noScrubData = false;
13178
+ }
13179
+ /**
13180
+ * Creates a FileSystemAttributes from the specified attributes string. This method will throw an
13181
+ * Error if it encounters a string that does not correspond to a valid attributes.
13182
+ *
13183
+ * @param fileAttributes - The value of header x-ms-file-attributes.
13184
+ */
13185
+ static parse(fileAttributes) {
13186
+ if (!fileAttributes) {
13187
+ throw new RangeError(`Invalid fileAttributes: '${fileAttributes}'.`);
13188
+ }
13189
+ const fileSystemAttributes = new FileSystemAttributes();
13190
+ const attributes = fileAttributes.trim().split("|");
13191
+ for (let str of attributes) {
13192
+ str = str.trim();
13193
+ switch (str) {
13194
+ case "ReadOnly":
13195
+ fileSystemAttributes.readonly = true;
13196
+ break;
13197
+ case "Hidden":
13198
+ fileSystemAttributes.hidden = true;
13199
+ break;
13200
+ case "System":
13201
+ fileSystemAttributes.system = true;
13202
+ break;
13203
+ case "None":
13204
+ fileSystemAttributes.none = true;
13205
+ break;
13206
+ case "Temporary":
13207
+ fileSystemAttributes.temporary = true;
13208
+ break;
13209
+ case "Offline":
13210
+ fileSystemAttributes.offline = true;
13211
+ break;
13212
+ case "Directory":
13213
+ fileSystemAttributes.directory = true;
13214
+ break;
13215
+ case "Archive":
13216
+ fileSystemAttributes.archive = true;
13217
+ break;
13218
+ case "NotContentIndexed":
13219
+ fileSystemAttributes.notContentIndexed = true;
13220
+ break;
13221
+ case "NoScrubData":
13222
+ fileSystemAttributes.noScrubData = true;
13223
+ break;
13224
+ default:
13225
+ throw new RangeError(`Invalid attribute: ${str}`);
13226
+ }
13227
+ }
13228
+ return fileSystemAttributes;
13229
+ }
13230
+ /**
13231
+ * Converts the given attributes to a string.
13232
+ *
13233
+ * @returns A string which represents the FileSystemAttributes
13234
+ */
13235
+ toString() {
13236
+ const attributes = [];
13237
+ if (this.readonly) {
13238
+ attributes.push("ReadOnly");
13239
+ }
13240
+ if (this.hidden) {
13241
+ attributes.push("Hidden");
13242
+ }
13243
+ if (this.system) {
13244
+ attributes.push("System");
13245
+ }
13246
+ if (this.none) {
13247
+ attributes.push("None");
13248
+ }
13249
+ if (this.temporary) {
13250
+ attributes.push("Temporary");
13251
+ }
13252
+ if (this.directory) {
13253
+ attributes.push("Directory");
13254
+ }
13255
+ if (this.archive) {
13256
+ attributes.push("Archive");
13257
+ }
13258
+ if (this.offline) {
13259
+ attributes.push("Offline");
13260
+ }
13261
+ if (this.notContentIndexed) {
13262
+ attributes.push("NotContentIndexed");
13263
+ }
13264
+ if (this.noScrubData) {
13265
+ attributes.push("NoScrubData");
13266
+ }
13267
+ return attributes.join("|");
13268
+ }
13269
+ }
13270
+
12288
13271
  // Copyright (c) Microsoft Corporation.
12289
13272
  // Licensed under the MIT License.
12290
13273
  /**
@@ -12335,15 +13318,6 @@ function validateAndSetDefaultsForFileAndDirectoryCreateCommonOptions(options) {
12335
13318
  options = {};
12336
13319
  }
12337
13320
  validateFilePermissionOptions(options.filePermission, options.filePermissionKey);
12338
- if (!options.creationTime) {
12339
- options.creationTime = "now";
12340
- }
12341
- if (!options.lastWriteTime) {
12342
- options.lastWriteTime = "now";
12343
- }
12344
- if (!options.filePermission && !options.filePermissionKey) {
12345
- options.filePermission = "inherit";
12346
- }
12347
13321
  return options;
12348
13322
  }
12349
13323
  function validateAndSetDefaultsForFileAndDirectorySetPropertiesCommonOptions(options) {
@@ -12352,18 +13326,6 @@ function validateAndSetDefaultsForFileAndDirectorySetPropertiesCommonOptions(opt
12352
13326
  options = {};
12353
13327
  }
12354
13328
  validateFilePermissionOptions(options.filePermission, options.filePermissionKey);
12355
- if (!options.creationTime) {
12356
- options.creationTime = "preserve";
12357
- }
12358
- if (!options.lastWriteTime) {
12359
- options.lastWriteTime = "preserve";
12360
- }
12361
- if (!options.fileAttributes) {
12362
- options.fileAttributes = "preserve";
12363
- }
12364
- if (!options.filePermission && !options.filePermissionKey) {
12365
- options.filePermission = "preserve";
12366
- }
12367
13329
  return options;
12368
13330
  }
12369
13331
  function fileAttributesToString(fileAttributes) {
@@ -12871,7 +13833,6 @@ class ShareClient extends StorageClient {
12871
13833
  }
12872
13834
  constructor(urlOrConnectionString, credentialOrPipelineOrShareName,
12873
13835
  // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.
12874
- /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */
12875
13836
  options) {
12876
13837
  let pipeline;
12877
13838
  let url;
@@ -12937,7 +13898,7 @@ class ShareClient extends StorageClient {
12937
13898
  /**
12938
13899
  * Creates a new share under the specified account. If the share with
12939
13900
  * the same name already exists, the operation fails.
12940
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-share
13901
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-share
12941
13902
  *
12942
13903
  * @param options - Options to Share Create operation.
12943
13904
  * @returns Response data for the Share Create operation.
@@ -12950,7 +13911,7 @@ class ShareClient extends StorageClient {
12950
13911
  /**
12951
13912
  * Creates a new share under the specified account. If the share with
12952
13913
  * the same name already exists, it is not changed.
12953
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-share
13914
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-share
12954
13915
  *
12955
13916
  * @param options -
12956
13917
  */
@@ -12993,7 +13954,7 @@ class ShareClient extends StorageClient {
12993
13954
  }
12994
13955
  /**
12995
13956
  * Creates a new subdirectory under this share.
12996
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-directory
13957
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-directory
12997
13958
  *
12998
13959
  * @param directoryName -
12999
13960
  * @param options - Options to Directory Create operation.
@@ -13012,7 +13973,7 @@ class ShareClient extends StorageClient {
13012
13973
  /**
13013
13974
  * Removes the specified empty sub directory under this share.
13014
13975
  * Note that the directory must be empty before it can be deleted.
13015
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/delete-directory
13976
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-directory
13016
13977
  *
13017
13978
  * @param directoryName -
13018
13979
  * @param options - Options to Directory Delete operation.
@@ -13027,7 +13988,7 @@ class ShareClient extends StorageClient {
13027
13988
  /**
13028
13989
  * Creates a new file or replaces a file under the root directory of this share.
13029
13990
  * Note it only initializes the file with no content.
13030
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-file
13991
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-file
13031
13992
  *
13032
13993
  * @param fileName -
13033
13994
  * @param size - Specifies the maximum size in bytes for the file, up to 4 TB.
@@ -13058,7 +14019,7 @@ class ShareClient extends StorageClient {
13058
14019
  * a share. An attempt to perform this operation on a share snapshot will fail with 400
13059
14020
  * (`InvalidQueryParameterValue`)
13060
14021
  *
13061
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/delete-file2
14022
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-file2
13062
14023
  *
13063
14024
  * @param directoryName -
13064
14025
  * @param fileName -
@@ -13098,7 +14059,7 @@ class ShareClient extends StorageClient {
13098
14059
  /**
13099
14060
  * Returns all user-defined metadata and system properties for the specified
13100
14061
  * share.
13101
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-share-properties
14062
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-share-properties
13102
14063
  *
13103
14064
  * WARNING: The `metadata` object returned in the response will have its keys in lowercase, even if
13104
14065
  * they originally contained uppercase characters. This differs from the metadata keys returned by
@@ -13116,7 +14077,7 @@ class ShareClient extends StorageClient {
13116
14077
  /**
13117
14078
  * Marks the specified share for deletion. The share and any directories or files
13118
14079
  * contained within it are later deleted during garbage collection.
13119
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/delete-share
14080
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-share
13120
14081
  *
13121
14082
  * @param options - Options to Share Delete operation.
13122
14083
  * @returns Response data for the Share Delete operation.
@@ -13129,7 +14090,7 @@ class ShareClient extends StorageClient {
13129
14090
  /**
13130
14091
  * Marks the specified share for deletion if it exists. The share and any directories or files
13131
14092
  * contained within it are later deleted during garbage collection.
13132
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/delete-share
14093
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-share
13133
14094
  *
13134
14095
  * @param options -
13135
14096
  */
@@ -13153,7 +14114,7 @@ class ShareClient extends StorageClient {
13153
14114
  *
13154
14115
  * If no option provided, or no metadata defined in the option parameter, the share
13155
14116
  * metadata will be removed.
13156
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-share-metadata
14117
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-share-metadata
13157
14118
  *
13158
14119
  * @param metadata - If no metadata provided, all existing directory metadata will be removed.
13159
14120
  * @param option - Options to Share Set Metadata operation.
@@ -13171,7 +14132,7 @@ class ShareClient extends StorageClient {
13171
14132
  * WARNING: JavaScript Date will potential lost precision when parsing start and expiry string.
13172
14133
  * For example, new Date("2018-12-31T03:44:23.8827891Z").toISOString() will get "2018-12-31T03:44:23.882Z".
13173
14134
  *
13174
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-share-acl
14135
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-share-acl
13175
14136
  *
13176
14137
  * @param option - Options to Share Get Access Policy operation.
13177
14138
  * @returns Response data for the Share Get Access Policy operation.
@@ -13220,7 +14181,7 @@ class ShareClient extends StorageClient {
13220
14181
  * When you establish a stored access policy on a share, it may take up to 30 seconds to take effect.
13221
14182
  * During this interval, a shared access signature that is associated with the stored access policy will
13222
14183
  * fail with status code 403 (Forbidden), until the access policy becomes active.
13223
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-share-acl
14184
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-share-acl
13224
14185
  *
13225
14186
  * @param shareAcl - Array of signed identifiers, each having a unique Id and details of access policy.
13226
14187
  * @param option - Options to Share Set Access Policy operation.
@@ -13299,7 +14260,7 @@ class ShareClient extends StorageClient {
13299
14260
  /**
13300
14261
  * Creates a file permission (a security descriptor) at the share level.
13301
14262
  * The created security descriptor can be used for the files/directories in the share.
13302
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-permission
14263
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-permission
13303
14264
  *
13304
14265
  * @param options - Options to Share Create Permission operation.
13305
14266
  * @param filePermission - File permission described in the SDDL
@@ -13312,7 +14273,7 @@ class ShareClient extends StorageClient {
13312
14273
  /**
13313
14274
  * Gets the Security Descriptor Definition Language (SDDL) for a given file permission key
13314
14275
  * which indicates a security descriptor.
13315
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-permission
14276
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-permission
13316
14277
  *
13317
14278
  * @param options - Options to Share Create Permission operation.
13318
14279
  * @param filePermissionKey - File permission key which indicates the security descriptor of the permission.
@@ -13337,7 +14298,7 @@ class ShareClient extends StorageClient {
13337
14298
  * Generates a Service Shared Access Signature (SAS) URI based on the client properties
13338
14299
  * and parameters passed in. The SAS is signed by the shared key credential of the client.
13339
14300
  *
13340
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
14301
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
13341
14302
  *
13342
14303
  * @param options - Optional parameters.
13343
14304
  * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
@@ -13355,7 +14316,7 @@ class ShareClient extends StorageClient {
13355
14316
  * Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
13356
14317
  * and parameters passed in. The SAS is signed by the shared key credential of the client.
13357
14318
  *
13358
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
14319
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
13359
14320
  *
13360
14321
  * @param options - Optional parameters.
13361
14322
  * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
@@ -13417,7 +14378,7 @@ class ShareDirectoryClient extends StorageClient {
13417
14378
  }
13418
14379
  /**
13419
14380
  * Creates a new directory under the specified share or parent directory.
13420
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-directory
14381
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-directory
13421
14382
  *
13422
14383
  * @param options - Options to Directory Create operation.
13423
14384
  * @returns Response data for the Directory operation.
@@ -13425,21 +14386,20 @@ class ShareDirectoryClient extends StorageClient {
13425
14386
  async create(options = {}) {
13426
14387
  if (!options.fileAttributes) {
13427
14388
  options = validateAndSetDefaultsForFileAndDirectoryCreateCommonOptions(options);
13428
- // By default set it as a directory.
13429
- const attributes = new FileSystemAttributes();
13430
- attributes.directory = true;
13431
- options.fileAttributes = attributes;
13432
14389
  }
13433
14390
  return tracingClient.withSpan("ShareDirectoryClient-create", options, async (updatedOptions) => {
13434
- return assertResponse(await this.context.create(updatedOptions.fileAttributes
13435
- ? fileAttributesToString(updatedOptions.fileAttributes)
13436
- : FileAttributesNone, Object.assign(Object.assign(Object.assign({}, updatedOptions), { fileChangeOn: fileChangeTimeToString(updatedOptions.changeTime), fileCreatedOn: fileCreationTimeToString(updatedOptions.creationTime), fileLastWriteOn: fileLastWriteTimeToString(updatedOptions.lastWriteTime) }), this.shareClientConfig)));
14391
+ var _a, _b, _c;
14392
+ const rawResponse = await this.context.create(Object.assign(Object.assign(Object.assign({}, updatedOptions), { fileChangeOn: fileChangeTimeToString(updatedOptions.changeTime), fileCreatedOn: fileCreationTimeToString(updatedOptions.creationTime), fileLastWriteOn: fileLastWriteTimeToString(updatedOptions.lastWriteTime), fileAttributes: updatedOptions.fileAttributes
14393
+ ? fileAttributesToString(updatedOptions.fileAttributes)
14394
+ : undefined, owner: (_a = updatedOptions.posixProperties) === null || _a === void 0 ? void 0 : _a.owner, group: (_b = updatedOptions.posixProperties) === null || _b === void 0 ? void 0 : _b.group, fileMode: toOctalFileMode((_c = updatedOptions.posixProperties) === null || _c === void 0 ? void 0 : _c.fileMode) }), this.shareClientConfig));
14395
+ const wrappedRes = Object.assign(Object.assign({}, rawResponse), { _response: rawResponse._response, fileMode: parseOctalFileMode(rawResponse.fileMode) });
14396
+ return assertResponse(wrappedRes);
13437
14397
  });
13438
14398
  }
13439
14399
  /**
13440
14400
  * Creates a new directory under the specified share or parent directory if it does not already exists.
13441
14401
  * If the directory already exists, it is not modified.
13442
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-directory
14402
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-directory
13443
14403
  *
13444
14404
  * @param options -
13445
14405
  */
@@ -13460,7 +14420,7 @@ class ShareDirectoryClient extends StorageClient {
13460
14420
  }
13461
14421
  /**
13462
14422
  * Sets properties on the directory.
13463
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-directory-properties
14423
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-directory-properties
13464
14424
  *
13465
14425
  * @param DirectoryProperties - Directory properties. If no values are provided,
13466
14426
  * existing values will be preserved.
@@ -13468,9 +14428,11 @@ class ShareDirectoryClient extends StorageClient {
13468
14428
  async setProperties(properties = {}) {
13469
14429
  properties = validateAndSetDefaultsForFileAndDirectorySetPropertiesCommonOptions(properties);
13470
14430
  return tracingClient.withSpan("ShareDirectoryClient-setProperties", properties, async (updatedOptions) => {
13471
- return assertResponse(await this.context.setProperties(updatedOptions.fileAttributes
13472
- ? fileAttributesToString(updatedOptions.fileAttributes)
13473
- : FileAttributesPreserve, Object.assign(Object.assign(Object.assign({}, updatedOptions), { fileChangeOn: fileChangeTimeToString(updatedOptions.changeTime), fileCreatedOn: fileCreationTimeToString(updatedOptions.creationTime), fileLastWriteOn: fileLastWriteTimeToString(updatedOptions.lastWriteTime) }), this.shareClientConfig)));
14431
+ var _a, _b, _c;
14432
+ const rawResponse = await this.context.setProperties(Object.assign(Object.assign(Object.assign({}, updatedOptions), { fileChangeOn: fileChangeTimeToString(updatedOptions.changeTime), fileCreatedOn: fileCreationTimeToString(updatedOptions.creationTime), fileLastWriteOn: fileLastWriteTimeToString(updatedOptions.lastWriteTime), fileAttributes: updatedOptions.fileAttributes
14433
+ ? fileAttributesToString(updatedOptions.fileAttributes)
14434
+ : undefined, owner: (_a = updatedOptions.posixProperties) === null || _a === void 0 ? void 0 : _a.owner, group: (_b = updatedOptions.posixProperties) === null || _b === void 0 ? void 0 : _b.group, fileMode: toOctalFileMode((_c = updatedOptions.posixProperties) === null || _c === void 0 ? void 0 : _c.fileMode) }), this.shareClientConfig));
14435
+ return assertResponse(Object.assign(Object.assign({}, rawResponse), { _response: rawResponse._response, fileMode: parseOctalFileMode(rawResponse.fileMode) }));
13474
14436
  });
13475
14437
  }
13476
14438
  /**
@@ -13492,7 +14454,7 @@ class ShareDirectoryClient extends StorageClient {
13492
14454
  }
13493
14455
  /**
13494
14456
  * Creates a new subdirectory under this directory.
13495
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-directory
14457
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-directory
13496
14458
  *
13497
14459
  * @param directoryName -
13498
14460
  * @param options - Options to Directory Create operation.
@@ -13511,7 +14473,7 @@ class ShareDirectoryClient extends StorageClient {
13511
14473
  /**
13512
14474
  * Removes the specified empty sub directory under this directory.
13513
14475
  * Note that the directory must be empty before it can be deleted.
13514
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/delete-directory
14476
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-directory
13515
14477
  *
13516
14478
  * @param directoryName -
13517
14479
  * @param options - Options to Directory Delete operation.
@@ -13525,7 +14487,7 @@ class ShareDirectoryClient extends StorageClient {
13525
14487
  }
13526
14488
  /**
13527
14489
  * Creates a new file or replaces a file under this directory. Note it only initializes the file with no content.
13528
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-file
14490
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-file
13529
14491
  *
13530
14492
  * @param fileName -
13531
14493
  * @param size - Specifies the maximum size in bytes for the file, up to 4 TB.
@@ -13554,7 +14516,7 @@ class ShareDirectoryClient extends StorageClient {
13554
14516
  * Delete File is not supported on a share snapshot, which is a read-only copy of
13555
14517
  * a share. An attempt to perform this operation on a share snapshot will fail with 400 (InvalidQueryParameterValue)
13556
14518
  *
13557
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/delete-file2
14519
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-file2
13558
14520
  *
13559
14521
  * @param fileName - Name of the file to delete
13560
14522
  * @param options - Options to File Delete operation.
@@ -13618,20 +14580,21 @@ class ShareDirectoryClient extends StorageClient {
13618
14580
  * Returns all system properties for the specified directory, and can also be used to check the
13619
14581
  * existence of a directory. The data returned does not include the files in the directory or any
13620
14582
  * subdirectories.
13621
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-directory-properties
14583
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-directory-properties
13622
14584
  *
13623
14585
  * @param options - Options to Directory Get Properties operation.
13624
14586
  * @returns Response data for the Directory Get Properties operation.
13625
14587
  */
13626
14588
  async getProperties(options = {}) {
13627
14589
  return tracingClient.withSpan("ShareDirectoryClient-getProperties", options, async (updatedOptions) => {
13628
- return assertResponse(await this.context.getProperties(Object.assign(Object.assign({}, updatedOptions), this.shareClientConfig)));
14590
+ const rawResponse = await this.context.getProperties(Object.assign(Object.assign({}, updatedOptions), this.shareClientConfig));
14591
+ return assertResponse(Object.assign(Object.assign({}, rawResponse), { _response: rawResponse._response, fileMode: parseOctalFileMode(rawResponse.fileMode) }));
13629
14592
  });
13630
14593
  }
13631
14594
  /**
13632
14595
  * Removes the specified empty directory. Note that the directory must be empty before it can be
13633
14596
  * deleted.
13634
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/delete-directory
14597
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-directory
13635
14598
  *
13636
14599
  * @param options - Options to Directory Delete operation.
13637
14600
  * @returns Response data for the Directory Delete operation.
@@ -13644,7 +14607,7 @@ class ShareDirectoryClient extends StorageClient {
13644
14607
  /**
13645
14608
  * Removes the specified empty directory if it exists. Note that the directory must be empty before it can be
13646
14609
  * deleted.
13647
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/delete-directory
14610
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-directory
13648
14611
  *
13649
14612
  * @param options -
13650
14613
  */
@@ -13666,7 +14629,7 @@ class ShareDirectoryClient extends StorageClient {
13666
14629
  }
13667
14630
  /**
13668
14631
  * Updates user defined metadata for the specified directory.
13669
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-directory-metadata
14632
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-directory-metadata
13670
14633
  *
13671
14634
  * @param metadata - If no metadata provided, all existing directory metadata will be removed
13672
14635
  * @param options - Options to Directory Set Metadata operation.
@@ -13870,7 +14833,7 @@ class ShareDirectoryClient extends StorageClient {
13870
14833
  /**
13871
14834
  * Returns a list of files or directories under the specified share or directory. It lists the
13872
14835
  * contents only for a single level of the directory hierarchy.
13873
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/list-directories-and-files
14836
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/list-directories-and-files
13874
14837
  *
13875
14838
  * @param marker - A string value that identifies the portion of the list to be returned with the next list operation.
13876
14839
  * @param options - Options to Directory List Files and Directories Segment operation.
@@ -14040,7 +15003,7 @@ class ShareDirectoryClient extends StorageClient {
14040
15003
  }
14041
15004
  /**
14042
15005
  * Lists handles for a directory.
14043
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/list-handles
15006
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/list-handles
14044
15007
  *
14045
15008
  * @param marker - Optional. A string value that identifies the portion of the list to be
14046
15009
  * returned with the next list handles operation. The operation returns a
@@ -14064,7 +15027,7 @@ class ShareDirectoryClient extends StorageClient {
14064
15027
  }
14065
15028
  /**
14066
15029
  * Force close all handles for a directory.
14067
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/force-close-handles
15030
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/force-close-handles
14068
15031
  *
14069
15032
  * @param marker - Optional. A string value that identifies the position of handles that will
14070
15033
  * be closed with the next force close handles operation.
@@ -14085,7 +15048,7 @@ class ShareDirectoryClient extends StorageClient {
14085
15048
  }
14086
15049
  /**
14087
15050
  * Force close all handles for a directory.
14088
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/force-close-handles
15051
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/force-close-handles
14089
15052
  *
14090
15053
  * @param options -
14091
15054
  */
@@ -14112,7 +15075,7 @@ class ShareDirectoryClient extends StorageClient {
14112
15075
  }
14113
15076
  /**
14114
15077
  * Force close a specific handle for a directory.
14115
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/force-close-handles
15078
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/force-close-handles
14116
15079
  *
14117
15080
  * @param aborter - Create a new Aborter instance with Aborter.none or Aborter.timeout(),
14118
15081
  * goto documents of Aborter for more examples about request cancellation
@@ -14243,7 +15206,7 @@ class ShareFileClient extends StorageClient {
14243
15206
  }
14244
15207
  /**
14245
15208
  * Creates a new file or replaces a file. Note it only initializes the file with no content.
14246
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-file
15209
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-file
14247
15210
  *
14248
15211
  * @param size - Specifies the maximum size in bytes for the file, up to 4 TB.
14249
15212
  * @param options - Options to File Create operation.
@@ -14270,9 +15233,12 @@ class ShareFileClient extends StorageClient {
14270
15233
  options = validateAndSetDefaultsForFileAndDirectoryCreateCommonOptions(options);
14271
15234
  options.fileHttpHeaders = options.fileHttpHeaders || {};
14272
15235
  return tracingClient.withSpan("ShareFileClient-create", options, async (updatedOptions) => {
14273
- return assertResponse(await this.context.create(size, updatedOptions.fileAttributes
14274
- ? fileAttributesToString(updatedOptions.fileAttributes)
14275
- : FileAttributesNone, Object.assign(Object.assign(Object.assign({}, updatedOptions), { fileChangeOn: fileChangeTimeToString(updatedOptions.changeTime), fileCreatedOn: fileCreationTimeToString(updatedOptions.creationTime), fileLastWriteOn: fileLastWriteTimeToString(updatedOptions.lastWriteTime) }), this.shareClientConfig)));
15236
+ var _a, _b, _c, _d;
15237
+ const rawResponse = await this.context.create(size, Object.assign(Object.assign(Object.assign({}, updatedOptions), { fileChangeOn: fileChangeTimeToString(updatedOptions.changeTime), fileCreatedOn: fileCreationTimeToString(updatedOptions.creationTime), fileLastWriteOn: fileLastWriteTimeToString(updatedOptions.lastWriteTime), fileAttributes: updatedOptions.fileAttributes
15238
+ ? fileAttributesToString(updatedOptions.fileAttributes)
15239
+ : undefined, owner: (_a = updatedOptions.posixProperties) === null || _a === void 0 ? void 0 : _a.owner, group: (_b = updatedOptions.posixProperties) === null || _b === void 0 ? void 0 : _b.group, fileMode: toOctalFileMode((_c = updatedOptions.posixProperties) === null || _c === void 0 ? void 0 : _c.fileMode), nfsFileType: (_d = updatedOptions.posixProperties) === null || _d === void 0 ? void 0 : _d.fileType }), this.shareClientConfig));
15240
+ const wrappedRes = Object.assign(Object.assign({}, rawResponse), { _response: rawResponse._response, fileMode: parseOctalFileMode(rawResponse.fileMode) });
15241
+ return assertResponse(wrappedRes);
14276
15242
  });
14277
15243
  }
14278
15244
  /**
@@ -14281,7 +15247,7 @@ class ShareFileClient extends StorageClient {
14281
15247
  * * In Node.js, data returns in a Readable stream `readableStreamBody`
14282
15248
  * * In browsers, data returns in a promise `contentAsBlob`
14283
15249
  *
14284
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-file
15250
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-file
14285
15251
  *
14286
15252
  * @param offset - From which position of the file to download, greater than or equal to 0
14287
15253
  * @param count - How much data to be downloaded, greater than 0. Will download to the end when undefined
@@ -14342,9 +15308,10 @@ class ShareFileClient extends StorageClient {
14342
15308
  throw new RangeError(`rangeGetContentMD5 only works with partial data downloading`);
14343
15309
  }
14344
15310
  const downloadFullFile = offset === 0 && !count;
14345
- const res = assertResponse(await this.context.download(Object.assign(Object.assign(Object.assign({}, updatedOptions), { requestOptions: {
15311
+ const rawResponse = await this.context.download(Object.assign(Object.assign(Object.assign({}, updatedOptions), { requestOptions: {
14346
15312
  onDownloadProgress: coreUtil.isNode ? undefined : updatedOptions.onProgress, // for Node.js, progress is reported by RetriableReadableStream
14347
- }, range: downloadFullFile ? undefined : rangeToString({ offset, count }) }), this.shareClientConfig)));
15313
+ }, range: downloadFullFile ? undefined : rangeToString({ offset, count }) }), this.shareClientConfig));
15314
+ const res = assertResponse(Object.assign(Object.assign({}, rawResponse), { _response: rawResponse._response, fileMode: parseOctalFileMode(rawResponse.fileMode) }));
14348
15315
  // Return browser response immediately
14349
15316
  if (!coreUtil.isNode) {
14350
15317
  return res;
@@ -14411,19 +15378,20 @@ class ShareFileClient extends StorageClient {
14411
15378
  /**
14412
15379
  * Returns all user-defined metadata, standard HTTP properties, and system properties
14413
15380
  * for the file. It does not return the content of the file.
14414
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-file-properties
15381
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-file-properties
14415
15382
  *
14416
15383
  * @param options - Options to File Get Properties operation.
14417
15384
  * @returns Response data for the File Get Properties operation.
14418
15385
  */
14419
15386
  async getProperties(options = {}) {
14420
15387
  return tracingClient.withSpan("ShareFileClient-getProperties", options, async (updatedOptions) => {
14421
- return assertResponse(await this.context.getProperties(Object.assign(Object.assign({}, updatedOptions), this.shareClientConfig)));
15388
+ const rawResponse = await this.context.getProperties(Object.assign(Object.assign({}, updatedOptions), this.shareClientConfig));
15389
+ return assertResponse(Object.assign(Object.assign({}, rawResponse), { _response: rawResponse._response, fileMode: parseOctalFileMode(rawResponse.fileMode) }));
14422
15390
  });
14423
15391
  }
14424
15392
  /**
14425
15393
  * Sets properties on the file.
14426
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-file-properties
15394
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-file-properties
14427
15395
  *
14428
15396
  * @param properties - File properties. For file HTTP headers(e.g. Content-Type),
14429
15397
  * if no values are provided, existing HTTP headers will be removed.
@@ -14434,9 +15402,11 @@ class ShareFileClient extends StorageClient {
14434
15402
  properties = validateAndSetDefaultsForFileAndDirectorySetPropertiesCommonOptions(properties);
14435
15403
  properties.fileHttpHeaders = properties.fileHttpHeaders || {};
14436
15404
  return tracingClient.withSpan("ShareFileClient-setProperties", properties, async (updatedOptions) => {
14437
- return assertResponse(await this.context.setHttpHeaders(updatedOptions.fileAttributes
14438
- ? fileAttributesToString(updatedOptions.fileAttributes)
14439
- : FileAttributesPreserve, Object.assign(Object.assign(Object.assign({}, updatedOptions), { fileChangeOn: fileChangeTimeToString(updatedOptions.changeTime), fileCreatedOn: fileCreationTimeToString(updatedOptions.creationTime), fileLastWriteOn: fileLastWriteTimeToString(updatedOptions.lastWriteTime) }), this.shareClientConfig)));
15405
+ var _a, _b, _c;
15406
+ const rawResponse = await this.context.setHttpHeaders(Object.assign(Object.assign(Object.assign({}, updatedOptions), { fileChangeOn: fileChangeTimeToString(updatedOptions.changeTime), fileCreatedOn: fileCreationTimeToString(updatedOptions.creationTime), fileLastWriteOn: fileLastWriteTimeToString(updatedOptions.lastWriteTime), fileAttributes: updatedOptions.fileAttributes
15407
+ ? fileAttributesToString(updatedOptions.fileAttributes)
15408
+ : undefined, owner: (_a = updatedOptions.posixProperties) === null || _a === void 0 ? void 0 : _a.owner, group: (_b = updatedOptions.posixProperties) === null || _b === void 0 ? void 0 : _b.group, fileMode: toOctalFileMode((_c = updatedOptions.posixProperties) === null || _c === void 0 ? void 0 : _c.fileMode) }), this.shareClientConfig));
15409
+ return assertResponse(Object.assign(Object.assign({}, rawResponse), { _response: rawResponse._response, fileMode: parseOctalFileMode(rawResponse.fileMode) }));
14440
15410
  });
14441
15411
  }
14442
15412
  /**
@@ -14451,7 +15421,7 @@ class ShareFileClient extends StorageClient {
14451
15421
  * Delete File is not supported on a share snapshot, which is a read-only copy of
14452
15422
  * a share. An attempt to perform this operation on a share snapshot will fail with 400 (InvalidQueryParameterValue)
14453
15423
  *
14454
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/delete-file2
15424
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-file2
14455
15425
  *
14456
15426
  * @param options - Options to File Delete operation.
14457
15427
  * @returns Response data for the File Delete operation.
@@ -14473,7 +15443,7 @@ class ShareFileClient extends StorageClient {
14473
15443
  * Delete File is not supported on a share snapshot, which is a read-only copy of
14474
15444
  * a share. An attempt to perform this operation on a share snapshot will fail with 400 (InvalidQueryParameterValue)
14475
15445
  *
14476
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/delete-file2
15446
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-file2
14477
15447
  *
14478
15448
  * @param options -
14479
15449
  */
@@ -14498,7 +15468,7 @@ class ShareFileClient extends StorageClient {
14498
15468
  *
14499
15469
  * If no option provided, or no value provided for the file HTTP headers in the options,
14500
15470
  * these file HTTP headers without a value will be cleared.
14501
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-file-properties
15471
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-file-properties
14502
15472
  *
14503
15473
  * @param FileHttpHeaders - File HTTP headers like Content-Type.
14504
15474
  * Provide undefined will remove existing HTTP headers.
@@ -14509,15 +15479,17 @@ class ShareFileClient extends StorageClient {
14509
15479
  // FileAttributes, filePermission, createTime, lastWriteTime will all be preserved
14510
15480
  options = validateAndSetDefaultsForFileAndDirectorySetPropertiesCommonOptions(options);
14511
15481
  return tracingClient.withSpan("ShareFileClient-setHTTPHeaders", options, async (updatedOptions) => {
14512
- return assertResponse(await this.context.setHttpHeaders(updatedOptions.fileAttributes
14513
- ? fileAttributesToString(updatedOptions.fileAttributes)
14514
- : FileAttributesPreserve, Object.assign(Object.assign(Object.assign({}, updatedOptions), { fileHttpHeaders, fileCreatedOn: fileCreationTimeToString(updatedOptions.creationTime), fileLastWriteOn: fileLastWriteTimeToString(updatedOptions.lastWriteTime), fileChangeOn: fileChangeTimeToString(updatedOptions.changeTime) }), this.shareClientConfig)));
15482
+ var _a, _b, _c;
15483
+ const rawResponse = await this.context.setHttpHeaders(Object.assign(Object.assign(Object.assign({}, updatedOptions), { fileHttpHeaders, fileCreatedOn: fileCreationTimeToString(updatedOptions.creationTime), fileLastWriteOn: fileLastWriteTimeToString(updatedOptions.lastWriteTime), fileChangeOn: fileChangeTimeToString(updatedOptions.changeTime), fileAttributes: updatedOptions.fileAttributes
15484
+ ? fileAttributesToString(updatedOptions.fileAttributes)
15485
+ : undefined, owner: (_a = updatedOptions.posixProperties) === null || _a === void 0 ? void 0 : _a.owner, group: (_b = updatedOptions.posixProperties) === null || _b === void 0 ? void 0 : _b.group, fileMode: toOctalFileMode((_c = updatedOptions.posixProperties) === null || _c === void 0 ? void 0 : _c.fileMode) }), this.shareClientConfig));
15486
+ return assertResponse(Object.assign(Object.assign({}, rawResponse), { _response: rawResponse._response, fileMode: parseOctalFileMode(rawResponse.fileMode) }));
14515
15487
  });
14516
15488
  }
14517
15489
  /**
14518
15490
  * Resize file.
14519
15491
  *
14520
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-file-properties
15492
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-file-properties
14521
15493
  *
14522
15494
  * @param length - Resizes a file to the specified size in bytes.
14523
15495
  * If the specified byte value is less than the current size of the file,
@@ -14532,7 +15504,9 @@ class ShareFileClient extends StorageClient {
14532
15504
  // FileAttributes, filePermission, createTime, lastWriteTime will all be preserved.
14533
15505
  options = validateAndSetDefaultsForFileAndDirectorySetPropertiesCommonOptions(options);
14534
15506
  return tracingClient.withSpan("ShareFileClient-resize", options, async (updatedOptions) => {
14535
- return assertResponse(await this.context.setHttpHeaders(fileAttributesToString(updatedOptions.fileAttributes), Object.assign(Object.assign(Object.assign({}, updatedOptions), { fileContentLength: length, fileChangeOn: fileChangeTimeToString(options.changeTime), fileCreatedOn: fileCreationTimeToString(options.creationTime), fileLastWriteOn: fileLastWriteTimeToString(options.lastWriteTime) }), this.shareClientConfig)));
15507
+ var _a, _b, _c;
15508
+ const rawResponse = await this.context.setHttpHeaders(Object.assign(Object.assign(Object.assign({}, updatedOptions), { fileContentLength: length, fileChangeOn: fileChangeTimeToString(options.changeTime), fileCreatedOn: fileCreationTimeToString(options.creationTime), fileLastWriteOn: fileLastWriteTimeToString(options.lastWriteTime), fileAttributes: fileAttributesToString(updatedOptions.fileAttributes), owner: (_a = updatedOptions.posixProperties) === null || _a === void 0 ? void 0 : _a.owner, group: (_b = updatedOptions.posixProperties) === null || _b === void 0 ? void 0 : _b.group, fileMode: toOctalFileMode((_c = options.posixProperties) === null || _c === void 0 ? void 0 : _c.fileMode) }), this.shareClientConfig));
15509
+ return assertResponse(Object.assign(Object.assign({}, rawResponse), { _response: rawResponse._response, fileMode: parseOctalFileMode(rawResponse.fileMode) }));
14536
15510
  });
14537
15511
  }
14538
15512
  /**
@@ -14540,7 +15514,7 @@ class ShareFileClient extends StorageClient {
14540
15514
  *
14541
15515
  * If no metadata defined in the option parameter, the file
14542
15516
  * metadata will be removed.
14543
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-file-metadata
15517
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-file-metadata
14544
15518
  *
14545
15519
  * @param metadata - If no metadata provided, all existing directory metadata will be removed
14546
15520
  * @param options - Options to File Set Metadata operation.
@@ -14671,13 +15645,14 @@ class ShareFileClient extends StorageClient {
14671
15645
  */
14672
15646
  async startCopyFromURL(copySource, options = {}) {
14673
15647
  return tracingClient.withSpan("ShareFileClient-startCopyFromURL", options, async (updatedOptions) => {
14674
- return assertResponse(await this.context.startCopy(copySource, Object.assign(Object.assign({}, updatedOptions), this.shareClientConfig)));
15648
+ var _a, _b, _c;
15649
+ return assertResponse(await this.context.startCopy(copySource, Object.assign(Object.assign(Object.assign({}, updatedOptions), this.shareClientConfig), { owner: (_a = updatedOptions.posixProperties) === null || _a === void 0 ? void 0 : _a.owner, group: (_b = updatedOptions.posixProperties) === null || _b === void 0 ? void 0 : _b.group, fileMode: toOctalFileMode((_c = updatedOptions.posixProperties) === null || _c === void 0 ? void 0 : _c.fileMode), fileModeCopyMode: updatedOptions.fileModeCopyMode, fileOwnerCopyMode: updatedOptions.fileOwnerCopyMode })));
14675
15650
  });
14676
15651
  }
14677
15652
  /**
14678
15653
  * Aborts a pending Copy File operation, and leaves a destination file with zero length and full
14679
15654
  * metadata.
14680
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/abort-copy-file
15655
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/abort-copy-file
14681
15656
  *
14682
15657
  * @param copyId - Id of the Copy File operation to abort.
14683
15658
  * @param options - Options to File Abort Copy From URL operation.
@@ -15010,7 +15985,7 @@ class ShareFileClient extends StorageClient {
15010
15985
  }
15011
15986
  /**
15012
15987
  * Lists handles for a file.
15013
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/list-handles
15988
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/list-handles
15014
15989
  *
15015
15990
  * @param marker - Optional. A string value that identifies the portion of the list to be
15016
15991
  * returned with the next list handles operation. The operation returns a
@@ -15120,7 +16095,7 @@ class ShareFileClient extends StorageClient {
15120
16095
  }
15121
16096
  /**
15122
16097
  * Force close all handles for a file.
15123
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/force-close-handles
16098
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/force-close-handles
15124
16099
  *
15125
16100
  * @param marker - Optional. A string value that identifies the position of handles that will
15126
16101
  * be closed with the next force close handles operation.
@@ -15141,7 +16116,7 @@ class ShareFileClient extends StorageClient {
15141
16116
  }
15142
16117
  /**
15143
16118
  * Force close all handles for a file.
15144
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/force-close-handles
16119
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/force-close-handles
15145
16120
  *
15146
16121
  * @param options - Options to force close handles operation.
15147
16122
  */
@@ -15168,7 +16143,7 @@ class ShareFileClient extends StorageClient {
15168
16143
  }
15169
16144
  /**
15170
16145
  * Force close a specific handle for a file.
15171
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/force-close-handles
16146
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/force-close-handles
15172
16147
  *
15173
16148
  * @param handleId - Specific handle ID, cannot be asterisk "*".
15174
16149
  * Use forceCloseAllHandles() to close all handles.
@@ -15186,6 +16161,18 @@ class ShareFileClient extends StorageClient {
15186
16161
  return response;
15187
16162
  });
15188
16163
  }
16164
+ /**
16165
+ * NFS only. Creates a hard link to the file file specified by path.
16166
+ * @param targetFile - Path of the file to create the hard link to, not including the share.
16167
+ * For example: "targetDirectory/targetSubDirectory/.../targetFile"
16168
+ * @param options - Options to create hard link operation.
16169
+ */
16170
+ async createHardLink(targetFile, options = {}) {
16171
+ return tracingClient.withSpan("ShareFileClient-createHardLink", options, async (updatedOptions) => {
16172
+ const rawResponse = await this.context.createHardLink(targetFile, Object.assign(Object.assign({}, updatedOptions), this.shareClientConfig));
16173
+ return assertResponse(Object.assign(Object.assign({}, rawResponse), { _response: rawResponse._response, fileMode: parseOctalFileMode(rawResponse.fileMode) }));
16174
+ });
16175
+ }
15189
16176
  /**
15190
16177
  * Get a {@link ShareLeaseClient} that manages leases on the file.
15191
16178
  *
@@ -15201,7 +16188,7 @@ class ShareFileClient extends StorageClient {
15201
16188
  * Generates a Service Shared Access Signature (SAS) URI based on the client properties
15202
16189
  * and parameters passed in. The SAS is signed by the shared key credential of the client.
15203
16190
  *
15204
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
16191
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
15205
16192
  *
15206
16193
  * @param options - Optional parameters.
15207
16194
  * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
@@ -15219,7 +16206,7 @@ class ShareFileClient extends StorageClient {
15219
16206
  * Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
15220
16207
  * and parameters passed in. The SAS is signed by the shared key credential of the client.
15221
16208
  *
15222
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
16209
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
15223
16210
  *
15224
16211
  * @param options - Optional parameters.
15225
16212
  * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
@@ -15289,9 +16276,9 @@ class ShareFileClient extends StorageClient {
15289
16276
  }
15290
16277
  /**
15291
16278
  * A client that manages leases for a {@link ShareFileClient} or {@link ShareClient}.
15292
- * @see https://docs.microsoft.com/rest/api/storageservices/lease-file
16279
+ * @see https://learn.microsoft.com/rest/api/storageservices/lease-file
15293
16280
  * and
15294
- * @see https://docs.microsoft.com/rest/api/storageservices/lease-share
16281
+ * @see https://learn.microsoft.com/rest/api/storageservices/lease-share
15295
16282
  */
15296
16283
  class ShareLeaseClient {
15297
16284
  /**
@@ -15506,7 +16493,9 @@ class ShareServiceClient extends StorageClient {
15506
16493
  * @param options -
15507
16494
  * @returns Share creation response and the corresponding share client.
15508
16495
  */
15509
- async createShare(shareName, options = {}) {
16496
+ async createShare(shareName,
16497
+ // eslint-disable-next-line @azure/azure-sdk/ts-naming-options
16498
+ options = {}) {
15510
16499
  return tracingClient.withSpan("ShareServiceClient-createShare", options, async (updatedOptions) => {
15511
16500
  const shareClient = this.getShareClient(shareName);
15512
16501
  const shareCreateResponse = await shareClient.create(updatedOptions);
@@ -15523,7 +16512,9 @@ class ShareServiceClient extends StorageClient {
15523
16512
  * @param options -
15524
16513
  * @returns Share deletion response and the corresponding share client.
15525
16514
  */
15526
- async deleteShare(shareName, options = {}) {
16515
+ async deleteShare(shareName,
16516
+ // eslint-disable-next-line @azure/azure-sdk/ts-naming-options
16517
+ options = {}) {
15527
16518
  return tracingClient.withSpan("ShareServiceClient-deleteShare", options, async (updatedOptions) => {
15528
16519
  const shareClient = this.getShareClient(shareName);
15529
16520
  return shareClient.delete(updatedOptions);
@@ -15532,7 +16523,7 @@ class ShareServiceClient extends StorageClient {
15532
16523
  /**
15533
16524
  * Gets the properties of a storage account’s file service, including properties
15534
16525
  * for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.
15535
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-file-service-properties
16526
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-file-service-properties
15536
16527
  *
15537
16528
  * @param options - Options to Get Properties operation.
15538
16529
  * @returns Response data for the Get Properties operation.
@@ -15545,7 +16536,7 @@ class ShareServiceClient extends StorageClient {
15545
16536
  /**
15546
16537
  * Sets properties for a storage account’s file service endpoint, including properties
15547
16538
  * for Storage Analytics, CORS (Cross-Origin Resource Sharing) rules and soft delete settings.
15548
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-file-service-properties
16539
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-file-service-properties
15549
16540
  *
15550
16541
  * @param properties -
15551
16542
  * @param options - Options to Set Properties operation.
@@ -15776,7 +16767,7 @@ class ShareServiceClient extends StorageClient {
15776
16767
  * Generates an account Shared Access Signature (SAS) URI based on the client properties
15777
16768
  * and parameters passed in. The SAS is signed by the shared key credential of the client.
15778
16769
  *
15779
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-account-sas
16770
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-account-sas
15780
16771
  *
15781
16772
  * @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not specified.
15782
16773
  * @param permissions - Specifies the list of permissions to be associated with the SAS.
@@ -15803,7 +16794,7 @@ class ShareServiceClient extends StorageClient {
15803
16794
  * Generates string to sign for an account Shared Access Signature (SAS) URI based on the client properties
15804
16795
  * and parameters passed in. The SAS is signed by the shared key credential of the client.
15805
16796
  *
15806
- * @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-account-sas
16797
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-account-sas
15807
16798
  *
15808
16799
  * @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not specified.
15809
16800
  * @param permissions - Specifies the list of permissions to be associated with the SAS.
@@ -15811,7 +16802,9 @@ class ShareServiceClient extends StorageClient {
15811
16802
  * @param options - Optional parameters.
15812
16803
  * @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
15813
16804
  */
15814
- generateSasStringToSign(expiresOn, permissions = AccountSASPermissions.parse("r"), resourceTypes = "sco", options = {}) {
16805
+ generateSasStringToSign(expiresOn, permissions = AccountSASPermissions.parse("r"), resourceTypes = "sco",
16806
+ // eslint-disable-next-line @azure/azure-sdk/ts-naming-options
16807
+ options = {}) {
15815
16808
  if (!(this.credential instanceof StorageSharedKeyCredential)) {
15816
16809
  throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential");
15817
16810
  }
@@ -15868,4 +16861,8 @@ exports.getFileServiceAccountAudience = getFileServiceAccountAudience;
15868
16861
  exports.isPipelineLike = isPipelineLike;
15869
16862
  exports.logger = logger;
15870
16863
  exports.newPipeline = newPipeline;
16864
+ exports.parseOctalFileMode = parseOctalFileMode;
16865
+ exports.parseSymbolicFileMode = parseSymbolicFileMode;
16866
+ exports.toOctalFileMode = toOctalFileMode;
16867
+ exports.toSymbolicFileMode = toSymbolicFileMode;
15871
16868
  //# sourceMappingURL=index.js.map