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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (836) hide show
  1. package/README.md +117 -190
  2. package/dist/browser/DataLakeFileSystemClient.d.ts +473 -0
  3. package/dist/browser/DataLakeFileSystemClient.d.ts.map +1 -0
  4. package/{dist-esm/storage-file-datalake/src → dist/browser}/DataLakeFileSystemClient.js +170 -75
  5. package/dist/browser/DataLakeFileSystemClient.js.map +1 -0
  6. package/dist/browser/DataLakeLeaseClient.d.ts +14 -0
  7. package/dist/browser/DataLakeLeaseClient.d.ts.map +1 -0
  8. package/{dist-esm/storage-file-datalake/src → dist/browser}/DataLakeLeaseClient.js +3 -1
  9. package/dist/browser/DataLakeLeaseClient.js.map +1 -0
  10. package/dist/browser/DataLakeServiceClient.d.ts +281 -0
  11. package/dist/browser/DataLakeServiceClient.d.ts.map +1 -0
  12. package/{dist-esm/storage-file-datalake/src → dist/browser}/DataLakeServiceClient.js +94 -62
  13. package/dist/browser/DataLakeServiceClient.js.map +1 -0
  14. package/dist/browser/Pipeline.d.ts +52 -0
  15. package/dist/browser/Pipeline.d.ts.map +1 -0
  16. package/{dist-esm/storage-file-datalake/src → dist/browser}/Pipeline.js +8 -8
  17. package/dist/browser/Pipeline.js.map +1 -0
  18. package/dist/browser/StorageClient.d.ts +61 -0
  19. package/dist/browser/StorageClient.d.ts.map +1 -0
  20. package/{dist-esm/storage-file-datalake/src → dist/browser}/StorageClient.js +5 -3
  21. package/dist/browser/StorageClient.js.map +1 -0
  22. package/dist/browser/StorageContextClient.d.ts +9 -0
  23. package/dist/browser/StorageContextClient.d.ts.map +1 -0
  24. package/{dist-esm/storage-file-datalake/src → dist/browser}/StorageContextClient.js +3 -3
  25. package/dist/browser/StorageContextClient.js.map +1 -0
  26. package/dist/browser/clients.d.ts +689 -0
  27. package/dist/browser/clients.d.ts.map +1 -0
  28. package/{dist-esm/storage-file-datalake/src → dist/browser}/clients.js +87 -45
  29. package/dist/browser/clients.js.map +1 -0
  30. package/dist/browser/credentials/StorageSharedKeyCredential-browser.d.mts.map +1 -0
  31. package/dist/browser/credentials/StorageSharedKeyCredential-browser.mjs.map +1 -0
  32. package/dist/browser/credentials/StorageSharedKeyCredential.d.ts +3 -0
  33. package/{dist-esm/storage-file-datalake/src/credentials/StorageSharedKeyCredential.browser.js → dist/browser/credentials/StorageSharedKeyCredential.js} +1 -1
  34. package/dist/browser/credentials/UserDelegationKeyCredential-browser.d.mts.map +1 -0
  35. package/dist/browser/credentials/UserDelegationKeyCredential-browser.mjs.map +1 -0
  36. package/dist/browser/credentials/UserDelegationKeyCredential.d.ts +3 -0
  37. package/{dist-esm/storage-file-datalake/src/credentials/UserDelegationKeyCredential.browser.js → dist/browser/credentials/UserDelegationKeyCredential.js} +1 -1
  38. package/dist/browser/generated/src/index.d.ts +4 -0
  39. package/dist/browser/generated/src/index.d.ts.map +1 -0
  40. package/{dist-esm/storage-file-datalake/src → dist/browser}/generated/src/index.js +3 -3
  41. package/dist/browser/generated/src/index.js.map +1 -0
  42. package/dist/browser/generated/src/models/index.d.ts +1091 -0
  43. package/dist/browser/generated/src/models/index.d.ts.map +1 -0
  44. package/dist/browser/generated/src/models/index.js.map +1 -0
  45. package/dist/browser/generated/src/models/mappers.d.ts +53 -0
  46. package/dist/browser/generated/src/models/mappers.d.ts.map +1 -0
  47. package/dist/browser/generated/src/models/mappers.js.map +1 -0
  48. package/dist/browser/generated/src/models/parameters.d.ts +87 -0
  49. package/dist/browser/generated/src/models/parameters.d.ts.map +1 -0
  50. package/{dist-esm/storage-file-datalake/src → dist/browser}/generated/src/models/parameters.js +1 -1
  51. package/dist/browser/generated/src/models/parameters.js.map +1 -0
  52. package/dist/browser/generated/src/operations/fileSystemOperations.d.ts +55 -0
  53. package/dist/browser/generated/src/operations/fileSystemOperations.d.ts.map +1 -0
  54. package/{dist-esm/storage-file-datalake/src → dist/browser}/generated/src/operations/fileSystemOperations.js +2 -2
  55. package/dist/browser/generated/src/operations/fileSystemOperations.js.map +1 -0
  56. package/dist/browser/generated/src/operations/index.d.ts +4 -0
  57. package/dist/browser/generated/src/operations/index.d.ts.map +1 -0
  58. package/{dist-esm/storage-file-datalake/src/generated/src/operationsInterfaces → dist/browser/generated/src/operations}/index.js +3 -3
  59. package/dist/browser/generated/src/operations/index.js.map +1 -0
  60. package/dist/browser/generated/src/operations/pathOperations.d.ts +120 -0
  61. package/dist/browser/generated/src/operations/pathOperations.d.ts.map +1 -0
  62. package/{dist-esm/storage-file-datalake/src → dist/browser}/generated/src/operations/pathOperations.js +2 -2
  63. package/dist/browser/generated/src/operations/pathOperations.js.map +1 -0
  64. package/dist/browser/generated/src/operations/service.d.ts +18 -0
  65. package/dist/browser/generated/src/operations/service.d.ts.map +1 -0
  66. package/{dist-esm/storage-file-datalake/src → dist/browser}/generated/src/operations/service.js +2 -2
  67. package/dist/browser/generated/src/operations/service.js.map +1 -0
  68. package/dist/browser/generated/src/operationsInterfaces/fileSystemOperations.d.ts +47 -0
  69. package/dist/browser/generated/src/operationsInterfaces/fileSystemOperations.d.ts.map +1 -0
  70. package/dist/browser/generated/src/operationsInterfaces/fileSystemOperations.js.map +1 -0
  71. package/dist/browser/generated/src/operationsInterfaces/index.d.ts +4 -0
  72. package/dist/browser/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  73. package/dist/browser/generated/src/operationsInterfaces/index.js +11 -0
  74. package/dist/browser/generated/src/operationsInterfaces/index.js.map +1 -0
  75. package/dist/browser/generated/src/operationsInterfaces/pathOperations.d.ts +112 -0
  76. package/dist/browser/generated/src/operationsInterfaces/pathOperations.d.ts.map +1 -0
  77. package/dist/browser/generated/src/operationsInterfaces/pathOperations.js.map +1 -0
  78. package/dist/browser/generated/src/operationsInterfaces/service.d.ts +10 -0
  79. package/dist/browser/generated/src/operationsInterfaces/service.d.ts.map +1 -0
  80. package/dist/browser/generated/src/operationsInterfaces/service.js.map +1 -0
  81. package/dist/browser/generated/src/storageClient.d.ts +20 -0
  82. package/dist/browser/generated/src/storageClient.d.ts.map +1 -0
  83. package/{dist-esm/storage-file-datalake/src → dist/browser}/generated/src/storageClient.js +3 -3
  84. package/dist/browser/generated/src/storageClient.js.map +1 -0
  85. package/dist/browser/index-browser.d.mts.map +1 -0
  86. package/dist/browser/index-browser.mjs.map +1 -0
  87. package/dist/browser/index.d.ts +13 -0
  88. package/{dist-esm/storage-file-datalake/src/index.browser.js → dist/browser/index.js} +10 -10
  89. package/dist/browser/log.d.ts +5 -0
  90. package/dist/browser/log.d.ts.map +1 -0
  91. package/dist/browser/log.js.map +1 -0
  92. package/dist/browser/models.d.ts +1318 -0
  93. package/dist/browser/models.d.ts.map +1 -0
  94. package/dist/browser/models.internal.d.ts +2 -0
  95. package/dist/browser/models.internal.d.ts.map +1 -0
  96. package/dist/browser/models.internal.js.map +1 -0
  97. package/{dist-esm/storage-file-datalake/src → dist/browser}/models.js +2 -0
  98. package/dist/browser/models.js.map +1 -0
  99. package/dist/browser/package.json +3 -0
  100. package/dist/browser/sas/AccountSASPermissions.d.ts +61 -0
  101. package/dist/browser/sas/AccountSASPermissions.d.ts.map +1 -0
  102. package/dist/browser/sas/AccountSASPermissions.js.map +1 -0
  103. package/dist/browser/sas/AccountSASResourceTypes.d.ts +38 -0
  104. package/dist/browser/sas/AccountSASResourceTypes.d.ts.map +1 -0
  105. package/dist/browser/sas/AccountSASResourceTypes.js.map +1 -0
  106. package/dist/browser/sas/AccountSASServices.d.ts +40 -0
  107. package/dist/browser/sas/AccountSASServices.d.ts.map +1 -0
  108. package/dist/browser/sas/AccountSASServices.js.map +1 -0
  109. package/dist/browser/sas/AccountSASSignatureValues.d.ts +78 -0
  110. package/dist/browser/sas/AccountSASSignatureValues.d.ts.map +1 -0
  111. package/{dist-esm/storage-file-datalake/src → dist/browser}/sas/AccountSASSignatureValues.js +7 -7
  112. package/dist/browser/sas/AccountSASSignatureValues.js.map +1 -0
  113. package/dist/browser/sas/DataLakeSASPermissions.d.ts +65 -0
  114. package/dist/browser/sas/DataLakeSASPermissions.d.ts.map +1 -0
  115. package/dist/browser/sas/DataLakeSASPermissions.js.map +1 -0
  116. package/dist/browser/sas/DataLakeSASSignatureValues.d.ts +205 -0
  117. package/dist/browser/sas/DataLakeSASSignatureValues.d.ts.map +1 -0
  118. package/{dist-esm/storage-file-datalake/src → dist/browser}/sas/DataLakeSASSignatureValues.js +107 -10
  119. package/dist/browser/sas/DataLakeSASSignatureValues.js.map +1 -0
  120. package/dist/browser/sas/DirectorySASPermissions.d.ts +69 -0
  121. package/dist/browser/sas/DirectorySASPermissions.d.ts.map +1 -0
  122. package/dist/browser/sas/DirectorySASPermissions.js.map +1 -0
  123. package/dist/browser/sas/FileSystemSASPermissions.d.ts +69 -0
  124. package/dist/browser/sas/FileSystemSASPermissions.d.ts.map +1 -0
  125. package/dist/browser/sas/FileSystemSASPermissions.js.map +1 -0
  126. package/dist/browser/sas/SASQueryParameters.d.ts +309 -0
  127. package/dist/browser/sas/SASQueryParameters.d.ts.map +1 -0
  128. package/{dist-esm/storage-file-datalake/src → dist/browser}/sas/SASQueryParameters.js +4 -2
  129. package/dist/browser/sas/SASQueryParameters.js.map +1 -0
  130. package/dist/browser/sas/SasIPRange.d.ts +24 -0
  131. package/dist/browser/sas/SasIPRange.d.ts.map +1 -0
  132. package/dist/browser/sas/SasIPRange.js.map +1 -0
  133. package/dist/browser/transforms.d.ts +51 -0
  134. package/dist/browser/transforms.d.ts.map +1 -0
  135. package/{dist-esm/storage-file-datalake/src → dist/browser}/transforms.js +2 -2
  136. package/dist/browser/transforms.js.map +1 -0
  137. package/dist/browser/utils/Batch.d.ts +68 -0
  138. package/dist/browser/utils/Batch.d.ts.map +1 -0
  139. package/dist/browser/utils/Batch.js.map +1 -0
  140. package/dist/browser/utils/BufferScheduler.d.ts +158 -0
  141. package/dist/browser/utils/BufferScheduler.d.ts.map +1 -0
  142. package/{dist-esm/storage-file-datalake/src → dist/browser}/utils/BufferScheduler.js +1 -1
  143. package/dist/browser/utils/BufferScheduler.js.map +1 -0
  144. package/dist/browser/utils/DataLakeAclChangeFailedError.d.ts +16 -0
  145. package/dist/browser/utils/DataLakeAclChangeFailedError.d.ts.map +1 -0
  146. package/dist/browser/utils/DataLakeAclChangeFailedError.js.map +1 -0
  147. package/dist/browser/utils/PathClientInternal.d.ts +24 -0
  148. package/dist/browser/utils/PathClientInternal.d.ts.map +1 -0
  149. package/{dist-esm/storage-file-datalake/src → dist/browser}/utils/PathClientInternal.js +2 -2
  150. package/dist/browser/utils/PathClientInternal.js.map +1 -0
  151. package/dist/browser/utils/constants.d.ts +70 -0
  152. package/dist/browser/utils/constants.d.ts.map +1 -0
  153. package/{dist-esm/storage-file-datalake/src → dist/browser}/utils/constants.js +2 -2
  154. package/dist/browser/utils/constants.js.map +1 -0
  155. package/dist/browser/utils/tracing.d.ts +6 -0
  156. package/dist/browser/utils/tracing.d.ts.map +1 -0
  157. package/{dist-esm/storage-file-datalake/src → dist/browser}/utils/tracing.js +1 -1
  158. package/dist/browser/utils/tracing.js.map +1 -0
  159. package/dist/browser/utils/utils-browser.d.mts.map +1 -0
  160. package/dist/browser/utils/utils-browser.mjs.map +1 -0
  161. package/dist/browser/utils/utils.common.d.ts +236 -0
  162. package/dist/browser/utils/utils.common.d.ts.map +1 -0
  163. package/{dist-esm/storage-file-datalake/src → dist/browser}/utils/utils.common.js +5 -5
  164. package/dist/browser/utils/utils.common.js.map +1 -0
  165. package/dist/browser/utils/utils.d.ts +3 -0
  166. package/dist/browser/utils/utils.js +9 -0
  167. package/dist/commonjs/DataLakeFileSystemClient.d.ts +473 -0
  168. package/dist/commonjs/DataLakeFileSystemClient.d.ts.map +1 -0
  169. package/dist/commonjs/DataLakeFileSystemClient.js +683 -0
  170. package/dist/commonjs/DataLakeFileSystemClient.js.map +1 -0
  171. package/dist/commonjs/DataLakeLeaseClient.d.ts +14 -0
  172. package/dist/commonjs/DataLakeLeaseClient.d.ts.map +1 -0
  173. package/dist/commonjs/DataLakeLeaseClient.js +49 -0
  174. package/dist/commonjs/DataLakeLeaseClient.js.map +1 -0
  175. package/dist/commonjs/DataLakeServiceClient.d.ts +281 -0
  176. package/dist/commonjs/DataLakeServiceClient.d.ts.map +1 -0
  177. package/dist/commonjs/DataLakeServiceClient.js +372 -0
  178. package/dist/commonjs/DataLakeServiceClient.js.map +1 -0
  179. package/dist/commonjs/Pipeline.d.ts +52 -0
  180. package/dist/commonjs/Pipeline.d.ts.map +1 -0
  181. package/dist/commonjs/Pipeline.js +222 -0
  182. package/dist/commonjs/Pipeline.js.map +1 -0
  183. package/dist/commonjs/StorageClient.d.ts +61 -0
  184. package/dist/commonjs/StorageClient.d.ts.map +1 -0
  185. package/dist/commonjs/StorageClient.js +55 -0
  186. package/dist/commonjs/StorageClient.js.map +1 -0
  187. package/dist/commonjs/StorageContextClient.d.ts +9 -0
  188. package/dist/commonjs/StorageContextClient.d.ts.map +1 -0
  189. package/dist/commonjs/StorageContextClient.js +39 -0
  190. package/dist/commonjs/StorageContextClient.js.map +1 -0
  191. package/dist/commonjs/clients.d.ts +689 -0
  192. package/dist/commonjs/clients.d.ts.map +1 -0
  193. package/dist/commonjs/clients.js +1195 -0
  194. package/dist/commonjs/clients.js.map +1 -0
  195. package/dist/commonjs/credentials/StorageSharedKeyCredential.d.ts +2 -0
  196. package/dist/commonjs/credentials/StorageSharedKeyCredential.d.ts.map +1 -0
  197. package/dist/commonjs/credentials/StorageSharedKeyCredential.js +8 -0
  198. package/dist/commonjs/credentials/StorageSharedKeyCredential.js.map +1 -0
  199. package/dist/commonjs/credentials/UserDelegationKeyCredential.d.ts +34 -0
  200. package/dist/commonjs/credentials/UserDelegationKeyCredential.d.ts.map +1 -0
  201. package/dist/commonjs/credentials/UserDelegationKeyCredential.js +35 -0
  202. package/dist/commonjs/credentials/UserDelegationKeyCredential.js.map +1 -0
  203. package/dist/commonjs/generated/src/index.d.ts +4 -0
  204. package/dist/commonjs/generated/src/index.d.ts.map +1 -0
  205. package/dist/commonjs/generated/src/index.js +16 -0
  206. package/dist/commonjs/generated/src/index.js.map +1 -0
  207. package/dist/commonjs/generated/src/models/index.d.ts +1091 -0
  208. package/dist/commonjs/generated/src/models/index.d.ts.map +1 -0
  209. package/dist/commonjs/generated/src/models/index.js +19 -0
  210. package/dist/commonjs/generated/src/models/index.js.map +1 -0
  211. package/dist/commonjs/generated/src/models/mappers.d.ts +53 -0
  212. package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -0
  213. package/dist/commonjs/generated/src/models/mappers.js +2450 -0
  214. package/dist/commonjs/generated/src/models/mappers.js.map +1 -0
  215. package/dist/commonjs/generated/src/models/parameters.d.ts +87 -0
  216. package/dist/commonjs/generated/src/models/parameters.d.ts.map +1 -0
  217. package/dist/commonjs/generated/src/models/parameters.js +952 -0
  218. package/dist/commonjs/generated/src/models/parameters.js.map +1 -0
  219. package/dist/commonjs/generated/src/operations/fileSystemOperations.d.ts +55 -0
  220. package/dist/commonjs/generated/src/operations/fileSystemOperations.d.ts.map +1 -0
  221. package/dist/commonjs/generated/src/operations/fileSystemOperations.js +236 -0
  222. package/dist/commonjs/generated/src/operations/fileSystemOperations.js.map +1 -0
  223. package/dist/commonjs/generated/src/operations/index.d.ts +4 -0
  224. package/dist/commonjs/generated/src/operations/index.d.ts.map +1 -0
  225. package/dist/commonjs/generated/src/operations/index.js +14 -0
  226. package/dist/commonjs/generated/src/operations/index.js.map +1 -0
  227. package/dist/commonjs/generated/src/operations/pathOperations.d.ts +120 -0
  228. package/dist/commonjs/generated/src/operations/pathOperations.d.ts.map +1 -0
  229. package/dist/commonjs/generated/src/operations/pathOperations.js +596 -0
  230. package/dist/commonjs/generated/src/operations/pathOperations.js.map +1 -0
  231. package/dist/commonjs/generated/src/operations/service.d.ts +18 -0
  232. package/dist/commonjs/generated/src/operations/service.d.ts.map +1 -0
  233. package/dist/commonjs/generated/src/operations/service.js +63 -0
  234. package/dist/commonjs/generated/src/operations/service.js.map +1 -0
  235. package/dist/commonjs/generated/src/operationsInterfaces/fileSystemOperations.d.ts +47 -0
  236. package/dist/commonjs/generated/src/operationsInterfaces/fileSystemOperations.d.ts.map +1 -0
  237. package/{dist-esm/storage-file-datalake/src/generated/src/operations/index.js → dist/commonjs/generated/src/operationsInterfaces/fileSystemOperations.js} +3 -4
  238. package/dist/commonjs/generated/src/operationsInterfaces/fileSystemOperations.js.map +1 -0
  239. package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts +4 -0
  240. package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  241. package/dist/commonjs/generated/src/operationsInterfaces/index.js +14 -0
  242. package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +1 -0
  243. package/dist/commonjs/generated/src/operationsInterfaces/pathOperations.d.ts +112 -0
  244. package/dist/commonjs/generated/src/operationsInterfaces/pathOperations.d.ts.map +1 -0
  245. package/dist/commonjs/generated/src/operationsInterfaces/pathOperations.js +10 -0
  246. package/dist/commonjs/generated/src/operationsInterfaces/pathOperations.js.map +1 -0
  247. package/dist/commonjs/generated/src/operationsInterfaces/service.d.ts +10 -0
  248. package/dist/commonjs/generated/src/operationsInterfaces/service.d.ts.map +1 -0
  249. package/dist/commonjs/generated/src/operationsInterfaces/service.js +10 -0
  250. package/dist/commonjs/generated/src/operationsInterfaces/service.js.map +1 -0
  251. package/dist/commonjs/generated/src/storageClient.d.ts +20 -0
  252. package/dist/commonjs/generated/src/storageClient.d.ts.map +1 -0
  253. package/dist/commonjs/generated/src/storageClient.js +52 -0
  254. package/dist/commonjs/generated/src/storageClient.js.map +1 -0
  255. package/dist/commonjs/index.d.ts +23 -0
  256. package/dist/commonjs/index.d.ts.map +1 -0
  257. package/dist/commonjs/index.js +49 -0
  258. package/dist/commonjs/index.js.map +1 -0
  259. package/dist/commonjs/log.d.ts +5 -0
  260. package/dist/commonjs/log.d.ts.map +1 -0
  261. package/dist/commonjs/log.js +11 -0
  262. package/dist/commonjs/log.js.map +1 -0
  263. package/dist/commonjs/models.d.ts +1318 -0
  264. package/dist/commonjs/models.d.ts.map +1 -0
  265. package/dist/commonjs/models.internal.d.ts +2 -0
  266. package/dist/commonjs/models.internal.d.ts.map +1 -0
  267. package/dist/commonjs/models.internal.js +5 -0
  268. package/dist/commonjs/models.internal.js.map +1 -0
  269. package/dist/commonjs/models.js +57 -0
  270. package/dist/commonjs/models.js.map +1 -0
  271. package/dist/commonjs/package.json +3 -0
  272. package/dist/commonjs/sas/AccountSASPermissions.d.ts +61 -0
  273. package/dist/commonjs/sas/AccountSASPermissions.d.ts.map +1 -0
  274. package/dist/commonjs/sas/AccountSASPermissions.js +132 -0
  275. package/dist/commonjs/sas/AccountSASPermissions.js.map +1 -0
  276. package/dist/commonjs/sas/AccountSASResourceTypes.d.ts +38 -0
  277. package/dist/commonjs/sas/AccountSASResourceTypes.d.ts.map +1 -0
  278. package/dist/commonjs/sas/AccountSASResourceTypes.js +76 -0
  279. package/dist/commonjs/sas/AccountSASResourceTypes.js.map +1 -0
  280. package/dist/commonjs/sas/AccountSASServices.d.ts +40 -0
  281. package/dist/commonjs/sas/AccountSASServices.d.ts.map +1 -0
  282. package/dist/commonjs/sas/AccountSASServices.js +84 -0
  283. package/dist/commonjs/sas/AccountSASServices.js.map +1 -0
  284. package/dist/commonjs/sas/AccountSASSignatureValues.d.ts +78 -0
  285. package/dist/commonjs/sas/AccountSASSignatureValues.d.ts.map +1 -0
  286. package/dist/commonjs/sas/AccountSASSignatureValues.js +76 -0
  287. package/dist/commonjs/sas/AccountSASSignatureValues.js.map +1 -0
  288. package/dist/commonjs/sas/DataLakeSASPermissions.d.ts +65 -0
  289. package/dist/commonjs/sas/DataLakeSASPermissions.d.ts.map +1 -0
  290. package/dist/commonjs/sas/DataLakeSASPermissions.js +139 -0
  291. package/dist/commonjs/sas/DataLakeSASPermissions.js.map +1 -0
  292. package/dist/commonjs/sas/DataLakeSASSignatureValues.d.ts +205 -0
  293. package/dist/commonjs/sas/DataLakeSASSignatureValues.d.ts.map +1 -0
  294. package/dist/commonjs/sas/DataLakeSASSignatureValues.js +722 -0
  295. package/dist/commonjs/sas/DataLakeSASSignatureValues.js.map +1 -0
  296. package/dist/commonjs/sas/DirectorySASPermissions.d.ts +69 -0
  297. package/dist/commonjs/sas/DirectorySASPermissions.d.ts.map +1 -0
  298. package/dist/commonjs/sas/DirectorySASPermissions.js +149 -0
  299. package/dist/commonjs/sas/DirectorySASPermissions.js.map +1 -0
  300. package/dist/commonjs/sas/FileSystemSASPermissions.d.ts +69 -0
  301. package/dist/commonjs/sas/FileSystemSASPermissions.d.ts.map +1 -0
  302. package/dist/commonjs/sas/FileSystemSASPermissions.js +149 -0
  303. package/dist/commonjs/sas/FileSystemSASPermissions.js.map +1 -0
  304. package/dist/commonjs/sas/SASQueryParameters.d.ts +309 -0
  305. package/dist/commonjs/sas/SASQueryParameters.d.ts.map +1 -0
  306. package/dist/commonjs/sas/SASQueryParameters.js +252 -0
  307. package/dist/commonjs/sas/SASQueryParameters.js.map +1 -0
  308. package/dist/commonjs/sas/SasIPRange.d.ts +24 -0
  309. package/dist/commonjs/sas/SasIPRange.d.ts.map +1 -0
  310. package/dist/commonjs/sas/SasIPRange.js +16 -0
  311. package/dist/commonjs/sas/SasIPRange.js.map +1 -0
  312. package/dist/commonjs/transforms.d.ts +51 -0
  313. package/dist/commonjs/transforms.d.ts.map +1 -0
  314. package/dist/commonjs/transforms.js +357 -0
  315. package/dist/commonjs/transforms.js.map +1 -0
  316. package/dist/commonjs/tsdoc-metadata.json +11 -0
  317. package/dist/commonjs/utils/Batch.d.ts +68 -0
  318. package/dist/commonjs/utils/Batch.d.ts.map +1 -0
  319. package/dist/commonjs/utils/Batch.js +126 -0
  320. package/dist/commonjs/utils/Batch.js.map +1 -0
  321. package/dist/commonjs/utils/BufferScheduler.d.ts +158 -0
  322. package/dist/commonjs/utils/BufferScheduler.d.ts.map +1 -0
  323. package/dist/commonjs/utils/BufferScheduler.js +268 -0
  324. package/dist/commonjs/utils/BufferScheduler.js.map +1 -0
  325. package/dist/commonjs/utils/DataLakeAclChangeFailedError.d.ts +16 -0
  326. package/dist/commonjs/utils/DataLakeAclChangeFailedError.d.ts.map +1 -0
  327. package/dist/commonjs/utils/DataLakeAclChangeFailedError.js +17 -0
  328. package/dist/commonjs/utils/DataLakeAclChangeFailedError.js.map +1 -0
  329. package/dist/commonjs/utils/PathClientInternal.d.ts +24 -0
  330. package/dist/commonjs/utils/PathClientInternal.d.ts.map +1 -0
  331. package/dist/commonjs/utils/PathClientInternal.js +28 -0
  332. package/dist/commonjs/utils/PathClientInternal.js.map +1 -0
  333. package/dist/commonjs/utils/constants.d.ts +70 -0
  334. package/dist/commonjs/utils/constants.d.ts.map +1 -0
  335. package/dist/commonjs/utils/constants.js +247 -0
  336. package/dist/commonjs/utils/constants.js.map +1 -0
  337. package/dist/commonjs/utils/tracing.d.ts +6 -0
  338. package/dist/commonjs/utils/tracing.d.ts.map +1 -0
  339. package/dist/commonjs/utils/tracing.js +17 -0
  340. package/dist/commonjs/utils/tracing.js.map +1 -0
  341. package/dist/commonjs/utils/utils.common.d.ts +236 -0
  342. package/dist/commonjs/utils/utils.common.d.ts.map +1 -0
  343. package/dist/commonjs/utils/utils.common.js +595 -0
  344. package/dist/commonjs/utils/utils.common.js.map +1 -0
  345. package/dist/commonjs/utils/utils.d.ts +29 -0
  346. package/dist/commonjs/utils/utils.d.ts.map +1 -0
  347. package/dist/commonjs/utils/utils.js +91 -0
  348. package/dist/commonjs/utils/utils.js.map +1 -0
  349. package/dist/esm/DataLakeFileSystemClient.d.ts +473 -0
  350. package/dist/esm/DataLakeFileSystemClient.d.ts.map +1 -0
  351. package/dist/esm/DataLakeFileSystemClient.js +679 -0
  352. package/dist/esm/DataLakeFileSystemClient.js.map +1 -0
  353. package/dist/esm/DataLakeLeaseClient.d.ts +14 -0
  354. package/dist/esm/DataLakeLeaseClient.d.ts.map +1 -0
  355. package/dist/esm/DataLakeLeaseClient.js +45 -0
  356. package/dist/esm/DataLakeLeaseClient.js.map +1 -0
  357. package/dist/esm/DataLakeServiceClient.d.ts +281 -0
  358. package/dist/esm/DataLakeServiceClient.d.ts.map +1 -0
  359. package/dist/esm/DataLakeServiceClient.js +368 -0
  360. package/dist/esm/DataLakeServiceClient.js.map +1 -0
  361. package/dist/esm/Pipeline.d.ts +52 -0
  362. package/dist/esm/Pipeline.d.ts.map +1 -0
  363. package/dist/esm/Pipeline.js +216 -0
  364. package/dist/esm/Pipeline.js.map +1 -0
  365. package/dist/esm/StorageClient.d.ts +61 -0
  366. package/dist/esm/StorageClient.d.ts.map +1 -0
  367. package/dist/esm/StorageClient.js +51 -0
  368. package/dist/esm/StorageClient.js.map +1 -0
  369. package/dist/esm/StorageContextClient.d.ts +9 -0
  370. package/dist/esm/StorageContextClient.d.ts.map +1 -0
  371. package/dist/esm/StorageContextClient.js +35 -0
  372. package/dist/esm/StorageContextClient.js.map +1 -0
  373. package/dist/esm/clients.d.ts +689 -0
  374. package/dist/esm/clients.d.ts.map +1 -0
  375. package/dist/esm/clients.js +1189 -0
  376. package/dist/esm/clients.js.map +1 -0
  377. package/dist/esm/credentials/StorageSharedKeyCredential.d.ts +2 -0
  378. package/dist/esm/credentials/StorageSharedKeyCredential.d.ts.map +1 -0
  379. package/dist/esm/credentials/StorageSharedKeyCredential.js.map +1 -0
  380. package/dist/esm/credentials/UserDelegationKeyCredential.d.ts +34 -0
  381. package/dist/esm/credentials/UserDelegationKeyCredential.d.ts.map +1 -0
  382. package/{dist-esm/storage-file-datalake/src → dist/esm}/credentials/UserDelegationKeyCredential.js +1 -1
  383. package/dist/esm/credentials/UserDelegationKeyCredential.js.map +1 -0
  384. package/dist/esm/generated/src/index.d.ts +4 -0
  385. package/dist/esm/generated/src/index.d.ts.map +1 -0
  386. package/dist/esm/generated/src/index.js +11 -0
  387. package/dist/esm/generated/src/index.js.map +1 -0
  388. package/dist/esm/generated/src/models/index.d.ts +1091 -0
  389. package/dist/esm/generated/src/models/index.d.ts.map +1 -0
  390. package/dist/esm/generated/src/models/index.js +16 -0
  391. package/dist/esm/generated/src/models/index.js.map +1 -0
  392. package/dist/esm/generated/src/models/mappers.d.ts +53 -0
  393. package/dist/esm/generated/src/models/mappers.d.ts.map +1 -0
  394. package/dist/esm/generated/src/models/mappers.js +2446 -0
  395. package/dist/esm/generated/src/models/mappers.js.map +1 -0
  396. package/dist/esm/generated/src/models/parameters.d.ts +87 -0
  397. package/dist/esm/generated/src/models/parameters.d.ts.map +1 -0
  398. package/dist/esm/generated/src/models/parameters.js +948 -0
  399. package/dist/esm/generated/src/models/parameters.js.map +1 -0
  400. package/dist/esm/generated/src/operations/fileSystemOperations.d.ts +55 -0
  401. package/dist/esm/generated/src/operations/fileSystemOperations.d.ts.map +1 -0
  402. package/dist/esm/generated/src/operations/fileSystemOperations.js +231 -0
  403. package/dist/esm/generated/src/operations/fileSystemOperations.js.map +1 -0
  404. package/dist/esm/generated/src/operations/index.d.ts +4 -0
  405. package/dist/esm/generated/src/operations/index.d.ts.map +1 -0
  406. package/dist/esm/generated/src/operations/index.js +11 -0
  407. package/dist/esm/generated/src/operations/index.js.map +1 -0
  408. package/dist/esm/generated/src/operations/pathOperations.d.ts +120 -0
  409. package/dist/esm/generated/src/operations/pathOperations.d.ts.map +1 -0
  410. package/dist/esm/generated/src/operations/pathOperations.js +591 -0
  411. package/dist/esm/generated/src/operations/pathOperations.js.map +1 -0
  412. package/dist/esm/generated/src/operations/service.d.ts +18 -0
  413. package/dist/esm/generated/src/operations/service.d.ts.map +1 -0
  414. package/dist/esm/generated/src/operations/service.js +58 -0
  415. package/dist/esm/generated/src/operations/service.js.map +1 -0
  416. package/dist/esm/generated/src/operationsInterfaces/fileSystemOperations.d.ts +47 -0
  417. package/dist/esm/generated/src/operationsInterfaces/fileSystemOperations.d.ts.map +1 -0
  418. package/dist/esm/generated/src/operationsInterfaces/fileSystemOperations.js +9 -0
  419. package/dist/esm/generated/src/operationsInterfaces/fileSystemOperations.js.map +1 -0
  420. package/dist/esm/generated/src/operationsInterfaces/index.d.ts +4 -0
  421. package/dist/esm/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  422. package/dist/esm/generated/src/operationsInterfaces/index.js +11 -0
  423. package/dist/esm/generated/src/operationsInterfaces/index.js.map +1 -0
  424. package/dist/esm/generated/src/operationsInterfaces/pathOperations.d.ts +112 -0
  425. package/dist/esm/generated/src/operationsInterfaces/pathOperations.d.ts.map +1 -0
  426. package/dist/esm/generated/src/operationsInterfaces/pathOperations.js +9 -0
  427. package/dist/esm/generated/src/operationsInterfaces/pathOperations.js.map +1 -0
  428. package/dist/esm/generated/src/operationsInterfaces/service.d.ts +10 -0
  429. package/dist/esm/generated/src/operationsInterfaces/service.d.ts.map +1 -0
  430. package/dist/esm/generated/src/operationsInterfaces/service.js +9 -0
  431. package/dist/esm/generated/src/operationsInterfaces/service.js.map +1 -0
  432. package/dist/esm/generated/src/storageClient.d.ts +20 -0
  433. package/dist/esm/generated/src/storageClient.d.ts.map +1 -0
  434. package/dist/esm/generated/src/storageClient.js +47 -0
  435. package/dist/esm/generated/src/storageClient.js.map +1 -0
  436. package/dist/esm/index.d.ts +23 -0
  437. package/dist/esm/index.d.ts.map +1 -0
  438. package/dist/esm/index.js +23 -0
  439. package/dist/esm/index.js.map +1 -0
  440. package/dist/esm/log.d.ts +5 -0
  441. package/dist/esm/log.d.ts.map +1 -0
  442. package/{dist-esm/storage-blob/src → dist/esm}/log.js +1 -1
  443. package/dist/esm/log.js.map +1 -0
  444. package/dist/esm/models.d.ts +1318 -0
  445. package/dist/esm/models.d.ts.map +1 -0
  446. package/dist/esm/models.internal.d.ts +2 -0
  447. package/dist/esm/models.internal.d.ts.map +1 -0
  448. package/dist/esm/models.internal.js +4 -0
  449. package/dist/esm/models.internal.js.map +1 -0
  450. package/dist/esm/models.js +53 -0
  451. package/dist/esm/models.js.map +1 -0
  452. package/dist/esm/package.json +3 -0
  453. package/dist/esm/sas/AccountSASPermissions.d.ts +61 -0
  454. package/dist/esm/sas/AccountSASPermissions.d.ts.map +1 -0
  455. package/dist/esm/sas/AccountSASPermissions.js +128 -0
  456. package/dist/esm/sas/AccountSASPermissions.js.map +1 -0
  457. package/dist/esm/sas/AccountSASResourceTypes.d.ts +38 -0
  458. package/dist/esm/sas/AccountSASResourceTypes.d.ts.map +1 -0
  459. package/dist/esm/sas/AccountSASResourceTypes.js +72 -0
  460. package/dist/esm/sas/AccountSASResourceTypes.js.map +1 -0
  461. package/dist/esm/sas/AccountSASServices.d.ts +40 -0
  462. package/dist/esm/sas/AccountSASServices.d.ts.map +1 -0
  463. package/dist/esm/sas/AccountSASServices.js +80 -0
  464. package/dist/esm/sas/AccountSASServices.js.map +1 -0
  465. package/dist/esm/sas/AccountSASSignatureValues.d.ts +78 -0
  466. package/dist/esm/sas/AccountSASSignatureValues.d.ts.map +1 -0
  467. package/dist/esm/sas/AccountSASSignatureValues.js +72 -0
  468. package/dist/esm/sas/AccountSASSignatureValues.js.map +1 -0
  469. package/dist/esm/sas/DataLakeSASPermissions.d.ts +65 -0
  470. package/dist/esm/sas/DataLakeSASPermissions.d.ts.map +1 -0
  471. package/dist/esm/sas/DataLakeSASPermissions.js +135 -0
  472. package/dist/esm/sas/DataLakeSASPermissions.js.map +1 -0
  473. package/dist/esm/sas/DataLakeSASSignatureValues.d.ts +205 -0
  474. package/dist/esm/sas/DataLakeSASSignatureValues.d.ts.map +1 -0
  475. package/dist/esm/sas/DataLakeSASSignatureValues.js +718 -0
  476. package/dist/esm/sas/DataLakeSASSignatureValues.js.map +1 -0
  477. package/dist/esm/sas/DirectorySASPermissions.d.ts +69 -0
  478. package/dist/esm/sas/DirectorySASPermissions.d.ts.map +1 -0
  479. package/dist/esm/sas/DirectorySASPermissions.js +145 -0
  480. package/dist/esm/sas/DirectorySASPermissions.js.map +1 -0
  481. package/dist/esm/sas/FileSystemSASPermissions.d.ts +69 -0
  482. package/dist/esm/sas/FileSystemSASPermissions.d.ts.map +1 -0
  483. package/dist/esm/sas/FileSystemSASPermissions.js +145 -0
  484. package/dist/esm/sas/FileSystemSASPermissions.js.map +1 -0
  485. package/dist/esm/sas/SASQueryParameters.d.ts +309 -0
  486. package/dist/esm/sas/SASQueryParameters.d.ts.map +1 -0
  487. package/dist/esm/sas/SASQueryParameters.js +248 -0
  488. package/dist/esm/sas/SASQueryParameters.js.map +1 -0
  489. package/dist/esm/sas/SasIPRange.d.ts +24 -0
  490. package/dist/esm/sas/SasIPRange.d.ts.map +1 -0
  491. package/dist/esm/sas/SasIPRange.js +13 -0
  492. package/dist/esm/sas/SasIPRange.js.map +1 -0
  493. package/dist/esm/transforms.d.ts +51 -0
  494. package/dist/esm/transforms.d.ts.map +1 -0
  495. package/dist/esm/transforms.js +337 -0
  496. package/dist/esm/transforms.js.map +1 -0
  497. package/dist/esm/utils/Batch.d.ts +68 -0
  498. package/dist/esm/utils/Batch.d.ts.map +1 -0
  499. package/dist/esm/utils/Batch.js.map +1 -0
  500. package/dist/esm/utils/BufferScheduler.d.ts +158 -0
  501. package/dist/esm/utils/BufferScheduler.d.ts.map +1 -0
  502. package/{dist-esm/storage-common/src → dist/esm/utils}/BufferScheduler.js +27 -15
  503. package/dist/esm/utils/BufferScheduler.js.map +1 -0
  504. package/dist/esm/utils/DataLakeAclChangeFailedError.d.ts +16 -0
  505. package/dist/esm/utils/DataLakeAclChangeFailedError.d.ts.map +1 -0
  506. package/dist/esm/utils/DataLakeAclChangeFailedError.js +13 -0
  507. package/dist/esm/utils/DataLakeAclChangeFailedError.js.map +1 -0
  508. package/dist/esm/utils/PathClientInternal.d.ts +24 -0
  509. package/dist/esm/utils/PathClientInternal.d.ts.map +1 -0
  510. package/dist/esm/utils/PathClientInternal.js +24 -0
  511. package/dist/esm/utils/PathClientInternal.js.map +1 -0
  512. package/dist/esm/utils/constants.d.ts +70 -0
  513. package/dist/esm/utils/constants.d.ts.map +1 -0
  514. package/{dist-esm/storage-blob/src → dist/esm}/utils/constants.js +85 -67
  515. package/dist/esm/utils/constants.js.map +1 -0
  516. package/dist/esm/utils/tracing.d.ts +6 -0
  517. package/dist/esm/utils/tracing.d.ts.map +1 -0
  518. package/{dist-esm/storage-blob/src → dist/esm}/utils/tracing.js +2 -2
  519. package/dist/esm/utils/tracing.js.map +1 -0
  520. package/dist/esm/utils/utils.common.d.ts +236 -0
  521. package/dist/esm/utils/utils.common.d.ts.map +1 -0
  522. package/{dist-esm/storage-blob/src → dist/esm}/utils/utils.common.js +105 -297
  523. package/dist/esm/utils/utils.common.js.map +1 -0
  524. package/dist/esm/utils/utils.d.ts +29 -0
  525. package/dist/esm/utils/utils.d.ts.map +1 -0
  526. package/{dist-esm/storage-file-datalake/src/utils/utils.node.js → dist/esm/utils/utils.js} +3 -3
  527. package/dist/esm/utils/utils.js.map +1 -0
  528. package/dist/react-native/DataLakeFileSystemClient.d.ts +473 -0
  529. package/dist/react-native/DataLakeFileSystemClient.d.ts.map +1 -0
  530. package/dist/react-native/DataLakeFileSystemClient.js +679 -0
  531. package/dist/react-native/DataLakeFileSystemClient.js.map +1 -0
  532. package/dist/react-native/DataLakeLeaseClient.d.ts +14 -0
  533. package/dist/react-native/DataLakeLeaseClient.d.ts.map +1 -0
  534. package/dist/react-native/DataLakeLeaseClient.js +45 -0
  535. package/dist/react-native/DataLakeLeaseClient.js.map +1 -0
  536. package/dist/react-native/DataLakeServiceClient.d.ts +281 -0
  537. package/dist/react-native/DataLakeServiceClient.d.ts.map +1 -0
  538. package/dist/react-native/DataLakeServiceClient.js +368 -0
  539. package/dist/react-native/DataLakeServiceClient.js.map +1 -0
  540. package/dist/react-native/Pipeline.d.ts +52 -0
  541. package/dist/react-native/Pipeline.d.ts.map +1 -0
  542. package/dist/react-native/Pipeline.js +216 -0
  543. package/dist/react-native/Pipeline.js.map +1 -0
  544. package/dist/react-native/StorageClient.d.ts +61 -0
  545. package/dist/react-native/StorageClient.d.ts.map +1 -0
  546. package/dist/react-native/StorageClient.js +51 -0
  547. package/dist/react-native/StorageClient.js.map +1 -0
  548. package/dist/react-native/StorageContextClient.d.ts +9 -0
  549. package/dist/react-native/StorageContextClient.d.ts.map +1 -0
  550. package/dist/react-native/StorageContextClient.js +35 -0
  551. package/dist/react-native/StorageContextClient.js.map +1 -0
  552. package/dist/react-native/clients.d.ts +689 -0
  553. package/dist/react-native/clients.d.ts.map +1 -0
  554. package/dist/react-native/clients.js +1189 -0
  555. package/dist/react-native/clients.js.map +1 -0
  556. package/dist/react-native/credentials/StorageSharedKeyCredential.d.ts +2 -0
  557. package/dist/react-native/credentials/StorageSharedKeyCredential.d.ts.map +1 -0
  558. package/dist/react-native/credentials/StorageSharedKeyCredential.js +4 -0
  559. package/dist/react-native/credentials/StorageSharedKeyCredential.js.map +1 -0
  560. package/dist/react-native/credentials/UserDelegationKeyCredential.d.ts +34 -0
  561. package/dist/react-native/credentials/UserDelegationKeyCredential.d.ts.map +1 -0
  562. package/dist/react-native/credentials/UserDelegationKeyCredential.js +31 -0
  563. package/dist/react-native/credentials/UserDelegationKeyCredential.js.map +1 -0
  564. package/dist/react-native/generated/src/index.d.ts +4 -0
  565. package/dist/react-native/generated/src/index.d.ts.map +1 -0
  566. package/dist/react-native/generated/src/index.js +11 -0
  567. package/dist/react-native/generated/src/index.js.map +1 -0
  568. package/dist/react-native/generated/src/models/index.d.ts +1091 -0
  569. package/dist/react-native/generated/src/models/index.d.ts.map +1 -0
  570. package/dist/react-native/generated/src/models/index.js +16 -0
  571. package/dist/react-native/generated/src/models/index.js.map +1 -0
  572. package/dist/react-native/generated/src/models/mappers.d.ts +53 -0
  573. package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -0
  574. package/dist/react-native/generated/src/models/mappers.js +2446 -0
  575. package/dist/react-native/generated/src/models/mappers.js.map +1 -0
  576. package/dist/react-native/generated/src/models/parameters.d.ts +87 -0
  577. package/dist/react-native/generated/src/models/parameters.d.ts.map +1 -0
  578. package/dist/react-native/generated/src/models/parameters.js +948 -0
  579. package/dist/react-native/generated/src/models/parameters.js.map +1 -0
  580. package/dist/react-native/generated/src/operations/fileSystemOperations.d.ts +55 -0
  581. package/dist/react-native/generated/src/operations/fileSystemOperations.d.ts.map +1 -0
  582. package/dist/react-native/generated/src/operations/fileSystemOperations.js +231 -0
  583. package/dist/react-native/generated/src/operations/fileSystemOperations.js.map +1 -0
  584. package/dist/react-native/generated/src/operations/index.d.ts +4 -0
  585. package/dist/react-native/generated/src/operations/index.d.ts.map +1 -0
  586. package/dist/react-native/generated/src/operations/index.js +11 -0
  587. package/dist/react-native/generated/src/operations/index.js.map +1 -0
  588. package/dist/react-native/generated/src/operations/pathOperations.d.ts +120 -0
  589. package/dist/react-native/generated/src/operations/pathOperations.d.ts.map +1 -0
  590. package/dist/react-native/generated/src/operations/pathOperations.js +591 -0
  591. package/dist/react-native/generated/src/operations/pathOperations.js.map +1 -0
  592. package/dist/react-native/generated/src/operations/service.d.ts +18 -0
  593. package/dist/react-native/generated/src/operations/service.d.ts.map +1 -0
  594. package/dist/react-native/generated/src/operations/service.js +58 -0
  595. package/dist/react-native/generated/src/operations/service.js.map +1 -0
  596. package/dist/react-native/generated/src/operationsInterfaces/fileSystemOperations.d.ts +47 -0
  597. package/dist/react-native/generated/src/operationsInterfaces/fileSystemOperations.d.ts.map +1 -0
  598. package/dist/react-native/generated/src/operationsInterfaces/fileSystemOperations.js +9 -0
  599. package/dist/react-native/generated/src/operationsInterfaces/fileSystemOperations.js.map +1 -0
  600. package/dist/react-native/generated/src/operationsInterfaces/index.d.ts +4 -0
  601. package/dist/react-native/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  602. package/dist/react-native/generated/src/operationsInterfaces/index.js +11 -0
  603. package/dist/react-native/generated/src/operationsInterfaces/index.js.map +1 -0
  604. package/dist/react-native/generated/src/operationsInterfaces/pathOperations.d.ts +112 -0
  605. package/dist/react-native/generated/src/operationsInterfaces/pathOperations.d.ts.map +1 -0
  606. package/dist/react-native/generated/src/operationsInterfaces/pathOperations.js +9 -0
  607. package/dist/react-native/generated/src/operationsInterfaces/pathOperations.js.map +1 -0
  608. package/dist/react-native/generated/src/operationsInterfaces/service.d.ts +10 -0
  609. package/dist/react-native/generated/src/operationsInterfaces/service.d.ts.map +1 -0
  610. package/dist/react-native/generated/src/operationsInterfaces/service.js +9 -0
  611. package/dist/react-native/generated/src/operationsInterfaces/service.js.map +1 -0
  612. package/dist/react-native/generated/src/storageClient.d.ts +20 -0
  613. package/dist/react-native/generated/src/storageClient.d.ts.map +1 -0
  614. package/dist/react-native/generated/src/storageClient.js +47 -0
  615. package/dist/react-native/generated/src/storageClient.js.map +1 -0
  616. package/dist/react-native/index.d.ts +23 -0
  617. package/dist/react-native/index.d.ts.map +1 -0
  618. package/dist/react-native/index.js +23 -0
  619. package/dist/react-native/index.js.map +1 -0
  620. package/dist/react-native/log.d.ts +5 -0
  621. package/dist/react-native/log.d.ts.map +1 -0
  622. package/dist/react-native/log.js +8 -0
  623. package/dist/react-native/log.js.map +1 -0
  624. package/dist/react-native/models.d.ts +1318 -0
  625. package/dist/react-native/models.d.ts.map +1 -0
  626. package/dist/react-native/models.internal.d.ts +2 -0
  627. package/dist/react-native/models.internal.d.ts.map +1 -0
  628. package/dist/react-native/models.internal.js +4 -0
  629. package/dist/react-native/models.internal.js.map +1 -0
  630. package/dist/react-native/models.js +53 -0
  631. package/dist/react-native/models.js.map +1 -0
  632. package/dist/react-native/package.json +3 -0
  633. package/dist/react-native/sas/AccountSASPermissions.d.ts +61 -0
  634. package/dist/react-native/sas/AccountSASPermissions.d.ts.map +1 -0
  635. package/dist/react-native/sas/AccountSASPermissions.js +128 -0
  636. package/dist/react-native/sas/AccountSASPermissions.js.map +1 -0
  637. package/dist/react-native/sas/AccountSASResourceTypes.d.ts +38 -0
  638. package/dist/react-native/sas/AccountSASResourceTypes.d.ts.map +1 -0
  639. package/dist/react-native/sas/AccountSASResourceTypes.js +72 -0
  640. package/dist/react-native/sas/AccountSASResourceTypes.js.map +1 -0
  641. package/dist/react-native/sas/AccountSASServices.d.ts +40 -0
  642. package/dist/react-native/sas/AccountSASServices.d.ts.map +1 -0
  643. package/dist/react-native/sas/AccountSASServices.js +80 -0
  644. package/dist/react-native/sas/AccountSASServices.js.map +1 -0
  645. package/dist/react-native/sas/AccountSASSignatureValues.d.ts +78 -0
  646. package/dist/react-native/sas/AccountSASSignatureValues.d.ts.map +1 -0
  647. package/dist/react-native/sas/AccountSASSignatureValues.js +72 -0
  648. package/dist/react-native/sas/AccountSASSignatureValues.js.map +1 -0
  649. package/dist/react-native/sas/DataLakeSASPermissions.d.ts +65 -0
  650. package/dist/react-native/sas/DataLakeSASPermissions.d.ts.map +1 -0
  651. package/dist/react-native/sas/DataLakeSASPermissions.js +135 -0
  652. package/dist/react-native/sas/DataLakeSASPermissions.js.map +1 -0
  653. package/dist/react-native/sas/DataLakeSASSignatureValues.d.ts +205 -0
  654. package/dist/react-native/sas/DataLakeSASSignatureValues.d.ts.map +1 -0
  655. package/dist/react-native/sas/DataLakeSASSignatureValues.js +718 -0
  656. package/dist/react-native/sas/DataLakeSASSignatureValues.js.map +1 -0
  657. package/dist/react-native/sas/DirectorySASPermissions.d.ts +69 -0
  658. package/dist/react-native/sas/DirectorySASPermissions.d.ts.map +1 -0
  659. package/dist/react-native/sas/DirectorySASPermissions.js +145 -0
  660. package/dist/react-native/sas/DirectorySASPermissions.js.map +1 -0
  661. package/dist/react-native/sas/FileSystemSASPermissions.d.ts +69 -0
  662. package/dist/react-native/sas/FileSystemSASPermissions.d.ts.map +1 -0
  663. package/dist/react-native/sas/FileSystemSASPermissions.js +145 -0
  664. package/dist/react-native/sas/FileSystemSASPermissions.js.map +1 -0
  665. package/dist/react-native/sas/SASQueryParameters.d.ts +309 -0
  666. package/dist/react-native/sas/SASQueryParameters.d.ts.map +1 -0
  667. package/dist/react-native/sas/SASQueryParameters.js +248 -0
  668. package/dist/react-native/sas/SASQueryParameters.js.map +1 -0
  669. package/dist/react-native/sas/SasIPRange.d.ts +24 -0
  670. package/dist/react-native/sas/SasIPRange.d.ts.map +1 -0
  671. package/dist/react-native/sas/SasIPRange.js +13 -0
  672. package/dist/react-native/sas/SasIPRange.js.map +1 -0
  673. package/dist/react-native/transforms.d.ts +51 -0
  674. package/dist/react-native/transforms.d.ts.map +1 -0
  675. package/dist/react-native/transforms.js +337 -0
  676. package/dist/react-native/transforms.js.map +1 -0
  677. package/dist/react-native/utils/Batch.d.ts +68 -0
  678. package/dist/react-native/utils/Batch.d.ts.map +1 -0
  679. package/dist/react-native/utils/Batch.js +122 -0
  680. package/dist/react-native/utils/Batch.js.map +1 -0
  681. package/dist/react-native/utils/BufferScheduler.d.ts +158 -0
  682. package/dist/react-native/utils/BufferScheduler.d.ts.map +1 -0
  683. package/dist/react-native/utils/BufferScheduler.js +264 -0
  684. package/dist/react-native/utils/BufferScheduler.js.map +1 -0
  685. package/dist/react-native/utils/DataLakeAclChangeFailedError.d.ts +16 -0
  686. package/dist/react-native/utils/DataLakeAclChangeFailedError.d.ts.map +1 -0
  687. package/dist/react-native/utils/DataLakeAclChangeFailedError.js +13 -0
  688. package/dist/react-native/utils/DataLakeAclChangeFailedError.js.map +1 -0
  689. package/dist/react-native/utils/PathClientInternal.d.ts +24 -0
  690. package/dist/react-native/utils/PathClientInternal.d.ts.map +1 -0
  691. package/dist/react-native/utils/PathClientInternal.js +24 -0
  692. package/dist/react-native/utils/PathClientInternal.js.map +1 -0
  693. package/dist/react-native/utils/constants.d.ts +70 -0
  694. package/dist/react-native/utils/constants.d.ts.map +1 -0
  695. package/dist/react-native/utils/constants.js +244 -0
  696. package/dist/react-native/utils/constants.js.map +1 -0
  697. package/dist/react-native/utils/tracing.d.ts +6 -0
  698. package/dist/react-native/utils/tracing.d.ts.map +1 -0
  699. package/dist/react-native/utils/tracing.js +14 -0
  700. package/dist/react-native/utils/tracing.js.map +1 -0
  701. package/dist/react-native/utils/utils.common.d.ts +236 -0
  702. package/dist/react-native/utils/utils.common.d.ts.map +1 -0
  703. package/dist/react-native/utils/utils.common.js +564 -0
  704. package/dist/react-native/utils/utils.common.js.map +1 -0
  705. package/dist/react-native/utils/utils.d.ts +29 -0
  706. package/dist/react-native/utils/utils.d.ts.map +1 -0
  707. package/{dist-esm/storage-blob/src/utils/utils.node.js → dist/react-native/utils/utils.js} +4 -51
  708. package/dist/react-native/utils/utils.js.map +1 -0
  709. package/package.json +70 -83
  710. package/dist/index.js +0 -9735
  711. package/dist/index.js.map +0 -1
  712. package/dist-esm/storage-blob/src/StorageBrowserPolicyFactory.js +0 -19
  713. package/dist-esm/storage-blob/src/StorageBrowserPolicyFactory.js.map +0 -1
  714. package/dist-esm/storage-blob/src/StorageRetryPolicyFactory.js +0 -26
  715. package/dist-esm/storage-blob/src/StorageRetryPolicyFactory.js.map +0 -1
  716. package/dist-esm/storage-blob/src/log.js.map +0 -1
  717. package/dist-esm/storage-blob/src/policies/AnonymousCredentialPolicy.js +0 -20
  718. package/dist-esm/storage-blob/src/policies/AnonymousCredentialPolicy.js.map +0 -1
  719. package/dist-esm/storage-blob/src/policies/CredentialPolicy.js +0 -29
  720. package/dist-esm/storage-blob/src/policies/CredentialPolicy.js.map +0 -1
  721. package/dist-esm/storage-blob/src/policies/RequestPolicy.js +0 -40
  722. package/dist-esm/storage-blob/src/policies/RequestPolicy.js.map +0 -1
  723. package/dist-esm/storage-blob/src/policies/StorageBrowserPolicy.js +0 -47
  724. package/dist-esm/storage-blob/src/policies/StorageBrowserPolicy.js.map +0 -1
  725. package/dist-esm/storage-blob/src/policies/StorageBrowserPolicyV2.js +0 -31
  726. package/dist-esm/storage-blob/src/policies/StorageBrowserPolicyV2.js.map +0 -1
  727. package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.browser.js +0 -18
  728. package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.browser.js.map +0 -1
  729. package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.js +0 -27
  730. package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.js.map +0 -1
  731. package/dist-esm/storage-blob/src/policies/StorageRetryPolicy.js +0 -229
  732. package/dist-esm/storage-blob/src/policies/StorageRetryPolicy.js.map +0 -1
  733. package/dist-esm/storage-blob/src/policies/StorageRetryPolicyV2.js +0 -180
  734. package/dist-esm/storage-blob/src/policies/StorageRetryPolicyV2.js.map +0 -1
  735. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js +0 -141
  736. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js.map +0 -1
  737. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.browser.js +0 -18
  738. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.browser.js.map +0 -1
  739. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.js +0 -132
  740. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.js.map +0 -1
  741. package/dist-esm/storage-blob/src/utils/Batch.js.map +0 -1
  742. package/dist-esm/storage-blob/src/utils/BlobQuickQueryStream.js +0 -111
  743. package/dist-esm/storage-blob/src/utils/BlobQuickQueryStream.js.map +0 -1
  744. package/dist-esm/storage-blob/src/utils/Mutex.js +0 -65
  745. package/dist-esm/storage-blob/src/utils/Mutex.js.map +0 -1
  746. package/dist-esm/storage-blob/src/utils/RetriableReadableStream.js +0 -119
  747. package/dist-esm/storage-blob/src/utils/RetriableReadableStream.js.map +0 -1
  748. package/dist-esm/storage-blob/src/utils/SharedKeyComparator.js +0 -73
  749. package/dist-esm/storage-blob/src/utils/SharedKeyComparator.js.map +0 -1
  750. package/dist-esm/storage-blob/src/utils/cache.js +0 -11
  751. package/dist-esm/storage-blob/src/utils/cache.js.map +0 -1
  752. package/dist-esm/storage-blob/src/utils/constants.js.map +0 -1
  753. package/dist-esm/storage-blob/src/utils/tracing.js.map +0 -1
  754. package/dist-esm/storage-blob/src/utils/utils.common.js.map +0 -1
  755. package/dist-esm/storage-blob/src/utils/utils.node.js.map +0 -1
  756. package/dist-esm/storage-common/src/BufferScheduler.browser.js +0 -8
  757. package/dist-esm/storage-common/src/BufferScheduler.browser.js.map +0 -1
  758. package/dist-esm/storage-common/src/BufferScheduler.js.map +0 -1
  759. package/dist-esm/storage-common/src/BuffersStream.js +0 -83
  760. package/dist-esm/storage-common/src/BuffersStream.js.map +0 -1
  761. package/dist-esm/storage-common/src/PooledBuffer.js +0 -87
  762. package/dist-esm/storage-common/src/PooledBuffer.js.map +0 -1
  763. package/dist-esm/storage-common/src/index.browser.js +0 -4
  764. package/dist-esm/storage-common/src/index.browser.js.map +0 -1
  765. package/dist-esm/storage-common/src/index.js +0 -4
  766. package/dist-esm/storage-common/src/index.js.map +0 -1
  767. package/dist-esm/storage-file-datalake/src/DataLakeFileSystemClient.js.map +0 -1
  768. package/dist-esm/storage-file-datalake/src/DataLakeLeaseClient.js.map +0 -1
  769. package/dist-esm/storage-file-datalake/src/DataLakeServiceClient.js.map +0 -1
  770. package/dist-esm/storage-file-datalake/src/Pipeline.js.map +0 -1
  771. package/dist-esm/storage-file-datalake/src/StorageClient.js.map +0 -1
  772. package/dist-esm/storage-file-datalake/src/StorageContextClient.js.map +0 -1
  773. package/dist-esm/storage-file-datalake/src/clients.js.map +0 -1
  774. package/dist-esm/storage-file-datalake/src/credentials/StorageSharedKeyCredential.browser.js.map +0 -1
  775. package/dist-esm/storage-file-datalake/src/credentials/StorageSharedKeyCredential.js.map +0 -1
  776. package/dist-esm/storage-file-datalake/src/credentials/UserDelegationKeyCredential.browser.js.map +0 -1
  777. package/dist-esm/storage-file-datalake/src/credentials/UserDelegationKeyCredential.js.map +0 -1
  778. package/dist-esm/storage-file-datalake/src/generated/src/index.js.map +0 -1
  779. package/dist-esm/storage-file-datalake/src/generated/src/models/index.js.map +0 -1
  780. package/dist-esm/storage-file-datalake/src/generated/src/models/mappers.js.map +0 -1
  781. package/dist-esm/storage-file-datalake/src/generated/src/models/parameters.js.map +0 -1
  782. package/dist-esm/storage-file-datalake/src/generated/src/operations/fileSystemOperations.js.map +0 -1
  783. package/dist-esm/storage-file-datalake/src/generated/src/operations/index.js.map +0 -1
  784. package/dist-esm/storage-file-datalake/src/generated/src/operations/pathOperations.js.map +0 -1
  785. package/dist-esm/storage-file-datalake/src/generated/src/operations/service.js.map +0 -1
  786. package/dist-esm/storage-file-datalake/src/generated/src/operationsInterfaces/fileSystemOperations.js.map +0 -1
  787. package/dist-esm/storage-file-datalake/src/generated/src/operationsInterfaces/index.js.map +0 -1
  788. package/dist-esm/storage-file-datalake/src/generated/src/operationsInterfaces/pathOperations.js.map +0 -1
  789. package/dist-esm/storage-file-datalake/src/generated/src/operationsInterfaces/service.js.map +0 -1
  790. package/dist-esm/storage-file-datalake/src/generated/src/storageClient.js.map +0 -1
  791. package/dist-esm/storage-file-datalake/src/index.browser.js.map +0 -1
  792. package/dist-esm/storage-file-datalake/src/index.js +0 -23
  793. package/dist-esm/storage-file-datalake/src/index.js.map +0 -1
  794. package/dist-esm/storage-file-datalake/src/log.js.map +0 -1
  795. package/dist-esm/storage-file-datalake/src/models.internal.js.map +0 -1
  796. package/dist-esm/storage-file-datalake/src/models.js.map +0 -1
  797. package/dist-esm/storage-file-datalake/src/sas/AccountSASPermissions.js.map +0 -1
  798. package/dist-esm/storage-file-datalake/src/sas/AccountSASResourceTypes.js.map +0 -1
  799. package/dist-esm/storage-file-datalake/src/sas/AccountSASServices.js.map +0 -1
  800. package/dist-esm/storage-file-datalake/src/sas/AccountSASSignatureValues.js.map +0 -1
  801. package/dist-esm/storage-file-datalake/src/sas/DataLakeSASPermissions.js.map +0 -1
  802. package/dist-esm/storage-file-datalake/src/sas/DataLakeSASSignatureValues.js.map +0 -1
  803. package/dist-esm/storage-file-datalake/src/sas/DirectorySASPermissions.js.map +0 -1
  804. package/dist-esm/storage-file-datalake/src/sas/FileSystemSASPermissions.js.map +0 -1
  805. package/dist-esm/storage-file-datalake/src/sas/SASQueryParameters.js.map +0 -1
  806. package/dist-esm/storage-file-datalake/src/sas/SasIPRange.js.map +0 -1
  807. package/dist-esm/storage-file-datalake/src/transforms.js.map +0 -1
  808. package/dist-esm/storage-file-datalake/src/utils/Batch.js.map +0 -1
  809. package/dist-esm/storage-file-datalake/src/utils/BufferScheduler.js.map +0 -1
  810. package/dist-esm/storage-file-datalake/src/utils/DataLakeAclChangeFailedError.js.map +0 -1
  811. package/dist-esm/storage-file-datalake/src/utils/PathClientInternal.js.map +0 -1
  812. package/dist-esm/storage-file-datalake/src/utils/constants.js.map +0 -1
  813. package/dist-esm/storage-file-datalake/src/utils/tracing.js.map +0 -1
  814. package/dist-esm/storage-file-datalake/src/utils/utils.browser.js +0 -39
  815. package/dist-esm/storage-file-datalake/src/utils/utils.browser.js.map +0 -1
  816. package/dist-esm/storage-file-datalake/src/utils/utils.common.js.map +0 -1
  817. package/dist-esm/storage-file-datalake/src/utils/utils.node.js.map +0 -1
  818. package/types/latest/storage-file-datalake.d.ts +0 -5102
  819. /package/{dist-esm/storage-file-datalake/src → dist/browser}/generated/src/models/index.js +0 -0
  820. /package/{dist-esm/storage-file-datalake/src → dist/browser}/generated/src/models/mappers.js +0 -0
  821. /package/{dist-esm/storage-file-datalake/src → dist/browser}/generated/src/operationsInterfaces/fileSystemOperations.js +0 -0
  822. /package/{dist-esm/storage-file-datalake/src → dist/browser}/generated/src/operationsInterfaces/pathOperations.js +0 -0
  823. /package/{dist-esm/storage-file-datalake/src → dist/browser}/generated/src/operationsInterfaces/service.js +0 -0
  824. /package/{dist-esm/storage-file-datalake/src → dist/browser}/log.js +0 -0
  825. /package/{dist-esm/storage-file-datalake/src → dist/browser}/models.internal.js +0 -0
  826. /package/{dist-esm/storage-file-datalake/src → dist/browser}/sas/AccountSASPermissions.js +0 -0
  827. /package/{dist-esm/storage-file-datalake/src → dist/browser}/sas/AccountSASResourceTypes.js +0 -0
  828. /package/{dist-esm/storage-file-datalake/src → dist/browser}/sas/AccountSASServices.js +0 -0
  829. /package/{dist-esm/storage-file-datalake/src → dist/browser}/sas/DataLakeSASPermissions.js +0 -0
  830. /package/{dist-esm/storage-file-datalake/src → dist/browser}/sas/DirectorySASPermissions.js +0 -0
  831. /package/{dist-esm/storage-file-datalake/src → dist/browser}/sas/FileSystemSASPermissions.js +0 -0
  832. /package/{dist-esm/storage-file-datalake/src → dist/browser}/sas/SasIPRange.js +0 -0
  833. /package/{dist-esm/storage-blob/src → dist/browser}/utils/Batch.js +0 -0
  834. /package/{dist-esm/storage-file-datalake/src → dist/browser}/utils/DataLakeAclChangeFailedError.js +0 -0
  835. /package/{dist-esm/storage-file-datalake/src → dist/esm}/credentials/StorageSharedKeyCredential.js +0 -0
  836. /package/{dist-esm/storage-file-datalake/src → dist/esm}/utils/Batch.js +0 -0
@@ -0,0 +1,372 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.DataLakeServiceClient = void 0;
6
+ const core_rest_pipeline_1 = require("@azure/core-rest-pipeline");
7
+ const core_util_1 = require("@azure/core-util");
8
+ const storage_blob_1 = require("@azure/storage-blob");
9
+ const Pipeline_js_1 = require("./Pipeline.js");
10
+ const storage_blob_2 = require("@azure/storage-blob");
11
+ const StorageSharedKeyCredential_js_1 = require("./credentials/StorageSharedKeyCredential.js");
12
+ const DataLakeFileSystemClient_js_1 = require("./DataLakeFileSystemClient.js");
13
+ const StorageClient_js_1 = require("./StorageClient.js");
14
+ const utils_common_js_1 = require("./utils/utils.common.js");
15
+ const transforms_js_1 = require("./transforms.js");
16
+ const tracing_js_1 = require("./utils/tracing.js");
17
+ const AccountSASPermissions_js_1 = require("./sas/AccountSASPermissions.js");
18
+ const AccountSASSignatureValues_js_1 = require("./sas/AccountSASSignatureValues.js");
19
+ const AccountSASServices_js_1 = require("./sas/AccountSASServices.js");
20
+ /**
21
+ * DataLakeServiceClient allows you to manipulate Azure
22
+ * Data Lake service resources and file systems. The storage account provides
23
+ * the top-level namespace for the Data Lake service.
24
+ */
25
+ class DataLakeServiceClient extends StorageClient_js_1.StorageClient {
26
+ /**
27
+ *
28
+ * Creates an instance of DataLakeServiceClient from connection string.
29
+ *
30
+ * @param connectionString - Account connection string or a SAS connection string of an Azure storage account.
31
+ * [ Note - Account connection string can only be used in NODE.JS runtime. ]
32
+ * Account connection string example -
33
+ * `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`
34
+ * SAS connection string example -
35
+ * `BlobEndpoint=https://myaccount.blob.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`
36
+ * @param options - Optional. Options to configure the HTTP pipeline.
37
+ */
38
+ // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.
39
+ static fromConnectionString(connectionString,
40
+ // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.
41
+ /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */
42
+ options) {
43
+ options = options || {};
44
+ const extractedCreds = (0, utils_common_js_1.extractConnectionStringParts)(connectionString);
45
+ if (extractedCreds.kind === "AccountConnString") {
46
+ if (core_util_1.isNodeLike) {
47
+ const sharedKeyCredential = new StorageSharedKeyCredential_js_1.StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);
48
+ if (!options.proxyOptions) {
49
+ options.proxyOptions = (0, core_rest_pipeline_1.getDefaultProxySettings)(extractedCreds.proxyUri);
50
+ }
51
+ const pipeline = (0, Pipeline_js_1.newPipeline)(sharedKeyCredential, options);
52
+ return new DataLakeServiceClient((0, transforms_js_1.toDfsEndpointUrl)(extractedCreds.url), pipeline);
53
+ }
54
+ else {
55
+ throw new Error("Account connection string is only supported in Node.js environment");
56
+ }
57
+ }
58
+ else if (extractedCreds.kind === "SASConnString") {
59
+ const pipeline = (0, Pipeline_js_1.newPipeline)(new storage_blob_2.AnonymousCredential(), options);
60
+ return new DataLakeServiceClient((0, transforms_js_1.toDfsEndpointUrl)(extractedCreds.url) + "?" + extractedCreds.accountSas, pipeline);
61
+ }
62
+ else {
63
+ throw new Error("Connection string must be either an Account connection string or a SAS connection string");
64
+ }
65
+ }
66
+ constructor(url, credentialOrPipeline,
67
+ // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.
68
+ /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */
69
+ options) {
70
+ if ((0, Pipeline_js_1.isPipelineLike)(credentialOrPipeline)) {
71
+ super(url, credentialOrPipeline);
72
+ }
73
+ else {
74
+ let credential;
75
+ if (credentialOrPipeline === undefined) {
76
+ credential = new storage_blob_2.AnonymousCredential();
77
+ }
78
+ else {
79
+ credential = credentialOrPipeline;
80
+ }
81
+ const pipeline = (0, Pipeline_js_1.newPipeline)(credential, options);
82
+ super(url, pipeline);
83
+ }
84
+ // this.serviceContext = new Service(this.storageClientContext);
85
+ this.blobServiceClient = new storage_blob_1.BlobServiceClient(this.blobEndpointUrl, this.pipeline);
86
+ }
87
+ /**
88
+ * Creates a {@link DataLakeFileSystemClient} object.
89
+ *
90
+ * @param fileSystemName - File system name.
91
+ */
92
+ // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.
93
+ /* eslint-disable-next-line @azure/azure-sdk/ts-naming-subclients */
94
+ getFileSystemClient(fileSystemName) {
95
+ return new DataLakeFileSystemClient_js_1.DataLakeFileSystemClient((0, utils_common_js_1.appendToURLPath)(this.url, encodeURIComponent(fileSystemName)), this.pipeline);
96
+ }
97
+ /**
98
+ * ONLY AVAILABLE WHEN USING BEARER TOKEN AUTHENTICATION (TokenCredential).
99
+ *
100
+ * Retrieves a user delegation key for the Data Lake service. This is only a valid operation when using
101
+ * bearer token authentication.
102
+ *
103
+ * @example
104
+ * ```ts snippet:DatalakeServiceClientGetUserDelegationKey
105
+ * import {
106
+ * DataLakeServiceClient,
107
+ * generateDataLakeSASQueryParameters,
108
+ * FileSystemSASPermissions,
109
+ * SASProtocol,
110
+ * } from "@azure/storage-file-datalake";
111
+ *
112
+ * const account = "<account>";
113
+ * const sas = "<sas token>";
114
+ * const datalakeServiceClient = new DataLakeServiceClient(
115
+ * `https://${account}.dfs.core.windows.net${sas}`,
116
+ * );
117
+ *
118
+ * const fileSystemName = "<file system name>";
119
+ * const accountName = "<account name>";
120
+ * const startsOn = new Date();
121
+ * const expiresOn = new Date(+new Date() + 86400 * 1000);
122
+ * // Generate user delegation SAS for a file system
123
+ * const userDelegationKey = await datalakeServiceClient.getUserDelegationKey(startsOn, expiresOn);
124
+ * const fileSystemSAS = generateDataLakeSASQueryParameters(
125
+ * {
126
+ * fileSystemName, // Required
127
+ * permissions: FileSystemSASPermissions.parse("racwdl"), // Required
128
+ * startsOn, // Required. Date type
129
+ * expiresOn, // Optional. Date type
130
+ * ipRange: { start: "0.0.0.0", end: "255.255.255.255" }, // Optional
131
+ * protocol: SASProtocol.HttpsAndHttp, // Optional
132
+ * version: "2018-11-09", // Must greater than or equal to 2018-11-09 to generate user delegation SAS
133
+ * },
134
+ * userDelegationKey, // UserDelegationKey
135
+ * accountName,
136
+ * ).toString();
137
+ * ```
138
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-user-delegation-key
139
+ *
140
+ * @param startsOn - The start time for the user delegation SAS. Must be within 7 days of the current time.
141
+ * @param expiresOn - The end time for the user delegation SAS. Must be within 7 days of the current time.
142
+ * @param options -
143
+ */
144
+ async getUserDelegationKey(startsOn, expiresOn, options = {}) {
145
+ return tracing_js_1.tracingClient.withSpan("DataLakeServiceClient-getUserDelegationKey", options, async (updatedOptions) => {
146
+ return this.blobServiceClient.getUserDelegationKey(startsOn, expiresOn, updatedOptions);
147
+ });
148
+ }
149
+ /**
150
+ * Returns an async iterable iterator to list all the file systems
151
+ * under the specified account.
152
+ *
153
+ * .byPage() returns an async iterable iterator to list the file systems in pages.
154
+ *
155
+ * Example using `for await` syntax:
156
+ *
157
+ * ```ts snippet:ReadmeSampleListFileSystems
158
+ * import { DataLakeServiceClient } from "@azure/storage-file-datalake";
159
+ * import { DefaultAzureCredential } from "@azure/identity";
160
+ *
161
+ * const account = "<account>";
162
+ * const datalakeServiceClient = new DataLakeServiceClient(
163
+ * `https://${account}.dfs.core.windows.net`,
164
+ * new DefaultAzureCredential(),
165
+ * );
166
+ *
167
+ * let i = 1;
168
+ * const fileSystems = datalakeServiceClient.listFileSystems();
169
+ * for await (const fileSystem of fileSystems) {
170
+ * console.log(`File system ${i++}: ${fileSystem.name}`);
171
+ * }
172
+ * ```
173
+ *
174
+ * Example using `iter.next()`:
175
+ *
176
+ * ```ts snippet:ReadmeSampleListFileSystems_Iterator
177
+ * import { DataLakeServiceClient } from "@azure/storage-file-datalake";
178
+ * import { DefaultAzureCredential } from "@azure/identity";
179
+ *
180
+ * const account = "<account>";
181
+ * const datalakeServiceClient = new DataLakeServiceClient(
182
+ * `https://${account}.dfs.core.windows.net`,
183
+ * new DefaultAzureCredential(),
184
+ * );
185
+ *
186
+ * let i = 1;
187
+ * const fileSystems = datalakeServiceClient.listFileSystems();
188
+ * let { value, done } = await fileSystems.next();
189
+ * while (!done) {
190
+ * console.log(`File system ${i++}: ${value.name}`);
191
+ * ({ value, done } = await fileSystems.next());
192
+ * }
193
+ * ```
194
+ *
195
+ * Example using `byPage()`:
196
+ *
197
+ * ```ts snippet:ReadmeSampleListFileSystems_ByPage
198
+ * import { DataLakeServiceClient } from "@azure/storage-file-datalake";
199
+ * import { DefaultAzureCredential } from "@azure/identity";
200
+ *
201
+ * const account = "<account>";
202
+ * const datalakeServiceClient = new DataLakeServiceClient(
203
+ * `https://${account}.dfs.core.windows.net`,
204
+ * new DefaultAzureCredential(),
205
+ * );
206
+ *
207
+ * let i = 1;
208
+ * for await (const response of datalakeServiceClient.listFileSystems().byPage({ maxPageSize: 20 })) {
209
+ * if (response.fileSystemItems) {
210
+ * for (const fileSystem of response.fileSystemItems) {
211
+ * console.log(`File System ${i++}: ${fileSystem.name}`);
212
+ * }
213
+ * }
214
+ * }
215
+ * ```
216
+ *
217
+ * Example using paging with a marker:
218
+ *
219
+ * ```ts snippet:ReadmeSampleListFileSystems_Continuation
220
+ * import { DataLakeServiceClient } from "@azure/storage-file-datalake";
221
+ * import { DefaultAzureCredential } from "@azure/identity";
222
+ *
223
+ * const account = "<account>";
224
+ * const datalakeServiceClient = new DataLakeServiceClient(
225
+ * `https://${account}.dfs.core.windows.net`,
226
+ * new DefaultAzureCredential(),
227
+ * );
228
+ *
229
+ * let i = 1;
230
+ * let fileSystems = datalakeServiceClient.listFileSystems().byPage({ maxPageSize: 2 });
231
+ * let response = (await fileSystems.next()).value;
232
+ * // Prints 2 file systems
233
+ * if (response.fileSystemItems) {
234
+ * for (const fileSystem of response.fileSystemItems) {
235
+ * console.log(`File system ${i++}: ${fileSystem.name}`);
236
+ * }
237
+ * }
238
+ * // Gets next marker
239
+ * let marker = response.continuationToken;
240
+ * // Passing next marker as continuationToken
241
+ * fileSystems = datalakeServiceClient
242
+ * .listFileSystems()
243
+ * .byPage({ continuationToken: marker, maxPageSize: 10 });
244
+ * response = (await fileSystems.next()).value;
245
+ * // Prints 10 file systems
246
+ * if (response.fileSystemItems) {
247
+ * for (const fileSystem of response.fileSystemItems) {
248
+ * console.log(`File system ${i++}: ${fileSystem.name}`);
249
+ * }
250
+ * }
251
+ * ```
252
+ *
253
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/list-containers2
254
+ *
255
+ * @param options -
256
+ */
257
+ listFileSystems(options = {}) {
258
+ return (0, transforms_js_1.toFileSystemPagedAsyncIterableIterator)(this.blobServiceClient.listContainers(options));
259
+ }
260
+ // public async createFileSystem(): Promise<DataLakeFileSystemClient> {
261
+ // throw Error("NotImplemented");
262
+ // }
263
+ // public async deleteFileSystem(fileSystem: string): Promise<ServiceDeleteFileSystemResponse> {
264
+ // throw Error("NotImplemented");
265
+ // }
266
+ /**
267
+ * Only available for DataLakeServiceClient constructed with a shared key credential.
268
+ *
269
+ * Generates an account Shared Access Signature (SAS) URI based on the client properties
270
+ * and parameters passed in. The SAS is signed by the shared key credential of the client.
271
+ *
272
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-account-sas
273
+ *
274
+ * @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not specified.
275
+ * @param permissions - Specifies the list of permissions to be associated with the SAS.
276
+ * @param resourceTypes - Specifies the resource types associated with the shared access signature.
277
+ * @param options - Optional parameters.
278
+ * @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
279
+ */
280
+ generateAccountSasUrl(expiresOn, permissions = AccountSASPermissions_js_1.AccountSASPermissions.parse("r"), resourceTypes = "sco", options = {}) {
281
+ if (!(this.credential instanceof StorageSharedKeyCredential_js_1.StorageSharedKeyCredential)) {
282
+ throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential");
283
+ }
284
+ if (expiresOn === undefined) {
285
+ const now = new Date();
286
+ expiresOn = new Date(now.getTime() + 3600 * 1000);
287
+ }
288
+ const sas = (0, AccountSASSignatureValues_js_1.generateAccountSASQueryParameters)(Object.assign({ permissions,
289
+ expiresOn,
290
+ resourceTypes, services: AccountSASServices_js_1.AccountSASServices.parse("b").toString() }, options), this.credential).toString();
291
+ return (0, utils_common_js_1.appendToURLQuery)(this.url, sas);
292
+ }
293
+ /**
294
+ * Only available for DataLakeServiceClient constructed with a shared key credential.
295
+ *
296
+ * Generates string to sign for an account Shared Access Signature (SAS) based on the client properties
297
+ * and parameters passed in. The SAS is signed by the shared key credential of the client.
298
+ *
299
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-account-sas
300
+ *
301
+ * @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not specified.
302
+ * @param permissions - Specifies the list of permissions to be associated with the SAS.
303
+ * @param resourceTypes - Specifies the resource types associated with the shared access signature.
304
+ * @param options - Optional parameters.
305
+ * @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
306
+ */
307
+ generateSasStringToSign(expiresOn, permissions = AccountSASPermissions_js_1.AccountSASPermissions.parse("r"), resourceTypes = "sco", options = {}) {
308
+ if (!(this.credential instanceof StorageSharedKeyCredential_js_1.StorageSharedKeyCredential)) {
309
+ throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential");
310
+ }
311
+ if (expiresOn === undefined) {
312
+ const now = new Date();
313
+ expiresOn = new Date(now.getTime() + 3600 * 1000);
314
+ }
315
+ return (0, AccountSASSignatureValues_js_1.generateAccountSASQueryParametersInternal)(Object.assign({ permissions,
316
+ expiresOn,
317
+ resourceTypes, services: AccountSASServices_js_1.AccountSASServices.parse("b").toString() }, options), this.credential).stringToSign;
318
+ }
319
+ /**
320
+ * Restore a previously deleted File System.
321
+ * This API is only functional if Container Soft Delete is enabled for the storage account.
322
+ *
323
+ * @param deletedFileSystemName - The name of the source File System.
324
+ * @param deleteFileSystemVersion - The new name of the File System.
325
+ * @param options - Options to configure File System Restore operation.
326
+ */
327
+ async undeleteFileSystem(deletedFileSystemName, deleteFileSystemVersion, options = {}) {
328
+ return tracing_js_1.tracingClient.withSpan("DataLakeServiceClient-undeleteFileSystem", options, async (updatedOptions) => {
329
+ const res = await this.blobServiceClient.undeleteContainer(deletedFileSystemName, deleteFileSystemVersion, Object.assign(Object.assign({}, options), { destinationContainerName: options.destinationFileSystemName, tracingOptions: updatedOptions.tracingOptions }));
330
+ const fileSystemClient = this.getFileSystemClient(options.destinationFileSystemName || deletedFileSystemName);
331
+ return {
332
+ fileSystemClient,
333
+ fileSystemUndeleteResponse: res.containerUndeleteResponse,
334
+ };
335
+ });
336
+ }
337
+ /**
338
+ * Gets the properties of a storage account’s Blob service endpoint, including properties
339
+ * for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.
340
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-blob-service-properties
341
+ *
342
+ * @param options - Options to the Service Get Properties operation.
343
+ * @returns Response data for the Service Get Properties operation.
344
+ */
345
+ async getProperties(options = {}) {
346
+ return tracing_js_1.tracingClient.withSpan("DataLakeServiceClient-getProperties", options, async (updatedOptions) => {
347
+ return this.blobServiceClient.getProperties({
348
+ abortSignal: options.abortSignal,
349
+ tracingOptions: updatedOptions.tracingOptions,
350
+ });
351
+ });
352
+ }
353
+ /**
354
+ * Sets properties for a storage account’s Blob service endpoint, including properties
355
+ * for Storage Analytics, CORS (Cross-Origin Resource Sharing) rules and soft delete settings.
356
+ * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-service-properties
357
+ *
358
+ * @param properties -
359
+ * @param options - Options to the Service Set Properties operation.
360
+ * @returns Response data for the Service Set Properties operation.
361
+ */
362
+ async setProperties(properties, options = {}) {
363
+ return tracing_js_1.tracingClient.withSpan("DataLakeServiceClient-setProperties", options, async (updatedOptions) => {
364
+ return this.blobServiceClient.setProperties(properties, {
365
+ abortSignal: options.abortSignal,
366
+ tracingOptions: updatedOptions.tracingOptions,
367
+ });
368
+ });
369
+ }
370
+ }
371
+ exports.DataLakeServiceClient = DataLakeServiceClient;
372
+ //# sourceMappingURL=DataLakeServiceClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataLakeServiceClient.js","sourceRoot":"","sources":["../../src/DataLakeServiceClient.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { getDefaultProxySettings } from \"@azure/core-rest-pipeline\";\nimport { isNodeLike } from \"@azure/core-util\";\nimport type {\n ServiceGetPropertiesOptions,\n ServiceSetPropertiesOptions,\n ServiceSetPropertiesResponse,\n} from \"@azure/storage-blob\";\nimport { BlobServiceClient } from \"@azure/storage-blob\";\nimport type { Pipeline, StoragePipelineOptions } from \"./Pipeline.js\";\nimport { isPipelineLike, newPipeline } from \"./Pipeline.js\";\nimport { AnonymousCredential } from \"@azure/storage-blob\";\nimport { StorageSharedKeyCredential } from \"./credentials/StorageSharedKeyCredential.js\";\nimport { DataLakeFileSystemClient } from \"./DataLakeFileSystemClient.js\";\nimport type {\n FileSystemItem,\n ServiceGenerateAccountSasUrlOptions,\n ServiceListFileSystemsOptions,\n ServiceListFileSystemsSegmentResponse,\n ServiceUndeleteFileSystemOptions,\n FileSystemUndeleteResponse,\n} from \"./models.js\";\nimport { StorageClient } from \"./StorageClient.js\";\nimport {\n appendToURLPath,\n appendToURLQuery,\n extractConnectionStringParts,\n} from \"./utils/utils.common.js\";\nimport { toDfsEndpointUrl, toFileSystemPagedAsyncIterableIterator } from \"./transforms.js\";\nimport type {\n ServiceGetUserDelegationKeyOptions,\n ServiceGetUserDelegationKeyResponse,\n} from \"./models.js\";\nimport { tracingClient } from \"./utils/tracing.js\";\nimport { AccountSASPermissions } from \"./sas/AccountSASPermissions.js\";\nimport {\n generateAccountSASQueryParameters,\n generateAccountSASQueryParametersInternal,\n} from \"./sas/AccountSASSignatureValues.js\";\nimport { AccountSASServices } from \"./sas/AccountSASServices.js\";\nimport type { DataLakeServiceGetPropertiesResponse, DataLakeServiceProperties } from \"./index.js\";\n\n/**\n * DataLakeServiceClient allows you to manipulate Azure\n * Data Lake service resources and file systems. The storage account provides\n * the top-level namespace for the Data Lake service.\n */\nexport class DataLakeServiceClient extends StorageClient {\n // private serviceContext: Service;\n\n /**\n * blobServiceClient provided by `@azure/storage-blob` package.\n */\n private blobServiceClient: BlobServiceClient;\n\n /**\n *\n * Creates an instance of DataLakeServiceClient from connection string.\n *\n * @param connectionString - Account connection string or a SAS connection string of an Azure storage account.\n * [ Note - Account connection string can only be used in NODE.JS runtime. ]\n * Account connection string example -\n * `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`\n * SAS connection string example -\n * `BlobEndpoint=https://myaccount.blob.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n\n public static fromConnectionString(\n connectionString: string,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: StoragePipelineOptions,\n ): DataLakeServiceClient {\n options = options || {};\n const extractedCreds = extractConnectionStringParts(connectionString);\n if (extractedCreds.kind === \"AccountConnString\") {\n if (isNodeLike) {\n const sharedKeyCredential = new StorageSharedKeyCredential(\n extractedCreds.accountName!,\n extractedCreds.accountKey,\n );\n if (!options.proxyOptions) {\n options.proxyOptions = getDefaultProxySettings(extractedCreds.proxyUri);\n }\n const pipeline = newPipeline(sharedKeyCredential, options);\n return new DataLakeServiceClient(toDfsEndpointUrl(extractedCreds.url), pipeline);\n } else {\n throw new Error(\"Account connection string is only supported in Node.js environment\");\n }\n } else if (extractedCreds.kind === \"SASConnString\") {\n const pipeline = newPipeline(new AnonymousCredential(), options);\n return new DataLakeServiceClient(\n toDfsEndpointUrl(extractedCreds.url) + \"?\" + extractedCreds.accountSas,\n pipeline,\n );\n } else {\n throw new Error(\n \"Connection string must be either an Account connection string or a SAS connection string\",\n );\n }\n }\n\n /**\n * Creates an instance of DataLakeServiceClient from url.\n *\n * @param url - A Client string pointing to Azure Storage data lake service, such as\n * \"https://myaccount.dfs.core.windows.net\". You can append a SAS\n * if using AnonymousCredential, such as \"https://myaccount.dfs.core.windows.net?sasString\".\n * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public constructor(\n url: string,\n credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: StoragePipelineOptions,\n );\n\n /**\n * Creates an instance of DataLakeServiceClient from url and pipeline.\n *\n * @param url - A Client string pointing to Azure Storage data lake service, such as\n * \"https://myaccount.dfs.core.windows.net\". You can append a SAS\n * if using AnonymousCredential, such as \"https://myaccount.dfs.core.windows.net?sasString\".\n * @param pipeline - Call newPipeline() to create a default\n * pipeline, or provide a customized pipeline.\n */\n public constructor(url: string, pipeline: Pipeline);\n\n public constructor(\n url: string,\n credentialOrPipeline?:\n | StorageSharedKeyCredential\n | AnonymousCredential\n | TokenCredential\n | Pipeline,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: StoragePipelineOptions,\n ) {\n if (isPipelineLike(credentialOrPipeline)) {\n super(url, credentialOrPipeline);\n } else {\n let credential;\n if (credentialOrPipeline === undefined) {\n credential = new AnonymousCredential();\n } else {\n credential = credentialOrPipeline;\n }\n\n const pipeline = newPipeline(credential, options);\n super(url, pipeline);\n }\n\n // this.serviceContext = new Service(this.storageClientContext);\n this.blobServiceClient = new BlobServiceClient(this.blobEndpointUrl, this.pipeline);\n }\n\n /**\n * Creates a {@link DataLakeFileSystemClient} object.\n *\n * @param fileSystemName - File system name.\n */\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-subclients */\n public getFileSystemClient(fileSystemName: string): DataLakeFileSystemClient {\n return new DataLakeFileSystemClient(\n appendToURLPath(this.url, encodeURIComponent(fileSystemName)),\n this.pipeline,\n );\n }\n\n /**\n * ONLY AVAILABLE WHEN USING BEARER TOKEN AUTHENTICATION (TokenCredential).\n *\n * Retrieves a user delegation key for the Data Lake service. This is only a valid operation when using\n * bearer token authentication.\n *\n * @example\n * ```ts snippet:DatalakeServiceClientGetUserDelegationKey\n * import {\n * DataLakeServiceClient,\n * generateDataLakeSASQueryParameters,\n * FileSystemSASPermissions,\n * SASProtocol,\n * } from \"@azure/storage-file-datalake\";\n *\n * const account = \"<account>\";\n * const sas = \"<sas token>\";\n * const datalakeServiceClient = new DataLakeServiceClient(\n * `https://${account}.dfs.core.windows.net${sas}`,\n * );\n *\n * const fileSystemName = \"<file system name>\";\n * const accountName = \"<account name>\";\n * const startsOn = new Date();\n * const expiresOn = new Date(+new Date() + 86400 * 1000);\n * // Generate user delegation SAS for a file system\n * const userDelegationKey = await datalakeServiceClient.getUserDelegationKey(startsOn, expiresOn);\n * const fileSystemSAS = generateDataLakeSASQueryParameters(\n * {\n * fileSystemName, // Required\n * permissions: FileSystemSASPermissions.parse(\"racwdl\"), // Required\n * startsOn, // Required. Date type\n * expiresOn, // Optional. Date type\n * ipRange: { start: \"0.0.0.0\", end: \"255.255.255.255\" }, // Optional\n * protocol: SASProtocol.HttpsAndHttp, // Optional\n * version: \"2018-11-09\", // Must greater than or equal to 2018-11-09 to generate user delegation SAS\n * },\n * userDelegationKey, // UserDelegationKey\n * accountName,\n * ).toString();\n * ```\n * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-user-delegation-key\n *\n * @param startsOn - The start time for the user delegation SAS. Must be within 7 days of the current time.\n * @param expiresOn - The end time for the user delegation SAS. Must be within 7 days of the current time.\n * @param options -\n */\n public async getUserDelegationKey(\n startsOn: Date,\n expiresOn: Date,\n options: ServiceGetUserDelegationKeyOptions = {},\n ): Promise<ServiceGetUserDelegationKeyResponse> {\n return tracingClient.withSpan(\n \"DataLakeServiceClient-getUserDelegationKey\",\n options,\n async (updatedOptions) => {\n return this.blobServiceClient.getUserDelegationKey(startsOn, expiresOn, updatedOptions);\n },\n );\n }\n\n /**\n * Returns an async iterable iterator to list all the file systems\n * under the specified account.\n *\n * .byPage() returns an async iterable iterator to list the file systems in pages.\n *\n * Example using `for await` syntax:\n *\n * ```ts snippet:ReadmeSampleListFileSystems\n * import { DataLakeServiceClient } from \"@azure/storage-file-datalake\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * const account = \"<account>\";\n * const datalakeServiceClient = new DataLakeServiceClient(\n * `https://${account}.dfs.core.windows.net`,\n * new DefaultAzureCredential(),\n * );\n *\n * let i = 1;\n * const fileSystems = datalakeServiceClient.listFileSystems();\n * for await (const fileSystem of fileSystems) {\n * console.log(`File system ${i++}: ${fileSystem.name}`);\n * }\n * ```\n *\n * Example using `iter.next()`:\n *\n * ```ts snippet:ReadmeSampleListFileSystems_Iterator\n * import { DataLakeServiceClient } from \"@azure/storage-file-datalake\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * const account = \"<account>\";\n * const datalakeServiceClient = new DataLakeServiceClient(\n * `https://${account}.dfs.core.windows.net`,\n * new DefaultAzureCredential(),\n * );\n *\n * let i = 1;\n * const fileSystems = datalakeServiceClient.listFileSystems();\n * let { value, done } = await fileSystems.next();\n * while (!done) {\n * console.log(`File system ${i++}: ${value.name}`);\n * ({ value, done } = await fileSystems.next());\n * }\n * ```\n *\n * Example using `byPage()`:\n *\n * ```ts snippet:ReadmeSampleListFileSystems_ByPage\n * import { DataLakeServiceClient } from \"@azure/storage-file-datalake\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * const account = \"<account>\";\n * const datalakeServiceClient = new DataLakeServiceClient(\n * `https://${account}.dfs.core.windows.net`,\n * new DefaultAzureCredential(),\n * );\n *\n * let i = 1;\n * for await (const response of datalakeServiceClient.listFileSystems().byPage({ maxPageSize: 20 })) {\n * if (response.fileSystemItems) {\n * for (const fileSystem of response.fileSystemItems) {\n * console.log(`File System ${i++}: ${fileSystem.name}`);\n * }\n * }\n * }\n * ```\n *\n * Example using paging with a marker:\n *\n * ```ts snippet:ReadmeSampleListFileSystems_Continuation\n * import { DataLakeServiceClient } from \"@azure/storage-file-datalake\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * const account = \"<account>\";\n * const datalakeServiceClient = new DataLakeServiceClient(\n * `https://${account}.dfs.core.windows.net`,\n * new DefaultAzureCredential(),\n * );\n *\n * let i = 1;\n * let fileSystems = datalakeServiceClient.listFileSystems().byPage({ maxPageSize: 2 });\n * let response = (await fileSystems.next()).value;\n * // Prints 2 file systems\n * if (response.fileSystemItems) {\n * for (const fileSystem of response.fileSystemItems) {\n * console.log(`File system ${i++}: ${fileSystem.name}`);\n * }\n * }\n * // Gets next marker\n * let marker = response.continuationToken;\n * // Passing next marker as continuationToken\n * fileSystems = datalakeServiceClient\n * .listFileSystems()\n * .byPage({ continuationToken: marker, maxPageSize: 10 });\n * response = (await fileSystems.next()).value;\n * // Prints 10 file systems\n * if (response.fileSystemItems) {\n * for (const fileSystem of response.fileSystemItems) {\n * console.log(`File system ${i++}: ${fileSystem.name}`);\n * }\n * }\n * ```\n *\n * @see https://learn.microsoft.com/en-us/rest/api/storageservices/list-containers2\n *\n * @param options -\n */\n public listFileSystems(\n options: ServiceListFileSystemsOptions = {},\n ): PagedAsyncIterableIterator<FileSystemItem, ServiceListFileSystemsSegmentResponse> {\n return toFileSystemPagedAsyncIterableIterator(this.blobServiceClient.listContainers(options));\n }\n\n // public async createFileSystem(): Promise<DataLakeFileSystemClient> {\n // throw Error(\"NotImplemented\");\n // }\n\n // public async deleteFileSystem(fileSystem: string): Promise<ServiceDeleteFileSystemResponse> {\n // throw Error(\"NotImplemented\");\n // }\n\n /**\n * Only available for DataLakeServiceClient constructed with a shared key credential.\n *\n * Generates an account Shared Access Signature (SAS) URI based on the client properties\n * and parameters passed in. The SAS is signed by the shared key credential of the client.\n *\n * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-account-sas\n *\n * @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not specified.\n * @param permissions - Specifies the list of permissions to be associated with the SAS.\n * @param resourceTypes - Specifies the resource types associated with the shared access signature.\n * @param options - Optional parameters.\n * @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.\n */\n public generateAccountSasUrl(\n expiresOn?: Date,\n permissions: AccountSASPermissions = AccountSASPermissions.parse(\"r\"),\n resourceTypes: string = \"sco\",\n options: ServiceGenerateAccountSasUrlOptions = {},\n ): string {\n if (!(this.credential instanceof StorageSharedKeyCredential)) {\n throw RangeError(\n \"Can only generate the account SAS when the client is initialized with a shared key credential\",\n );\n }\n\n if (expiresOn === undefined) {\n const now = new Date();\n expiresOn = new Date(now.getTime() + 3600 * 1000);\n }\n\n const sas = generateAccountSASQueryParameters(\n {\n permissions,\n expiresOn,\n resourceTypes,\n services: AccountSASServices.parse(\"b\").toString(),\n ...options,\n },\n this.credential,\n ).toString();\n\n return appendToURLQuery(this.url, sas);\n }\n\n /**\n * Only available for DataLakeServiceClient constructed with a shared key credential.\n *\n * Generates string to sign for an account Shared Access Signature (SAS) based on the client properties\n * and parameters passed in. The SAS is signed by the shared key credential of the client.\n *\n * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-account-sas\n *\n * @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not specified.\n * @param permissions - Specifies the list of permissions to be associated with the SAS.\n * @param resourceTypes - Specifies the resource types associated with the shared access signature.\n * @param options - Optional parameters.\n * @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.\n */\n public generateSasStringToSign(\n expiresOn?: Date,\n permissions: AccountSASPermissions = AccountSASPermissions.parse(\"r\"),\n resourceTypes: string = \"sco\",\n options: ServiceGenerateAccountSasUrlOptions = {},\n ): string {\n if (!(this.credential instanceof StorageSharedKeyCredential)) {\n throw RangeError(\n \"Can only generate the account SAS when the client is initialized with a shared key credential\",\n );\n }\n\n if (expiresOn === undefined) {\n const now = new Date();\n expiresOn = new Date(now.getTime() + 3600 * 1000);\n }\n\n return generateAccountSASQueryParametersInternal(\n {\n permissions,\n expiresOn,\n resourceTypes,\n services: AccountSASServices.parse(\"b\").toString(),\n ...options,\n },\n this.credential,\n ).stringToSign;\n }\n\n /**\n * Restore a previously deleted File System.\n * This API is only functional if Container Soft Delete is enabled for the storage account.\n *\n * @param deletedFileSystemName - The name of the source File System.\n * @param deleteFileSystemVersion - The new name of the File System.\n * @param options - Options to configure File System Restore operation.\n */\n public async undeleteFileSystem(\n deletedFileSystemName: string,\n deleteFileSystemVersion: string,\n options: ServiceUndeleteFileSystemOptions = {},\n ): Promise<{\n fileSystemClient: DataLakeFileSystemClient;\n fileSystemUndeleteResponse: FileSystemUndeleteResponse;\n }> {\n return tracingClient.withSpan(\n \"DataLakeServiceClient-undeleteFileSystem\",\n options,\n async (updatedOptions) => {\n const res = await this.blobServiceClient.undeleteContainer(\n deletedFileSystemName,\n deleteFileSystemVersion,\n {\n ...options,\n destinationContainerName: options.destinationFileSystemName,\n tracingOptions: updatedOptions.tracingOptions,\n },\n );\n\n const fileSystemClient = this.getFileSystemClient(\n options.destinationFileSystemName || deletedFileSystemName,\n );\n return {\n fileSystemClient,\n fileSystemUndeleteResponse: res.containerUndeleteResponse,\n };\n },\n );\n }\n\n /**\n * Gets the properties of a storage account’s Blob service endpoint, including properties\n * for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.\n * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-blob-service-properties\n *\n * @param options - Options to the Service Get Properties operation.\n * @returns Response data for the Service Get Properties operation.\n */\n public async getProperties(\n options: ServiceGetPropertiesOptions = {},\n ): Promise<DataLakeServiceGetPropertiesResponse> {\n return tracingClient.withSpan(\n \"DataLakeServiceClient-getProperties\",\n options,\n async (updatedOptions) => {\n return this.blobServiceClient.getProperties({\n abortSignal: options.abortSignal,\n tracingOptions: updatedOptions.tracingOptions,\n });\n },\n );\n }\n\n /**\n * Sets properties for a storage account’s Blob service endpoint, including properties\n * for Storage Analytics, CORS (Cross-Origin Resource Sharing) rules and soft delete settings.\n * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-service-properties\n *\n * @param properties -\n * @param options - Options to the Service Set Properties operation.\n * @returns Response data for the Service Set Properties operation.\n */\n public async setProperties(\n properties: DataLakeServiceProperties,\n options: ServiceSetPropertiesOptions = {},\n ): Promise<ServiceSetPropertiesResponse> {\n return tracingClient.withSpan(\n \"DataLakeServiceClient-setProperties\",\n options,\n async (updatedOptions) => {\n return this.blobServiceClient.setProperties(properties, {\n abortSignal: options.abortSignal,\n tracingOptions: updatedOptions.tracingOptions,\n });\n },\n );\n }\n}\n"]}
@@ -0,0 +1,52 @@
1
+ import type { KeepAliveOptions, ExtendedServiceClientOptions } from "@azure/core-http-compat";
2
+ import { CompatResponse as HttpOperationResponse, RequestPolicy as IHttpClient, HttpHeadersLike as HttpHeaders, RequestPolicy, RequestPolicyFactory, RequestPolicyOptionsLike as RequestPolicyOptions, WebResourceLike as WebResource } from "@azure/core-http-compat";
3
+ import type { ProxySettings as ProxyOptions, UserAgentPolicyOptions as UserAgentOptions } from "@azure/core-rest-pipeline";
4
+ import { RequestBodyType as HttpRequestBody } from "@azure/core-rest-pipeline";
5
+ import type { TokenCredential } from "@azure/core-auth";
6
+ import type { StorageRetryOptions } from "@azure/storage-blob";
7
+ import { StorageSharedKeyCredential } from "./credentials/StorageSharedKeyCredential.js";
8
+ import { AnonymousCredential } from "@azure/storage-blob";
9
+ import { StorageOAuthScopes } from "./utils/constants.js";
10
+ import { ServiceClientOptions, PipelineOptions, PipelineLike, isPipelineLike, Pipeline } from "@azure/storage-blob";
11
+ export { StorageOAuthScopes, IHttpClient, HttpHeaders, HttpRequestBody, HttpOperationResponse, WebResource, RequestPolicyFactory, RequestPolicy, RequestPolicyOptions, ServiceClientOptions, PipelineOptions, PipelineLike, Pipeline, isPipelineLike, };
12
+ /**
13
+ * Options interface for the {@link newPipeline} function.
14
+ */
15
+ export interface StoragePipelineOptions {
16
+ /**
17
+ * Options to configure a proxy for outgoing requests.
18
+ */
19
+ proxyOptions?: ProxyOptions;
20
+ /**
21
+ * Options for adding user agent details to outgoing requests.
22
+ */
23
+ userAgentOptions?: UserAgentOptions;
24
+ /**
25
+ * Configures the built-in retry policy behavior.
26
+ */
27
+ retryOptions?: StorageRetryOptions;
28
+ /**
29
+ * Keep alive configurations. Default keep-alive is enabled.
30
+ */
31
+ keepAliveOptions?: KeepAliveOptions;
32
+ /**
33
+ * Configures the HTTP client to send requests and receive responses.
34
+ */
35
+ httpClient?: IHttpClient;
36
+ /**
37
+ * The audience used to retrieve an AAD token.
38
+ * By default, audience 'https://storage.azure.com/.default' will be used.
39
+ */
40
+ audience?: string;
41
+ }
42
+ /**
43
+ * Creates a new Pipeline object with Credential provided.
44
+ *
45
+ * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.
46
+ * @param pipelineOptions - Optional. Options.
47
+ * @returns A new Pipeline object.
48
+ */
49
+ export declare function newPipeline(credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, pipelineOptions?: StoragePipelineOptions): Pipeline;
50
+ export declare function getCoreClientOptions(pipeline: PipelineLike): ExtendedServiceClientOptions;
51
+ export declare function getCredentialFromPipeline(pipeline: PipelineLike): StorageSharedKeyCredential | AnonymousCredential | TokenCredential;
52
+ //# sourceMappingURL=Pipeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pipeline.d.ts","sourceRoot":"","sources":["../../src/Pipeline.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,gBAAgB,EAChB,4BAA4B,EAE7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,cAAc,IAAI,qBAAqB,EACvC,aAAa,IAAI,WAAW,EAC5B,eAAe,IAAI,WAAW,EAC9B,aAAa,EACb,oBAAoB,EACpB,wBAAwB,IAAI,oBAAoB,EAChD,eAAe,IAAI,WAAW,EAG/B,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,aAAa,IAAI,YAAY,EAC7B,sBAAsB,IAAI,gBAAgB,EAI3C,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,eAAe,IAAI,eAAe,EAGnC,MAAM,2BAA2B,CAAC;AAGnC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAIxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EACL,kBAAkB,EAInB,MAAM,sBAAsB,CAAC;AAO9B,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,YAAY,EACZ,cAAc,EACd,QAAQ,EACT,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EACL,kBAAkB,EAClB,WAAW,EACX,WAAW,EACX,eAAe,EACf,qBAAqB,EACrB,WAAW,EACX,oBAAoB,EACpB,aAAa,EACb,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EACf,YAAY,EACZ,QAAQ,EACR,cAAc,GACf,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC;;OAEG;IACH,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CACzB,UAAU,CAAC,EAAE,0BAA0B,GAAG,mBAAmB,GAAG,eAAe,EAC/E,eAAe,GAAE,sBAA2B,GAC3C,QAAQ,CAOV;AA8BD,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,YAAY,GAAG,4BAA4B,CAsFzF;AAED,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,YAAY,GACrB,0BAA0B,GAAG,mBAAmB,GAAG,eAAe,CAiBpE"}