@azure/storage-file-datalake 12.27.0-beta.1 → 12.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (299) hide show
  1. package/dist/browser/DataLakeFileSystemClient.d.ts +13 -13
  2. package/dist/browser/DataLakeFileSystemClient.js +136 -93
  3. package/dist/browser/DataLakeFileSystemClient.js.map +1 -1
  4. package/dist/browser/DataLakeLeaseClient.js +1 -0
  5. package/dist/browser/DataLakeLeaseClient.js.map +1 -1
  6. package/dist/browser/DataLakeServiceClient.d.ts +6 -6
  7. package/dist/browser/DataLakeServiceClient.js +28 -11
  8. package/dist/browser/DataLakeServiceClient.js.map +1 -1
  9. package/dist/browser/Pipeline.js +24 -15
  10. package/dist/browser/Pipeline.js.map +1 -1
  11. package/dist/browser/StorageClient.js +43 -3
  12. package/dist/browser/StorageClient.js.map +1 -1
  13. package/dist/browser/StorageContextClient.js +2 -3
  14. package/dist/browser/StorageContextClient.js.map +1 -1
  15. package/dist/browser/clients.d.ts +33 -33
  16. package/dist/browser/clients.js +269 -89
  17. package/dist/browser/clients.js.map +1 -1
  18. package/dist/browser/generated/src/operations/fileSystemOperations.js +1 -0
  19. package/dist/browser/generated/src/operations/fileSystemOperations.js.map +1 -1
  20. package/dist/browser/generated/src/operations/pathOperations.js +1 -0
  21. package/dist/browser/generated/src/operations/pathOperations.js.map +1 -1
  22. package/dist/browser/generated/src/operations/service.js +1 -0
  23. package/dist/browser/generated/src/operations/service.js.map +1 -1
  24. package/dist/browser/generated/src/storageClient.js +15 -4
  25. package/dist/browser/generated/src/storageClient.js.map +1 -1
  26. package/dist/browser/index-browser.d.mts.map +1 -1
  27. package/dist/browser/index-browser.mjs.map +1 -1
  28. package/dist/browser/index.d.ts +1 -1
  29. package/dist/browser/index.js +1 -1
  30. package/dist/browser/models.d.ts +1 -1
  31. package/dist/browser/models.js.map +1 -1
  32. package/dist/browser/sas/AccountSASPermissions.d.ts +1 -1
  33. package/dist/browser/sas/AccountSASPermissions.js +34 -36
  34. package/dist/browser/sas/AccountSASPermissions.js.map +1 -1
  35. package/dist/browser/sas/AccountSASResourceTypes.d.ts +1 -1
  36. package/dist/browser/sas/AccountSASResourceTypes.js +13 -15
  37. package/dist/browser/sas/AccountSASResourceTypes.js.map +1 -1
  38. package/dist/browser/sas/AccountSASServices.js +16 -18
  39. package/dist/browser/sas/AccountSASServices.js.map +1 -1
  40. package/dist/browser/sas/AccountSASSignatureValues.d.ts +3 -3
  41. package/dist/browser/sas/AccountSASSignatureValues.js +1 -1
  42. package/dist/browser/sas/AccountSASSignatureValues.js.map +1 -1
  43. package/dist/browser/sas/DataLakeSASPermissions.js +39 -41
  44. package/dist/browser/sas/DataLakeSASPermissions.js.map +1 -1
  45. package/dist/browser/sas/DataLakeSASSignatureValues.d.ts +1 -1
  46. package/dist/browser/sas/DataLakeSASSignatureValues.js +4 -3
  47. package/dist/browser/sas/DataLakeSASSignatureValues.js.map +1 -1
  48. package/dist/browser/sas/DirectorySASPermissions.d.ts +1 -1
  49. package/dist/browser/sas/DirectorySASPermissions.js +44 -46
  50. package/dist/browser/sas/DirectorySASPermissions.js.map +1 -1
  51. package/dist/browser/sas/FileSystemSASPermissions.d.ts +1 -1
  52. package/dist/browser/sas/FileSystemSASPermissions.js +44 -46
  53. package/dist/browser/sas/FileSystemSASPermissions.js.map +1 -1
  54. package/dist/browser/sas/SASQueryParameters.d.ts +2 -2
  55. package/dist/browser/sas/SASQueryParameters.js +131 -2
  56. package/dist/browser/sas/SASQueryParameters.js.map +1 -1
  57. package/dist/browser/transforms.js +8 -1
  58. package/dist/browser/transforms.js.map +1 -1
  59. package/dist/browser/utils/Batch.js +29 -21
  60. package/dist/browser/utils/Batch.js.map +1 -1
  61. package/dist/browser/utils/BufferScheduler.js +70 -44
  62. package/dist/browser/utils/BufferScheduler.js.map +1 -1
  63. package/dist/browser/utils/DataLakeAclChangeFailedError.js +8 -0
  64. package/dist/browser/utils/DataLakeAclChangeFailedError.js.map +1 -1
  65. package/dist/browser/utils/PathClientInternal.js +4 -0
  66. package/dist/browser/utils/PathClientInternal.js.map +1 -1
  67. package/dist/browser/utils/constants.d.ts.map +1 -1
  68. package/dist/browser/utils/constants.js +1 -1
  69. package/dist/browser/utils/constants.js.map +1 -1
  70. package/dist/browser/utils/utils.common.d.ts +2 -2
  71. package/dist/browser/utils/utils.common.js +5 -7
  72. package/dist/browser/utils/utils.common.js.map +1 -1
  73. package/dist/commonjs/DataLakeFileSystemClient.d.ts +13 -13
  74. package/dist/commonjs/DataLakeFileSystemClient.js +136 -93
  75. package/dist/commonjs/DataLakeFileSystemClient.js.map +1 -1
  76. package/dist/commonjs/DataLakeLeaseClient.js +1 -0
  77. package/dist/commonjs/DataLakeLeaseClient.js.map +1 -1
  78. package/dist/commonjs/DataLakeServiceClient.d.ts +6 -6
  79. package/dist/commonjs/DataLakeServiceClient.js +28 -11
  80. package/dist/commonjs/DataLakeServiceClient.js.map +1 -1
  81. package/dist/commonjs/Pipeline.js +32 -23
  82. package/dist/commonjs/Pipeline.js.map +1 -1
  83. package/dist/commonjs/StorageClient.js +43 -3
  84. package/dist/commonjs/StorageClient.js.map +1 -1
  85. package/dist/commonjs/StorageContextClient.js +2 -3
  86. package/dist/commonjs/StorageContextClient.js.map +1 -1
  87. package/dist/commonjs/clients.d.ts +33 -33
  88. package/dist/commonjs/clients.js +269 -89
  89. package/dist/commonjs/clients.js.map +1 -1
  90. package/dist/commonjs/credentials/UserDelegationKeyCredential.d.ts +1 -1
  91. package/dist/commonjs/credentials/UserDelegationKeyCredential.js +13 -1
  92. package/dist/commonjs/credentials/UserDelegationKeyCredential.js.map +1 -1
  93. package/dist/commonjs/generated/src/operations/fileSystemOperations.js +1 -0
  94. package/dist/commonjs/generated/src/operations/fileSystemOperations.js.map +1 -1
  95. package/dist/commonjs/generated/src/operations/pathOperations.js +1 -0
  96. package/dist/commonjs/generated/src/operations/pathOperations.js.map +1 -1
  97. package/dist/commonjs/generated/src/operations/service.js +1 -0
  98. package/dist/commonjs/generated/src/operations/service.js.map +1 -1
  99. package/dist/commonjs/generated/src/storageClient.js +15 -4
  100. package/dist/commonjs/generated/src/storageClient.js.map +1 -1
  101. package/dist/commonjs/models.d.ts +1 -1
  102. package/dist/commonjs/models.js.map +1 -1
  103. package/dist/commonjs/sas/AccountSASPermissions.d.ts +1 -1
  104. package/dist/commonjs/sas/AccountSASPermissions.js +34 -36
  105. package/dist/commonjs/sas/AccountSASPermissions.js.map +1 -1
  106. package/dist/commonjs/sas/AccountSASResourceTypes.d.ts +1 -1
  107. package/dist/commonjs/sas/AccountSASResourceTypes.js +13 -15
  108. package/dist/commonjs/sas/AccountSASResourceTypes.js.map +1 -1
  109. package/dist/commonjs/sas/AccountSASServices.js +16 -18
  110. package/dist/commonjs/sas/AccountSASServices.js.map +1 -1
  111. package/dist/commonjs/sas/AccountSASSignatureValues.d.ts +3 -3
  112. package/dist/commonjs/sas/AccountSASSignatureValues.js +1 -1
  113. package/dist/commonjs/sas/AccountSASSignatureValues.js.map +1 -1
  114. package/dist/commonjs/sas/DataLakeSASPermissions.js +39 -41
  115. package/dist/commonjs/sas/DataLakeSASPermissions.js.map +1 -1
  116. package/dist/commonjs/sas/DataLakeSASSignatureValues.d.ts +1 -1
  117. package/dist/commonjs/sas/DataLakeSASSignatureValues.js +4 -3
  118. package/dist/commonjs/sas/DataLakeSASSignatureValues.js.map +1 -1
  119. package/dist/commonjs/sas/DirectorySASPermissions.d.ts +1 -1
  120. package/dist/commonjs/sas/DirectorySASPermissions.js +44 -46
  121. package/dist/commonjs/sas/DirectorySASPermissions.js.map +1 -1
  122. package/dist/commonjs/sas/FileSystemSASPermissions.d.ts +1 -1
  123. package/dist/commonjs/sas/FileSystemSASPermissions.js +44 -46
  124. package/dist/commonjs/sas/FileSystemSASPermissions.js.map +1 -1
  125. package/dist/commonjs/sas/SASQueryParameters.d.ts +2 -2
  126. package/dist/commonjs/sas/SASQueryParameters.js +131 -2
  127. package/dist/commonjs/sas/SASQueryParameters.js.map +1 -1
  128. package/dist/commonjs/transforms.js +8 -1
  129. package/dist/commonjs/transforms.js.map +1 -1
  130. package/dist/commonjs/tsdoc-metadata.json +11 -11
  131. package/dist/commonjs/utils/Batch.js +29 -21
  132. package/dist/commonjs/utils/Batch.js.map +1 -1
  133. package/dist/commonjs/utils/BufferScheduler.js +70 -44
  134. package/dist/commonjs/utils/BufferScheduler.js.map +1 -1
  135. package/dist/commonjs/utils/DataLakeAclChangeFailedError.js +8 -0
  136. package/dist/commonjs/utils/DataLakeAclChangeFailedError.js.map +1 -1
  137. package/dist/commonjs/utils/PathClientInternal.js +4 -0
  138. package/dist/commonjs/utils/PathClientInternal.js.map +1 -1
  139. package/dist/commonjs/utils/constants.d.ts.map +1 -1
  140. package/dist/commonjs/utils/constants.js +1 -1
  141. package/dist/commonjs/utils/constants.js.map +1 -1
  142. package/dist/commonjs/utils/utils.common.d.ts +2 -2
  143. package/dist/commonjs/utils/utils.common.js +5 -7
  144. package/dist/commonjs/utils/utils.common.js.map +1 -1
  145. package/dist/commonjs/utils/utils.d.ts +1 -1
  146. package/dist/commonjs/utils/utils.d.ts.map +1 -1
  147. package/dist/commonjs/utils/utils.js +4 -4
  148. package/dist/commonjs/utils/utils.js.map +1 -1
  149. package/dist/esm/DataLakeFileSystemClient.d.ts +13 -13
  150. package/dist/esm/DataLakeFileSystemClient.js +136 -93
  151. package/dist/esm/DataLakeFileSystemClient.js.map +1 -1
  152. package/dist/esm/DataLakeLeaseClient.js +1 -0
  153. package/dist/esm/DataLakeLeaseClient.js.map +1 -1
  154. package/dist/esm/DataLakeServiceClient.d.ts +6 -6
  155. package/dist/esm/DataLakeServiceClient.js +28 -11
  156. package/dist/esm/DataLakeServiceClient.js.map +1 -1
  157. package/dist/esm/Pipeline.js +24 -15
  158. package/dist/esm/Pipeline.js.map +1 -1
  159. package/dist/esm/StorageClient.js +43 -3
  160. package/dist/esm/StorageClient.js.map +1 -1
  161. package/dist/esm/StorageContextClient.js +2 -3
  162. package/dist/esm/StorageContextClient.js.map +1 -1
  163. package/dist/esm/clients.d.ts +33 -33
  164. package/dist/esm/clients.js +269 -89
  165. package/dist/esm/clients.js.map +1 -1
  166. package/dist/esm/credentials/UserDelegationKeyCredential.d.ts +1 -1
  167. package/dist/esm/credentials/UserDelegationKeyCredential.js +13 -1
  168. package/dist/esm/credentials/UserDelegationKeyCredential.js.map +1 -1
  169. package/dist/esm/generated/src/operations/fileSystemOperations.js +1 -0
  170. package/dist/esm/generated/src/operations/fileSystemOperations.js.map +1 -1
  171. package/dist/esm/generated/src/operations/pathOperations.js +1 -0
  172. package/dist/esm/generated/src/operations/pathOperations.js.map +1 -1
  173. package/dist/esm/generated/src/operations/service.js +1 -0
  174. package/dist/esm/generated/src/operations/service.js.map +1 -1
  175. package/dist/esm/generated/src/storageClient.js +15 -4
  176. package/dist/esm/generated/src/storageClient.js.map +1 -1
  177. package/dist/esm/models.d.ts +1 -1
  178. package/dist/esm/models.js.map +1 -1
  179. package/dist/esm/sas/AccountSASPermissions.d.ts +1 -1
  180. package/dist/esm/sas/AccountSASPermissions.js +34 -36
  181. package/dist/esm/sas/AccountSASPermissions.js.map +1 -1
  182. package/dist/esm/sas/AccountSASResourceTypes.d.ts +1 -1
  183. package/dist/esm/sas/AccountSASResourceTypes.js +13 -15
  184. package/dist/esm/sas/AccountSASResourceTypes.js.map +1 -1
  185. package/dist/esm/sas/AccountSASServices.js +16 -18
  186. package/dist/esm/sas/AccountSASServices.js.map +1 -1
  187. package/dist/esm/sas/AccountSASSignatureValues.d.ts +3 -3
  188. package/dist/esm/sas/AccountSASSignatureValues.js +1 -1
  189. package/dist/esm/sas/AccountSASSignatureValues.js.map +1 -1
  190. package/dist/esm/sas/DataLakeSASPermissions.js +39 -41
  191. package/dist/esm/sas/DataLakeSASPermissions.js.map +1 -1
  192. package/dist/esm/sas/DataLakeSASSignatureValues.d.ts +1 -1
  193. package/dist/esm/sas/DataLakeSASSignatureValues.js +4 -3
  194. package/dist/esm/sas/DataLakeSASSignatureValues.js.map +1 -1
  195. package/dist/esm/sas/DirectorySASPermissions.d.ts +1 -1
  196. package/dist/esm/sas/DirectorySASPermissions.js +44 -46
  197. package/dist/esm/sas/DirectorySASPermissions.js.map +1 -1
  198. package/dist/esm/sas/FileSystemSASPermissions.d.ts +1 -1
  199. package/dist/esm/sas/FileSystemSASPermissions.js +44 -46
  200. package/dist/esm/sas/FileSystemSASPermissions.js.map +1 -1
  201. package/dist/esm/sas/SASQueryParameters.d.ts +2 -2
  202. package/dist/esm/sas/SASQueryParameters.js +131 -2
  203. package/dist/esm/sas/SASQueryParameters.js.map +1 -1
  204. package/dist/esm/transforms.js +8 -1
  205. package/dist/esm/transforms.js.map +1 -1
  206. package/dist/esm/utils/Batch.js +29 -21
  207. package/dist/esm/utils/Batch.js.map +1 -1
  208. package/dist/esm/utils/BufferScheduler.js +70 -44
  209. package/dist/esm/utils/BufferScheduler.js.map +1 -1
  210. package/dist/esm/utils/DataLakeAclChangeFailedError.js +8 -0
  211. package/dist/esm/utils/DataLakeAclChangeFailedError.js.map +1 -1
  212. package/dist/esm/utils/PathClientInternal.js +4 -0
  213. package/dist/esm/utils/PathClientInternal.js.map +1 -1
  214. package/dist/esm/utils/constants.d.ts.map +1 -1
  215. package/dist/esm/utils/constants.js +1 -1
  216. package/dist/esm/utils/constants.js.map +1 -1
  217. package/dist/esm/utils/utils.common.d.ts +2 -2
  218. package/dist/esm/utils/utils.common.js +5 -7
  219. package/dist/esm/utils/utils.common.js.map +1 -1
  220. package/dist/esm/utils/utils.d.ts +1 -1
  221. package/dist/esm/utils/utils.d.ts.map +1 -1
  222. package/dist/esm/utils/utils.js +2 -2
  223. package/dist/esm/utils/utils.js.map +1 -1
  224. package/dist/react-native/DataLakeFileSystemClient.d.ts +13 -13
  225. package/dist/react-native/DataLakeFileSystemClient.js +136 -93
  226. package/dist/react-native/DataLakeFileSystemClient.js.map +1 -1
  227. package/dist/react-native/DataLakeLeaseClient.js +1 -0
  228. package/dist/react-native/DataLakeLeaseClient.js.map +1 -1
  229. package/dist/react-native/DataLakeServiceClient.d.ts +6 -6
  230. package/dist/react-native/DataLakeServiceClient.js +28 -11
  231. package/dist/react-native/DataLakeServiceClient.js.map +1 -1
  232. package/dist/react-native/Pipeline.js +24 -15
  233. package/dist/react-native/Pipeline.js.map +1 -1
  234. package/dist/react-native/StorageClient.js +43 -3
  235. package/dist/react-native/StorageClient.js.map +1 -1
  236. package/dist/react-native/StorageContextClient.js +2 -3
  237. package/dist/react-native/StorageContextClient.js.map +1 -1
  238. package/dist/react-native/clients.d.ts +33 -33
  239. package/dist/react-native/clients.js +269 -89
  240. package/dist/react-native/clients.js.map +1 -1
  241. package/dist/react-native/credentials/UserDelegationKeyCredential.d.ts +1 -1
  242. package/dist/react-native/credentials/UserDelegationKeyCredential.js +13 -1
  243. package/dist/react-native/credentials/UserDelegationKeyCredential.js.map +1 -1
  244. package/dist/react-native/generated/src/operations/fileSystemOperations.js +1 -0
  245. package/dist/react-native/generated/src/operations/fileSystemOperations.js.map +1 -1
  246. package/dist/react-native/generated/src/operations/pathOperations.js +1 -0
  247. package/dist/react-native/generated/src/operations/pathOperations.js.map +1 -1
  248. package/dist/react-native/generated/src/operations/service.js +1 -0
  249. package/dist/react-native/generated/src/operations/service.js.map +1 -1
  250. package/dist/react-native/generated/src/storageClient.js +15 -4
  251. package/dist/react-native/generated/src/storageClient.js.map +1 -1
  252. package/dist/react-native/models.d.ts +1 -1
  253. package/dist/react-native/models.js.map +1 -1
  254. package/dist/react-native/sas/AccountSASPermissions.d.ts +1 -1
  255. package/dist/react-native/sas/AccountSASPermissions.js +34 -36
  256. package/dist/react-native/sas/AccountSASPermissions.js.map +1 -1
  257. package/dist/react-native/sas/AccountSASResourceTypes.d.ts +1 -1
  258. package/dist/react-native/sas/AccountSASResourceTypes.js +13 -15
  259. package/dist/react-native/sas/AccountSASResourceTypes.js.map +1 -1
  260. package/dist/react-native/sas/AccountSASServices.js +16 -18
  261. package/dist/react-native/sas/AccountSASServices.js.map +1 -1
  262. package/dist/react-native/sas/AccountSASSignatureValues.d.ts +3 -3
  263. package/dist/react-native/sas/AccountSASSignatureValues.js +1 -1
  264. package/dist/react-native/sas/AccountSASSignatureValues.js.map +1 -1
  265. package/dist/react-native/sas/DataLakeSASPermissions.js +39 -41
  266. package/dist/react-native/sas/DataLakeSASPermissions.js.map +1 -1
  267. package/dist/react-native/sas/DataLakeSASSignatureValues.d.ts +1 -1
  268. package/dist/react-native/sas/DataLakeSASSignatureValues.js +4 -3
  269. package/dist/react-native/sas/DataLakeSASSignatureValues.js.map +1 -1
  270. package/dist/react-native/sas/DirectorySASPermissions.d.ts +1 -1
  271. package/dist/react-native/sas/DirectorySASPermissions.js +44 -46
  272. package/dist/react-native/sas/DirectorySASPermissions.js.map +1 -1
  273. package/dist/react-native/sas/FileSystemSASPermissions.d.ts +1 -1
  274. package/dist/react-native/sas/FileSystemSASPermissions.js +44 -46
  275. package/dist/react-native/sas/FileSystemSASPermissions.js.map +1 -1
  276. package/dist/react-native/sas/SASQueryParameters.d.ts +2 -2
  277. package/dist/react-native/sas/SASQueryParameters.js +131 -2
  278. package/dist/react-native/sas/SASQueryParameters.js.map +1 -1
  279. package/dist/react-native/transforms.js +8 -1
  280. package/dist/react-native/transforms.js.map +1 -1
  281. package/dist/react-native/utils/Batch.js +29 -21
  282. package/dist/react-native/utils/Batch.js.map +1 -1
  283. package/dist/react-native/utils/BufferScheduler.js +70 -44
  284. package/dist/react-native/utils/BufferScheduler.js.map +1 -1
  285. package/dist/react-native/utils/DataLakeAclChangeFailedError.js +8 -0
  286. package/dist/react-native/utils/DataLakeAclChangeFailedError.js.map +1 -1
  287. package/dist/react-native/utils/PathClientInternal.js +4 -0
  288. package/dist/react-native/utils/PathClientInternal.js.map +1 -1
  289. package/dist/react-native/utils/constants.d.ts.map +1 -1
  290. package/dist/react-native/utils/constants.js +1 -1
  291. package/dist/react-native/utils/constants.js.map +1 -1
  292. package/dist/react-native/utils/utils.common.d.ts +2 -2
  293. package/dist/react-native/utils/utils.common.js +5 -7
  294. package/dist/react-native/utils/utils.common.js.map +1 -1
  295. package/dist/react-native/utils/utils.d.ts +1 -1
  296. package/dist/react-native/utils/utils.d.ts.map +1 -1
  297. package/dist/react-native/utils/utils.js +2 -2
  298. package/dist/react-native/utils/utils.js.map +1 -1
  299. package/package.json +8 -8
@@ -1,4 +1,3 @@
1
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
2
1
  import { ContainerClient } from "@azure/storage-blob";
3
2
  import { isPipelineLike, newPipeline } from "./Pipeline.js";
4
3
  import { StorageSharedKeyCredential } from "./credentials/StorageSharedKeyCredential.js";
@@ -18,6 +17,18 @@ import { PathClientInternal } from "./utils/PathClientInternal.js";
18
17
  * allowing you to manipulate its directories and files.
19
18
  */
20
19
  export class DataLakeFileSystemClient extends StorageClient {
20
+ /**
21
+ * fileSystemContext provided by protocol layer.
22
+ */
23
+ fileSystemContext;
24
+ /**
25
+ * fileSystemContext provided by protocol layer.
26
+ */
27
+ fileSystemContextToBlobEndpoint;
28
+ /**
29
+ * blobContainerClient provided by `@azure/storage-blob` package.
30
+ */
31
+ blobContainerClient;
21
32
  constructor(url, credentialOrPipeline,
22
33
  // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.
23
34
  /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */
@@ -80,26 +91,36 @@ export class DataLakeFileSystemClient extends StorageClient {
80
91
  * Creates a new file system under the specified account. If the file system with
81
92
  * the same name already exists, the operation fails.
82
93
  *
83
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-container
94
+ * @see https://learn.microsoft.com/rest/api/storageservices/create-container
84
95
  *
85
96
  * @param options - Optional. Options when creating file system.
86
97
  */
87
98
  async create(options = {}) {
88
99
  return tracingClient.withSpan("DataLakeFileSystemClient-create", options, async (updatedOptions) => {
89
- return this.blobContainerClient.create(Object.assign(Object.assign({}, options), { access: toContainerPublicAccessType(options.access), tracingOptions: updatedOptions.tracingOptions, containerEncryptionScope: options.fileSystemEncryptionScope }));
100
+ return this.blobContainerClient.create({
101
+ ...options,
102
+ access: toContainerPublicAccessType(options.access),
103
+ tracingOptions: updatedOptions.tracingOptions,
104
+ containerEncryptionScope: options.fileSystemEncryptionScope,
105
+ });
90
106
  });
91
107
  }
92
108
  /**
93
109
  * Creates a new file system under the specified account. If the file system with
94
110
  * the same name already exists, it is not changed.
95
111
  *
96
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-container
112
+ * @see https://learn.microsoft.com/rest/api/storageservices/create-container
97
113
  *
98
114
  * @param options -
99
115
  */
100
116
  async createIfNotExists(options = {}) {
101
117
  return tracingClient.withSpan("DataLakeFileSystemClient-createIfNotExists", options, async (updatedOptions) => {
102
- return this.blobContainerClient.createIfNotExists(Object.assign(Object.assign({}, options), { access: toContainerPublicAccessType(options.access), containerEncryptionScope: options.fileSystemEncryptionScope, tracingOptions: updatedOptions.tracingOptions }));
118
+ return this.blobContainerClient.createIfNotExists({
119
+ ...options,
120
+ access: toContainerPublicAccessType(options.access),
121
+ containerEncryptionScope: options.fileSystemEncryptionScope,
122
+ tracingOptions: updatedOptions.tracingOptions,
123
+ });
103
124
  });
104
125
  }
105
126
  /**
@@ -119,19 +140,22 @@ export class DataLakeFileSystemClient extends StorageClient {
119
140
  /**
120
141
  * Delete current file system.
121
142
  *
122
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-container
143
+ * @see https://learn.microsoft.com/rest/api/storageservices/delete-container
123
144
  *
124
145
  * @param options - Optional. Options when deleting file system.
125
146
  */
126
147
  async delete(options = {}) {
127
148
  return tracingClient.withSpan("DataLakeFileSystemClient-delete", options, async (updatedOptions) => {
128
- return this.blobContainerClient.delete(Object.assign(Object.assign({}, options), { tracingOptions: updatedOptions.tracingOptions }));
149
+ return this.blobContainerClient.delete({
150
+ ...options,
151
+ tracingOptions: updatedOptions.tracingOptions,
152
+ });
129
153
  });
130
154
  }
131
155
  /**
132
156
  * Delete current file system if it exists.
133
157
  *
134
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-container
158
+ * @see https://learn.microsoft.com/rest/api/storageservices/delete-container
135
159
  *
136
160
  * @param options -
137
161
  */
@@ -149,13 +173,16 @@ export class DataLakeFileSystemClient extends StorageClient {
149
173
  * the `listFileSystems` method of {@link DataLakeServiceClient} using the `includeMetadata` option, which
150
174
  * will retain their original casing.
151
175
  *
152
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-container-properties
176
+ * @see https://learn.microsoft.com/rest/api/storageservices/get-container-properties
153
177
  *
154
178
  * @param options - Optional. Options when getting file system properties.
155
179
  */
156
180
  async getProperties(options = {}) {
157
181
  return tracingClient.withSpan("DataLakeFileSystemClient-getProperties", options, async (updatedOptions) => {
158
- const rawResponse = await this.blobContainerClient.getProperties(Object.assign(Object.assign({}, options), { tracingOptions: updatedOptions.tracingOptions }));
182
+ const rawResponse = await this.blobContainerClient.getProperties({
183
+ ...options,
184
+ tracingOptions: updatedOptions.tracingOptions,
185
+ });
159
186
  // Transfer and rename blobPublicAccess to publicAccess
160
187
  const response = rawResponse;
161
188
  response.publicAccess = toPublicAccessType(rawResponse.blobPublicAccess);
@@ -171,7 +198,7 @@ export class DataLakeFileSystemClient extends StorageClient {
171
198
  * If no option provided, or no metadata defined in the parameter, the file system
172
199
  * metadata will be removed.
173
200
  *
174
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-container-metadata
201
+ * @see https://learn.microsoft.com/rest/api/storageservices/set-container-metadata
175
202
  *
176
203
  * @param metadata - Replace existing metadata with this value.
177
204
  * If no value provided the existing metadata will be removed.
@@ -179,7 +206,10 @@ export class DataLakeFileSystemClient extends StorageClient {
179
206
  */
180
207
  async setMetadata(metadata, options = {}) {
181
208
  return tracingClient.withSpan("DataLakeFileSystemClient-setMetadata", options, async (updatedOptions) => {
182
- return this.blobContainerClient.setMetadata(metadata, Object.assign(Object.assign({}, options), { tracingOptions: updatedOptions.tracingOptions }));
209
+ return this.blobContainerClient.setMetadata(metadata, {
210
+ ...options,
211
+ tracingOptions: updatedOptions.tracingOptions,
212
+ });
183
213
  });
184
214
  }
185
215
  /**
@@ -189,13 +219,16 @@ export class DataLakeFileSystemClient extends StorageClient {
189
219
  * WARNING: JavaScript Date will potentially lose precision when parsing startsOn and expiresOn strings.
190
220
  * For example, new Date("2018-12-31T03:44:23.8827891Z").toISOString() will get "2018-12-31T03:44:23.882Z".
191
221
  *
192
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-container-acl
222
+ * @see https://learn.microsoft.com/rest/api/storageservices/get-container-acl
193
223
  *
194
224
  * @param options - Optional. Options when getting file system access policy.
195
225
  */
196
226
  async getAccessPolicy(options = {}) {
197
227
  return tracingClient.withSpan("DataLakeFileSystemClient-getAccessPolicy", options, async (updatedOptions) => {
198
- const rawResponse = await this.blobContainerClient.getAccessPolicy(Object.assign(Object.assign({}, options), { tracingOptions: updatedOptions.tracingOptions }));
228
+ const rawResponse = await this.blobContainerClient.getAccessPolicy({
229
+ ...options,
230
+ tracingOptions: updatedOptions.tracingOptions,
231
+ });
199
232
  // Transfer and rename blobPublicAccess to publicAccess
200
233
  const response = rawResponse;
201
234
  response.publicAccess = toPublicAccessType(rawResponse.blobPublicAccess);
@@ -213,7 +246,7 @@ export class DataLakeFileSystemClient extends StorageClient {
213
246
  * If no access or containerAcl provided, the existing file system ACL will be
214
247
  * removed.
215
248
  *
216
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-container-acl
249
+ * @see https://learn.microsoft.com/rest/api/storageservices/set-container-acl
217
250
  *
218
251
  * @param access - Optional. The level of public access to data in the file system.
219
252
  * @param fileSystemAcl - Optional. Array of elements each having a unique Id and details of the access policy.
@@ -221,7 +254,10 @@ export class DataLakeFileSystemClient extends StorageClient {
221
254
  */
222
255
  async setAccessPolicy(access, fileSystemAcl, options = {}) {
223
256
  return tracingClient.withSpan("DataLakeFileSystemClient-setAccessPolicy", options, async (updatedOptions) => {
224
- return this.blobContainerClient.setAccessPolicy(toContainerPublicAccessType(access), fileSystemAcl, Object.assign(Object.assign({}, options), { tracingOptions: updatedOptions.tracingOptions }));
257
+ return this.blobContainerClient.setAccessPolicy(toContainerPublicAccessType(access), fileSystemAcl, {
258
+ ...options,
259
+ tracingOptions: updatedOptions.tracingOptions,
260
+ });
225
261
  });
226
262
  }
227
263
  /**
@@ -353,49 +389,44 @@ export class DataLakeFileSystemClient extends StorageClient {
353
389
  return this;
354
390
  },
355
391
  byPage: (settings = {}) => {
356
- return this.listSegments(settings.continuationToken, Object.assign({ maxResults: settings.maxPageSize }, options));
392
+ return this.listSegments(settings.continuationToken, {
393
+ maxResults: settings.maxPageSize,
394
+ ...options,
395
+ });
357
396
  },
358
397
  };
359
398
  }
360
- listItems() {
361
- return __asyncGenerator(this, arguments, function* listItems_1(options = {}) {
362
- var _a, e_1, _b, _c;
363
- try {
364
- for (var _d = true, _e = __asyncValues(this.listSegments(undefined, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
365
- _c = _f.value;
366
- _d = false;
367
- const response = _c;
368
- yield __await(yield* __asyncDelegator(__asyncValues(response.pathItems || [])));
369
- }
370
- }
371
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
372
- finally {
373
- try {
374
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
375
- }
376
- finally { if (e_1) throw e_1.error; }
377
- }
378
- });
399
+ async *listItems(options = {}) {
400
+ for await (const response of this.listSegments(undefined, options)) {
401
+ yield* response.pathItems || [];
402
+ }
379
403
  }
380
- listSegments(continuation_1) {
381
- return __asyncGenerator(this, arguments, function* listSegments_1(continuation, options = {}) {
382
- let response;
383
- if (!!continuation || continuation === undefined) {
384
- do {
385
- response = yield __await(this.listPathsSegment(continuation, options));
386
- continuation = response.continuation;
387
- yield yield __await(response);
388
- } while (continuation);
389
- }
390
- });
404
+ async *listSegments(continuation, options = {}) {
405
+ let response;
406
+ if (!!continuation || continuation === undefined) {
407
+ do {
408
+ response = await this.listPathsSegment(continuation, options);
409
+ continuation = response.continuation;
410
+ yield response;
411
+ } while (continuation);
412
+ }
391
413
  }
392
414
  async listPathsSegment(continuation, options = {}) {
393
415
  return tracingClient.withSpan("DataLakeFileSystemClient-listPathsSegment", options, async (updatedOptions) => {
394
- const rawResponse = await this.fileSystemContext.listPaths(options.recursive || false, Object.assign(Object.assign({ continuation }, updatedOptions), { upn: options.userPrincipalName }));
416
+ const rawResponse = await this.fileSystemContext.listPaths(options.recursive || false, {
417
+ continuation,
418
+ ...updatedOptions,
419
+ upn: options.userPrincipalName,
420
+ });
395
421
  const response = rawResponse;
396
422
  response.pathItems = [];
397
423
  for (const path of rawResponse.paths || []) {
398
- response.pathItems.push(Object.assign(Object.assign({}, path), { permissions: toPermissions(path.permissions), createdOn: windowsFileTimeTicksToTime(path.creationTime), expiresOn: windowsFileTimeTicksToTime(path.expiryTime) }));
424
+ response.pathItems.push({
425
+ ...path,
426
+ permissions: toPermissions(path.permissions),
427
+ createdOn: windowsFileTimeTicksToTime(path.creationTime),
428
+ expiresOn: windowsFileTimeTicksToTime(path.expiryTime),
429
+ });
399
430
  }
400
431
  delete rawResponse.paths;
401
432
  return response;
@@ -531,45 +562,35 @@ export class DataLakeFileSystemClient extends StorageClient {
531
562
  return this;
532
563
  },
533
564
  byPage: (settings = {}) => {
534
- return this.listDeletedSegments(settings.continuationToken, Object.assign({ maxResults: settings.maxPageSize }, options));
565
+ return this.listDeletedSegments(settings.continuationToken, {
566
+ maxResults: settings.maxPageSize,
567
+ ...options,
568
+ });
535
569
  },
536
570
  };
537
571
  }
538
- listDeletedItems() {
539
- return __asyncGenerator(this, arguments, function* listDeletedItems_1(options = {}) {
540
- var _a, e_2, _b, _c;
541
- try {
542
- for (var _d = true, _e = __asyncValues(this.listDeletedSegments(undefined, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
543
- _c = _f.value;
544
- _d = false;
545
- const response = _c;
546
- yield __await(yield* __asyncDelegator(__asyncValues(response.pathItems || [])));
547
- }
548
- }
549
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
550
- finally {
551
- try {
552
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
553
- }
554
- finally { if (e_2) throw e_2.error; }
555
- }
556
- });
572
+ async *listDeletedItems(options = {}) {
573
+ for await (const response of this.listDeletedSegments(undefined, options)) {
574
+ yield* response.pathItems || [];
575
+ }
557
576
  }
558
- listDeletedSegments(continuation_1) {
559
- return __asyncGenerator(this, arguments, function* listDeletedSegments_1(continuation, options = {}) {
560
- let response;
561
- if (!!continuation || continuation === undefined) {
562
- do {
563
- response = yield __await(this.listDeletedPathsSegment(continuation, options));
564
- continuation = response.continuation;
565
- yield yield __await(response);
566
- } while (continuation);
567
- }
568
- });
577
+ async *listDeletedSegments(continuation, options = {}) {
578
+ let response;
579
+ if (!!continuation || continuation === undefined) {
580
+ do {
581
+ response = await this.listDeletedPathsSegment(continuation, options);
582
+ continuation = response.continuation;
583
+ yield response;
584
+ } while (continuation);
585
+ }
569
586
  }
570
587
  async listDeletedPathsSegment(continuation, options = {}) {
571
588
  return tracingClient.withSpan("DataLakeFileSystemClient-listDeletedPathsSegment", options, async (updatedOptions) => {
572
- const rawResponse = await this.fileSystemContextToBlobEndpoint.listBlobHierarchySegment(Object.assign(Object.assign({ marker: continuation }, updatedOptions), { prefix: options.prefix === "" ? undefined : options.prefix }));
589
+ const rawResponse = await this.fileSystemContextToBlobEndpoint.listBlobHierarchySegment({
590
+ marker: continuation,
591
+ ...updatedOptions,
592
+ prefix: options.prefix === "" ? undefined : options.prefix,
593
+ });
573
594
  const response = rawResponse;
574
595
  response.pathItems = [];
575
596
  for (const path of rawResponse.segment.blobItems || []) {
@@ -589,7 +610,7 @@ export class DataLakeFileSystemClient extends StorageClient {
589
610
  /**
590
611
  * Restores a soft deleted path.
591
612
  *
592
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/undelete-blob
613
+ * @see https://learn.microsoft.com/rest/api/storageservices/undelete-blob
593
614
  *
594
615
  * @param deletedPath - Required. The path of the deleted path.
595
616
  *
@@ -599,12 +620,22 @@ export class DataLakeFileSystemClient extends StorageClient {
599
620
  async undeletePath(deletedPath, deletionId, options = {}) {
600
621
  return tracingClient.withSpan("DataLakeFileSystemClient-undeletePath", options, async (updatedOptions) => {
601
622
  const pathClient = new PathClientInternal(appendToURLPath(this.blobEndpointUrl, EscapePath(deletedPath)), this.pipeline);
602
- const rawResponse = assertResponse(await pathClient.blobPathContext.undelete(Object.assign(Object.assign({ undeleteSource: "?" + DeletionIdKey + "=" + deletionId }, options), { tracingOptions: updatedOptions.tracingOptions })));
623
+ const rawResponse = assertResponse(await pathClient.blobPathContext.undelete({
624
+ undeleteSource: "?" + DeletionIdKey + "=" + deletionId,
625
+ ...options,
626
+ tracingOptions: updatedOptions.tracingOptions,
627
+ }));
603
628
  if (rawResponse.resourceType === PathResultTypeConstants.DirectoryResourceType) {
604
- return Object.assign({ pathClient: this.getDirectoryClient(deletedPath) }, rawResponse);
629
+ return {
630
+ pathClient: this.getDirectoryClient(deletedPath),
631
+ ...rawResponse,
632
+ };
605
633
  }
606
634
  else {
607
- return Object.assign({ pathClient: this.getFileClient(deletedPath) }, rawResponse);
635
+ return {
636
+ pathClient: this.getFileClient(deletedPath),
637
+ ...rawResponse,
638
+ };
608
639
  }
609
640
  });
610
641
  }
@@ -614,7 +645,7 @@ export class DataLakeFileSystemClient extends StorageClient {
614
645
  * Generates a Service Shared Access Signature (SAS) URI based on the client properties
615
646
  * and parameters passed in. The SAS is signed by the shared key credential of the client.
616
647
  *
617
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
648
+ * @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
618
649
  *
619
650
  * @param options - Optional parameters.
620
651
  * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
@@ -624,7 +655,10 @@ export class DataLakeFileSystemClient extends StorageClient {
624
655
  if (!(this.credential instanceof StorageSharedKeyCredential)) {
625
656
  throw RangeError("Can only generate the SAS when the client is initialized with a shared key credential");
626
657
  }
627
- const sas = generateDataLakeSASQueryParameters(Object.assign({ fileSystemName: this.name }, options), this.credential).toString();
658
+ const sas = generateDataLakeSASQueryParameters({
659
+ fileSystemName: this.name,
660
+ ...options,
661
+ }, this.credential).toString();
628
662
  resolve(appendToURLQuery(this.url, sas));
629
663
  });
630
664
  }
@@ -634,7 +668,7 @@ export class DataLakeFileSystemClient extends StorageClient {
634
668
  * Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
635
669
  * and parameters passed in. The SAS is signed by the shared key credential of the client.
636
670
  *
637
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
671
+ * @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
638
672
  *
639
673
  * @param options - Optional parameters.
640
674
  * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
@@ -644,13 +678,16 @@ export class DataLakeFileSystemClient extends StorageClient {
644
678
  if (!(this.credential instanceof StorageSharedKeyCredential)) {
645
679
  throw RangeError("Can only generate the SAS when the client is initialized with a shared key credential");
646
680
  }
647
- return generateDataLakeSASQueryParametersInternal(Object.assign({ fileSystemName: this.name }, options), this.credential).stringToSign;
681
+ return generateDataLakeSASQueryParametersInternal({
682
+ fileSystemName: this.name,
683
+ ...options,
684
+ }, this.credential).stringToSign;
648
685
  }
649
686
  /**
650
687
  * Generates a Service Shared Access Signature (SAS) URI based on the client properties
651
688
  * and parameters passed in. The SAS is signed by the input user delegation key.
652
689
  *
653
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
690
+ * @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
654
691
  *
655
692
  * @param options - Optional parameters.
656
693
  * @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
@@ -658,7 +695,10 @@ export class DataLakeFileSystemClient extends StorageClient {
658
695
  */
659
696
  generateUserDelegationSasUrl(options, userDelegationKey) {
660
697
  return new Promise((resolve) => {
661
- const sas = generateDataLakeSASQueryParameters(Object.assign({ fileSystemName: this.name }, options), userDelegationKey, this.accountName).toString();
698
+ const sas = generateDataLakeSASQueryParameters({
699
+ fileSystemName: this.name,
700
+ ...options,
701
+ }, userDelegationKey, this.accountName).toString();
662
702
  resolve(appendToURLQuery(this.url, sas));
663
703
  });
664
704
  }
@@ -666,14 +706,17 @@ export class DataLakeFileSystemClient extends StorageClient {
666
706
  * Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
667
707
  * and parameters passed in. The SAS is signed by the input user delegation key.
668
708
  *
669
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
709
+ * @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
670
710
  *
671
711
  * @param options - Optional parameters.
672
712
  * @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
673
713
  * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
674
714
  */
675
715
  generateUserDelegationSasStringToSign(options, userDelegationKey) {
676
- return generateDataLakeSASQueryParametersInternal(Object.assign({ fileSystemName: this.name }, options), userDelegationKey, this.accountName).stringToSign;
716
+ return generateDataLakeSASQueryParametersInternal({
717
+ fileSystemName: this.name,
718
+ ...options,
719
+ }, userDelegationKey, this.accountName).stringToSign;
677
720
  }
678
721
  }
679
722
  //# sourceMappingURL=DataLakeFileSystemClient.js.map