@azure/storage-blob 12.27.0 → 12.28.0-beta.2

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 (1508) hide show
  1. package/README.md +116 -173
  2. package/dist/browser/BatchResponse.d.ts +49 -0
  3. package/dist/browser/BatchResponse.d.ts.map +1 -0
  4. package/dist/browser/BatchResponse.js.map +1 -0
  5. package/dist/browser/BatchResponseParser.d.ts +16 -0
  6. package/dist/browser/BatchResponseParser.d.ts.map +1 -0
  7. package/dist/browser/BatchResponseParser.js +137 -0
  8. package/dist/browser/BatchResponseParser.js.map +1 -0
  9. package/dist/browser/BatchUtils-browser.d.mts.map +1 -0
  10. package/dist/browser/BatchUtils-browser.mjs.map +1 -0
  11. package/dist/browser/BatchUtils.d.ts +4 -0
  12. package/dist/browser/BatchUtils.js +14 -0
  13. package/dist/browser/BlobBatch.d.ts +112 -0
  14. package/dist/browser/BlobBatch.d.ts.map +1 -0
  15. package/dist/browser/BlobBatch.js +267 -0
  16. package/dist/browser/BlobBatch.js.map +1 -0
  17. package/dist/browser/BlobBatchClient.d.ts +181 -0
  18. package/dist/browser/BlobBatchClient.d.ts.map +1 -0
  19. package/dist/browser/BlobBatchClient.js +169 -0
  20. package/dist/browser/BlobBatchClient.js.map +1 -0
  21. package/dist/browser/BlobDownloadResponse-browser.d.mts.map +1 -0
  22. package/dist/browser/BlobDownloadResponse-browser.mjs.map +1 -0
  23. package/dist/browser/BlobDownloadResponse.d.ts +2 -0
  24. package/dist/browser/BlobDownloadResponse.js +7 -0
  25. package/dist/browser/BlobLeaseClient.d.ts +159 -0
  26. package/dist/browser/BlobLeaseClient.d.ts.map +1 -0
  27. package/dist/browser/BlobLeaseClient.js +192 -0
  28. package/dist/browser/BlobLeaseClient.js.map +1 -0
  29. package/dist/browser/BlobQueryResponse-browser.d.mts.map +1 -0
  30. package/dist/browser/BlobQueryResponse-browser.mjs.map +1 -0
  31. package/dist/browser/BlobQueryResponse.d.ts +291 -0
  32. package/dist/browser/BlobQueryResponse.js +362 -0
  33. package/dist/browser/BlobServiceClient.d.ts +649 -0
  34. package/dist/browser/BlobServiceClient.d.ts.map +1 -0
  35. package/dist/browser/BlobServiceClient.js +698 -0
  36. package/dist/browser/BlobServiceClient.js.map +1 -0
  37. package/dist/browser/Clients.d.ts +3229 -0
  38. package/dist/browser/Clients.d.ts.map +1 -0
  39. package/dist/browser/Clients.js +2689 -0
  40. package/dist/browser/Clients.js.map +1 -0
  41. package/dist/browser/ContainerClient.d.ts +1101 -0
  42. package/dist/browser/ContainerClient.d.ts.map +1 -0
  43. package/dist/browser/ContainerClient.js +1247 -0
  44. package/dist/browser/ContainerClient.js.map +1 -0
  45. package/dist/browser/PageBlobRangeResponse.d.ts +35 -0
  46. package/dist/browser/PageBlobRangeResponse.d.ts.map +1 -0
  47. package/dist/browser/PageBlobRangeResponse.js.map +1 -0
  48. package/dist/browser/Pipeline.d.ts +136 -0
  49. package/dist/browser/Pipeline.d.ts.map +1 -0
  50. package/dist/browser/Pipeline.js +261 -0
  51. package/dist/browser/Pipeline.js.map +1 -0
  52. package/dist/browser/Range.d.ts +24 -0
  53. package/dist/browser/Range.d.ts.map +1 -0
  54. package/dist/browser/Range.js.map +1 -0
  55. package/dist/browser/StorageBrowserPolicyFactory.d.ts +16 -0
  56. package/dist/browser/StorageBrowserPolicyFactory.d.ts.map +1 -0
  57. package/dist/browser/StorageBrowserPolicyFactory.js +19 -0
  58. package/dist/browser/StorageBrowserPolicyFactory.js.map +1 -0
  59. package/dist/browser/StorageClient.d.ts +51 -0
  60. package/dist/browser/StorageClient.d.ts.map +1 -0
  61. package/dist/browser/StorageClient.js +29 -0
  62. package/dist/browser/StorageClient.js.map +1 -0
  63. package/dist/browser/StorageContextClient.d.ts +9 -0
  64. package/dist/browser/StorageContextClient.d.ts.map +1 -0
  65. package/dist/browser/StorageContextClient.js +17 -0
  66. package/dist/browser/StorageContextClient.js.map +1 -0
  67. package/dist/browser/StorageRetryPolicyFactory.d.ts +66 -0
  68. package/dist/browser/StorageRetryPolicyFactory.d.ts.map +1 -0
  69. package/dist/browser/StorageRetryPolicyFactory.js +27 -0
  70. package/dist/browser/StorageRetryPolicyFactory.js.map +1 -0
  71. package/dist/browser/credentials/AnonymousCredential.d.ts +19 -0
  72. package/dist/browser/credentials/AnonymousCredential.d.ts.map +1 -0
  73. package/dist/browser/credentials/AnonymousCredential.js +22 -0
  74. package/dist/browser/credentials/AnonymousCredential.js.map +1 -0
  75. package/dist/browser/credentials/Credential.d.ts +20 -0
  76. package/dist/browser/credentials/Credential.d.ts.map +1 -0
  77. package/dist/browser/credentials/Credential.js.map +1 -0
  78. package/dist/browser/credentials/StorageSharedKeyCredential-browser.d.mts.map +1 -0
  79. package/dist/browser/credentials/StorageSharedKeyCredential-browser.mjs.map +1 -0
  80. package/dist/browser/credentials/StorageSharedKeyCredential.d.ts +3 -0
  81. package/dist/browser/credentials/StorageSharedKeyCredential.js +5 -0
  82. package/dist/browser/credentials/UserDelegationKeyCredential-browser.d.mts.map +1 -0
  83. package/dist/browser/credentials/UserDelegationKeyCredential-browser.mjs.map +1 -0
  84. package/dist/browser/credentials/UserDelegationKeyCredential.d.ts +3 -0
  85. package/dist/browser/credentials/UserDelegationKeyCredential.js +5 -0
  86. package/dist/browser/generated/src/index.d.ts +4 -0
  87. package/dist/browser/generated/src/index.d.ts.map +1 -0
  88. package/dist/browser/generated/src/index.js +11 -0
  89. package/dist/browser/generated/src/index.js.map +1 -0
  90. package/dist/browser/generated/src/models/index.d.ts +3944 -0
  91. package/dist/browser/generated/src/models/index.d.ts.map +1 -0
  92. package/dist/browser/generated/src/models/index.js +264 -0
  93. package/dist/browser/generated/src/models/index.js.map +1 -0
  94. package/dist/browser/generated/src/models/mappers.d.ts +181 -0
  95. package/dist/browser/generated/src/models/mappers.d.ts.map +1 -0
  96. package/dist/browser/generated/src/models/mappers.js.map +1 -0
  97. package/dist/browser/generated/src/models/parameters.d.ts +147 -0
  98. package/dist/browser/generated/src/models/parameters.d.ts.map +1 -0
  99. package/dist/browser/generated/src/models/parameters.js +1620 -0
  100. package/dist/browser/generated/src/models/parameters.js.map +1 -0
  101. package/dist/browser/generated/src/operations/appendBlob.d.ts +45 -0
  102. package/dist/browser/generated/src/operations/appendBlob.d.ts.map +1 -0
  103. package/dist/browser/generated/src/operations/appendBlob.js +222 -0
  104. package/dist/browser/generated/src/operations/appendBlob.js.map +1 -0
  105. package/dist/browser/generated/src/operations/blob.d.ts +178 -0
  106. package/dist/browser/generated/src/operations/blob.d.ts.map +1 -0
  107. package/dist/browser/generated/src/operations/blob.js +1021 -0
  108. package/dist/browser/generated/src/operations/blob.js.map +1 -0
  109. package/dist/browser/generated/src/operations/blockBlob.d.ts +79 -0
  110. package/dist/browser/generated/src/operations/blockBlob.d.ts.map +1 -0
  111. package/dist/browser/generated/src/operations/blockBlob.js +367 -0
  112. package/dist/browser/generated/src/operations/blockBlob.js.map +1 -0
  113. package/dist/browser/generated/src/operations/container.d.ts +130 -0
  114. package/dist/browser/generated/src/operations/container.d.ts.map +1 -0
  115. package/dist/browser/generated/src/operations/container.js +713 -0
  116. package/dist/browser/generated/src/operations/container.js.map +1 -0
  117. package/dist/browser/generated/src/operations/index.d.ts +7 -0
  118. package/dist/browser/generated/src/operations/index.d.ts.map +1 -0
  119. package/dist/browser/generated/src/operations/index.js +14 -0
  120. package/dist/browser/generated/src/operations/index.js.map +1 -0
  121. package/dist/browser/generated/src/operations/pageBlob.d.ts +87 -0
  122. package/dist/browser/generated/src/operations/pageBlob.d.ts.map +1 -0
  123. package/dist/browser/generated/src/operations/pageBlob.js +457 -0
  124. package/dist/browser/generated/src/operations/pageBlob.js.map +1 -0
  125. package/dist/browser/generated/src/operations/service.d.ts +67 -0
  126. package/dist/browser/generated/src/operations/service.d.ts.map +1 -0
  127. package/dist/browser/generated/src/operations/service.js +323 -0
  128. package/dist/browser/generated/src/operations/service.js.map +1 -0
  129. package/dist/browser/generated/src/operationsInterfaces/appendBlob.d.ts +37 -0
  130. package/dist/browser/generated/src/operationsInterfaces/appendBlob.d.ts.map +1 -0
  131. package/dist/browser/generated/src/operationsInterfaces/appendBlob.js.map +1 -0
  132. package/dist/browser/generated/src/operationsInterfaces/blob.d.ts +170 -0
  133. package/dist/browser/generated/src/operationsInterfaces/blob.d.ts.map +1 -0
  134. package/dist/browser/generated/src/operationsInterfaces/blob.js.map +1 -0
  135. package/dist/browser/generated/src/operationsInterfaces/blockBlob.d.ts +71 -0
  136. package/dist/browser/generated/src/operationsInterfaces/blockBlob.d.ts.map +1 -0
  137. package/dist/browser/generated/src/operationsInterfaces/blockBlob.js.map +1 -0
  138. package/dist/browser/generated/src/operationsInterfaces/container.d.ts +122 -0
  139. package/dist/browser/generated/src/operationsInterfaces/container.d.ts.map +1 -0
  140. package/dist/browser/generated/src/operationsInterfaces/container.js.map +1 -0
  141. package/dist/browser/generated/src/operationsInterfaces/index.d.ts +7 -0
  142. package/dist/browser/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  143. package/dist/browser/generated/src/operationsInterfaces/index.js +14 -0
  144. package/dist/browser/generated/src/operationsInterfaces/index.js.map +1 -0
  145. package/dist/browser/generated/src/operationsInterfaces/pageBlob.d.ts +79 -0
  146. package/dist/browser/generated/src/operationsInterfaces/pageBlob.d.ts.map +1 -0
  147. package/dist/browser/generated/src/operationsInterfaces/pageBlob.js.map +1 -0
  148. package/dist/browser/generated/src/operationsInterfaces/service.d.ts +59 -0
  149. package/dist/browser/generated/src/operationsInterfaces/service.d.ts.map +1 -0
  150. package/dist/browser/generated/src/operationsInterfaces/service.js.map +1 -0
  151. package/dist/browser/generated/src/storageClient.d.ts +21 -0
  152. package/dist/browser/generated/src/storageClient.d.ts.map +1 -0
  153. package/dist/browser/generated/src/storageClient.js +49 -0
  154. package/dist/browser/generated/src/storageClient.js.map +1 -0
  155. package/dist/browser/generatedModels.d.ts +199 -0
  156. package/dist/browser/generatedModels.d.ts.map +1 -0
  157. package/dist/browser/generatedModels.js.map +1 -0
  158. package/dist/browser/index-browser.d.mts.map +1 -0
  159. package/dist/browser/index-browser.mjs.map +1 -0
  160. package/dist/browser/index.d.ts +33 -0
  161. package/dist/browser/index.js +31 -0
  162. package/dist/browser/internal-avro/AvroConstants.d.ts +5 -0
  163. package/dist/browser/internal-avro/AvroConstants.d.ts.map +1 -0
  164. package/dist/browser/internal-avro/AvroConstants.js.map +1 -0
  165. package/dist/browser/internal-avro/AvroParser.d.ts +57 -0
  166. package/dist/browser/internal-avro/AvroParser.d.ts.map +1 -0
  167. package/dist/browser/internal-avro/AvroParser.js.map +1 -0
  168. package/dist/browser/internal-avro/AvroReadable.d.ts +16 -0
  169. package/dist/browser/internal-avro/AvroReadable.d.ts.map +1 -0
  170. package/dist/browser/internal-avro/AvroReadable.js.map +1 -0
  171. package/dist/browser/internal-avro/AvroReadableFromBlob.d.ts +10 -0
  172. package/dist/browser/internal-avro/AvroReadableFromBlob.d.ts.map +1 -0
  173. package/dist/browser/internal-avro/AvroReadableFromBlob.js +47 -0
  174. package/dist/browser/internal-avro/AvroReadableFromBlob.js.map +1 -0
  175. package/dist/browser/internal-avro/AvroReadableFromStream.d.ts +11 -0
  176. package/dist/browser/internal-avro/AvroReadableFromStream.d.ts.map +1 -0
  177. package/dist/browser/internal-avro/AvroReadableFromStream.js +85 -0
  178. package/dist/browser/internal-avro/AvroReadableFromStream.js.map +1 -0
  179. package/dist/browser/internal-avro/AvroReader.d.ts +32 -0
  180. package/dist/browser/internal-avro/AvroReader.d.ts.map +1 -0
  181. package/dist/browser/internal-avro/AvroReader.js +106 -0
  182. package/dist/browser/internal-avro/AvroReader.js.map +1 -0
  183. package/dist/browser/internal-avro/index-browser.d.mts.map +1 -0
  184. package/dist/browser/internal-avro/index-browser.mjs.map +1 -0
  185. package/dist/browser/internal-avro/index.d.ts +4 -0
  186. package/dist/browser/internal-avro/index.js +6 -0
  187. package/dist/browser/internal-avro/utils/utils.common.d.ts +6 -0
  188. package/dist/browser/internal-avro/utils/utils.common.d.ts.map +1 -0
  189. package/dist/browser/internal-avro/utils/utils.common.js.map +1 -0
  190. package/dist/browser/log.d.ts +5 -0
  191. package/dist/browser/log.d.ts.map +1 -0
  192. package/dist/browser/log.js.map +1 -0
  193. package/dist/browser/models.d.ts +333 -0
  194. package/dist/browser/models.d.ts.map +1 -0
  195. package/dist/browser/models.js +115 -0
  196. package/dist/browser/models.js.map +1 -0
  197. package/dist/browser/package.json +3 -0
  198. package/dist/browser/policies/AnonymousCredentialPolicy.d.ts +15 -0
  199. package/dist/browser/policies/AnonymousCredentialPolicy.d.ts.map +1 -0
  200. package/dist/browser/policies/AnonymousCredentialPolicy.js +20 -0
  201. package/dist/browser/policies/AnonymousCredentialPolicy.js.map +1 -0
  202. package/dist/browser/policies/CredentialPolicy.d.ts +22 -0
  203. package/dist/browser/policies/CredentialPolicy.d.ts.map +1 -0
  204. package/dist/browser/policies/CredentialPolicy.js +29 -0
  205. package/dist/browser/policies/CredentialPolicy.js.map +1 -0
  206. package/dist/browser/policies/RequestPolicy.d.ts +45 -0
  207. package/dist/browser/policies/RequestPolicy.d.ts.map +1 -0
  208. package/dist/browser/policies/RequestPolicy.js.map +1 -0
  209. package/dist/browser/policies/StorageBrowserPolicy.d.ts +28 -0
  210. package/dist/browser/policies/StorageBrowserPolicy.d.ts.map +1 -0
  211. package/dist/browser/policies/StorageBrowserPolicy.js +47 -0
  212. package/dist/browser/policies/StorageBrowserPolicy.js.map +1 -0
  213. package/dist/browser/policies/StorageBrowserPolicyV2.d.ts +11 -0
  214. package/dist/browser/policies/StorageBrowserPolicyV2.d.ts.map +1 -0
  215. package/dist/browser/policies/StorageBrowserPolicyV2.js +31 -0
  216. package/dist/browser/policies/StorageBrowserPolicyV2.js.map +1 -0
  217. package/dist/browser/policies/StorageCorrectContentLengthPolicy-browser.d.mts.map +1 -0
  218. package/dist/browser/policies/StorageCorrectContentLengthPolicy-browser.mjs.map +1 -0
  219. package/dist/browser/policies/StorageCorrectContentLengthPolicy.d.ts +10 -0
  220. package/dist/browser/policies/StorageCorrectContentLengthPolicy.js +18 -0
  221. package/dist/browser/policies/StorageRetryPolicy.d.ts +62 -0
  222. package/dist/browser/policies/StorageRetryPolicy.d.ts.map +1 -0
  223. package/dist/browser/policies/StorageRetryPolicy.js +216 -0
  224. package/dist/browser/policies/StorageRetryPolicy.js.map +1 -0
  225. package/dist/browser/policies/StorageRetryPolicyType.d.ts +14 -0
  226. package/dist/browser/policies/StorageRetryPolicyType.d.ts.map +1 -0
  227. package/dist/browser/policies/StorageRetryPolicyType.js +17 -0
  228. package/dist/browser/policies/StorageRetryPolicyType.js.map +1 -0
  229. package/dist/browser/policies/StorageRetryPolicyV2.d.ts +11 -0
  230. package/dist/browser/policies/StorageRetryPolicyV2.d.ts.map +1 -0
  231. package/dist/browser/policies/StorageRetryPolicyV2.js +167 -0
  232. package/dist/browser/policies/StorageRetryPolicyV2.js.map +1 -0
  233. package/dist/browser/policies/StorageSharedKeyCredentialPolicy.d.ts +54 -0
  234. package/dist/browser/policies/StorageSharedKeyCredentialPolicy.d.ts.map +1 -0
  235. package/dist/browser/policies/StorageSharedKeyCredentialPolicy.js +141 -0
  236. package/dist/browser/policies/StorageSharedKeyCredentialPolicy.js.map +1 -0
  237. package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2-browser.d.mts.map +1 -0
  238. package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2-browser.mjs.map +1 -0
  239. package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2.d.ts +17 -0
  240. package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2.js +18 -0
  241. package/dist/browser/pollers/BlobStartCopyFromUrlPoller.d.ts +74 -0
  242. package/dist/browser/pollers/BlobStartCopyFromUrlPoller.d.ts.map +1 -0
  243. package/dist/browser/pollers/BlobStartCopyFromUrlPoller.js.map +1 -0
  244. package/dist/browser/sas/AccountSASPermissions.d.ts +146 -0
  245. package/dist/browser/sas/AccountSASPermissions.d.ts.map +1 -0
  246. package/dist/browser/sas/AccountSASPermissions.js.map +1 -0
  247. package/dist/browser/sas/AccountSASResourceTypes.d.ts +38 -0
  248. package/dist/browser/sas/AccountSASResourceTypes.d.ts.map +1 -0
  249. package/dist/browser/sas/AccountSASResourceTypes.js.map +1 -0
  250. package/dist/browser/sas/AccountSASServices.d.ts +40 -0
  251. package/dist/browser/sas/AccountSASServices.d.ts.map +1 -0
  252. package/dist/browser/sas/AccountSASServices.js.map +1 -0
  253. package/dist/browser/sas/AccountSASSignatureValues.d.ts +78 -0
  254. package/dist/browser/sas/AccountSASSignatureValues.d.ts.map +1 -0
  255. package/dist/browser/sas/AccountSASSignatureValues.js +100 -0
  256. package/dist/browser/sas/AccountSASSignatureValues.js.map +1 -0
  257. package/dist/browser/sas/BlobSASPermissions.d.ts +127 -0
  258. package/dist/browser/sas/BlobSASPermissions.d.ts.map +1 -0
  259. package/dist/browser/sas/BlobSASPermissions.js.map +1 -0
  260. package/dist/browser/sas/BlobSASSignatureValues.d.ts +284 -0
  261. package/dist/browser/sas/BlobSASSignatureValues.d.ts.map +1 -0
  262. package/dist/browser/sas/BlobSASSignatureValues.js +666 -0
  263. package/dist/browser/sas/BlobSASSignatureValues.js.map +1 -0
  264. package/dist/browser/sas/ContainerSASPermissions.d.ts +143 -0
  265. package/dist/browser/sas/ContainerSASPermissions.d.ts.map +1 -0
  266. package/dist/browser/sas/ContainerSASPermissions.js.map +1 -0
  267. package/dist/browser/sas/SASQueryParameters.d.ts +285 -0
  268. package/dist/browser/sas/SASQueryParameters.d.ts.map +1 -0
  269. package/dist/browser/sas/SASQueryParameters.js +234 -0
  270. package/dist/browser/sas/SASQueryParameters.js.map +1 -0
  271. package/dist/browser/sas/SasIPRange.d.ts +24 -0
  272. package/dist/browser/sas/SasIPRange.d.ts.map +1 -0
  273. package/dist/browser/sas/SasIPRange.js.map +1 -0
  274. package/dist/browser/utils/Batch.d.ts +68 -0
  275. package/dist/browser/utils/Batch.d.ts.map +1 -0
  276. package/dist/browser/utils/Batch.js.map +1 -0
  277. package/dist/browser/utils/BlobQuickQueryStream.d.ts +42 -0
  278. package/dist/browser/utils/BlobQuickQueryStream.d.ts.map +1 -0
  279. package/dist/browser/utils/BlobQuickQueryStream.js +111 -0
  280. package/dist/browser/utils/BlobQuickQueryStream.js.map +1 -0
  281. package/dist/browser/utils/Mutex.d.ts +23 -0
  282. package/dist/browser/utils/Mutex.d.ts.map +1 -0
  283. package/dist/browser/utils/Mutex.js.map +1 -0
  284. package/dist/browser/utils/RetriableReadableStream.d.ts +62 -0
  285. package/dist/browser/utils/RetriableReadableStream.d.ts.map +1 -0
  286. package/dist/browser/utils/RetriableReadableStream.js +119 -0
  287. package/dist/browser/utils/RetriableReadableStream.js.map +1 -0
  288. package/dist/browser/utils/SharedKeyComparator.d.ts +2 -0
  289. package/dist/browser/utils/SharedKeyComparator.d.ts.map +1 -0
  290. package/dist/browser/utils/SharedKeyComparator.js.map +1 -0
  291. package/dist/browser/utils/constants.d.ts +70 -0
  292. package/dist/browser/utils/constants.d.ts.map +1 -0
  293. package/dist/browser/utils/constants.js +226 -0
  294. package/dist/browser/utils/constants.js.map +1 -0
  295. package/dist/browser/utils/tracing.d.ts +6 -0
  296. package/dist/browser/utils/tracing.d.ts.map +1 -0
  297. package/dist/browser/utils/tracing.js +14 -0
  298. package/dist/browser/utils/tracing.js.map +1 -0
  299. package/dist/browser/utils/utils-browser.d.mts.map +1 -0
  300. package/dist/browser/utils/utils-browser.mjs.map +1 -0
  301. package/dist/browser/utils/utils.common.d.ts +323 -0
  302. package/dist/browser/utils/utils.common.d.ts.map +1 -0
  303. package/dist/browser/utils/utils.common.js +756 -0
  304. package/dist/browser/utils/utils.common.js.map +1 -0
  305. package/dist/browser/utils/utils.d.ts +18 -0
  306. package/dist/browser/utils/utils.js +48 -0
  307. package/dist/commonjs/BatchResponse.d.ts +49 -0
  308. package/dist/commonjs/BatchResponse.d.ts.map +1 -0
  309. package/dist/commonjs/BatchResponse.js +5 -0
  310. package/dist/commonjs/BatchResponse.js.map +1 -0
  311. package/dist/commonjs/BatchResponseParser.d.ts +16 -0
  312. package/dist/commonjs/BatchResponseParser.d.ts.map +1 -0
  313. package/dist/commonjs/BatchResponseParser.js +141 -0
  314. package/dist/commonjs/BatchResponseParser.js.map +1 -0
  315. package/dist/commonjs/BatchUtils.d.ts +4 -0
  316. package/dist/commonjs/BatchUtils.d.ts.map +1 -0
  317. package/dist/commonjs/BatchUtils.js +19 -0
  318. package/dist/commonjs/BatchUtils.js.map +1 -0
  319. package/dist/commonjs/BlobBatch.d.ts +112 -0
  320. package/dist/commonjs/BlobBatch.d.ts.map +1 -0
  321. package/dist/commonjs/BlobBatch.js +271 -0
  322. package/dist/commonjs/BlobBatch.js.map +1 -0
  323. package/dist/commonjs/BlobBatchClient.d.ts +181 -0
  324. package/dist/commonjs/BlobBatchClient.d.ts.map +1 -0
  325. package/dist/commonjs/BlobBatchClient.js +173 -0
  326. package/dist/commonjs/BlobBatchClient.js.map +1 -0
  327. package/dist/commonjs/BlobDownloadResponse.d.ts +369 -0
  328. package/dist/commonjs/BlobDownloadResponse.d.ts.map +1 -0
  329. package/dist/commonjs/BlobDownloadResponse.js +467 -0
  330. package/dist/commonjs/BlobDownloadResponse.js.map +1 -0
  331. package/dist/commonjs/BlobLeaseClient.d.ts +159 -0
  332. package/dist/commonjs/BlobLeaseClient.d.ts.map +1 -0
  333. package/dist/commonjs/BlobLeaseClient.js +196 -0
  334. package/dist/commonjs/BlobLeaseClient.js.map +1 -0
  335. package/dist/commonjs/BlobQueryResponse.d.ts +294 -0
  336. package/dist/commonjs/BlobQueryResponse.d.ts.map +1 -0
  337. package/dist/commonjs/BlobQueryResponse.js +371 -0
  338. package/dist/commonjs/BlobQueryResponse.js.map +1 -0
  339. package/dist/commonjs/BlobServiceClient.d.ts +649 -0
  340. package/dist/commonjs/BlobServiceClient.d.ts.map +1 -0
  341. package/dist/commonjs/BlobServiceClient.js +702 -0
  342. package/dist/commonjs/BlobServiceClient.js.map +1 -0
  343. package/dist/commonjs/Clients.d.ts +3229 -0
  344. package/dist/commonjs/Clients.d.ts.map +1 -0
  345. package/dist/commonjs/Clients.js +2696 -0
  346. package/dist/commonjs/Clients.js.map +1 -0
  347. package/dist/commonjs/ContainerClient.d.ts +1101 -0
  348. package/dist/commonjs/ContainerClient.d.ts.map +1 -0
  349. package/dist/commonjs/ContainerClient.js +1251 -0
  350. package/dist/commonjs/ContainerClient.js.map +1 -0
  351. package/dist/commonjs/PageBlobRangeResponse.d.ts +35 -0
  352. package/dist/commonjs/PageBlobRangeResponse.d.ts.map +1 -0
  353. package/dist/commonjs/PageBlobRangeResponse.js +27 -0
  354. package/dist/commonjs/PageBlobRangeResponse.js.map +1 -0
  355. package/dist/commonjs/Pipeline.d.ts +136 -0
  356. package/dist/commonjs/Pipeline.d.ts.map +1 -0
  357. package/dist/commonjs/Pipeline.js +267 -0
  358. package/dist/commonjs/Pipeline.js.map +1 -0
  359. package/dist/commonjs/Range.d.ts +24 -0
  360. package/dist/commonjs/Range.d.ts.map +1 -0
  361. package/dist/commonjs/Range.js +24 -0
  362. package/dist/commonjs/Range.js.map +1 -0
  363. package/dist/commonjs/StorageBrowserPolicyFactory.d.ts +16 -0
  364. package/dist/commonjs/StorageBrowserPolicyFactory.d.ts.map +1 -0
  365. package/dist/commonjs/StorageBrowserPolicyFactory.js +23 -0
  366. package/dist/commonjs/StorageBrowserPolicyFactory.js.map +1 -0
  367. package/dist/commonjs/StorageClient.d.ts +51 -0
  368. package/dist/commonjs/StorageClient.d.ts.map +1 -0
  369. package/dist/commonjs/StorageClient.js +33 -0
  370. package/dist/commonjs/StorageClient.js.map +1 -0
  371. package/dist/commonjs/StorageContextClient.d.ts +9 -0
  372. package/dist/commonjs/StorageContextClient.d.ts.map +1 -0
  373. package/dist/commonjs/StorageContextClient.js +21 -0
  374. package/dist/commonjs/StorageContextClient.js.map +1 -0
  375. package/dist/commonjs/StorageRetryPolicyFactory.d.ts +66 -0
  376. package/dist/commonjs/StorageRetryPolicyFactory.d.ts.map +1 -0
  377. package/dist/commonjs/StorageRetryPolicyFactory.js +32 -0
  378. package/dist/commonjs/StorageRetryPolicyFactory.js.map +1 -0
  379. package/dist/commonjs/credentials/AnonymousCredential.d.ts +19 -0
  380. package/dist/commonjs/credentials/AnonymousCredential.d.ts.map +1 -0
  381. package/dist/commonjs/credentials/AnonymousCredential.js +26 -0
  382. package/dist/commonjs/credentials/AnonymousCredential.js.map +1 -0
  383. package/dist/commonjs/credentials/Credential.d.ts +20 -0
  384. package/dist/commonjs/credentials/Credential.d.ts.map +1 -0
  385. package/dist/commonjs/credentials/Credential.js +22 -0
  386. package/dist/commonjs/credentials/Credential.js.map +1 -0
  387. package/dist/commonjs/credentials/StorageSharedKeyCredential.d.ts +38 -0
  388. package/dist/commonjs/credentials/StorageSharedKeyCredential.d.ts.map +1 -0
  389. package/dist/commonjs/credentials/StorageSharedKeyCredential.js +44 -0
  390. package/dist/commonjs/credentials/StorageSharedKeyCredential.js.map +1 -0
  391. package/dist/commonjs/credentials/UserDelegationKeyCredential.d.ts +34 -0
  392. package/dist/commonjs/credentials/UserDelegationKeyCredential.d.ts.map +1 -0
  393. package/dist/commonjs/credentials/UserDelegationKeyCredential.js +35 -0
  394. package/dist/commonjs/credentials/UserDelegationKeyCredential.js.map +1 -0
  395. package/dist/commonjs/generated/src/index.d.ts +4 -0
  396. package/dist/commonjs/generated/src/index.d.ts.map +1 -0
  397. package/dist/commonjs/generated/src/index.js +16 -0
  398. package/dist/commonjs/generated/src/index.js.map +1 -0
  399. package/dist/commonjs/generated/src/models/index.d.ts +3944 -0
  400. package/dist/commonjs/generated/src/models/index.d.ts.map +1 -0
  401. package/dist/commonjs/generated/src/models/index.js +267 -0
  402. package/dist/commonjs/generated/src/models/index.js.map +1 -0
  403. package/dist/commonjs/generated/src/models/mappers.d.ts +181 -0
  404. package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -0
  405. package/dist/commonjs/generated/src/models/mappers.js +8231 -0
  406. package/dist/commonjs/generated/src/models/mappers.js.map +1 -0
  407. package/dist/commonjs/generated/src/models/parameters.d.ts +147 -0
  408. package/dist/commonjs/generated/src/models/parameters.d.ts.map +1 -0
  409. package/dist/commonjs/generated/src/models/parameters.js +1625 -0
  410. package/dist/commonjs/generated/src/models/parameters.js.map +1 -0
  411. package/dist/commonjs/generated/src/operations/appendBlob.d.ts +45 -0
  412. package/dist/commonjs/generated/src/operations/appendBlob.d.ts.map +1 -0
  413. package/dist/commonjs/generated/src/operations/appendBlob.js +227 -0
  414. package/dist/commonjs/generated/src/operations/appendBlob.js.map +1 -0
  415. package/dist/commonjs/generated/src/operations/blob.d.ts +178 -0
  416. package/dist/commonjs/generated/src/operations/blob.d.ts.map +1 -0
  417. package/dist/commonjs/generated/src/operations/blob.js +1026 -0
  418. package/dist/commonjs/generated/src/operations/blob.js.map +1 -0
  419. package/dist/commonjs/generated/src/operations/blockBlob.d.ts +79 -0
  420. package/dist/commonjs/generated/src/operations/blockBlob.d.ts.map +1 -0
  421. package/dist/commonjs/generated/src/operations/blockBlob.js +372 -0
  422. package/dist/commonjs/generated/src/operations/blockBlob.js.map +1 -0
  423. package/dist/commonjs/generated/src/operations/container.d.ts +130 -0
  424. package/dist/commonjs/generated/src/operations/container.d.ts.map +1 -0
  425. package/dist/commonjs/generated/src/operations/container.js +718 -0
  426. package/dist/commonjs/generated/src/operations/container.js.map +1 -0
  427. package/dist/commonjs/generated/src/operations/index.d.ts +7 -0
  428. package/dist/commonjs/generated/src/operations/index.d.ts.map +1 -0
  429. package/dist/commonjs/generated/src/operations/index.js +17 -0
  430. package/dist/commonjs/generated/src/operations/index.js.map +1 -0
  431. package/dist/commonjs/generated/src/operations/pageBlob.d.ts +87 -0
  432. package/dist/commonjs/generated/src/operations/pageBlob.d.ts.map +1 -0
  433. package/dist/commonjs/generated/src/operations/pageBlob.js +462 -0
  434. package/dist/commonjs/generated/src/operations/pageBlob.js.map +1 -0
  435. package/dist/commonjs/generated/src/operations/service.d.ts +67 -0
  436. package/dist/commonjs/generated/src/operations/service.d.ts.map +1 -0
  437. package/dist/commonjs/generated/src/operations/service.js +328 -0
  438. package/dist/commonjs/generated/src/operations/service.js.map +1 -0
  439. package/dist/commonjs/generated/src/operationsInterfaces/appendBlob.d.ts +37 -0
  440. package/dist/commonjs/generated/src/operationsInterfaces/appendBlob.d.ts.map +1 -0
  441. package/dist/commonjs/generated/src/operationsInterfaces/appendBlob.js +10 -0
  442. package/dist/commonjs/generated/src/operationsInterfaces/appendBlob.js.map +1 -0
  443. package/dist/commonjs/generated/src/operationsInterfaces/blob.d.ts +170 -0
  444. package/dist/commonjs/generated/src/operationsInterfaces/blob.d.ts.map +1 -0
  445. package/dist/commonjs/generated/src/operationsInterfaces/blob.js +10 -0
  446. package/dist/commonjs/generated/src/operationsInterfaces/blob.js.map +1 -0
  447. package/dist/commonjs/generated/src/operationsInterfaces/blockBlob.d.ts +71 -0
  448. package/dist/commonjs/generated/src/operationsInterfaces/blockBlob.d.ts.map +1 -0
  449. package/dist/commonjs/generated/src/operationsInterfaces/blockBlob.js +10 -0
  450. package/dist/commonjs/generated/src/operationsInterfaces/blockBlob.js.map +1 -0
  451. package/dist/commonjs/generated/src/operationsInterfaces/container.d.ts +122 -0
  452. package/dist/commonjs/generated/src/operationsInterfaces/container.d.ts.map +1 -0
  453. package/dist/commonjs/generated/src/operationsInterfaces/container.js +10 -0
  454. package/dist/commonjs/generated/src/operationsInterfaces/container.js.map +1 -0
  455. package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts +7 -0
  456. package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  457. package/dist/commonjs/generated/src/operationsInterfaces/index.js +17 -0
  458. package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +1 -0
  459. package/dist/commonjs/generated/src/operationsInterfaces/pageBlob.d.ts +79 -0
  460. package/dist/commonjs/generated/src/operationsInterfaces/pageBlob.d.ts.map +1 -0
  461. package/dist/commonjs/generated/src/operationsInterfaces/pageBlob.js +10 -0
  462. package/dist/commonjs/generated/src/operationsInterfaces/pageBlob.js.map +1 -0
  463. package/dist/commonjs/generated/src/operationsInterfaces/service.d.ts +59 -0
  464. package/dist/commonjs/generated/src/operationsInterfaces/service.d.ts.map +1 -0
  465. package/dist/commonjs/generated/src/operationsInterfaces/service.js +10 -0
  466. package/dist/commonjs/generated/src/operationsInterfaces/service.js.map +1 -0
  467. package/dist/commonjs/generated/src/storageClient.d.ts +21 -0
  468. package/dist/commonjs/generated/src/storageClient.d.ts.map +1 -0
  469. package/dist/commonjs/generated/src/storageClient.js +54 -0
  470. package/dist/commonjs/generated/src/storageClient.js.map +1 -0
  471. package/dist/commonjs/generatedModels.d.ts +199 -0
  472. package/dist/commonjs/generatedModels.d.ts.map +1 -0
  473. package/dist/commonjs/generatedModels.js +11 -0
  474. package/dist/commonjs/generatedModels.js.map +1 -0
  475. package/dist/commonjs/index.d.ts +46 -0
  476. package/dist/commonjs/index.d.ts.map +1 -0
  477. package/dist/commonjs/index.js +57 -0
  478. package/dist/commonjs/index.js.map +1 -0
  479. package/dist/commonjs/internal-avro/AvroConstants.d.ts +5 -0
  480. package/dist/commonjs/internal-avro/AvroConstants.d.ts.map +1 -0
  481. package/dist/commonjs/internal-avro/AvroConstants.js +10 -0
  482. package/dist/commonjs/internal-avro/AvroConstants.js.map +1 -0
  483. package/dist/commonjs/internal-avro/AvroParser.d.ts +57 -0
  484. package/dist/commonjs/internal-avro/AvroParser.d.ts.map +1 -0
  485. package/dist/commonjs/internal-avro/AvroParser.js +322 -0
  486. package/dist/commonjs/internal-avro/AvroParser.js.map +1 -0
  487. package/dist/commonjs/internal-avro/AvroReadable.d.ts +16 -0
  488. package/dist/commonjs/internal-avro/AvroReadable.d.ts.map +1 -0
  489. package/dist/commonjs/internal-avro/AvroReadable.js +9 -0
  490. package/dist/commonjs/internal-avro/AvroReadable.js.map +1 -0
  491. package/dist/commonjs/internal-avro/AvroReadableFromBlob.d.ts +10 -0
  492. package/dist/commonjs/internal-avro/AvroReadableFromBlob.d.ts.map +1 -0
  493. package/dist/commonjs/internal-avro/AvroReadableFromBlob.js +51 -0
  494. package/dist/commonjs/internal-avro/AvroReadableFromBlob.js.map +1 -0
  495. package/dist/commonjs/internal-avro/AvroReadableFromStream.d.ts +11 -0
  496. package/dist/commonjs/internal-avro/AvroReadableFromStream.d.ts.map +1 -0
  497. package/dist/commonjs/internal-avro/AvroReadableFromStream.js +89 -0
  498. package/dist/commonjs/internal-avro/AvroReadableFromStream.js.map +1 -0
  499. package/dist/commonjs/internal-avro/AvroReader.d.ts +32 -0
  500. package/dist/commonjs/internal-avro/AvroReader.d.ts.map +1 -0
  501. package/dist/commonjs/internal-avro/AvroReader.js +110 -0
  502. package/dist/commonjs/internal-avro/AvroReader.js.map +1 -0
  503. package/dist/commonjs/internal-avro/index.d.ts +4 -0
  504. package/dist/commonjs/internal-avro/index.d.ts.map +1 -0
  505. package/dist/commonjs/internal-avro/index.js +12 -0
  506. package/dist/commonjs/internal-avro/index.js.map +1 -0
  507. package/dist/commonjs/internal-avro/utils/utils.common.d.ts +6 -0
  508. package/dist/commonjs/internal-avro/utils/utils.common.d.ts.map +1 -0
  509. package/dist/commonjs/internal-avro/utils/utils.common.js +19 -0
  510. package/dist/commonjs/internal-avro/utils/utils.common.js.map +1 -0
  511. package/dist/commonjs/log.d.ts +5 -0
  512. package/dist/commonjs/log.d.ts.map +1 -0
  513. package/dist/commonjs/log.js +11 -0
  514. package/dist/commonjs/log.js.map +1 -0
  515. package/dist/commonjs/models.d.ts +333 -0
  516. package/dist/commonjs/models.d.ts.map +1 -0
  517. package/dist/commonjs/models.js +121 -0
  518. package/dist/commonjs/models.js.map +1 -0
  519. package/dist/commonjs/package.json +3 -0
  520. package/dist/commonjs/policies/AnonymousCredentialPolicy.d.ts +15 -0
  521. package/dist/commonjs/policies/AnonymousCredentialPolicy.d.ts.map +1 -0
  522. package/dist/commonjs/policies/AnonymousCredentialPolicy.js +24 -0
  523. package/dist/commonjs/policies/AnonymousCredentialPolicy.js.map +1 -0
  524. package/dist/commonjs/policies/CredentialPolicy.d.ts +22 -0
  525. package/dist/commonjs/policies/CredentialPolicy.d.ts.map +1 -0
  526. package/dist/commonjs/policies/CredentialPolicy.js +33 -0
  527. package/dist/commonjs/policies/CredentialPolicy.js.map +1 -0
  528. package/dist/commonjs/policies/RequestPolicy.d.ts +45 -0
  529. package/dist/commonjs/policies/RequestPolicy.d.ts.map +1 -0
  530. package/dist/commonjs/policies/RequestPolicy.js +44 -0
  531. package/dist/commonjs/policies/RequestPolicy.js.map +1 -0
  532. package/dist/commonjs/policies/StorageBrowserPolicy.d.ts +28 -0
  533. package/dist/commonjs/policies/StorageBrowserPolicy.d.ts.map +1 -0
  534. package/dist/commonjs/policies/StorageBrowserPolicy.js +51 -0
  535. package/dist/commonjs/policies/StorageBrowserPolicy.js.map +1 -0
  536. package/dist/commonjs/policies/StorageBrowserPolicyV2.d.ts +11 -0
  537. package/dist/commonjs/policies/StorageBrowserPolicyV2.d.ts.map +1 -0
  538. package/dist/commonjs/policies/StorageBrowserPolicyV2.js +35 -0
  539. package/dist/commonjs/policies/StorageBrowserPolicyV2.js.map +1 -0
  540. package/dist/commonjs/policies/StorageCorrectContentLengthPolicy.d.ts +10 -0
  541. package/dist/commonjs/policies/StorageCorrectContentLengthPolicy.d.ts.map +1 -0
  542. package/dist/commonjs/policies/StorageCorrectContentLengthPolicy.js +31 -0
  543. package/dist/commonjs/policies/StorageCorrectContentLengthPolicy.js.map +1 -0
  544. package/dist/commonjs/policies/StorageRetryPolicy.d.ts +62 -0
  545. package/dist/commonjs/policies/StorageRetryPolicy.d.ts.map +1 -0
  546. package/dist/commonjs/policies/StorageRetryPolicy.js +221 -0
  547. package/dist/commonjs/policies/StorageRetryPolicy.js.map +1 -0
  548. package/dist/commonjs/policies/StorageRetryPolicyType.d.ts +14 -0
  549. package/dist/commonjs/policies/StorageRetryPolicyType.d.ts.map +1 -0
  550. package/dist/commonjs/policies/StorageRetryPolicyType.js +20 -0
  551. package/dist/commonjs/policies/StorageRetryPolicyType.js.map +1 -0
  552. package/dist/commonjs/policies/StorageRetryPolicyV2.d.ts +11 -0
  553. package/dist/commonjs/policies/StorageRetryPolicyV2.d.ts.map +1 -0
  554. package/dist/commonjs/policies/StorageRetryPolicyV2.js +171 -0
  555. package/dist/commonjs/policies/StorageRetryPolicyV2.js.map +1 -0
  556. package/dist/commonjs/policies/StorageSharedKeyCredentialPolicy.d.ts +54 -0
  557. package/dist/commonjs/policies/StorageSharedKeyCredentialPolicy.d.ts.map +1 -0
  558. package/dist/commonjs/policies/StorageSharedKeyCredentialPolicy.js +145 -0
  559. package/dist/commonjs/policies/StorageSharedKeyCredentialPolicy.js.map +1 -0
  560. package/dist/commonjs/policies/StorageSharedKeyCredentialPolicyV2.d.ts +17 -0
  561. package/dist/commonjs/policies/StorageSharedKeyCredentialPolicyV2.d.ts.map +1 -0
  562. package/dist/commonjs/policies/StorageSharedKeyCredentialPolicyV2.js +136 -0
  563. package/dist/commonjs/policies/StorageSharedKeyCredentialPolicyV2.js.map +1 -0
  564. package/dist/commonjs/pollers/BlobStartCopyFromUrlPoller.d.ts +74 -0
  565. package/dist/commonjs/pollers/BlobStartCopyFromUrlPoller.d.ts.map +1 -0
  566. package/dist/commonjs/pollers/BlobStartCopyFromUrlPoller.js +134 -0
  567. package/dist/commonjs/pollers/BlobStartCopyFromUrlPoller.js.map +1 -0
  568. package/dist/commonjs/sas/AccountSASPermissions.d.ts +146 -0
  569. package/dist/commonjs/sas/AccountSASPermissions.d.ts.map +1 -0
  570. package/dist/commonjs/sas/AccountSASPermissions.js +231 -0
  571. package/dist/commonjs/sas/AccountSASPermissions.js.map +1 -0
  572. package/dist/commonjs/sas/AccountSASResourceTypes.d.ts +38 -0
  573. package/dist/commonjs/sas/AccountSASResourceTypes.d.ts.map +1 -0
  574. package/dist/commonjs/sas/AccountSASResourceTypes.js +76 -0
  575. package/dist/commonjs/sas/AccountSASResourceTypes.js.map +1 -0
  576. package/dist/commonjs/sas/AccountSASServices.d.ts +40 -0
  577. package/dist/commonjs/sas/AccountSASServices.d.ts.map +1 -0
  578. package/dist/commonjs/sas/AccountSASServices.js +84 -0
  579. package/dist/commonjs/sas/AccountSASServices.js.map +1 -0
  580. package/dist/commonjs/sas/AccountSASSignatureValues.d.ts +78 -0
  581. package/dist/commonjs/sas/AccountSASSignatureValues.d.ts.map +1 -0
  582. package/dist/commonjs/sas/AccountSASSignatureValues.js +104 -0
  583. package/dist/commonjs/sas/AccountSASSignatureValues.js.map +1 -0
  584. package/dist/commonjs/sas/BlobSASPermissions.d.ts +127 -0
  585. package/dist/commonjs/sas/BlobSASPermissions.d.ts.map +1 -0
  586. package/dist/commonjs/sas/BlobSASPermissions.js +199 -0
  587. package/dist/commonjs/sas/BlobSASPermissions.js.map +1 -0
  588. package/dist/commonjs/sas/BlobSASSignatureValues.d.ts +284 -0
  589. package/dist/commonjs/sas/BlobSASSignatureValues.d.ts.map +1 -0
  590. package/dist/commonjs/sas/BlobSASSignatureValues.js +670 -0
  591. package/dist/commonjs/sas/BlobSASSignatureValues.js.map +1 -0
  592. package/dist/commonjs/sas/ContainerSASPermissions.d.ts +143 -0
  593. package/dist/commonjs/sas/ContainerSASPermissions.d.ts.map +1 -0
  594. package/dist/commonjs/sas/ContainerSASPermissions.js +225 -0
  595. package/dist/commonjs/sas/ContainerSASPermissions.js.map +1 -0
  596. package/dist/commonjs/sas/SASQueryParameters.d.ts +285 -0
  597. package/dist/commonjs/sas/SASQueryParameters.d.ts.map +1 -0
  598. package/dist/commonjs/sas/SASQueryParameters.js +238 -0
  599. package/dist/commonjs/sas/SASQueryParameters.js.map +1 -0
  600. package/dist/commonjs/sas/SasIPRange.d.ts +24 -0
  601. package/dist/commonjs/sas/SasIPRange.d.ts.map +1 -0
  602. package/dist/commonjs/sas/SasIPRange.js +16 -0
  603. package/dist/commonjs/sas/SasIPRange.js.map +1 -0
  604. package/dist/commonjs/tsdoc-metadata.json +11 -0
  605. package/dist/commonjs/utils/Batch.d.ts +68 -0
  606. package/dist/commonjs/utils/Batch.d.ts.map +1 -0
  607. package/dist/commonjs/utils/Batch.js +126 -0
  608. package/dist/commonjs/utils/Batch.js.map +1 -0
  609. package/dist/commonjs/utils/BlobQuickQueryStream.d.ts +42 -0
  610. package/dist/commonjs/utils/BlobQuickQueryStream.d.ts.map +1 -0
  611. package/dist/commonjs/utils/BlobQuickQueryStream.js +115 -0
  612. package/dist/commonjs/utils/BlobQuickQueryStream.js.map +1 -0
  613. package/dist/commonjs/utils/Mutex.d.ts +23 -0
  614. package/dist/commonjs/utils/Mutex.d.ts.map +1 -0
  615. package/dist/commonjs/utils/Mutex.js +69 -0
  616. package/dist/commonjs/utils/Mutex.js.map +1 -0
  617. package/dist/commonjs/utils/RetriableReadableStream.d.ts +62 -0
  618. package/dist/commonjs/utils/RetriableReadableStream.d.ts.map +1 -0
  619. package/dist/commonjs/utils/RetriableReadableStream.js +123 -0
  620. package/dist/commonjs/utils/RetriableReadableStream.js.map +1 -0
  621. package/dist/commonjs/utils/SharedKeyComparator.d.ts +2 -0
  622. package/dist/commonjs/utils/SharedKeyComparator.d.ts.map +1 -0
  623. package/dist/commonjs/utils/SharedKeyComparator.js +76 -0
  624. package/dist/commonjs/utils/SharedKeyComparator.js.map +1 -0
  625. package/dist/commonjs/utils/constants.d.ts +70 -0
  626. package/dist/commonjs/utils/constants.d.ts.map +1 -0
  627. package/dist/commonjs/utils/constants.js +229 -0
  628. package/dist/commonjs/utils/constants.js.map +1 -0
  629. package/dist/commonjs/utils/tracing.d.ts +6 -0
  630. package/dist/commonjs/utils/tracing.d.ts.map +1 -0
  631. package/dist/commonjs/utils/tracing.js +17 -0
  632. package/dist/commonjs/utils/tracing.js.map +1 -0
  633. package/dist/commonjs/utils/utils.common.d.ts +323 -0
  634. package/dist/commonjs/utils/utils.common.d.ts.map +1 -0
  635. package/dist/commonjs/utils/utils.common.js +794 -0
  636. package/dist/commonjs/utils/utils.common.js.map +1 -0
  637. package/dist/commonjs/utils/utils.d.ts +46 -0
  638. package/dist/commonjs/utils/utils.d.ts.map +1 -0
  639. package/dist/commonjs/utils/utils.js +140 -0
  640. package/dist/commonjs/utils/utils.js.map +1 -0
  641. package/dist/esm/BatchResponse.d.ts +49 -0
  642. package/dist/esm/BatchResponse.d.ts.map +1 -0
  643. package/dist/esm/BatchResponse.js +4 -0
  644. package/dist/esm/BatchResponse.js.map +1 -0
  645. package/dist/esm/BatchResponseParser.d.ts +16 -0
  646. package/dist/esm/BatchResponseParser.d.ts.map +1 -0
  647. package/dist/esm/BatchResponseParser.js +137 -0
  648. package/dist/esm/BatchResponseParser.js.map +1 -0
  649. package/dist/esm/BatchUtils.d.ts +4 -0
  650. package/dist/esm/BatchUtils.d.ts.map +1 -0
  651. package/dist/esm/BatchUtils.js +15 -0
  652. package/dist/esm/BatchUtils.js.map +1 -0
  653. package/dist/esm/BlobBatch.d.ts +112 -0
  654. package/dist/esm/BlobBatch.d.ts.map +1 -0
  655. package/dist/esm/BlobBatch.js +267 -0
  656. package/dist/esm/BlobBatch.js.map +1 -0
  657. package/dist/esm/BlobBatchClient.d.ts +181 -0
  658. package/dist/esm/BlobBatchClient.d.ts.map +1 -0
  659. package/dist/esm/BlobBatchClient.js +169 -0
  660. package/dist/esm/BlobBatchClient.js.map +1 -0
  661. package/dist/esm/BlobDownloadResponse.d.ts +369 -0
  662. package/dist/esm/BlobDownloadResponse.d.ts.map +1 -0
  663. package/dist/esm/BlobDownloadResponse.js +463 -0
  664. package/dist/esm/BlobDownloadResponse.js.map +1 -0
  665. package/dist/esm/BlobLeaseClient.d.ts +159 -0
  666. package/dist/esm/BlobLeaseClient.d.ts.map +1 -0
  667. package/dist/esm/BlobLeaseClient.js +192 -0
  668. package/dist/esm/BlobLeaseClient.js.map +1 -0
  669. package/dist/esm/BlobQueryResponse.d.ts +294 -0
  670. package/dist/esm/BlobQueryResponse.d.ts.map +1 -0
  671. package/dist/esm/BlobQueryResponse.js +367 -0
  672. package/dist/esm/BlobQueryResponse.js.map +1 -0
  673. package/dist/esm/BlobServiceClient.d.ts +649 -0
  674. package/dist/esm/BlobServiceClient.d.ts.map +1 -0
  675. package/dist/esm/BlobServiceClient.js +698 -0
  676. package/dist/esm/BlobServiceClient.js.map +1 -0
  677. package/dist/esm/Clients.d.ts +3229 -0
  678. package/dist/esm/Clients.d.ts.map +1 -0
  679. package/dist/esm/Clients.js +2689 -0
  680. package/dist/esm/Clients.js.map +1 -0
  681. package/dist/esm/ContainerClient.d.ts +1101 -0
  682. package/dist/esm/ContainerClient.d.ts.map +1 -0
  683. package/dist/esm/ContainerClient.js +1247 -0
  684. package/dist/esm/ContainerClient.js.map +1 -0
  685. package/dist/esm/PageBlobRangeResponse.d.ts +35 -0
  686. package/dist/esm/PageBlobRangeResponse.d.ts.map +1 -0
  687. package/dist/esm/PageBlobRangeResponse.js +24 -0
  688. package/dist/esm/PageBlobRangeResponse.js.map +1 -0
  689. package/dist/esm/Pipeline.d.ts +136 -0
  690. package/dist/esm/Pipeline.d.ts.map +1 -0
  691. package/dist/esm/Pipeline.js +261 -0
  692. package/dist/esm/Pipeline.js.map +1 -0
  693. package/dist/esm/Range.d.ts +24 -0
  694. package/dist/esm/Range.d.ts.map +1 -0
  695. package/dist/esm/Range.js +21 -0
  696. package/dist/esm/Range.js.map +1 -0
  697. package/dist/esm/StorageBrowserPolicyFactory.d.ts +16 -0
  698. package/dist/esm/StorageBrowserPolicyFactory.d.ts.map +1 -0
  699. package/dist/esm/StorageBrowserPolicyFactory.js +19 -0
  700. package/dist/esm/StorageBrowserPolicyFactory.js.map +1 -0
  701. package/dist/esm/StorageClient.d.ts +51 -0
  702. package/dist/esm/StorageClient.d.ts.map +1 -0
  703. package/dist/esm/StorageClient.js +29 -0
  704. package/dist/esm/StorageClient.js.map +1 -0
  705. package/dist/esm/StorageContextClient.d.ts +9 -0
  706. package/dist/esm/StorageContextClient.d.ts.map +1 -0
  707. package/dist/esm/StorageContextClient.js +17 -0
  708. package/dist/esm/StorageContextClient.js.map +1 -0
  709. package/dist/esm/StorageRetryPolicyFactory.d.ts +66 -0
  710. package/dist/esm/StorageRetryPolicyFactory.d.ts.map +1 -0
  711. package/dist/esm/StorageRetryPolicyFactory.js +27 -0
  712. package/dist/esm/StorageRetryPolicyFactory.js.map +1 -0
  713. package/dist/esm/credentials/AnonymousCredential.d.ts +19 -0
  714. package/dist/esm/credentials/AnonymousCredential.d.ts.map +1 -0
  715. package/dist/esm/credentials/AnonymousCredential.js +22 -0
  716. package/dist/esm/credentials/AnonymousCredential.js.map +1 -0
  717. package/dist/esm/credentials/Credential.d.ts +20 -0
  718. package/dist/esm/credentials/Credential.d.ts.map +1 -0
  719. package/dist/esm/credentials/Credential.js +18 -0
  720. package/dist/esm/credentials/Credential.js.map +1 -0
  721. package/dist/esm/credentials/StorageSharedKeyCredential.d.ts +38 -0
  722. package/dist/esm/credentials/StorageSharedKeyCredential.d.ts.map +1 -0
  723. package/dist/esm/credentials/StorageSharedKeyCredential.js +40 -0
  724. package/dist/esm/credentials/StorageSharedKeyCredential.js.map +1 -0
  725. package/dist/esm/credentials/UserDelegationKeyCredential.d.ts +34 -0
  726. package/dist/esm/credentials/UserDelegationKeyCredential.d.ts.map +1 -0
  727. package/dist/esm/credentials/UserDelegationKeyCredential.js +31 -0
  728. package/dist/esm/credentials/UserDelegationKeyCredential.js.map +1 -0
  729. package/dist/esm/generated/src/index.d.ts +4 -0
  730. package/dist/esm/generated/src/index.d.ts.map +1 -0
  731. package/dist/esm/generated/src/index.js +11 -0
  732. package/dist/esm/generated/src/index.js.map +1 -0
  733. package/dist/esm/generated/src/models/index.d.ts +3944 -0
  734. package/dist/esm/generated/src/models/index.d.ts.map +1 -0
  735. package/dist/esm/generated/src/models/index.js +264 -0
  736. package/dist/esm/generated/src/models/index.js.map +1 -0
  737. package/dist/esm/generated/src/models/mappers.d.ts +181 -0
  738. package/dist/esm/generated/src/models/mappers.d.ts.map +1 -0
  739. package/dist/esm/generated/src/models/mappers.js +8225 -0
  740. package/dist/esm/generated/src/models/mappers.js.map +1 -0
  741. package/dist/esm/generated/src/models/parameters.d.ts +147 -0
  742. package/dist/esm/generated/src/models/parameters.d.ts.map +1 -0
  743. package/dist/esm/generated/src/models/parameters.js +1620 -0
  744. package/dist/esm/generated/src/models/parameters.js.map +1 -0
  745. package/dist/esm/generated/src/operations/appendBlob.d.ts +45 -0
  746. package/dist/esm/generated/src/operations/appendBlob.d.ts.map +1 -0
  747. package/dist/esm/generated/src/operations/appendBlob.js +222 -0
  748. package/dist/esm/generated/src/operations/appendBlob.js.map +1 -0
  749. package/dist/esm/generated/src/operations/blob.d.ts +178 -0
  750. package/dist/esm/generated/src/operations/blob.d.ts.map +1 -0
  751. package/dist/esm/generated/src/operations/blob.js +1021 -0
  752. package/dist/esm/generated/src/operations/blob.js.map +1 -0
  753. package/dist/esm/generated/src/operations/blockBlob.d.ts +79 -0
  754. package/dist/esm/generated/src/operations/blockBlob.d.ts.map +1 -0
  755. package/dist/esm/generated/src/operations/blockBlob.js +367 -0
  756. package/dist/esm/generated/src/operations/blockBlob.js.map +1 -0
  757. package/dist/esm/generated/src/operations/container.d.ts +130 -0
  758. package/dist/esm/generated/src/operations/container.d.ts.map +1 -0
  759. package/dist/esm/generated/src/operations/container.js +713 -0
  760. package/dist/esm/generated/src/operations/container.js.map +1 -0
  761. package/dist/esm/generated/src/operations/index.d.ts +7 -0
  762. package/dist/esm/generated/src/operations/index.d.ts.map +1 -0
  763. package/dist/esm/generated/src/operations/index.js +14 -0
  764. package/dist/esm/generated/src/operations/index.js.map +1 -0
  765. package/dist/esm/generated/src/operations/pageBlob.d.ts +87 -0
  766. package/dist/esm/generated/src/operations/pageBlob.d.ts.map +1 -0
  767. package/dist/esm/generated/src/operations/pageBlob.js +457 -0
  768. package/dist/esm/generated/src/operations/pageBlob.js.map +1 -0
  769. package/dist/esm/generated/src/operations/service.d.ts +67 -0
  770. package/dist/esm/generated/src/operations/service.d.ts.map +1 -0
  771. package/dist/esm/generated/src/operations/service.js +323 -0
  772. package/dist/esm/generated/src/operations/service.js.map +1 -0
  773. package/dist/esm/generated/src/operationsInterfaces/appendBlob.d.ts +37 -0
  774. package/dist/esm/generated/src/operationsInterfaces/appendBlob.d.ts.map +1 -0
  775. package/dist/esm/generated/src/operationsInterfaces/appendBlob.js +9 -0
  776. package/dist/esm/generated/src/operationsInterfaces/appendBlob.js.map +1 -0
  777. package/dist/esm/generated/src/operationsInterfaces/blob.d.ts +170 -0
  778. package/dist/esm/generated/src/operationsInterfaces/blob.d.ts.map +1 -0
  779. package/dist/esm/generated/src/operationsInterfaces/blob.js +9 -0
  780. package/dist/esm/generated/src/operationsInterfaces/blob.js.map +1 -0
  781. package/dist/esm/generated/src/operationsInterfaces/blockBlob.d.ts +71 -0
  782. package/dist/esm/generated/src/operationsInterfaces/blockBlob.d.ts.map +1 -0
  783. package/dist/esm/generated/src/operationsInterfaces/blockBlob.js +9 -0
  784. package/dist/esm/generated/src/operationsInterfaces/blockBlob.js.map +1 -0
  785. package/dist/esm/generated/src/operationsInterfaces/container.d.ts +122 -0
  786. package/dist/esm/generated/src/operationsInterfaces/container.d.ts.map +1 -0
  787. package/dist/esm/generated/src/operationsInterfaces/container.js +9 -0
  788. package/dist/esm/generated/src/operationsInterfaces/container.js.map +1 -0
  789. package/dist/esm/generated/src/operationsInterfaces/index.d.ts +7 -0
  790. package/dist/esm/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  791. package/dist/esm/generated/src/operationsInterfaces/index.js +14 -0
  792. package/dist/esm/generated/src/operationsInterfaces/index.js.map +1 -0
  793. package/dist/esm/generated/src/operationsInterfaces/pageBlob.d.ts +79 -0
  794. package/dist/esm/generated/src/operationsInterfaces/pageBlob.d.ts.map +1 -0
  795. package/dist/esm/generated/src/operationsInterfaces/pageBlob.js +9 -0
  796. package/dist/esm/generated/src/operationsInterfaces/pageBlob.js.map +1 -0
  797. package/dist/esm/generated/src/operationsInterfaces/service.d.ts +59 -0
  798. package/dist/esm/generated/src/operationsInterfaces/service.d.ts.map +1 -0
  799. package/dist/esm/generated/src/operationsInterfaces/service.js +9 -0
  800. package/dist/esm/generated/src/operationsInterfaces/service.js.map +1 -0
  801. package/dist/esm/generated/src/storageClient.d.ts +21 -0
  802. package/dist/esm/generated/src/storageClient.d.ts.map +1 -0
  803. package/dist/esm/generated/src/storageClient.js +49 -0
  804. package/dist/esm/generated/src/storageClient.js.map +1 -0
  805. package/dist/esm/generatedModels.d.ts +199 -0
  806. package/dist/esm/generatedModels.d.ts.map +1 -0
  807. package/dist/esm/generatedModels.js +8 -0
  808. package/dist/esm/generatedModels.js.map +1 -0
  809. package/dist/esm/index.d.ts +46 -0
  810. package/dist/esm/index.d.ts.map +1 -0
  811. package/dist/esm/index.js +41 -0
  812. package/dist/esm/index.js.map +1 -0
  813. package/dist/esm/internal-avro/AvroConstants.d.ts +5 -0
  814. package/dist/esm/internal-avro/AvroConstants.d.ts.map +1 -0
  815. package/dist/esm/internal-avro/AvroConstants.js +7 -0
  816. package/dist/esm/internal-avro/AvroConstants.js.map +1 -0
  817. package/dist/esm/internal-avro/AvroParser.d.ts +57 -0
  818. package/dist/esm/internal-avro/AvroParser.d.ts.map +1 -0
  819. package/dist/esm/internal-avro/AvroParser.js +317 -0
  820. package/dist/esm/internal-avro/AvroParser.js.map +1 -0
  821. package/dist/esm/internal-avro/AvroReadable.d.ts +16 -0
  822. package/dist/esm/internal-avro/AvroReadable.d.ts.map +1 -0
  823. package/dist/esm/internal-avro/AvroReadable.js +5 -0
  824. package/dist/esm/internal-avro/AvroReadable.js.map +1 -0
  825. package/dist/esm/internal-avro/AvroReadableFromBlob.d.ts +10 -0
  826. package/dist/esm/internal-avro/AvroReadableFromBlob.d.ts.map +1 -0
  827. package/dist/esm/internal-avro/AvroReadableFromBlob.js +47 -0
  828. package/dist/esm/internal-avro/AvroReadableFromBlob.js.map +1 -0
  829. package/dist/esm/internal-avro/AvroReadableFromStream.d.ts +11 -0
  830. package/dist/esm/internal-avro/AvroReadableFromStream.d.ts.map +1 -0
  831. package/dist/esm/internal-avro/AvroReadableFromStream.js +85 -0
  832. package/dist/esm/internal-avro/AvroReadableFromStream.js.map +1 -0
  833. package/dist/esm/internal-avro/AvroReader.d.ts +32 -0
  834. package/dist/esm/internal-avro/AvroReader.d.ts.map +1 -0
  835. package/dist/esm/internal-avro/AvroReader.js +106 -0
  836. package/dist/esm/internal-avro/AvroReader.js.map +1 -0
  837. package/dist/esm/internal-avro/index.d.ts +4 -0
  838. package/dist/esm/internal-avro/index.d.ts.map +1 -0
  839. package/dist/esm/internal-avro/index.js +6 -0
  840. package/dist/esm/internal-avro/index.js.map +1 -0
  841. package/dist/esm/internal-avro/utils/utils.common.d.ts +6 -0
  842. package/dist/esm/internal-avro/utils/utils.common.d.ts.map +1 -0
  843. package/dist/esm/internal-avro/utils/utils.common.js +16 -0
  844. package/dist/esm/internal-avro/utils/utils.common.js.map +1 -0
  845. package/dist/esm/log.d.ts +5 -0
  846. package/dist/esm/log.d.ts.map +1 -0
  847. package/dist/esm/log.js +8 -0
  848. package/dist/esm/log.js.map +1 -0
  849. package/dist/esm/models.d.ts +333 -0
  850. package/dist/esm/models.d.ts.map +1 -0
  851. package/dist/esm/models.js +115 -0
  852. package/dist/esm/models.js.map +1 -0
  853. package/dist/esm/package.json +3 -0
  854. package/dist/esm/policies/AnonymousCredentialPolicy.d.ts +15 -0
  855. package/dist/esm/policies/AnonymousCredentialPolicy.d.ts.map +1 -0
  856. package/dist/esm/policies/AnonymousCredentialPolicy.js +20 -0
  857. package/dist/esm/policies/AnonymousCredentialPolicy.js.map +1 -0
  858. package/dist/esm/policies/CredentialPolicy.d.ts +22 -0
  859. package/dist/esm/policies/CredentialPolicy.d.ts.map +1 -0
  860. package/dist/esm/policies/CredentialPolicy.js +29 -0
  861. package/dist/esm/policies/CredentialPolicy.js.map +1 -0
  862. package/dist/esm/policies/RequestPolicy.d.ts +45 -0
  863. package/dist/esm/policies/RequestPolicy.d.ts.map +1 -0
  864. package/dist/esm/policies/RequestPolicy.js +40 -0
  865. package/dist/esm/policies/RequestPolicy.js.map +1 -0
  866. package/dist/esm/policies/StorageBrowserPolicy.d.ts +28 -0
  867. package/dist/esm/policies/StorageBrowserPolicy.d.ts.map +1 -0
  868. package/dist/esm/policies/StorageBrowserPolicy.js +47 -0
  869. package/dist/esm/policies/StorageBrowserPolicy.js.map +1 -0
  870. package/dist/esm/policies/StorageBrowserPolicyV2.d.ts +11 -0
  871. package/dist/esm/policies/StorageBrowserPolicyV2.d.ts.map +1 -0
  872. package/dist/esm/policies/StorageBrowserPolicyV2.js +31 -0
  873. package/dist/esm/policies/StorageBrowserPolicyV2.js.map +1 -0
  874. package/dist/esm/policies/StorageCorrectContentLengthPolicy.d.ts +10 -0
  875. package/dist/esm/policies/StorageCorrectContentLengthPolicy.d.ts.map +1 -0
  876. package/dist/esm/policies/StorageCorrectContentLengthPolicy.js +27 -0
  877. package/dist/esm/policies/StorageCorrectContentLengthPolicy.js.map +1 -0
  878. package/dist/esm/policies/StorageRetryPolicy.d.ts +62 -0
  879. package/dist/esm/policies/StorageRetryPolicy.d.ts.map +1 -0
  880. package/dist/esm/policies/StorageRetryPolicy.js +216 -0
  881. package/dist/esm/policies/StorageRetryPolicy.js.map +1 -0
  882. package/dist/esm/policies/StorageRetryPolicyType.d.ts +14 -0
  883. package/dist/esm/policies/StorageRetryPolicyType.d.ts.map +1 -0
  884. package/dist/esm/policies/StorageRetryPolicyType.js +17 -0
  885. package/dist/esm/policies/StorageRetryPolicyType.js.map +1 -0
  886. package/dist/esm/policies/StorageRetryPolicyV2.d.ts +11 -0
  887. package/dist/esm/policies/StorageRetryPolicyV2.d.ts.map +1 -0
  888. package/dist/esm/policies/StorageRetryPolicyV2.js +167 -0
  889. package/dist/esm/policies/StorageRetryPolicyV2.js.map +1 -0
  890. package/dist/esm/policies/StorageSharedKeyCredentialPolicy.d.ts +54 -0
  891. package/dist/esm/policies/StorageSharedKeyCredentialPolicy.d.ts.map +1 -0
  892. package/dist/esm/policies/StorageSharedKeyCredentialPolicy.js +141 -0
  893. package/dist/esm/policies/StorageSharedKeyCredentialPolicy.js.map +1 -0
  894. package/dist/esm/policies/StorageSharedKeyCredentialPolicyV2.d.ts +17 -0
  895. package/dist/esm/policies/StorageSharedKeyCredentialPolicyV2.d.ts.map +1 -0
  896. package/dist/esm/policies/StorageSharedKeyCredentialPolicyV2.js +132 -0
  897. package/dist/esm/policies/StorageSharedKeyCredentialPolicyV2.js.map +1 -0
  898. package/dist/esm/pollers/BlobStartCopyFromUrlPoller.d.ts +74 -0
  899. package/dist/esm/pollers/BlobStartCopyFromUrlPoller.d.ts.map +1 -0
  900. package/dist/esm/pollers/BlobStartCopyFromUrlPoller.js +130 -0
  901. package/dist/esm/pollers/BlobStartCopyFromUrlPoller.js.map +1 -0
  902. package/dist/esm/sas/AccountSASPermissions.d.ts +146 -0
  903. package/dist/esm/sas/AccountSASPermissions.d.ts.map +1 -0
  904. package/dist/esm/sas/AccountSASPermissions.js +227 -0
  905. package/dist/esm/sas/AccountSASPermissions.js.map +1 -0
  906. package/dist/esm/sas/AccountSASResourceTypes.d.ts +38 -0
  907. package/dist/esm/sas/AccountSASResourceTypes.d.ts.map +1 -0
  908. package/dist/esm/sas/AccountSASResourceTypes.js +72 -0
  909. package/dist/esm/sas/AccountSASResourceTypes.js.map +1 -0
  910. package/dist/esm/sas/AccountSASServices.d.ts +40 -0
  911. package/dist/esm/sas/AccountSASServices.d.ts.map +1 -0
  912. package/dist/esm/sas/AccountSASServices.js +80 -0
  913. package/dist/esm/sas/AccountSASServices.js.map +1 -0
  914. package/dist/esm/sas/AccountSASSignatureValues.d.ts +78 -0
  915. package/dist/esm/sas/AccountSASSignatureValues.d.ts.map +1 -0
  916. package/dist/esm/sas/AccountSASSignatureValues.js +100 -0
  917. package/dist/esm/sas/AccountSASSignatureValues.js.map +1 -0
  918. package/dist/esm/sas/BlobSASPermissions.d.ts +127 -0
  919. package/dist/esm/sas/BlobSASPermissions.d.ts.map +1 -0
  920. package/dist/esm/sas/BlobSASPermissions.js +195 -0
  921. package/dist/esm/sas/BlobSASPermissions.js.map +1 -0
  922. package/dist/esm/sas/BlobSASSignatureValues.d.ts +284 -0
  923. package/dist/esm/sas/BlobSASSignatureValues.d.ts.map +1 -0
  924. package/dist/esm/sas/BlobSASSignatureValues.js +666 -0
  925. package/dist/esm/sas/BlobSASSignatureValues.js.map +1 -0
  926. package/dist/esm/sas/ContainerSASPermissions.d.ts +143 -0
  927. package/dist/esm/sas/ContainerSASPermissions.d.ts.map +1 -0
  928. package/dist/esm/sas/ContainerSASPermissions.js +221 -0
  929. package/dist/esm/sas/ContainerSASPermissions.js.map +1 -0
  930. package/dist/esm/sas/SASQueryParameters.d.ts +285 -0
  931. package/dist/esm/sas/SASQueryParameters.d.ts.map +1 -0
  932. package/dist/esm/sas/SASQueryParameters.js +234 -0
  933. package/dist/esm/sas/SASQueryParameters.js.map +1 -0
  934. package/dist/esm/sas/SasIPRange.d.ts +24 -0
  935. package/dist/esm/sas/SasIPRange.d.ts.map +1 -0
  936. package/dist/esm/sas/SasIPRange.js +13 -0
  937. package/dist/esm/sas/SasIPRange.js.map +1 -0
  938. package/dist/esm/utils/Batch.d.ts +68 -0
  939. package/dist/esm/utils/Batch.d.ts.map +1 -0
  940. package/dist/esm/utils/Batch.js +122 -0
  941. package/dist/esm/utils/Batch.js.map +1 -0
  942. package/dist/esm/utils/BlobQuickQueryStream.d.ts +42 -0
  943. package/dist/esm/utils/BlobQuickQueryStream.d.ts.map +1 -0
  944. package/dist/esm/utils/BlobQuickQueryStream.js +111 -0
  945. package/dist/esm/utils/BlobQuickQueryStream.js.map +1 -0
  946. package/dist/esm/utils/Mutex.d.ts +23 -0
  947. package/dist/esm/utils/Mutex.d.ts.map +1 -0
  948. package/dist/esm/utils/Mutex.js +65 -0
  949. package/dist/esm/utils/Mutex.js.map +1 -0
  950. package/dist/esm/utils/RetriableReadableStream.d.ts +62 -0
  951. package/dist/esm/utils/RetriableReadableStream.d.ts.map +1 -0
  952. package/dist/esm/utils/RetriableReadableStream.js +119 -0
  953. package/dist/esm/utils/RetriableReadableStream.js.map +1 -0
  954. package/dist/esm/utils/SharedKeyComparator.d.ts +2 -0
  955. package/dist/esm/utils/SharedKeyComparator.d.ts.map +1 -0
  956. package/dist/esm/utils/SharedKeyComparator.js +73 -0
  957. package/dist/esm/utils/SharedKeyComparator.js.map +1 -0
  958. package/dist/esm/utils/constants.d.ts +70 -0
  959. package/dist/esm/utils/constants.d.ts.map +1 -0
  960. package/dist/esm/utils/constants.js +226 -0
  961. package/dist/esm/utils/constants.js.map +1 -0
  962. package/dist/esm/utils/tracing.d.ts +6 -0
  963. package/dist/esm/utils/tracing.d.ts.map +1 -0
  964. package/dist/esm/utils/tracing.js +14 -0
  965. package/dist/esm/utils/tracing.js.map +1 -0
  966. package/dist/esm/utils/utils.common.d.ts +323 -0
  967. package/dist/esm/utils/utils.common.d.ts.map +1 -0
  968. package/dist/esm/utils/utils.common.js +756 -0
  969. package/dist/esm/utils/utils.common.js.map +1 -0
  970. package/dist/esm/utils/utils.d.ts +46 -0
  971. package/dist/esm/utils/utils.d.ts.map +1 -0
  972. package/dist/esm/utils/utils.js +132 -0
  973. package/dist/esm/utils/utils.js.map +1 -0
  974. package/dist/react-native/BatchResponse.d.ts +49 -0
  975. package/dist/react-native/BatchResponse.d.ts.map +1 -0
  976. package/dist/react-native/BatchResponse.js +4 -0
  977. package/dist/react-native/BatchResponse.js.map +1 -0
  978. package/dist/react-native/BatchResponseParser.d.ts +16 -0
  979. package/dist/react-native/BatchResponseParser.d.ts.map +1 -0
  980. package/dist/react-native/BatchResponseParser.js +137 -0
  981. package/dist/react-native/BatchResponseParser.js.map +1 -0
  982. package/dist/react-native/BatchUtils.d.ts +4 -0
  983. package/dist/react-native/BatchUtils.d.ts.map +1 -0
  984. package/dist/react-native/BatchUtils.js +15 -0
  985. package/dist/react-native/BatchUtils.js.map +1 -0
  986. package/dist/react-native/BlobBatch.d.ts +112 -0
  987. package/dist/react-native/BlobBatch.d.ts.map +1 -0
  988. package/dist/react-native/BlobBatch.js +267 -0
  989. package/dist/react-native/BlobBatch.js.map +1 -0
  990. package/dist/react-native/BlobBatchClient.d.ts +181 -0
  991. package/dist/react-native/BlobBatchClient.d.ts.map +1 -0
  992. package/dist/react-native/BlobBatchClient.js +169 -0
  993. package/dist/react-native/BlobBatchClient.js.map +1 -0
  994. package/dist/react-native/BlobDownloadResponse.d.ts +369 -0
  995. package/dist/react-native/BlobDownloadResponse.d.ts.map +1 -0
  996. package/dist/react-native/BlobDownloadResponse.js +463 -0
  997. package/dist/react-native/BlobDownloadResponse.js.map +1 -0
  998. package/dist/react-native/BlobLeaseClient.d.ts +159 -0
  999. package/dist/react-native/BlobLeaseClient.d.ts.map +1 -0
  1000. package/dist/react-native/BlobLeaseClient.js +192 -0
  1001. package/dist/react-native/BlobLeaseClient.js.map +1 -0
  1002. package/dist/react-native/BlobQueryResponse.d.ts +294 -0
  1003. package/dist/react-native/BlobQueryResponse.d.ts.map +1 -0
  1004. package/dist/react-native/BlobQueryResponse.js +367 -0
  1005. package/dist/react-native/BlobQueryResponse.js.map +1 -0
  1006. package/dist/react-native/BlobServiceClient.d.ts +649 -0
  1007. package/dist/react-native/BlobServiceClient.d.ts.map +1 -0
  1008. package/dist/react-native/BlobServiceClient.js +698 -0
  1009. package/dist/react-native/BlobServiceClient.js.map +1 -0
  1010. package/dist/react-native/Clients.d.ts +3229 -0
  1011. package/dist/react-native/Clients.d.ts.map +1 -0
  1012. package/dist/react-native/Clients.js +2689 -0
  1013. package/dist/react-native/Clients.js.map +1 -0
  1014. package/dist/react-native/ContainerClient.d.ts +1101 -0
  1015. package/dist/react-native/ContainerClient.d.ts.map +1 -0
  1016. package/dist/react-native/ContainerClient.js +1247 -0
  1017. package/dist/react-native/ContainerClient.js.map +1 -0
  1018. package/dist/react-native/PageBlobRangeResponse.d.ts +35 -0
  1019. package/dist/react-native/PageBlobRangeResponse.d.ts.map +1 -0
  1020. package/dist/react-native/PageBlobRangeResponse.js +24 -0
  1021. package/dist/react-native/PageBlobRangeResponse.js.map +1 -0
  1022. package/dist/react-native/Pipeline.d.ts +136 -0
  1023. package/dist/react-native/Pipeline.d.ts.map +1 -0
  1024. package/dist/react-native/Pipeline.js +261 -0
  1025. package/dist/react-native/Pipeline.js.map +1 -0
  1026. package/dist/react-native/Range.d.ts +24 -0
  1027. package/dist/react-native/Range.d.ts.map +1 -0
  1028. package/dist/react-native/Range.js +21 -0
  1029. package/dist/react-native/Range.js.map +1 -0
  1030. package/dist/react-native/StorageBrowserPolicyFactory.d.ts +16 -0
  1031. package/dist/react-native/StorageBrowserPolicyFactory.d.ts.map +1 -0
  1032. package/dist/react-native/StorageBrowserPolicyFactory.js +19 -0
  1033. package/dist/react-native/StorageBrowserPolicyFactory.js.map +1 -0
  1034. package/dist/react-native/StorageClient.d.ts +51 -0
  1035. package/dist/react-native/StorageClient.d.ts.map +1 -0
  1036. package/dist/react-native/StorageClient.js +29 -0
  1037. package/dist/react-native/StorageClient.js.map +1 -0
  1038. package/dist/react-native/StorageContextClient.d.ts +9 -0
  1039. package/dist/react-native/StorageContextClient.d.ts.map +1 -0
  1040. package/dist/react-native/StorageContextClient.js +17 -0
  1041. package/dist/react-native/StorageContextClient.js.map +1 -0
  1042. package/dist/react-native/StorageRetryPolicyFactory.d.ts +66 -0
  1043. package/dist/react-native/StorageRetryPolicyFactory.d.ts.map +1 -0
  1044. package/dist/react-native/StorageRetryPolicyFactory.js +27 -0
  1045. package/dist/react-native/StorageRetryPolicyFactory.js.map +1 -0
  1046. package/dist/react-native/credentials/AnonymousCredential.d.ts +19 -0
  1047. package/dist/react-native/credentials/AnonymousCredential.d.ts.map +1 -0
  1048. package/dist/react-native/credentials/AnonymousCredential.js +22 -0
  1049. package/dist/react-native/credentials/AnonymousCredential.js.map +1 -0
  1050. package/dist/react-native/credentials/Credential.d.ts +20 -0
  1051. package/dist/react-native/credentials/Credential.d.ts.map +1 -0
  1052. package/dist/react-native/credentials/Credential.js +18 -0
  1053. package/dist/react-native/credentials/Credential.js.map +1 -0
  1054. package/dist/react-native/credentials/StorageSharedKeyCredential.d.ts +38 -0
  1055. package/dist/react-native/credentials/StorageSharedKeyCredential.d.ts.map +1 -0
  1056. package/dist/react-native/credentials/StorageSharedKeyCredential.js +40 -0
  1057. package/dist/react-native/credentials/StorageSharedKeyCredential.js.map +1 -0
  1058. package/dist/react-native/credentials/UserDelegationKeyCredential.d.ts +34 -0
  1059. package/dist/react-native/credentials/UserDelegationKeyCredential.d.ts.map +1 -0
  1060. package/dist/react-native/credentials/UserDelegationKeyCredential.js +31 -0
  1061. package/dist/react-native/credentials/UserDelegationKeyCredential.js.map +1 -0
  1062. package/dist/react-native/generated/src/index.d.ts +4 -0
  1063. package/dist/react-native/generated/src/index.d.ts.map +1 -0
  1064. package/dist/react-native/generated/src/index.js +11 -0
  1065. package/dist/react-native/generated/src/index.js.map +1 -0
  1066. package/dist/react-native/generated/src/models/index.d.ts +3944 -0
  1067. package/dist/react-native/generated/src/models/index.d.ts.map +1 -0
  1068. package/dist/react-native/generated/src/models/index.js +264 -0
  1069. package/dist/react-native/generated/src/models/index.js.map +1 -0
  1070. package/dist/react-native/generated/src/models/mappers.d.ts +181 -0
  1071. package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -0
  1072. package/dist/react-native/generated/src/models/mappers.js +8225 -0
  1073. package/dist/react-native/generated/src/models/mappers.js.map +1 -0
  1074. package/dist/react-native/generated/src/models/parameters.d.ts +147 -0
  1075. package/dist/react-native/generated/src/models/parameters.d.ts.map +1 -0
  1076. package/dist/react-native/generated/src/models/parameters.js +1620 -0
  1077. package/dist/react-native/generated/src/models/parameters.js.map +1 -0
  1078. package/dist/react-native/generated/src/operations/appendBlob.d.ts +45 -0
  1079. package/dist/react-native/generated/src/operations/appendBlob.d.ts.map +1 -0
  1080. package/dist/react-native/generated/src/operations/appendBlob.js +222 -0
  1081. package/dist/react-native/generated/src/operations/appendBlob.js.map +1 -0
  1082. package/dist/react-native/generated/src/operations/blob.d.ts +178 -0
  1083. package/dist/react-native/generated/src/operations/blob.d.ts.map +1 -0
  1084. package/dist/react-native/generated/src/operations/blob.js +1021 -0
  1085. package/dist/react-native/generated/src/operations/blob.js.map +1 -0
  1086. package/dist/react-native/generated/src/operations/blockBlob.d.ts +79 -0
  1087. package/dist/react-native/generated/src/operations/blockBlob.d.ts.map +1 -0
  1088. package/dist/react-native/generated/src/operations/blockBlob.js +367 -0
  1089. package/dist/react-native/generated/src/operations/blockBlob.js.map +1 -0
  1090. package/dist/react-native/generated/src/operations/container.d.ts +130 -0
  1091. package/dist/react-native/generated/src/operations/container.d.ts.map +1 -0
  1092. package/dist/react-native/generated/src/operations/container.js +713 -0
  1093. package/dist/react-native/generated/src/operations/container.js.map +1 -0
  1094. package/dist/react-native/generated/src/operations/index.d.ts +7 -0
  1095. package/dist/react-native/generated/src/operations/index.d.ts.map +1 -0
  1096. package/dist/react-native/generated/src/operations/index.js +14 -0
  1097. package/dist/react-native/generated/src/operations/index.js.map +1 -0
  1098. package/dist/react-native/generated/src/operations/pageBlob.d.ts +87 -0
  1099. package/dist/react-native/generated/src/operations/pageBlob.d.ts.map +1 -0
  1100. package/dist/react-native/generated/src/operations/pageBlob.js +457 -0
  1101. package/dist/react-native/generated/src/operations/pageBlob.js.map +1 -0
  1102. package/dist/react-native/generated/src/operations/service.d.ts +67 -0
  1103. package/dist/react-native/generated/src/operations/service.d.ts.map +1 -0
  1104. package/dist/react-native/generated/src/operations/service.js +323 -0
  1105. package/dist/react-native/generated/src/operations/service.js.map +1 -0
  1106. package/dist/react-native/generated/src/operationsInterfaces/appendBlob.d.ts +37 -0
  1107. package/dist/react-native/generated/src/operationsInterfaces/appendBlob.d.ts.map +1 -0
  1108. package/dist/react-native/generated/src/operationsInterfaces/appendBlob.js +9 -0
  1109. package/dist/react-native/generated/src/operationsInterfaces/appendBlob.js.map +1 -0
  1110. package/dist/react-native/generated/src/operationsInterfaces/blob.d.ts +170 -0
  1111. package/dist/react-native/generated/src/operationsInterfaces/blob.d.ts.map +1 -0
  1112. package/dist/react-native/generated/src/operationsInterfaces/blob.js +9 -0
  1113. package/dist/react-native/generated/src/operationsInterfaces/blob.js.map +1 -0
  1114. package/dist/react-native/generated/src/operationsInterfaces/blockBlob.d.ts +71 -0
  1115. package/dist/react-native/generated/src/operationsInterfaces/blockBlob.d.ts.map +1 -0
  1116. package/dist/react-native/generated/src/operationsInterfaces/blockBlob.js +9 -0
  1117. package/dist/react-native/generated/src/operationsInterfaces/blockBlob.js.map +1 -0
  1118. package/dist/react-native/generated/src/operationsInterfaces/container.d.ts +122 -0
  1119. package/dist/react-native/generated/src/operationsInterfaces/container.d.ts.map +1 -0
  1120. package/dist/react-native/generated/src/operationsInterfaces/container.js +9 -0
  1121. package/dist/react-native/generated/src/operationsInterfaces/container.js.map +1 -0
  1122. package/dist/react-native/generated/src/operationsInterfaces/index.d.ts +7 -0
  1123. package/dist/react-native/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  1124. package/dist/react-native/generated/src/operationsInterfaces/index.js +14 -0
  1125. package/dist/react-native/generated/src/operationsInterfaces/index.js.map +1 -0
  1126. package/dist/react-native/generated/src/operationsInterfaces/pageBlob.d.ts +79 -0
  1127. package/dist/react-native/generated/src/operationsInterfaces/pageBlob.d.ts.map +1 -0
  1128. package/dist/react-native/generated/src/operationsInterfaces/pageBlob.js +9 -0
  1129. package/dist/react-native/generated/src/operationsInterfaces/pageBlob.js.map +1 -0
  1130. package/dist/react-native/generated/src/operationsInterfaces/service.d.ts +59 -0
  1131. package/dist/react-native/generated/src/operationsInterfaces/service.d.ts.map +1 -0
  1132. package/dist/react-native/generated/src/operationsInterfaces/service.js +9 -0
  1133. package/dist/react-native/generated/src/operationsInterfaces/service.js.map +1 -0
  1134. package/dist/react-native/generated/src/storageClient.d.ts +21 -0
  1135. package/dist/react-native/generated/src/storageClient.d.ts.map +1 -0
  1136. package/dist/react-native/generated/src/storageClient.js +49 -0
  1137. package/dist/react-native/generated/src/storageClient.js.map +1 -0
  1138. package/dist/react-native/generatedModels.d.ts +199 -0
  1139. package/dist/react-native/generatedModels.d.ts.map +1 -0
  1140. package/dist/react-native/generatedModels.js +8 -0
  1141. package/dist/react-native/generatedModels.js.map +1 -0
  1142. package/dist/react-native/index.d.ts +46 -0
  1143. package/dist/react-native/index.d.ts.map +1 -0
  1144. package/dist/react-native/index.js +41 -0
  1145. package/dist/react-native/index.js.map +1 -0
  1146. package/dist/react-native/internal-avro/AvroConstants.d.ts +5 -0
  1147. package/dist/react-native/internal-avro/AvroConstants.d.ts.map +1 -0
  1148. package/dist/react-native/internal-avro/AvroConstants.js +7 -0
  1149. package/dist/react-native/internal-avro/AvroConstants.js.map +1 -0
  1150. package/dist/react-native/internal-avro/AvroParser.d.ts +57 -0
  1151. package/dist/react-native/internal-avro/AvroParser.d.ts.map +1 -0
  1152. package/dist/react-native/internal-avro/AvroParser.js +317 -0
  1153. package/dist/react-native/internal-avro/AvroParser.js.map +1 -0
  1154. package/dist/react-native/internal-avro/AvroReadable.d.ts +16 -0
  1155. package/dist/react-native/internal-avro/AvroReadable.d.ts.map +1 -0
  1156. package/dist/react-native/internal-avro/AvroReadable.js +5 -0
  1157. package/dist/react-native/internal-avro/AvroReadable.js.map +1 -0
  1158. package/dist/react-native/internal-avro/AvroReadableFromBlob.d.ts +10 -0
  1159. package/dist/react-native/internal-avro/AvroReadableFromBlob.d.ts.map +1 -0
  1160. package/dist/react-native/internal-avro/AvroReadableFromBlob.js +47 -0
  1161. package/dist/react-native/internal-avro/AvroReadableFromBlob.js.map +1 -0
  1162. package/dist/react-native/internal-avro/AvroReadableFromStream.d.ts +11 -0
  1163. package/dist/react-native/internal-avro/AvroReadableFromStream.d.ts.map +1 -0
  1164. package/dist/react-native/internal-avro/AvroReadableFromStream.js +85 -0
  1165. package/dist/react-native/internal-avro/AvroReadableFromStream.js.map +1 -0
  1166. package/dist/react-native/internal-avro/AvroReader.d.ts +32 -0
  1167. package/dist/react-native/internal-avro/AvroReader.d.ts.map +1 -0
  1168. package/dist/react-native/internal-avro/AvroReader.js +106 -0
  1169. package/dist/react-native/internal-avro/AvroReader.js.map +1 -0
  1170. package/dist/react-native/internal-avro/index.d.ts +4 -0
  1171. package/dist/react-native/internal-avro/index.d.ts.map +1 -0
  1172. package/dist/react-native/internal-avro/index.js +6 -0
  1173. package/dist/react-native/internal-avro/index.js.map +1 -0
  1174. package/dist/react-native/internal-avro/utils/utils.common.d.ts +6 -0
  1175. package/dist/react-native/internal-avro/utils/utils.common.d.ts.map +1 -0
  1176. package/dist/react-native/internal-avro/utils/utils.common.js +16 -0
  1177. package/dist/react-native/internal-avro/utils/utils.common.js.map +1 -0
  1178. package/dist/react-native/log.d.ts +5 -0
  1179. package/dist/react-native/log.d.ts.map +1 -0
  1180. package/dist/react-native/log.js +8 -0
  1181. package/dist/react-native/log.js.map +1 -0
  1182. package/dist/react-native/models.d.ts +333 -0
  1183. package/dist/react-native/models.d.ts.map +1 -0
  1184. package/dist/react-native/models.js +115 -0
  1185. package/dist/react-native/models.js.map +1 -0
  1186. package/dist/react-native/package.json +3 -0
  1187. package/dist/react-native/policies/AnonymousCredentialPolicy.d.ts +15 -0
  1188. package/dist/react-native/policies/AnonymousCredentialPolicy.d.ts.map +1 -0
  1189. package/dist/react-native/policies/AnonymousCredentialPolicy.js +20 -0
  1190. package/dist/react-native/policies/AnonymousCredentialPolicy.js.map +1 -0
  1191. package/dist/react-native/policies/CredentialPolicy.d.ts +22 -0
  1192. package/dist/react-native/policies/CredentialPolicy.d.ts.map +1 -0
  1193. package/dist/react-native/policies/CredentialPolicy.js +29 -0
  1194. package/dist/react-native/policies/CredentialPolicy.js.map +1 -0
  1195. package/dist/react-native/policies/RequestPolicy.d.ts +45 -0
  1196. package/dist/react-native/policies/RequestPolicy.d.ts.map +1 -0
  1197. package/dist/react-native/policies/RequestPolicy.js +40 -0
  1198. package/dist/react-native/policies/RequestPolicy.js.map +1 -0
  1199. package/dist/react-native/policies/StorageBrowserPolicy.d.ts +28 -0
  1200. package/dist/react-native/policies/StorageBrowserPolicy.d.ts.map +1 -0
  1201. package/dist/react-native/policies/StorageBrowserPolicy.js +47 -0
  1202. package/dist/react-native/policies/StorageBrowserPolicy.js.map +1 -0
  1203. package/dist/react-native/policies/StorageBrowserPolicyV2.d.ts +11 -0
  1204. package/dist/react-native/policies/StorageBrowserPolicyV2.d.ts.map +1 -0
  1205. package/dist/react-native/policies/StorageBrowserPolicyV2.js +31 -0
  1206. package/dist/react-native/policies/StorageBrowserPolicyV2.js.map +1 -0
  1207. package/dist/react-native/policies/StorageCorrectContentLengthPolicy.d.ts +10 -0
  1208. package/dist/react-native/policies/StorageCorrectContentLengthPolicy.d.ts.map +1 -0
  1209. package/dist/react-native/policies/StorageCorrectContentLengthPolicy.js +27 -0
  1210. package/dist/react-native/policies/StorageCorrectContentLengthPolicy.js.map +1 -0
  1211. package/dist/react-native/policies/StorageRetryPolicy.d.ts +62 -0
  1212. package/dist/react-native/policies/StorageRetryPolicy.d.ts.map +1 -0
  1213. package/dist/react-native/policies/StorageRetryPolicy.js +216 -0
  1214. package/dist/react-native/policies/StorageRetryPolicy.js.map +1 -0
  1215. package/dist/react-native/policies/StorageRetryPolicyType.d.ts +14 -0
  1216. package/dist/react-native/policies/StorageRetryPolicyType.d.ts.map +1 -0
  1217. package/dist/react-native/policies/StorageRetryPolicyType.js +17 -0
  1218. package/dist/react-native/policies/StorageRetryPolicyType.js.map +1 -0
  1219. package/dist/react-native/policies/StorageRetryPolicyV2.d.ts +11 -0
  1220. package/dist/react-native/policies/StorageRetryPolicyV2.d.ts.map +1 -0
  1221. package/dist/react-native/policies/StorageRetryPolicyV2.js +167 -0
  1222. package/dist/react-native/policies/StorageRetryPolicyV2.js.map +1 -0
  1223. package/dist/react-native/policies/StorageSharedKeyCredentialPolicy.d.ts +54 -0
  1224. package/dist/react-native/policies/StorageSharedKeyCredentialPolicy.d.ts.map +1 -0
  1225. package/dist/react-native/policies/StorageSharedKeyCredentialPolicy.js +141 -0
  1226. package/dist/react-native/policies/StorageSharedKeyCredentialPolicy.js.map +1 -0
  1227. package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2.d.ts +17 -0
  1228. package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2.d.ts.map +1 -0
  1229. package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2.js +132 -0
  1230. package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2.js.map +1 -0
  1231. package/dist/react-native/pollers/BlobStartCopyFromUrlPoller.d.ts +74 -0
  1232. package/dist/react-native/pollers/BlobStartCopyFromUrlPoller.d.ts.map +1 -0
  1233. package/dist/react-native/pollers/BlobStartCopyFromUrlPoller.js +130 -0
  1234. package/dist/react-native/pollers/BlobStartCopyFromUrlPoller.js.map +1 -0
  1235. package/dist/react-native/sas/AccountSASPermissions.d.ts +146 -0
  1236. package/dist/react-native/sas/AccountSASPermissions.d.ts.map +1 -0
  1237. package/dist/react-native/sas/AccountSASPermissions.js +227 -0
  1238. package/dist/react-native/sas/AccountSASPermissions.js.map +1 -0
  1239. package/dist/react-native/sas/AccountSASResourceTypes.d.ts +38 -0
  1240. package/dist/react-native/sas/AccountSASResourceTypes.d.ts.map +1 -0
  1241. package/dist/react-native/sas/AccountSASResourceTypes.js +72 -0
  1242. package/dist/react-native/sas/AccountSASResourceTypes.js.map +1 -0
  1243. package/dist/react-native/sas/AccountSASServices.d.ts +40 -0
  1244. package/dist/react-native/sas/AccountSASServices.d.ts.map +1 -0
  1245. package/dist/react-native/sas/AccountSASServices.js +80 -0
  1246. package/dist/react-native/sas/AccountSASServices.js.map +1 -0
  1247. package/dist/react-native/sas/AccountSASSignatureValues.d.ts +78 -0
  1248. package/dist/react-native/sas/AccountSASSignatureValues.d.ts.map +1 -0
  1249. package/dist/react-native/sas/AccountSASSignatureValues.js +100 -0
  1250. package/dist/react-native/sas/AccountSASSignatureValues.js.map +1 -0
  1251. package/dist/react-native/sas/BlobSASPermissions.d.ts +127 -0
  1252. package/dist/react-native/sas/BlobSASPermissions.d.ts.map +1 -0
  1253. package/dist/react-native/sas/BlobSASPermissions.js +195 -0
  1254. package/dist/react-native/sas/BlobSASPermissions.js.map +1 -0
  1255. package/dist/react-native/sas/BlobSASSignatureValues.d.ts +284 -0
  1256. package/dist/react-native/sas/BlobSASSignatureValues.d.ts.map +1 -0
  1257. package/dist/react-native/sas/BlobSASSignatureValues.js +666 -0
  1258. package/dist/react-native/sas/BlobSASSignatureValues.js.map +1 -0
  1259. package/dist/react-native/sas/ContainerSASPermissions.d.ts +143 -0
  1260. package/dist/react-native/sas/ContainerSASPermissions.d.ts.map +1 -0
  1261. package/dist/react-native/sas/ContainerSASPermissions.js +221 -0
  1262. package/dist/react-native/sas/ContainerSASPermissions.js.map +1 -0
  1263. package/dist/react-native/sas/SASQueryParameters.d.ts +285 -0
  1264. package/dist/react-native/sas/SASQueryParameters.d.ts.map +1 -0
  1265. package/dist/react-native/sas/SASQueryParameters.js +234 -0
  1266. package/dist/react-native/sas/SASQueryParameters.js.map +1 -0
  1267. package/dist/react-native/sas/SasIPRange.d.ts +24 -0
  1268. package/dist/react-native/sas/SasIPRange.d.ts.map +1 -0
  1269. package/dist/react-native/sas/SasIPRange.js +13 -0
  1270. package/dist/react-native/sas/SasIPRange.js.map +1 -0
  1271. package/dist/react-native/utils/Batch.d.ts +68 -0
  1272. package/dist/react-native/utils/Batch.d.ts.map +1 -0
  1273. package/dist/react-native/utils/Batch.js +122 -0
  1274. package/dist/react-native/utils/Batch.js.map +1 -0
  1275. package/dist/react-native/utils/BlobQuickQueryStream.d.ts +42 -0
  1276. package/dist/react-native/utils/BlobQuickQueryStream.d.ts.map +1 -0
  1277. package/dist/react-native/utils/BlobQuickQueryStream.js +111 -0
  1278. package/dist/react-native/utils/BlobQuickQueryStream.js.map +1 -0
  1279. package/dist/react-native/utils/Mutex.d.ts +23 -0
  1280. package/dist/react-native/utils/Mutex.d.ts.map +1 -0
  1281. package/dist/react-native/utils/Mutex.js +65 -0
  1282. package/dist/react-native/utils/Mutex.js.map +1 -0
  1283. package/dist/react-native/utils/RetriableReadableStream.d.ts +62 -0
  1284. package/dist/react-native/utils/RetriableReadableStream.d.ts.map +1 -0
  1285. package/dist/react-native/utils/RetriableReadableStream.js +119 -0
  1286. package/dist/react-native/utils/RetriableReadableStream.js.map +1 -0
  1287. package/dist/react-native/utils/SharedKeyComparator.d.ts +2 -0
  1288. package/dist/react-native/utils/SharedKeyComparator.d.ts.map +1 -0
  1289. package/dist/react-native/utils/SharedKeyComparator.js +73 -0
  1290. package/dist/react-native/utils/SharedKeyComparator.js.map +1 -0
  1291. package/dist/react-native/utils/constants.d.ts +70 -0
  1292. package/dist/react-native/utils/constants.d.ts.map +1 -0
  1293. package/dist/react-native/utils/constants.js +226 -0
  1294. package/dist/react-native/utils/constants.js.map +1 -0
  1295. package/dist/react-native/utils/tracing.d.ts +6 -0
  1296. package/dist/react-native/utils/tracing.d.ts.map +1 -0
  1297. package/dist/react-native/utils/tracing.js +14 -0
  1298. package/dist/react-native/utils/tracing.js.map +1 -0
  1299. package/dist/react-native/utils/utils.common.d.ts +323 -0
  1300. package/dist/react-native/utils/utils.common.d.ts.map +1 -0
  1301. package/dist/react-native/utils/utils.common.js +756 -0
  1302. package/dist/react-native/utils/utils.common.js.map +1 -0
  1303. package/dist/react-native/utils/utils.d.ts +46 -0
  1304. package/dist/react-native/utils/utils.d.ts.map +1 -0
  1305. package/dist/react-native/utils/utils.js +132 -0
  1306. package/dist/react-native/utils/utils.js.map +1 -0
  1307. package/package.json +71 -78
  1308. package/dist/index.js +0 -24988
  1309. package/dist/index.js.map +0 -1
  1310. package/dist-esm/storage-blob/src/BatchResponse.js.map +0 -1
  1311. package/dist-esm/storage-blob/src/BatchResponseParser.js +0 -137
  1312. package/dist-esm/storage-blob/src/BatchResponseParser.js.map +0 -1
  1313. package/dist-esm/storage-blob/src/BatchUtils.browser.js +0 -11
  1314. package/dist-esm/storage-blob/src/BatchUtils.browser.js.map +0 -1
  1315. package/dist-esm/storage-blob/src/BatchUtils.js +0 -15
  1316. package/dist-esm/storage-blob/src/BatchUtils.js.map +0 -1
  1317. package/dist-esm/storage-blob/src/BlobBatch.js +0 -267
  1318. package/dist-esm/storage-blob/src/BlobBatch.js.map +0 -1
  1319. package/dist-esm/storage-blob/src/BlobBatchClient.js +0 -140
  1320. package/dist-esm/storage-blob/src/BlobBatchClient.js.map +0 -1
  1321. package/dist-esm/storage-blob/src/BlobDownloadResponse.browser.js +0 -7
  1322. package/dist-esm/storage-blob/src/BlobDownloadResponse.browser.js.map +0 -1
  1323. package/dist-esm/storage-blob/src/BlobDownloadResponse.js +0 -463
  1324. package/dist-esm/storage-blob/src/BlobDownloadResponse.js.map +0 -1
  1325. package/dist-esm/storage-blob/src/BlobLeaseClient.js +0 -192
  1326. package/dist-esm/storage-blob/src/BlobLeaseClient.js.map +0 -1
  1327. package/dist-esm/storage-blob/src/BlobQueryResponse.browser.js +0 -362
  1328. package/dist-esm/storage-blob/src/BlobQueryResponse.browser.js.map +0 -1
  1329. package/dist-esm/storage-blob/src/BlobQueryResponse.js +0 -367
  1330. package/dist-esm/storage-blob/src/BlobQueryResponse.js.map +0 -1
  1331. package/dist-esm/storage-blob/src/BlobServiceClient.js +0 -716
  1332. package/dist-esm/storage-blob/src/BlobServiceClient.js.map +0 -1
  1333. package/dist-esm/storage-blob/src/Clients.js +0 -2594
  1334. package/dist-esm/storage-blob/src/Clients.js.map +0 -1
  1335. package/dist-esm/storage-blob/src/ContainerClient.js +0 -1209
  1336. package/dist-esm/storage-blob/src/ContainerClient.js.map +0 -1
  1337. package/dist-esm/storage-blob/src/PageBlobRangeResponse.js.map +0 -1
  1338. package/dist-esm/storage-blob/src/Pipeline.js +0 -261
  1339. package/dist-esm/storage-blob/src/Pipeline.js.map +0 -1
  1340. package/dist-esm/storage-blob/src/Range.js.map +0 -1
  1341. package/dist-esm/storage-blob/src/StorageBrowserPolicyFactory.js +0 -19
  1342. package/dist-esm/storage-blob/src/StorageBrowserPolicyFactory.js.map +0 -1
  1343. package/dist-esm/storage-blob/src/StorageClient.js +0 -29
  1344. package/dist-esm/storage-blob/src/StorageClient.js.map +0 -1
  1345. package/dist-esm/storage-blob/src/StorageContextClient.js +0 -17
  1346. package/dist-esm/storage-blob/src/StorageContextClient.js.map +0 -1
  1347. package/dist-esm/storage-blob/src/StorageRetryPolicyFactory.js +0 -26
  1348. package/dist-esm/storage-blob/src/StorageRetryPolicyFactory.js.map +0 -1
  1349. package/dist-esm/storage-blob/src/credentials/AnonymousCredential.js +0 -22
  1350. package/dist-esm/storage-blob/src/credentials/AnonymousCredential.js.map +0 -1
  1351. package/dist-esm/storage-blob/src/credentials/Credential.js.map +0 -1
  1352. package/dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.browser.js +0 -5
  1353. package/dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.browser.js.map +0 -1
  1354. package/dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.js +0 -40
  1355. package/dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.js.map +0 -1
  1356. package/dist-esm/storage-blob/src/credentials/UserDelegationKeyCredential.browser.js +0 -5
  1357. package/dist-esm/storage-blob/src/credentials/UserDelegationKeyCredential.browser.js.map +0 -1
  1358. package/dist-esm/storage-blob/src/credentials/UserDelegationKeyCredential.js +0 -31
  1359. package/dist-esm/storage-blob/src/credentials/UserDelegationKeyCredential.js.map +0 -1
  1360. package/dist-esm/storage-blob/src/generated/src/index.js +0 -11
  1361. package/dist-esm/storage-blob/src/generated/src/index.js.map +0 -1
  1362. package/dist-esm/storage-blob/src/generated/src/models/index.js +0 -258
  1363. package/dist-esm/storage-blob/src/generated/src/models/index.js.map +0 -1
  1364. package/dist-esm/storage-blob/src/generated/src/models/mappers.js.map +0 -1
  1365. package/dist-esm/storage-blob/src/generated/src/models/parameters.js +0 -1610
  1366. package/dist-esm/storage-blob/src/generated/src/models/parameters.js.map +0 -1
  1367. package/dist-esm/storage-blob/src/generated/src/operations/appendBlob.js +0 -221
  1368. package/dist-esm/storage-blob/src/generated/src/operations/appendBlob.js.map +0 -1
  1369. package/dist-esm/storage-blob/src/generated/src/operations/blob.js +0 -1020
  1370. package/dist-esm/storage-blob/src/generated/src/operations/blob.js.map +0 -1
  1371. package/dist-esm/storage-blob/src/generated/src/operations/blockBlob.js +0 -365
  1372. package/dist-esm/storage-blob/src/generated/src/operations/blockBlob.js.map +0 -1
  1373. package/dist-esm/storage-blob/src/generated/src/operations/container.js +0 -713
  1374. package/dist-esm/storage-blob/src/generated/src/operations/container.js.map +0 -1
  1375. package/dist-esm/storage-blob/src/generated/src/operations/index.js +0 -14
  1376. package/dist-esm/storage-blob/src/generated/src/operations/index.js.map +0 -1
  1377. package/dist-esm/storage-blob/src/generated/src/operations/pageBlob.js +0 -456
  1378. package/dist-esm/storage-blob/src/generated/src/operations/pageBlob.js.map +0 -1
  1379. package/dist-esm/storage-blob/src/generated/src/operations/service.js +0 -323
  1380. package/dist-esm/storage-blob/src/generated/src/operations/service.js.map +0 -1
  1381. package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/appendBlob.js.map +0 -1
  1382. package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/blob.js.map +0 -1
  1383. package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/blockBlob.js.map +0 -1
  1384. package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/container.js.map +0 -1
  1385. package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/index.js +0 -14
  1386. package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/index.js.map +0 -1
  1387. package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/pageBlob.js.map +0 -1
  1388. package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/service.js.map +0 -1
  1389. package/dist-esm/storage-blob/src/generated/src/storageClient.js +0 -49
  1390. package/dist-esm/storage-blob/src/generated/src/storageClient.js.map +0 -1
  1391. package/dist-esm/storage-blob/src/generatedModels.js.map +0 -1
  1392. package/dist-esm/storage-blob/src/index.browser.js +0 -23
  1393. package/dist-esm/storage-blob/src/index.browser.js.map +0 -1
  1394. package/dist-esm/storage-blob/src/index.js +0 -33
  1395. package/dist-esm/storage-blob/src/index.js.map +0 -1
  1396. package/dist-esm/storage-blob/src/log.js.map +0 -1
  1397. package/dist-esm/storage-blob/src/models.js +0 -115
  1398. package/dist-esm/storage-blob/src/models.js.map +0 -1
  1399. package/dist-esm/storage-blob/src/policies/AnonymousCredentialPolicy.js +0 -20
  1400. package/dist-esm/storage-blob/src/policies/AnonymousCredentialPolicy.js.map +0 -1
  1401. package/dist-esm/storage-blob/src/policies/CredentialPolicy.js +0 -29
  1402. package/dist-esm/storage-blob/src/policies/CredentialPolicy.js.map +0 -1
  1403. package/dist-esm/storage-blob/src/policies/RequestPolicy.js.map +0 -1
  1404. package/dist-esm/storage-blob/src/policies/StorageBrowserPolicy.js +0 -47
  1405. package/dist-esm/storage-blob/src/policies/StorageBrowserPolicy.js.map +0 -1
  1406. package/dist-esm/storage-blob/src/policies/StorageBrowserPolicyV2.js +0 -31
  1407. package/dist-esm/storage-blob/src/policies/StorageBrowserPolicyV2.js.map +0 -1
  1408. package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.browser.js +0 -18
  1409. package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.browser.js.map +0 -1
  1410. package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.js +0 -27
  1411. package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.js.map +0 -1
  1412. package/dist-esm/storage-blob/src/policies/StorageRetryPolicy.js +0 -229
  1413. package/dist-esm/storage-blob/src/policies/StorageRetryPolicy.js.map +0 -1
  1414. package/dist-esm/storage-blob/src/policies/StorageRetryPolicyV2.js +0 -180
  1415. package/dist-esm/storage-blob/src/policies/StorageRetryPolicyV2.js.map +0 -1
  1416. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js +0 -141
  1417. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js.map +0 -1
  1418. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.browser.js +0 -18
  1419. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.browser.js.map +0 -1
  1420. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.js +0 -132
  1421. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.js.map +0 -1
  1422. package/dist-esm/storage-blob/src/pollers/BlobStartCopyFromUrlPoller.js.map +0 -1
  1423. package/dist-esm/storage-blob/src/sas/AccountSASPermissions.js.map +0 -1
  1424. package/dist-esm/storage-blob/src/sas/AccountSASResourceTypes.js.map +0 -1
  1425. package/dist-esm/storage-blob/src/sas/AccountSASServices.js.map +0 -1
  1426. package/dist-esm/storage-blob/src/sas/AccountSASSignatureValues.js +0 -100
  1427. package/dist-esm/storage-blob/src/sas/AccountSASSignatureValues.js.map +0 -1
  1428. package/dist-esm/storage-blob/src/sas/BlobSASPermissions.js.map +0 -1
  1429. package/dist-esm/storage-blob/src/sas/BlobSASSignatureValues.js +0 -576
  1430. package/dist-esm/storage-blob/src/sas/BlobSASSignatureValues.js.map +0 -1
  1431. package/dist-esm/storage-blob/src/sas/ContainerSASPermissions.js.map +0 -1
  1432. package/dist-esm/storage-blob/src/sas/SASQueryParameters.js +0 -234
  1433. package/dist-esm/storage-blob/src/sas/SASQueryParameters.js.map +0 -1
  1434. package/dist-esm/storage-blob/src/sas/SasIPRange.js.map +0 -1
  1435. package/dist-esm/storage-blob/src/utils/Batch.js.map +0 -1
  1436. package/dist-esm/storage-blob/src/utils/BlobQuickQueryStream.js +0 -111
  1437. package/dist-esm/storage-blob/src/utils/BlobQuickQueryStream.js.map +0 -1
  1438. package/dist-esm/storage-blob/src/utils/Mutex.js.map +0 -1
  1439. package/dist-esm/storage-blob/src/utils/RetriableReadableStream.js +0 -119
  1440. package/dist-esm/storage-blob/src/utils/RetriableReadableStream.js.map +0 -1
  1441. package/dist-esm/storage-blob/src/utils/SharedKeyComparator.js.map +0 -1
  1442. package/dist-esm/storage-blob/src/utils/cache.js +0 -11
  1443. package/dist-esm/storage-blob/src/utils/cache.js.map +0 -1
  1444. package/dist-esm/storage-blob/src/utils/constants.js +0 -226
  1445. package/dist-esm/storage-blob/src/utils/constants.js.map +0 -1
  1446. package/dist-esm/storage-blob/src/utils/tracing.js +0 -14
  1447. package/dist-esm/storage-blob/src/utils/tracing.js.map +0 -1
  1448. package/dist-esm/storage-blob/src/utils/utils.browser.js +0 -48
  1449. package/dist-esm/storage-blob/src/utils/utils.browser.js.map +0 -1
  1450. package/dist-esm/storage-blob/src/utils/utils.common.js +0 -756
  1451. package/dist-esm/storage-blob/src/utils/utils.common.js.map +0 -1
  1452. package/dist-esm/storage-blob/src/utils/utils.node.js +0 -132
  1453. package/dist-esm/storage-blob/src/utils/utils.node.js.map +0 -1
  1454. package/dist-esm/storage-common/src/BufferScheduler.browser.js +0 -8
  1455. package/dist-esm/storage-common/src/BufferScheduler.browser.js.map +0 -1
  1456. package/dist-esm/storage-common/src/BufferScheduler.js +0 -252
  1457. package/dist-esm/storage-common/src/BufferScheduler.js.map +0 -1
  1458. package/dist-esm/storage-common/src/BuffersStream.js +0 -83
  1459. package/dist-esm/storage-common/src/BuffersStream.js.map +0 -1
  1460. package/dist-esm/storage-common/src/PooledBuffer.js +0 -87
  1461. package/dist-esm/storage-common/src/PooledBuffer.js.map +0 -1
  1462. package/dist-esm/storage-common/src/index.browser.js +0 -4
  1463. package/dist-esm/storage-common/src/index.browser.js.map +0 -1
  1464. package/dist-esm/storage-common/src/index.js +0 -4
  1465. package/dist-esm/storage-common/src/index.js.map +0 -1
  1466. package/dist-esm/storage-internal-avro/src/AvroConstants.js.map +0 -1
  1467. package/dist-esm/storage-internal-avro/src/AvroParser.js.map +0 -1
  1468. package/dist-esm/storage-internal-avro/src/AvroReadable.js.map +0 -1
  1469. package/dist-esm/storage-internal-avro/src/AvroReadableFromBlob.js +0 -47
  1470. package/dist-esm/storage-internal-avro/src/AvroReadableFromBlob.js.map +0 -1
  1471. package/dist-esm/storage-internal-avro/src/AvroReadableFromStream.js +0 -84
  1472. package/dist-esm/storage-internal-avro/src/AvroReadableFromStream.js.map +0 -1
  1473. package/dist-esm/storage-internal-avro/src/AvroReader.js +0 -106
  1474. package/dist-esm/storage-internal-avro/src/AvroReader.js.map +0 -1
  1475. package/dist-esm/storage-internal-avro/src/index.browser.js +0 -6
  1476. package/dist-esm/storage-internal-avro/src/index.browser.js.map +0 -1
  1477. package/dist-esm/storage-internal-avro/src/index.js +0 -6
  1478. package/dist-esm/storage-internal-avro/src/index.js.map +0 -1
  1479. package/dist-esm/storage-internal-avro/src/utils/utils.common.js.map +0 -1
  1480. package/types/latest/storage-blob.d.ts +0 -11864
  1481. /package/{dist-esm/storage-blob/src → dist/browser}/BatchResponse.js +0 -0
  1482. /package/{dist-esm/storage-blob/src → dist/browser}/PageBlobRangeResponse.js +0 -0
  1483. /package/{dist-esm/storage-blob/src → dist/browser}/Range.js +0 -0
  1484. /package/{dist-esm/storage-blob/src → dist/browser}/credentials/Credential.js +0 -0
  1485. /package/{dist-esm/storage-blob/src → dist/browser}/generated/src/models/mappers.js +0 -0
  1486. /package/{dist-esm/storage-blob/src → dist/browser}/generated/src/operationsInterfaces/appendBlob.js +0 -0
  1487. /package/{dist-esm/storage-blob/src → dist/browser}/generated/src/operationsInterfaces/blob.js +0 -0
  1488. /package/{dist-esm/storage-blob/src → dist/browser}/generated/src/operationsInterfaces/blockBlob.js +0 -0
  1489. /package/{dist-esm/storage-blob/src → dist/browser}/generated/src/operationsInterfaces/container.js +0 -0
  1490. /package/{dist-esm/storage-blob/src → dist/browser}/generated/src/operationsInterfaces/pageBlob.js +0 -0
  1491. /package/{dist-esm/storage-blob/src → dist/browser}/generated/src/operationsInterfaces/service.js +0 -0
  1492. /package/{dist-esm/storage-blob/src → dist/browser}/generatedModels.js +0 -0
  1493. /package/{dist-esm/storage-internal-avro/src → dist/browser/internal-avro}/AvroConstants.js +0 -0
  1494. /package/{dist-esm/storage-internal-avro/src → dist/browser/internal-avro}/AvroParser.js +0 -0
  1495. /package/{dist-esm/storage-internal-avro/src → dist/browser/internal-avro}/AvroReadable.js +0 -0
  1496. /package/{dist-esm/storage-internal-avro/src → dist/browser/internal-avro}/utils/utils.common.js +0 -0
  1497. /package/{dist-esm/storage-blob/src → dist/browser}/log.js +0 -0
  1498. /package/{dist-esm/storage-blob/src → dist/browser}/policies/RequestPolicy.js +0 -0
  1499. /package/{dist-esm/storage-blob/src → dist/browser}/pollers/BlobStartCopyFromUrlPoller.js +0 -0
  1500. /package/{dist-esm/storage-blob/src → dist/browser}/sas/AccountSASPermissions.js +0 -0
  1501. /package/{dist-esm/storage-blob/src → dist/browser}/sas/AccountSASResourceTypes.js +0 -0
  1502. /package/{dist-esm/storage-blob/src → dist/browser}/sas/AccountSASServices.js +0 -0
  1503. /package/{dist-esm/storage-blob/src → dist/browser}/sas/BlobSASPermissions.js +0 -0
  1504. /package/{dist-esm/storage-blob/src → dist/browser}/sas/ContainerSASPermissions.js +0 -0
  1505. /package/{dist-esm/storage-blob/src → dist/browser}/sas/SasIPRange.js +0 -0
  1506. /package/{dist-esm/storage-blob/src → dist/browser}/utils/Batch.js +0 -0
  1507. /package/{dist-esm/storage-blob/src → dist/browser}/utils/Mutex.js +0 -0
  1508. /package/{dist-esm/storage-blob/src → dist/browser}/utils/SharedKeyComparator.js +0 -0
@@ -1,2594 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
4
- import { getDefaultProxySettings } from "@azure/core-rest-pipeline";
5
- import { isTokenCredential } from "@azure/core-auth";
6
- import { isNode } from "@azure/core-util";
7
- import { randomUUID } from "@azure/core-util";
8
- import { BlobDownloadResponse } from "./BlobDownloadResponse";
9
- import { BlobQueryResponse } from "./BlobQueryResponse";
10
- import { AnonymousCredential } from "./credentials/AnonymousCredential";
11
- import { StorageSharedKeyCredential } from "./credentials/StorageSharedKeyCredential";
12
- import { ensureCpkIfSpecified, toAccessTier } from "./models";
13
- import { rangeResponseFromModel } from "./PageBlobRangeResponse";
14
- import { newPipeline, isPipelineLike } from "./Pipeline";
15
- import { BlobBeginCopyFromUrlPoller } from "./pollers/BlobStartCopyFromUrlPoller";
16
- import { rangeToString } from "./Range";
17
- import { StorageClient } from "./StorageClient";
18
- import { Batch } from "./utils/Batch";
19
- import { BufferScheduler } from "../../storage-common/src";
20
- import { BlobDoesNotUseCustomerSpecifiedEncryption, BlobUsesCustomerSpecifiedEncryptionMsg, BLOCK_BLOB_MAX_BLOCKS, BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES, BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES, DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES, DEFAULT_BLOCK_BUFFER_SIZE_BYTES, DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS, ETagAny, URLConstants, } from "./utils/constants";
21
- import { tracingClient } from "./utils/tracing";
22
- import { appendToURLPath, appendToURLQuery, assertResponse, extractConnectionStringParts, ExtractPageRangeInfoItems, generateBlockID, getURLParameter, httpAuthorizationToString, isIpEndpointStyle, parseObjectReplicationRecord, setURLParameter, toBlobTags, toBlobTagsString, toQuerySerialization, toTags, } from "./utils/utils.common";
23
- import { fsCreateReadStream, fsStat, readStreamToLocalFile, streamToBuffer, } from "./utils/utils.node";
24
- import { generateBlobSASQueryParameters, generateBlobSASQueryParametersInternal, } from "./sas/BlobSASSignatureValues";
25
- import { BlobLeaseClient } from "./BlobLeaseClient";
26
- /**
27
- * A BlobClient represents a URL to an Azure Storage blob; the blob may be a block blob,
28
- * append blob, or page blob.
29
- */
30
- export class BlobClient extends StorageClient {
31
- /**
32
- * The name of the blob.
33
- */
34
- get name() {
35
- return this._name;
36
- }
37
- /**
38
- * The name of the storage container the blob is associated with.
39
- */
40
- get containerName() {
41
- return this._containerName;
42
- }
43
- constructor(urlOrConnectionString, credentialOrPipelineOrContainerName, blobNameOrOptions,
44
- // Legacy, no fix for eslint error without breaking. Disable it for this interface.
45
- /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/
46
- options) {
47
- options = options || {};
48
- let pipeline;
49
- let url;
50
- if (isPipelineLike(credentialOrPipelineOrContainerName)) {
51
- // (url: string, pipeline: Pipeline)
52
- url = urlOrConnectionString;
53
- pipeline = credentialOrPipelineOrContainerName;
54
- }
55
- else if ((isNode && credentialOrPipelineOrContainerName instanceof StorageSharedKeyCredential) ||
56
- credentialOrPipelineOrContainerName instanceof AnonymousCredential ||
57
- isTokenCredential(credentialOrPipelineOrContainerName)) {
58
- // (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)
59
- url = urlOrConnectionString;
60
- options = blobNameOrOptions;
61
- pipeline = newPipeline(credentialOrPipelineOrContainerName, options);
62
- }
63
- else if (!credentialOrPipelineOrContainerName &&
64
- typeof credentialOrPipelineOrContainerName !== "string") {
65
- // (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)
66
- // The second parameter is undefined. Use anonymous credential.
67
- url = urlOrConnectionString;
68
- if (blobNameOrOptions && typeof blobNameOrOptions !== "string") {
69
- options = blobNameOrOptions;
70
- }
71
- pipeline = newPipeline(new AnonymousCredential(), options);
72
- }
73
- else if (credentialOrPipelineOrContainerName &&
74
- typeof credentialOrPipelineOrContainerName === "string" &&
75
- blobNameOrOptions &&
76
- typeof blobNameOrOptions === "string") {
77
- // (connectionString: string, containerName: string, blobName: string, options?: StoragePipelineOptions)
78
- const containerName = credentialOrPipelineOrContainerName;
79
- const blobName = blobNameOrOptions;
80
- const extractedCreds = extractConnectionStringParts(urlOrConnectionString);
81
- if (extractedCreds.kind === "AccountConnString") {
82
- if (isNode) {
83
- const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);
84
- url = appendToURLPath(appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), encodeURIComponent(blobName));
85
- if (!options.proxyOptions) {
86
- options.proxyOptions = getDefaultProxySettings(extractedCreds.proxyUri);
87
- }
88
- pipeline = newPipeline(sharedKeyCredential, options);
89
- }
90
- else {
91
- throw new Error("Account connection string is only supported in Node.js environment");
92
- }
93
- }
94
- else if (extractedCreds.kind === "SASConnString") {
95
- url =
96
- appendToURLPath(appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), encodeURIComponent(blobName)) +
97
- "?" +
98
- extractedCreds.accountSas;
99
- pipeline = newPipeline(new AnonymousCredential(), options);
100
- }
101
- else {
102
- throw new Error("Connection string must be either an Account connection string or a SAS connection string");
103
- }
104
- }
105
- else {
106
- throw new Error("Expecting non-empty strings for containerName and blobName parameters");
107
- }
108
- super(url, pipeline);
109
- ({ blobName: this._name, containerName: this._containerName } =
110
- this.getBlobAndContainerNamesFromUrl());
111
- this.blobContext = this.storageClientContext.blob;
112
- this._snapshot = getURLParameter(this.url, URLConstants.Parameters.SNAPSHOT);
113
- this._versionId = getURLParameter(this.url, URLConstants.Parameters.VERSIONID);
114
- }
115
- /**
116
- * Creates a new BlobClient object identical to the source but with the specified snapshot timestamp.
117
- * Provide "" will remove the snapshot and return a Client to the base blob.
118
- *
119
- * @param snapshot - The snapshot timestamp.
120
- * @returns A new BlobClient object identical to the source but with the specified snapshot timestamp
121
- */
122
- withSnapshot(snapshot) {
123
- return new BlobClient(setURLParameter(this.url, URLConstants.Parameters.SNAPSHOT, snapshot.length === 0 ? undefined : snapshot), this.pipeline);
124
- }
125
- /**
126
- * Creates a new BlobClient object pointing to a version of this blob.
127
- * Provide "" will remove the versionId and return a Client to the base blob.
128
- *
129
- * @param versionId - The versionId.
130
- * @returns A new BlobClient object pointing to the version of this blob.
131
- */
132
- withVersion(versionId) {
133
- return new BlobClient(setURLParameter(this.url, URLConstants.Parameters.VERSIONID, versionId.length === 0 ? undefined : versionId), this.pipeline);
134
- }
135
- /**
136
- * Creates a AppendBlobClient object.
137
- *
138
- */
139
- getAppendBlobClient() {
140
- return new AppendBlobClient(this.url, this.pipeline);
141
- }
142
- /**
143
- * Creates a BlockBlobClient object.
144
- *
145
- */
146
- getBlockBlobClient() {
147
- return new BlockBlobClient(this.url, this.pipeline);
148
- }
149
- /**
150
- * Creates a PageBlobClient object.
151
- *
152
- */
153
- getPageBlobClient() {
154
- return new PageBlobClient(this.url, this.pipeline);
155
- }
156
- /**
157
- * Reads or downloads a blob from the system, including its metadata and properties.
158
- * You can also call Get Blob to read a snapshot.
159
- *
160
- * * In Node.js, data returns in a Readable stream readableStreamBody
161
- * * In browsers, data returns in a promise blobBody
162
- *
163
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-blob
164
- *
165
- * @param offset - From which position of the blob to download, greater than or equal to 0
166
- * @param count - How much data to be downloaded, greater than 0. Will download to the end when undefined
167
- * @param options - Optional options to Blob Download operation.
168
- *
169
- *
170
- * Example usage (Node.js):
171
- *
172
- * ```js
173
- * // Download and convert a blob to a string
174
- * const downloadBlockBlobResponse = await blobClient.download();
175
- * const downloaded = await streamToBuffer(downloadBlockBlobResponse.readableStreamBody);
176
- * console.log("Downloaded blob content:", downloaded.toString());
177
- *
178
- * async function streamToBuffer(readableStream) {
179
- * return new Promise((resolve, reject) => {
180
- * const chunks = [];
181
- * readableStream.on("data", (data) => {
182
- * chunks.push(typeof data === "string" ? Buffer.from(data) : data);
183
- * });
184
- * readableStream.on("end", () => {
185
- * resolve(Buffer.concat(chunks));
186
- * });
187
- * readableStream.on("error", reject);
188
- * });
189
- * }
190
- * ```
191
- *
192
- * Example usage (browser):
193
- *
194
- * ```js
195
- * // Download and convert a blob to a string
196
- * const downloadBlockBlobResponse = await blobClient.download();
197
- * const downloaded = await blobToString(await downloadBlockBlobResponse.blobBody);
198
- * console.log(
199
- * "Downloaded blob content",
200
- * downloaded
201
- * );
202
- *
203
- * async function blobToString(blob: Blob): Promise<string> {
204
- * const fileReader = new FileReader();
205
- * return new Promise<string>((resolve, reject) => {
206
- * fileReader.onloadend = (ev: any) => {
207
- * resolve(ev.target!.result);
208
- * };
209
- * fileReader.onerror = reject;
210
- * fileReader.readAsText(blob);
211
- * });
212
- * }
213
- * ```
214
- */
215
- async download(offset = 0, count, options = {}) {
216
- options.conditions = options.conditions || {};
217
- options.conditions = options.conditions || {};
218
- ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
219
- return tracingClient.withSpan("BlobClient-download", options, async (updatedOptions) => {
220
- var _a;
221
- const res = assertResponse(await this.blobContext.download({
222
- abortSignal: options.abortSignal,
223
- leaseAccessConditions: options.conditions,
224
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
225
- requestOptions: {
226
- onDownloadProgress: isNode ? undefined : options.onProgress, // for Node.js, progress is reported by RetriableReadableStream
227
- },
228
- range: offset === 0 && !count ? undefined : rangeToString({ offset, count }),
229
- rangeGetContentMD5: options.rangeGetContentMD5,
230
- rangeGetContentCRC64: options.rangeGetContentCrc64,
231
- snapshot: options.snapshot,
232
- cpkInfo: options.customerProvidedKey,
233
- tracingOptions: updatedOptions.tracingOptions,
234
- }));
235
- const wrappedRes = Object.assign(Object.assign({}, res), { _response: res._response, objectReplicationDestinationPolicyId: res.objectReplicationPolicyId, objectReplicationSourceProperties: parseObjectReplicationRecord(res.objectReplicationRules) });
236
- // Return browser response immediately
237
- if (!isNode) {
238
- return wrappedRes;
239
- }
240
- // We support retrying when download stream unexpected ends in Node.js runtime
241
- // Following code shouldn't be bundled into browser build, however some
242
- // bundlers may try to bundle following code and "FileReadResponse.ts".
243
- // In this case, "FileDownloadResponse.browser.ts" will be used as a shim of "FileDownloadResponse.ts"
244
- // The config is in package.json "browser" field
245
- if (options.maxRetryRequests === undefined || options.maxRetryRequests < 0) {
246
- // TODO: Default value or make it a required parameter?
247
- options.maxRetryRequests = DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS;
248
- }
249
- if (res.contentLength === undefined) {
250
- throw new RangeError(`File download response doesn't contain valid content length header`);
251
- }
252
- if (!res.etag) {
253
- throw new RangeError(`File download response doesn't contain valid etag header`);
254
- }
255
- return new BlobDownloadResponse(wrappedRes, async (start) => {
256
- var _a;
257
- const updatedDownloadOptions = {
258
- leaseAccessConditions: options.conditions,
259
- modifiedAccessConditions: {
260
- ifMatch: options.conditions.ifMatch || res.etag,
261
- ifModifiedSince: options.conditions.ifModifiedSince,
262
- ifNoneMatch: options.conditions.ifNoneMatch,
263
- ifUnmodifiedSince: options.conditions.ifUnmodifiedSince,
264
- ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions,
265
- },
266
- range: rangeToString({
267
- count: offset + res.contentLength - start,
268
- offset: start,
269
- }),
270
- rangeGetContentMD5: options.rangeGetContentMD5,
271
- rangeGetContentCRC64: options.rangeGetContentCrc64,
272
- snapshot: options.snapshot,
273
- cpkInfo: options.customerProvidedKey,
274
- };
275
- // Debug purpose only
276
- // console.log(
277
- // `Read from internal stream, range: ${
278
- // updatedOptions.range
279
- // }, options: ${JSON.stringify(updatedOptions)}`
280
- // );
281
- return (await this.blobContext.download(Object.assign({ abortSignal: options.abortSignal }, updatedDownloadOptions))).readableStreamBody;
282
- }, offset, res.contentLength, {
283
- maxRetryRequests: options.maxRetryRequests,
284
- onProgress: options.onProgress,
285
- });
286
- });
287
- }
288
- /**
289
- * Returns true if the Azure blob resource represented by this client exists; false otherwise.
290
- *
291
- * NOTE: use this function with care since an existing blob might be deleted by other clients or
292
- * applications. Vice versa new blobs might be added by other clients or applications after this
293
- * function completes.
294
- *
295
- * @param options - options to Exists operation.
296
- */
297
- async exists(options = {}) {
298
- return tracingClient.withSpan("BlobClient-exists", options, async (updatedOptions) => {
299
- try {
300
- ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
301
- await this.getProperties({
302
- abortSignal: options.abortSignal,
303
- customerProvidedKey: options.customerProvidedKey,
304
- conditions: options.conditions,
305
- tracingOptions: updatedOptions.tracingOptions,
306
- });
307
- return true;
308
- }
309
- catch (e) {
310
- if (e.statusCode === 404) {
311
- // Expected exception when checking blob existence
312
- return false;
313
- }
314
- else if (e.statusCode === 409 &&
315
- (e.details.errorCode === BlobUsesCustomerSpecifiedEncryptionMsg ||
316
- e.details.errorCode === BlobDoesNotUseCustomerSpecifiedEncryption)) {
317
- // Expected exception when checking blob existence
318
- return true;
319
- }
320
- throw e;
321
- }
322
- });
323
- }
324
- /**
325
- * Returns all user-defined metadata, standard HTTP properties, and system properties
326
- * for the blob. It does not return the content of the blob.
327
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-blob-properties
328
- *
329
- * WARNING: The `metadata` object returned in the response will have its keys in lowercase, even if
330
- * they originally contained uppercase characters. This differs from the metadata keys returned by
331
- * the methods of {@link ContainerClient} that list blobs using the `includeMetadata` option, which
332
- * will retain their original casing.
333
- *
334
- * @param options - Optional options to Get Properties operation.
335
- */
336
- async getProperties(options = {}) {
337
- options.conditions = options.conditions || {};
338
- ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
339
- return tracingClient.withSpan("BlobClient-getProperties", options, async (updatedOptions) => {
340
- var _a;
341
- const res = assertResponse(await this.blobContext.getProperties({
342
- abortSignal: options.abortSignal,
343
- leaseAccessConditions: options.conditions,
344
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
345
- cpkInfo: options.customerProvidedKey,
346
- tracingOptions: updatedOptions.tracingOptions,
347
- }));
348
- return Object.assign(Object.assign({}, res), { _response: res._response, objectReplicationDestinationPolicyId: res.objectReplicationPolicyId, objectReplicationSourceProperties: parseObjectReplicationRecord(res.objectReplicationRules) });
349
- });
350
- }
351
- /**
352
- * Marks the specified blob or snapshot for deletion. The blob is later deleted
353
- * during garbage collection. Note that in order to delete a blob, you must delete
354
- * all of its snapshots. You can delete both at the same time with the Delete
355
- * Blob operation.
356
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-blob
357
- *
358
- * @param options - Optional options to Blob Delete operation.
359
- */
360
- async delete(options = {}) {
361
- options.conditions = options.conditions || {};
362
- return tracingClient.withSpan("BlobClient-delete", options, async (updatedOptions) => {
363
- var _a;
364
- return assertResponse(await this.blobContext.delete({
365
- abortSignal: options.abortSignal,
366
- deleteSnapshots: options.deleteSnapshots,
367
- leaseAccessConditions: options.conditions,
368
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
369
- tracingOptions: updatedOptions.tracingOptions,
370
- }));
371
- });
372
- }
373
- /**
374
- * Marks the specified blob or snapshot for deletion if it exists. The blob is later deleted
375
- * during garbage collection. Note that in order to delete a blob, you must delete
376
- * all of its snapshots. You can delete both at the same time with the Delete
377
- * Blob operation.
378
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-blob
379
- *
380
- * @param options - Optional options to Blob Delete operation.
381
- */
382
- async deleteIfExists(options = {}) {
383
- return tracingClient.withSpan("BlobClient-deleteIfExists", options, async (updatedOptions) => {
384
- var _a, _b;
385
- try {
386
- const res = assertResponse(await this.delete(updatedOptions));
387
- return Object.assign(Object.assign({ succeeded: true }, res), { _response: res._response });
388
- }
389
- catch (e) {
390
- if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "BlobNotFound") {
391
- return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });
392
- }
393
- throw e;
394
- }
395
- });
396
- }
397
- /**
398
- * Restores the contents and metadata of soft deleted blob and any associated
399
- * soft deleted snapshots. Undelete Blob is supported only on version 2017-07-29
400
- * or later.
401
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/undelete-blob
402
- *
403
- * @param options - Optional options to Blob Undelete operation.
404
- */
405
- async undelete(options = {}) {
406
- return tracingClient.withSpan("BlobClient-undelete", options, async (updatedOptions) => {
407
- return assertResponse(await this.blobContext.undelete({
408
- abortSignal: options.abortSignal,
409
- tracingOptions: updatedOptions.tracingOptions,
410
- }));
411
- });
412
- }
413
- /**
414
- * Sets system properties on the blob.
415
- *
416
- * If no value provided, or no value provided for the specified blob HTTP headers,
417
- * these blob HTTP headers without a value will be cleared.
418
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-properties
419
- *
420
- * @param blobHTTPHeaders - If no value provided, or no value provided for
421
- * the specified blob HTTP headers, these blob HTTP
422
- * headers without a value will be cleared.
423
- * A common header to set is `blobContentType`
424
- * enabling the browser to provide functionality
425
- * based on file type.
426
- * @param options - Optional options to Blob Set HTTP Headers operation.
427
- */
428
- async setHTTPHeaders(blobHTTPHeaders, options = {}) {
429
- options.conditions = options.conditions || {};
430
- ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
431
- return tracingClient.withSpan("BlobClient-setHTTPHeaders", options, async (updatedOptions) => {
432
- var _a;
433
- return assertResponse(await this.blobContext.setHttpHeaders({
434
- abortSignal: options.abortSignal,
435
- blobHttpHeaders: blobHTTPHeaders,
436
- leaseAccessConditions: options.conditions,
437
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
438
- // cpkInfo: options.customerProvidedKey, // CPK is not included in Swagger, should change this back when this issue is fixed in Swagger.
439
- tracingOptions: updatedOptions.tracingOptions,
440
- }));
441
- });
442
- }
443
- /**
444
- * Sets user-defined metadata for the specified blob as one or more name-value pairs.
445
- *
446
- * If no option provided, or no metadata defined in the parameter, the blob
447
- * metadata will be removed.
448
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-metadata
449
- *
450
- * @param metadata - Replace existing metadata with this value.
451
- * If no value provided the existing metadata will be removed.
452
- * @param options - Optional options to Set Metadata operation.
453
- */
454
- async setMetadata(metadata, options = {}) {
455
- options.conditions = options.conditions || {};
456
- ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
457
- return tracingClient.withSpan("BlobClient-setMetadata", options, async (updatedOptions) => {
458
- var _a;
459
- return assertResponse(await this.blobContext.setMetadata({
460
- abortSignal: options.abortSignal,
461
- leaseAccessConditions: options.conditions,
462
- metadata,
463
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
464
- cpkInfo: options.customerProvidedKey,
465
- encryptionScope: options.encryptionScope,
466
- tracingOptions: updatedOptions.tracingOptions,
467
- }));
468
- });
469
- }
470
- /**
471
- * Sets tags on the underlying blob.
472
- * A blob can have up to 10 tags. Tag keys must be between 1 and 128 characters. Tag values must be between 0 and 256 characters.
473
- * Valid tag key and value characters include lower and upper case letters, digits (0-9),
474
- * space (' '), plus ('+'), minus ('-'), period ('.'), foward slash ('/'), colon (':'), equals ('='), and underscore ('_').
475
- *
476
- * @param tags -
477
- * @param options -
478
- */
479
- async setTags(tags, options = {}) {
480
- return tracingClient.withSpan("BlobClient-setTags", options, async (updatedOptions) => {
481
- var _a;
482
- return assertResponse(await this.blobContext.setTags({
483
- abortSignal: options.abortSignal,
484
- leaseAccessConditions: options.conditions,
485
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
486
- tracingOptions: updatedOptions.tracingOptions,
487
- tags: toBlobTags(tags),
488
- }));
489
- });
490
- }
491
- /**
492
- * Gets the tags associated with the underlying blob.
493
- *
494
- * @param options -
495
- */
496
- async getTags(options = {}) {
497
- return tracingClient.withSpan("BlobClient-getTags", options, async (updatedOptions) => {
498
- var _a;
499
- const response = assertResponse(await this.blobContext.getTags({
500
- abortSignal: options.abortSignal,
501
- leaseAccessConditions: options.conditions,
502
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
503
- tracingOptions: updatedOptions.tracingOptions,
504
- }));
505
- const wrappedResponse = Object.assign(Object.assign({}, response), { _response: response._response, tags: toTags({ blobTagSet: response.blobTagSet }) || {} });
506
- return wrappedResponse;
507
- });
508
- }
509
- /**
510
- * Get a {@link BlobLeaseClient} that manages leases on the blob.
511
- *
512
- * @param proposeLeaseId - Initial proposed lease Id.
513
- * @returns A new BlobLeaseClient object for managing leases on the blob.
514
- */
515
- getBlobLeaseClient(proposeLeaseId) {
516
- return new BlobLeaseClient(this, proposeLeaseId);
517
- }
518
- /**
519
- * Creates a read-only snapshot of a blob.
520
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/snapshot-blob
521
- *
522
- * @param options - Optional options to the Blob Create Snapshot operation.
523
- */
524
- async createSnapshot(options = {}) {
525
- options.conditions = options.conditions || {};
526
- ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
527
- return tracingClient.withSpan("BlobClient-createSnapshot", options, async (updatedOptions) => {
528
- var _a;
529
- return assertResponse(await this.blobContext.createSnapshot({
530
- abortSignal: options.abortSignal,
531
- leaseAccessConditions: options.conditions,
532
- metadata: options.metadata,
533
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
534
- cpkInfo: options.customerProvidedKey,
535
- encryptionScope: options.encryptionScope,
536
- tracingOptions: updatedOptions.tracingOptions,
537
- }));
538
- });
539
- }
540
- /**
541
- * Asynchronously copies a blob to a destination within the storage account.
542
- * This method returns a long running operation poller that allows you to wait
543
- * indefinitely until the copy is completed.
544
- * You can also cancel a copy before it is completed by calling `cancelOperation` on the poller.
545
- * Note that the onProgress callback will not be invoked if the operation completes in the first
546
- * request, and attempting to cancel a completed copy will result in an error being thrown.
547
- *
548
- * In version 2012-02-12 and later, the source for a Copy Blob operation can be
549
- * a committed blob in any Azure storage account.
550
- * Beginning with version 2015-02-21, the source for a Copy Blob operation can be
551
- * an Azure file in any Azure storage account.
552
- * Only storage accounts created on or after June 7th, 2012 allow the Copy Blob
553
- * operation to copy from another storage account.
554
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/copy-blob
555
- *
556
- * Example using automatic polling:
557
- *
558
- * ```js
559
- * const copyPoller = await blobClient.beginCopyFromURL('url');
560
- * const result = await copyPoller.pollUntilDone();
561
- * ```
562
- *
563
- * Example using manual polling:
564
- *
565
- * ```js
566
- * const copyPoller = await blobClient.beginCopyFromURL('url');
567
- * while (!poller.isDone()) {
568
- * await poller.poll();
569
- * }
570
- * const result = copyPoller.getResult();
571
- * ```
572
- *
573
- * Example using progress updates:
574
- *
575
- * ```js
576
- * const copyPoller = await blobClient.beginCopyFromURL('url', {
577
- * onProgress(state) {
578
- * console.log(`Progress: ${state.copyProgress}`);
579
- * }
580
- * });
581
- * const result = await copyPoller.pollUntilDone();
582
- * ```
583
- *
584
- * Example using a changing polling interval (default 15 seconds):
585
- *
586
- * ```js
587
- * const copyPoller = await blobClient.beginCopyFromURL('url', {
588
- * intervalInMs: 1000 // poll blob every 1 second for copy progress
589
- * });
590
- * const result = await copyPoller.pollUntilDone();
591
- * ```
592
- *
593
- * Example using copy cancellation:
594
- *
595
- * ```js
596
- * const copyPoller = await blobClient.beginCopyFromURL('url');
597
- * // cancel operation after starting it.
598
- * try {
599
- * await copyPoller.cancelOperation();
600
- * // calls to get the result now throw PollerCancelledError
601
- * await copyPoller.getResult();
602
- * } catch (err) {
603
- * if (err.name === 'PollerCancelledError') {
604
- * console.log('The copy was cancelled.');
605
- * }
606
- * }
607
- * ```
608
- *
609
- * @param copySource - url to the source Azure Blob/File.
610
- * @param options - Optional options to the Blob Start Copy From URL operation.
611
- */
612
- async beginCopyFromURL(copySource, options = {}) {
613
- const client = {
614
- abortCopyFromURL: (...args) => this.abortCopyFromURL(...args),
615
- getProperties: (...args) => this.getProperties(...args),
616
- startCopyFromURL: (...args) => this.startCopyFromURL(...args),
617
- };
618
- const poller = new BlobBeginCopyFromUrlPoller({
619
- blobClient: client,
620
- copySource,
621
- intervalInMs: options.intervalInMs,
622
- onProgress: options.onProgress,
623
- resumeFrom: options.resumeFrom,
624
- startCopyFromURLOptions: options,
625
- });
626
- // Trigger the startCopyFromURL call by calling poll.
627
- // Any errors from this method should be surfaced to the user.
628
- await poller.poll();
629
- return poller;
630
- }
631
- /**
632
- * Aborts a pending asynchronous Copy Blob operation, and leaves a destination blob with zero
633
- * length and full metadata. Version 2012-02-12 and newer.
634
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/abort-copy-blob
635
- *
636
- * @param copyId - Id of the Copy From URL operation.
637
- * @param options - Optional options to the Blob Abort Copy From URL operation.
638
- */
639
- async abortCopyFromURL(copyId, options = {}) {
640
- return tracingClient.withSpan("BlobClient-abortCopyFromURL", options, async (updatedOptions) => {
641
- return assertResponse(await this.blobContext.abortCopyFromURL(copyId, {
642
- abortSignal: options.abortSignal,
643
- leaseAccessConditions: options.conditions,
644
- tracingOptions: updatedOptions.tracingOptions,
645
- }));
646
- });
647
- }
648
- /**
649
- * The synchronous Copy From URL operation copies a blob or an internet resource to a new blob. It will not
650
- * return a response until the copy is complete.
651
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/copy-blob-from-url
652
- *
653
- * @param copySource - The source URL to copy from, Shared Access Signature(SAS) maybe needed for authentication
654
- * @param options -
655
- */
656
- async syncCopyFromURL(copySource, options = {}) {
657
- options.conditions = options.conditions || {};
658
- options.sourceConditions = options.sourceConditions || {};
659
- return tracingClient.withSpan("BlobClient-syncCopyFromURL", options, async (updatedOptions) => {
660
- var _a, _b, _c, _d, _e, _f, _g;
661
- return assertResponse(await this.blobContext.copyFromURL(copySource, {
662
- abortSignal: options.abortSignal,
663
- metadata: options.metadata,
664
- leaseAccessConditions: options.conditions,
665
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
666
- sourceModifiedAccessConditions: {
667
- sourceIfMatch: (_b = options.sourceConditions) === null || _b === void 0 ? void 0 : _b.ifMatch,
668
- sourceIfModifiedSince: (_c = options.sourceConditions) === null || _c === void 0 ? void 0 : _c.ifModifiedSince,
669
- sourceIfNoneMatch: (_d = options.sourceConditions) === null || _d === void 0 ? void 0 : _d.ifNoneMatch,
670
- sourceIfUnmodifiedSince: (_e = options.sourceConditions) === null || _e === void 0 ? void 0 : _e.ifUnmodifiedSince,
671
- },
672
- sourceContentMD5: options.sourceContentMD5,
673
- copySourceAuthorization: httpAuthorizationToString(options.sourceAuthorization),
674
- tier: toAccessTier(options.tier),
675
- blobTagsString: toBlobTagsString(options.tags),
676
- immutabilityPolicyExpiry: (_f = options.immutabilityPolicy) === null || _f === void 0 ? void 0 : _f.expiriesOn,
677
- immutabilityPolicyMode: (_g = options.immutabilityPolicy) === null || _g === void 0 ? void 0 : _g.policyMode,
678
- legalHold: options.legalHold,
679
- encryptionScope: options.encryptionScope,
680
- copySourceTags: options.copySourceTags,
681
- tracingOptions: updatedOptions.tracingOptions,
682
- }));
683
- });
684
- }
685
- /**
686
- * Sets the tier on a blob. The operation is allowed on a page blob in a premium
687
- * storage account and on a block blob in a blob storage account (locally redundant
688
- * storage only). A premium page blob's tier determines the allowed size, IOPS,
689
- * and bandwidth of the blob. A block blob's tier determines Hot/Cool/Archive
690
- * storage type. This operation does not update the blob's ETag.
691
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-tier
692
- *
693
- * @param tier - The tier to be set on the blob. Valid values are Hot, Cool, or Archive.
694
- * @param options - Optional options to the Blob Set Tier operation.
695
- */
696
- async setAccessTier(tier, options = {}) {
697
- return tracingClient.withSpan("BlobClient-setAccessTier", options, async (updatedOptions) => {
698
- var _a;
699
- return assertResponse(await this.blobContext.setTier(toAccessTier(tier), {
700
- abortSignal: options.abortSignal,
701
- leaseAccessConditions: options.conditions,
702
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
703
- rehydratePriority: options.rehydratePriority,
704
- tracingOptions: updatedOptions.tracingOptions,
705
- }));
706
- });
707
- }
708
- async downloadToBuffer(param1, param2, param3, param4 = {}) {
709
- var _a;
710
- let buffer;
711
- let offset = 0;
712
- let count = 0;
713
- let options = param4;
714
- if (param1 instanceof Buffer) {
715
- buffer = param1;
716
- offset = param2 || 0;
717
- count = typeof param3 === "number" ? param3 : 0;
718
- }
719
- else {
720
- offset = typeof param1 === "number" ? param1 : 0;
721
- count = typeof param2 === "number" ? param2 : 0;
722
- options = param3 || {};
723
- }
724
- let blockSize = (_a = options.blockSize) !== null && _a !== void 0 ? _a : 0;
725
- if (blockSize < 0) {
726
- throw new RangeError("blockSize option must be >= 0");
727
- }
728
- if (blockSize === 0) {
729
- blockSize = DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES;
730
- }
731
- if (offset < 0) {
732
- throw new RangeError("offset option must be >= 0");
733
- }
734
- if (count && count <= 0) {
735
- throw new RangeError("count option must be greater than 0");
736
- }
737
- if (!options.conditions) {
738
- options.conditions = {};
739
- }
740
- return tracingClient.withSpan("BlobClient-downloadToBuffer", options, async (updatedOptions) => {
741
- // Customer doesn't specify length, get it
742
- if (!count) {
743
- const response = await this.getProperties(Object.assign(Object.assign({}, options), { tracingOptions: updatedOptions.tracingOptions }));
744
- count = response.contentLength - offset;
745
- if (count < 0) {
746
- throw new RangeError(`offset ${offset} shouldn't be larger than blob size ${response.contentLength}`);
747
- }
748
- }
749
- // Allocate the buffer of size = count if the buffer is not provided
750
- if (!buffer) {
751
- try {
752
- buffer = Buffer.alloc(count);
753
- }
754
- catch (error) {
755
- throw new Error(`Unable to allocate the buffer of size: ${count}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${error.message}`);
756
- }
757
- }
758
- if (buffer.length < count) {
759
- throw new RangeError(`The buffer's size should be equal to or larger than the request count of bytes: ${count}`);
760
- }
761
- let transferProgress = 0;
762
- const batch = new Batch(options.concurrency);
763
- for (let off = offset; off < offset + count; off = off + blockSize) {
764
- batch.addOperation(async () => {
765
- // Exclusive chunk end position
766
- let chunkEnd = offset + count;
767
- if (off + blockSize < chunkEnd) {
768
- chunkEnd = off + blockSize;
769
- }
770
- const response = await this.download(off, chunkEnd - off, {
771
- abortSignal: options.abortSignal,
772
- conditions: options.conditions,
773
- maxRetryRequests: options.maxRetryRequestsPerBlock,
774
- customerProvidedKey: options.customerProvidedKey,
775
- tracingOptions: updatedOptions.tracingOptions,
776
- });
777
- const stream = response.readableStreamBody;
778
- await streamToBuffer(stream, buffer, off - offset, chunkEnd - offset);
779
- // Update progress after block is downloaded, in case of block trying
780
- // Could provide finer grained progress updating inside HTTP requests,
781
- // only if convenience layer download try is enabled
782
- transferProgress += chunkEnd - off;
783
- if (options.onProgress) {
784
- options.onProgress({ loadedBytes: transferProgress });
785
- }
786
- });
787
- }
788
- await batch.do();
789
- return buffer;
790
- });
791
- }
792
- /**
793
- * ONLY AVAILABLE IN NODE.JS RUNTIME.
794
- *
795
- * Downloads an Azure Blob to a local file.
796
- * Fails if the the given file path already exits.
797
- * Offset and count are optional, pass 0 and undefined respectively to download the entire blob.
798
- *
799
- * @param filePath -
800
- * @param offset - From which position of the block blob to download.
801
- * @param count - How much data to be downloaded. Will download to the end when passing undefined.
802
- * @param options - Options to Blob download options.
803
- * @returns The response data for blob download operation,
804
- * but with readableStreamBody set to undefined since its
805
- * content is already read and written into a local file
806
- * at the specified path.
807
- */
808
- async downloadToFile(filePath, offset = 0, count, options = {}) {
809
- return tracingClient.withSpan("BlobClient-downloadToFile", options, async (updatedOptions) => {
810
- const response = await this.download(offset, count, Object.assign(Object.assign({}, options), { tracingOptions: updatedOptions.tracingOptions }));
811
- if (response.readableStreamBody) {
812
- await readStreamToLocalFile(response.readableStreamBody, filePath);
813
- }
814
- // The stream is no longer accessible so setting it to undefined.
815
- response.blobDownloadStream = undefined;
816
- return response;
817
- });
818
- }
819
- getBlobAndContainerNamesFromUrl() {
820
- let containerName;
821
- let blobName;
822
- try {
823
- // URL may look like the following
824
- // "https://myaccount.blob.core.windows.net/mycontainer/blob?sasString";
825
- // "https://myaccount.blob.core.windows.net/mycontainer/blob";
826
- // "https://myaccount.blob.core.windows.net/mycontainer/blob/a.txt?sasString";
827
- // "https://myaccount.blob.core.windows.net/mycontainer/blob/a.txt";
828
- // IPv4/IPv6 address hosts, Endpoints - `http://127.0.0.1:10000/devstoreaccount1/containername/blob`
829
- // http://localhost:10001/devstoreaccount1/containername/blob
830
- const parsedUrl = new URL(this.url);
831
- if (parsedUrl.host.split(".")[1] === "blob") {
832
- // "https://myaccount.blob.core.windows.net/containername/blob".
833
- // .getPath() -> /containername/blob
834
- const pathComponents = parsedUrl.pathname.match("/([^/]*)(/(.*))?");
835
- containerName = pathComponents[1];
836
- blobName = pathComponents[3];
837
- }
838
- else if (isIpEndpointStyle(parsedUrl)) {
839
- // IPv4/IPv6 address hosts... Example - http://192.0.0.10:10001/devstoreaccount1/containername/blob
840
- // Single word domain without a [dot] in the endpoint... Example - http://localhost:10001/devstoreaccount1/containername/blob
841
- // .getPath() -> /devstoreaccount1/containername/blob
842
- const pathComponents = parsedUrl.pathname.match("/([^/]*)/([^/]*)(/(.*))?");
843
- containerName = pathComponents[2];
844
- blobName = pathComponents[4];
845
- }
846
- else {
847
- // "https://customdomain.com/containername/blob".
848
- // .getPath() -> /containername/blob
849
- const pathComponents = parsedUrl.pathname.match("/([^/]*)(/(.*))?");
850
- containerName = pathComponents[1];
851
- blobName = pathComponents[3];
852
- }
853
- // decode the encoded blobName, containerName - to get all the special characters that might be present in them
854
- containerName = decodeURIComponent(containerName);
855
- blobName = decodeURIComponent(blobName);
856
- // Azure Storage Server will replace "\" with "/" in the blob names
857
- // doing the same in the SDK side so that the user doesn't have to replace "\" instances in the blobName
858
- blobName = blobName.replace(/\\/g, "/");
859
- if (!containerName) {
860
- throw new Error("Provided containerName is invalid.");
861
- }
862
- return { blobName, containerName };
863
- }
864
- catch (error) {
865
- throw new Error("Unable to extract blobName and containerName with provided information.");
866
- }
867
- }
868
- /**
869
- * Asynchronously copies a blob to a destination within the storage account.
870
- * In version 2012-02-12 and later, the source for a Copy Blob operation can be
871
- * a committed blob in any Azure storage account.
872
- * Beginning with version 2015-02-21, the source for a Copy Blob operation can be
873
- * an Azure file in any Azure storage account.
874
- * Only storage accounts created on or after June 7th, 2012 allow the Copy Blob
875
- * operation to copy from another storage account.
876
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/copy-blob
877
- *
878
- * @param copySource - url to the source Azure Blob/File.
879
- * @param options - Optional options to the Blob Start Copy From URL operation.
880
- */
881
- async startCopyFromURL(copySource, options = {}) {
882
- return tracingClient.withSpan("BlobClient-startCopyFromURL", options, async (updatedOptions) => {
883
- var _a, _b, _c;
884
- options.conditions = options.conditions || {};
885
- options.sourceConditions = options.sourceConditions || {};
886
- return assertResponse(await this.blobContext.startCopyFromURL(copySource, {
887
- abortSignal: options.abortSignal,
888
- leaseAccessConditions: options.conditions,
889
- metadata: options.metadata,
890
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
891
- sourceModifiedAccessConditions: {
892
- sourceIfMatch: options.sourceConditions.ifMatch,
893
- sourceIfModifiedSince: options.sourceConditions.ifModifiedSince,
894
- sourceIfNoneMatch: options.sourceConditions.ifNoneMatch,
895
- sourceIfUnmodifiedSince: options.sourceConditions.ifUnmodifiedSince,
896
- sourceIfTags: options.sourceConditions.tagConditions,
897
- },
898
- immutabilityPolicyExpiry: (_b = options.immutabilityPolicy) === null || _b === void 0 ? void 0 : _b.expiriesOn,
899
- immutabilityPolicyMode: (_c = options.immutabilityPolicy) === null || _c === void 0 ? void 0 : _c.policyMode,
900
- legalHold: options.legalHold,
901
- rehydratePriority: options.rehydratePriority,
902
- tier: toAccessTier(options.tier),
903
- blobTagsString: toBlobTagsString(options.tags),
904
- sealBlob: options.sealBlob,
905
- tracingOptions: updatedOptions.tracingOptions,
906
- }));
907
- });
908
- }
909
- /**
910
- * Only available for BlobClient constructed with a shared key credential.
911
- *
912
- * Generates a Blob Service Shared Access Signature (SAS) URI based on the client properties
913
- * and parameters passed in. The SAS is signed by the shared key credential of the client.
914
- *
915
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
916
- *
917
- * @param options - Optional parameters.
918
- * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
919
- */
920
- generateSasUrl(options) {
921
- return new Promise((resolve) => {
922
- if (!(this.credential instanceof StorageSharedKeyCredential)) {
923
- throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");
924
- }
925
- const sas = generateBlobSASQueryParameters(Object.assign({ containerName: this._containerName, blobName: this._name, snapshotTime: this._snapshot, versionId: this._versionId }, options), this.credential).toString();
926
- resolve(appendToURLQuery(this.url, sas));
927
- });
928
- }
929
- /**
930
- * Only available for BlobClient constructed with a shared key credential.
931
- *
932
- * Generates string to sign for a Blob Service Shared Access Signature (SAS) URI based on
933
- * the client properties and parameters passed in. The SAS is signed by the shared key credential of the client.
934
- *
935
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
936
- *
937
- * @param options - Optional parameters.
938
- * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
939
- */
940
- /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/
941
- generateSasStringToSign(options) {
942
- if (!(this.credential instanceof StorageSharedKeyCredential)) {
943
- throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");
944
- }
945
- return generateBlobSASQueryParametersInternal(Object.assign({ containerName: this._containerName, blobName: this._name, snapshotTime: this._snapshot, versionId: this._versionId }, options), this.credential).stringToSign;
946
- }
947
- /**
948
- *
949
- * Generates a Blob Service Shared Access Signature (SAS) URI based on
950
- * the client properties and parameters passed in. The SAS is signed by the input user delegation key.
951
- *
952
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
953
- *
954
- * @param options - Optional parameters.
955
- * @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
956
- * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
957
- */
958
- generateUserDelegationSasUrl(options, userDelegationKey) {
959
- return new Promise((resolve) => {
960
- const sas = generateBlobSASQueryParameters(Object.assign({ containerName: this._containerName, blobName: this._name, snapshotTime: this._snapshot, versionId: this._versionId }, options), userDelegationKey, this.accountName).toString();
961
- resolve(appendToURLQuery(this.url, sas));
962
- });
963
- }
964
- /**
965
- * Only available for BlobClient constructed with a shared key credential.
966
- *
967
- * Generates string to sign for a Blob Service Shared Access Signature (SAS) URI based on
968
- * the client properties and parameters passed in. The SAS is signed by the input user delegation key.
969
- *
970
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
971
- *
972
- * @param options - Optional parameters.
973
- * @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
974
- * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
975
- */
976
- generateUserDelegationSasStringToSign(options, userDelegationKey) {
977
- return generateBlobSASQueryParametersInternal(Object.assign({ containerName: this._containerName, blobName: this._name, snapshotTime: this._snapshot, versionId: this._versionId }, options), userDelegationKey, this.accountName).stringToSign;
978
- }
979
- /**
980
- * Delete the immutablility policy on the blob.
981
- *
982
- * @param options - Optional options to delete immutability policy on the blob.
983
- */
984
- async deleteImmutabilityPolicy(options = {}) {
985
- return tracingClient.withSpan("BlobClient-deleteImmutabilityPolicy", options, async (updatedOptions) => {
986
- return assertResponse(await this.blobContext.deleteImmutabilityPolicy({
987
- tracingOptions: updatedOptions.tracingOptions,
988
- }));
989
- });
990
- }
991
- /**
992
- * Set immutability policy on the blob.
993
- *
994
- * @param options - Optional options to set immutability policy on the blob.
995
- */
996
- async setImmutabilityPolicy(immutabilityPolicy, options = {}) {
997
- return tracingClient.withSpan("BlobClient-setImmutabilityPolicy", options, async (updatedOptions) => {
998
- return assertResponse(await this.blobContext.setImmutabilityPolicy({
999
- immutabilityPolicyExpiry: immutabilityPolicy.expiriesOn,
1000
- immutabilityPolicyMode: immutabilityPolicy.policyMode,
1001
- tracingOptions: updatedOptions.tracingOptions,
1002
- }));
1003
- });
1004
- }
1005
- /**
1006
- * Set legal hold on the blob.
1007
- *
1008
- * @param options - Optional options to set legal hold on the blob.
1009
- */
1010
- async setLegalHold(legalHoldEnabled, options = {}) {
1011
- return tracingClient.withSpan("BlobClient-setLegalHold", options, async (updatedOptions) => {
1012
- return assertResponse(await this.blobContext.setLegalHold(legalHoldEnabled, {
1013
- tracingOptions: updatedOptions.tracingOptions,
1014
- }));
1015
- });
1016
- }
1017
- /**
1018
- * The Get Account Information operation returns the sku name and account kind
1019
- * for the specified account.
1020
- * The Get Account Information operation is available on service versions beginning
1021
- * with version 2018-03-28.
1022
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-account-information
1023
- *
1024
- * @param options - Options to the Service Get Account Info operation.
1025
- * @returns Response data for the Service Get Account Info operation.
1026
- */
1027
- async getAccountInfo(options = {}) {
1028
- return tracingClient.withSpan("BlobClient-getAccountInfo", options, async (updatedOptions) => {
1029
- return assertResponse(await this.blobContext.getAccountInfo({
1030
- abortSignal: options.abortSignal,
1031
- tracingOptions: updatedOptions.tracingOptions,
1032
- }));
1033
- });
1034
- }
1035
- }
1036
- /**
1037
- * AppendBlobClient defines a set of operations applicable to append blobs.
1038
- */
1039
- export class AppendBlobClient extends BlobClient {
1040
- constructor(urlOrConnectionString, credentialOrPipelineOrContainerName, blobNameOrOptions,
1041
- // Legacy, no fix for eslint error without breaking. Disable it for this interface.
1042
- /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/
1043
- options) {
1044
- // In TypeScript we cannot simply pass all parameters to super() like below so have to duplicate the code instead.
1045
- // super(s, credentialOrPipelineOrContainerNameOrOptions, blobNameOrOptions, options);
1046
- let pipeline;
1047
- let url;
1048
- options = options || {};
1049
- if (isPipelineLike(credentialOrPipelineOrContainerName)) {
1050
- // (url: string, pipeline: Pipeline)
1051
- url = urlOrConnectionString;
1052
- pipeline = credentialOrPipelineOrContainerName;
1053
- }
1054
- else if ((isNode && credentialOrPipelineOrContainerName instanceof StorageSharedKeyCredential) ||
1055
- credentialOrPipelineOrContainerName instanceof AnonymousCredential ||
1056
- isTokenCredential(credentialOrPipelineOrContainerName)) {
1057
- // (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions) url = urlOrConnectionString;
1058
- url = urlOrConnectionString;
1059
- options = blobNameOrOptions;
1060
- pipeline = newPipeline(credentialOrPipelineOrContainerName, options);
1061
- }
1062
- else if (!credentialOrPipelineOrContainerName &&
1063
- typeof credentialOrPipelineOrContainerName !== "string") {
1064
- // (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)
1065
- url = urlOrConnectionString;
1066
- // The second parameter is undefined. Use anonymous credential.
1067
- pipeline = newPipeline(new AnonymousCredential(), options);
1068
- }
1069
- else if (credentialOrPipelineOrContainerName &&
1070
- typeof credentialOrPipelineOrContainerName === "string" &&
1071
- blobNameOrOptions &&
1072
- typeof blobNameOrOptions === "string") {
1073
- // (connectionString: string, containerName: string, blobName: string, options?: StoragePipelineOptions)
1074
- const containerName = credentialOrPipelineOrContainerName;
1075
- const blobName = blobNameOrOptions;
1076
- const extractedCreds = extractConnectionStringParts(urlOrConnectionString);
1077
- if (extractedCreds.kind === "AccountConnString") {
1078
- if (isNode) {
1079
- const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);
1080
- url = appendToURLPath(appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), encodeURIComponent(blobName));
1081
- if (!options.proxyOptions) {
1082
- options.proxyOptions = getDefaultProxySettings(extractedCreds.proxyUri);
1083
- }
1084
- pipeline = newPipeline(sharedKeyCredential, options);
1085
- }
1086
- else {
1087
- throw new Error("Account connection string is only supported in Node.js environment");
1088
- }
1089
- }
1090
- else if (extractedCreds.kind === "SASConnString") {
1091
- url =
1092
- appendToURLPath(appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), encodeURIComponent(blobName)) +
1093
- "?" +
1094
- extractedCreds.accountSas;
1095
- pipeline = newPipeline(new AnonymousCredential(), options);
1096
- }
1097
- else {
1098
- throw new Error("Connection string must be either an Account connection string or a SAS connection string");
1099
- }
1100
- }
1101
- else {
1102
- throw new Error("Expecting non-empty strings for containerName and blobName parameters");
1103
- }
1104
- super(url, pipeline);
1105
- this.appendBlobContext = this.storageClientContext.appendBlob;
1106
- }
1107
- /**
1108
- * Creates a new AppendBlobClient object identical to the source but with the
1109
- * specified snapshot timestamp.
1110
- * Provide "" will remove the snapshot and return a Client to the base blob.
1111
- *
1112
- * @param snapshot - The snapshot timestamp.
1113
- * @returns A new AppendBlobClient object identical to the source but with the specified snapshot timestamp.
1114
- */
1115
- withSnapshot(snapshot) {
1116
- return new AppendBlobClient(setURLParameter(this.url, URLConstants.Parameters.SNAPSHOT, snapshot.length === 0 ? undefined : snapshot), this.pipeline);
1117
- }
1118
- /**
1119
- * Creates a 0-length append blob. Call AppendBlock to append data to an append blob.
1120
- * @see https://learn.microsoft.com/rest/api/storageservices/put-blob
1121
- *
1122
- * @param options - Options to the Append Block Create operation.
1123
- *
1124
- *
1125
- * Example usage:
1126
- *
1127
- * ```js
1128
- * const appendBlobClient = containerClient.getAppendBlobClient("<blob name>");
1129
- * await appendBlobClient.create();
1130
- * ```
1131
- */
1132
- async create(options = {}) {
1133
- options.conditions = options.conditions || {};
1134
- ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
1135
- return tracingClient.withSpan("AppendBlobClient-create", options, async (updatedOptions) => {
1136
- var _a, _b, _c;
1137
- return assertResponse(await this.appendBlobContext.create(0, {
1138
- abortSignal: options.abortSignal,
1139
- blobHttpHeaders: options.blobHTTPHeaders,
1140
- leaseAccessConditions: options.conditions,
1141
- metadata: options.metadata,
1142
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
1143
- cpkInfo: options.customerProvidedKey,
1144
- encryptionScope: options.encryptionScope,
1145
- immutabilityPolicyExpiry: (_b = options.immutabilityPolicy) === null || _b === void 0 ? void 0 : _b.expiriesOn,
1146
- immutabilityPolicyMode: (_c = options.immutabilityPolicy) === null || _c === void 0 ? void 0 : _c.policyMode,
1147
- legalHold: options.legalHold,
1148
- blobTagsString: toBlobTagsString(options.tags),
1149
- tracingOptions: updatedOptions.tracingOptions,
1150
- }));
1151
- });
1152
- }
1153
- /**
1154
- * Creates a 0-length append blob. Call AppendBlock to append data to an append blob.
1155
- * If the blob with the same name already exists, the content of the existing blob will remain unchanged.
1156
- * @see https://learn.microsoft.com/rest/api/storageservices/put-blob
1157
- *
1158
- * @param options -
1159
- */
1160
- async createIfNotExists(options = {}) {
1161
- const conditions = { ifNoneMatch: ETagAny };
1162
- return tracingClient.withSpan("AppendBlobClient-createIfNotExists", options, async (updatedOptions) => {
1163
- var _a, _b;
1164
- try {
1165
- const res = assertResponse(await this.create(Object.assign(Object.assign({}, updatedOptions), { conditions })));
1166
- return Object.assign(Object.assign({ succeeded: true }, res), { _response: res._response });
1167
- }
1168
- catch (e) {
1169
- if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "BlobAlreadyExists") {
1170
- return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });
1171
- }
1172
- throw e;
1173
- }
1174
- });
1175
- }
1176
- /**
1177
- * Seals the append blob, making it read only.
1178
- *
1179
- * @param options -
1180
- */
1181
- async seal(options = {}) {
1182
- options.conditions = options.conditions || {};
1183
- return tracingClient.withSpan("AppendBlobClient-seal", options, async (updatedOptions) => {
1184
- var _a;
1185
- return assertResponse(await this.appendBlobContext.seal({
1186
- abortSignal: options.abortSignal,
1187
- appendPositionAccessConditions: options.conditions,
1188
- leaseAccessConditions: options.conditions,
1189
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
1190
- tracingOptions: updatedOptions.tracingOptions,
1191
- }));
1192
- });
1193
- }
1194
- /**
1195
- * Commits a new block of data to the end of the existing append blob.
1196
- * @see https://learn.microsoft.com/rest/api/storageservices/append-block
1197
- *
1198
- * @param body - Data to be appended.
1199
- * @param contentLength - Length of the body in bytes.
1200
- * @param options - Options to the Append Block operation.
1201
- *
1202
- *
1203
- * Example usage:
1204
- *
1205
- * ```js
1206
- * const content = "Hello World!";
1207
- *
1208
- * // Create a new append blob and append data to the blob.
1209
- * const newAppendBlobClient = containerClient.getAppendBlobClient("<blob name>");
1210
- * await newAppendBlobClient.create();
1211
- * await newAppendBlobClient.appendBlock(content, content.length);
1212
- *
1213
- * // Append data to an existing append blob.
1214
- * const existingAppendBlobClient = containerClient.getAppendBlobClient("<blob name>");
1215
- * await existingAppendBlobClient.appendBlock(content, content.length);
1216
- * ```
1217
- */
1218
- async appendBlock(body, contentLength, options = {}) {
1219
- options.conditions = options.conditions || {};
1220
- ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
1221
- return tracingClient.withSpan("AppendBlobClient-appendBlock", options, async (updatedOptions) => {
1222
- var _a;
1223
- return assertResponse(await this.appendBlobContext.appendBlock(contentLength, body, {
1224
- abortSignal: options.abortSignal,
1225
- appendPositionAccessConditions: options.conditions,
1226
- leaseAccessConditions: options.conditions,
1227
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
1228
- requestOptions: {
1229
- onUploadProgress: options.onProgress,
1230
- },
1231
- transactionalContentMD5: options.transactionalContentMD5,
1232
- transactionalContentCrc64: options.transactionalContentCrc64,
1233
- cpkInfo: options.customerProvidedKey,
1234
- encryptionScope: options.encryptionScope,
1235
- tracingOptions: updatedOptions.tracingOptions,
1236
- }));
1237
- });
1238
- }
1239
- /**
1240
- * The Append Block operation commits a new block of data to the end of an existing append blob
1241
- * where the contents are read from a source url.
1242
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/append-block-from-url
1243
- *
1244
- * @param sourceURL -
1245
- * The url to the blob that will be the source of the copy. A source blob in the same storage account can
1246
- * be authenticated via Shared Key. However, if the source is a blob in another account, the source blob
1247
- * must either be public or must be authenticated via a shared access signature. If the source blob is
1248
- * public, no authentication is required to perform the operation.
1249
- * @param sourceOffset - Offset in source to be appended
1250
- * @param count - Number of bytes to be appended as a block
1251
- * @param options -
1252
- */
1253
- async appendBlockFromURL(sourceURL, sourceOffset, count, options = {}) {
1254
- options.conditions = options.conditions || {};
1255
- options.sourceConditions = options.sourceConditions || {};
1256
- ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
1257
- return tracingClient.withSpan("AppendBlobClient-appendBlockFromURL", options, async (updatedOptions) => {
1258
- var _a, _b, _c, _d, _e;
1259
- return assertResponse(await this.appendBlobContext.appendBlockFromUrl(sourceURL, 0, {
1260
- abortSignal: options.abortSignal,
1261
- sourceRange: rangeToString({ offset: sourceOffset, count }),
1262
- sourceContentMD5: options.sourceContentMD5,
1263
- sourceContentCrc64: options.sourceContentCrc64,
1264
- leaseAccessConditions: options.conditions,
1265
- appendPositionAccessConditions: options.conditions,
1266
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
1267
- sourceModifiedAccessConditions: {
1268
- sourceIfMatch: (_b = options.sourceConditions) === null || _b === void 0 ? void 0 : _b.ifMatch,
1269
- sourceIfModifiedSince: (_c = options.sourceConditions) === null || _c === void 0 ? void 0 : _c.ifModifiedSince,
1270
- sourceIfNoneMatch: (_d = options.sourceConditions) === null || _d === void 0 ? void 0 : _d.ifNoneMatch,
1271
- sourceIfUnmodifiedSince: (_e = options.sourceConditions) === null || _e === void 0 ? void 0 : _e.ifUnmodifiedSince,
1272
- },
1273
- copySourceAuthorization: httpAuthorizationToString(options.sourceAuthorization),
1274
- cpkInfo: options.customerProvidedKey,
1275
- encryptionScope: options.encryptionScope,
1276
- tracingOptions: updatedOptions.tracingOptions,
1277
- }));
1278
- });
1279
- }
1280
- }
1281
- /**
1282
- * BlockBlobClient defines a set of operations applicable to block blobs.
1283
- */
1284
- export class BlockBlobClient extends BlobClient {
1285
- constructor(urlOrConnectionString, credentialOrPipelineOrContainerName, blobNameOrOptions,
1286
- // Legacy, no fix for eslint error without breaking. Disable it for this interface.
1287
- /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/
1288
- options) {
1289
- // In TypeScript we cannot simply pass all parameters to super() like below so have to duplicate the code instead.
1290
- // super(s, credentialOrPipelineOrContainerNameOrOptions, blobNameOrOptions, options);
1291
- let pipeline;
1292
- let url;
1293
- options = options || {};
1294
- if (isPipelineLike(credentialOrPipelineOrContainerName)) {
1295
- // (url: string, pipeline: Pipeline)
1296
- url = urlOrConnectionString;
1297
- pipeline = credentialOrPipelineOrContainerName;
1298
- }
1299
- else if ((isNode && credentialOrPipelineOrContainerName instanceof StorageSharedKeyCredential) ||
1300
- credentialOrPipelineOrContainerName instanceof AnonymousCredential ||
1301
- isTokenCredential(credentialOrPipelineOrContainerName)) {
1302
- // (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)
1303
- url = urlOrConnectionString;
1304
- options = blobNameOrOptions;
1305
- pipeline = newPipeline(credentialOrPipelineOrContainerName, options);
1306
- }
1307
- else if (!credentialOrPipelineOrContainerName &&
1308
- typeof credentialOrPipelineOrContainerName !== "string") {
1309
- // (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)
1310
- // The second parameter is undefined. Use anonymous credential.
1311
- url = urlOrConnectionString;
1312
- if (blobNameOrOptions && typeof blobNameOrOptions !== "string") {
1313
- options = blobNameOrOptions;
1314
- }
1315
- pipeline = newPipeline(new AnonymousCredential(), options);
1316
- }
1317
- else if (credentialOrPipelineOrContainerName &&
1318
- typeof credentialOrPipelineOrContainerName === "string" &&
1319
- blobNameOrOptions &&
1320
- typeof blobNameOrOptions === "string") {
1321
- // (connectionString: string, containerName: string, blobName: string, options?: StoragePipelineOptions)
1322
- const containerName = credentialOrPipelineOrContainerName;
1323
- const blobName = blobNameOrOptions;
1324
- const extractedCreds = extractConnectionStringParts(urlOrConnectionString);
1325
- if (extractedCreds.kind === "AccountConnString") {
1326
- if (isNode) {
1327
- const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);
1328
- url = appendToURLPath(appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), encodeURIComponent(blobName));
1329
- if (!options.proxyOptions) {
1330
- options.proxyOptions = getDefaultProxySettings(extractedCreds.proxyUri);
1331
- }
1332
- pipeline = newPipeline(sharedKeyCredential, options);
1333
- }
1334
- else {
1335
- throw new Error("Account connection string is only supported in Node.js environment");
1336
- }
1337
- }
1338
- else if (extractedCreds.kind === "SASConnString") {
1339
- url =
1340
- appendToURLPath(appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), encodeURIComponent(blobName)) +
1341
- "?" +
1342
- extractedCreds.accountSas;
1343
- pipeline = newPipeline(new AnonymousCredential(), options);
1344
- }
1345
- else {
1346
- throw new Error("Connection string must be either an Account connection string or a SAS connection string");
1347
- }
1348
- }
1349
- else {
1350
- throw new Error("Expecting non-empty strings for containerName and blobName parameters");
1351
- }
1352
- super(url, pipeline);
1353
- this.blockBlobContext = this.storageClientContext.blockBlob;
1354
- this._blobContext = this.storageClientContext.blob;
1355
- }
1356
- /**
1357
- * Creates a new BlockBlobClient object identical to the source but with the
1358
- * specified snapshot timestamp.
1359
- * Provide "" will remove the snapshot and return a URL to the base blob.
1360
- *
1361
- * @param snapshot - The snapshot timestamp.
1362
- * @returns A new BlockBlobClient object identical to the source but with the specified snapshot timestamp.
1363
- */
1364
- withSnapshot(snapshot) {
1365
- return new BlockBlobClient(setURLParameter(this.url, URLConstants.Parameters.SNAPSHOT, snapshot.length === 0 ? undefined : snapshot), this.pipeline);
1366
- }
1367
- /**
1368
- * ONLY AVAILABLE IN NODE.JS RUNTIME.
1369
- *
1370
- * Quick query for a JSON or CSV formatted blob.
1371
- *
1372
- * Example usage (Node.js):
1373
- *
1374
- * ```js
1375
- * // Query and convert a blob to a string
1376
- * const queryBlockBlobResponse = await blockBlobClient.query("select * from BlobStorage");
1377
- * const downloaded = (await streamToBuffer(queryBlockBlobResponse.readableStreamBody)).toString();
1378
- * console.log("Query blob content:", downloaded);
1379
- *
1380
- * async function streamToBuffer(readableStream) {
1381
- * return new Promise((resolve, reject) => {
1382
- * const chunks = [];
1383
- * readableStream.on("data", (data) => {
1384
- * chunks.push(typeof data === "string" ? Buffer.from(data) : data);
1385
- * });
1386
- * readableStream.on("end", () => {
1387
- * resolve(Buffer.concat(chunks));
1388
- * });
1389
- * readableStream.on("error", reject);
1390
- * });
1391
- * }
1392
- * ```
1393
- *
1394
- * @param query -
1395
- * @param options -
1396
- */
1397
- async query(query, options = {}) {
1398
- ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
1399
- if (!isNode) {
1400
- throw new Error("This operation currently is only supported in Node.js.");
1401
- }
1402
- return tracingClient.withSpan("BlockBlobClient-query", options, async (updatedOptions) => {
1403
- var _a;
1404
- const response = assertResponse(await this._blobContext.query({
1405
- abortSignal: options.abortSignal,
1406
- queryRequest: {
1407
- queryType: "SQL",
1408
- expression: query,
1409
- inputSerialization: toQuerySerialization(options.inputTextConfiguration),
1410
- outputSerialization: toQuerySerialization(options.outputTextConfiguration),
1411
- },
1412
- leaseAccessConditions: options.conditions,
1413
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
1414
- cpkInfo: options.customerProvidedKey,
1415
- tracingOptions: updatedOptions.tracingOptions,
1416
- }));
1417
- return new BlobQueryResponse(response, {
1418
- abortSignal: options.abortSignal,
1419
- onProgress: options.onProgress,
1420
- onError: options.onError,
1421
- });
1422
- });
1423
- }
1424
- /**
1425
- * Creates a new block blob, or updates the content of an existing block blob.
1426
- * Updating an existing block blob overwrites any existing metadata on the blob.
1427
- * Partial updates are not supported; the content of the existing blob is
1428
- * overwritten with the new content. To perform a partial update of a block blob's,
1429
- * use {@link stageBlock} and {@link commitBlockList}.
1430
- *
1431
- * This is a non-parallel uploading method, please use {@link uploadFile},
1432
- * {@link uploadStream} or {@link uploadBrowserData} for better performance
1433
- * with concurrency uploading.
1434
- *
1435
- * @see https://learn.microsoft.com/rest/api/storageservices/put-blob
1436
- *
1437
- * @param body - Blob, string, ArrayBuffer, ArrayBufferView or a function
1438
- * which returns a new Readable stream whose offset is from data source beginning.
1439
- * @param contentLength - Length of body in bytes. Use Buffer.byteLength() to calculate body length for a
1440
- * string including non non-Base64/Hex-encoded characters.
1441
- * @param options - Options to the Block Blob Upload operation.
1442
- * @returns Response data for the Block Blob Upload operation.
1443
- *
1444
- * Example usage:
1445
- *
1446
- * ```js
1447
- * const content = "Hello world!";
1448
- * const uploadBlobResponse = await blockBlobClient.upload(content, content.length);
1449
- * ```
1450
- */
1451
- async upload(body, contentLength, options = {}) {
1452
- options.conditions = options.conditions || {};
1453
- ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
1454
- return tracingClient.withSpan("BlockBlobClient-upload", options, async (updatedOptions) => {
1455
- var _a, _b, _c;
1456
- return assertResponse(await this.blockBlobContext.upload(contentLength, body, {
1457
- abortSignal: options.abortSignal,
1458
- blobHttpHeaders: options.blobHTTPHeaders,
1459
- leaseAccessConditions: options.conditions,
1460
- metadata: options.metadata,
1461
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
1462
- requestOptions: {
1463
- onUploadProgress: options.onProgress,
1464
- },
1465
- cpkInfo: options.customerProvidedKey,
1466
- encryptionScope: options.encryptionScope,
1467
- immutabilityPolicyExpiry: (_b = options.immutabilityPolicy) === null || _b === void 0 ? void 0 : _b.expiriesOn,
1468
- immutabilityPolicyMode: (_c = options.immutabilityPolicy) === null || _c === void 0 ? void 0 : _c.policyMode,
1469
- legalHold: options.legalHold,
1470
- tier: toAccessTier(options.tier),
1471
- blobTagsString: toBlobTagsString(options.tags),
1472
- tracingOptions: updatedOptions.tracingOptions,
1473
- }));
1474
- });
1475
- }
1476
- /**
1477
- * Creates a new Block Blob where the contents of the blob are read from a given URL.
1478
- * This API is supported beginning with the 2020-04-08 version. Partial updates
1479
- * are not supported with Put Blob from URL; the content of an existing blob is overwritten with
1480
- * the content of the new blob. To perform partial updates to a block blob’s contents using a
1481
- * source URL, use {@link stageBlockFromURL} and {@link commitBlockList}.
1482
- *
1483
- * @param sourceURL - Specifies the URL of the blob. The value
1484
- * may be a URL of up to 2 KB in length that specifies a blob.
1485
- * The value should be URL-encoded as it would appear
1486
- * in a request URI. The source blob must either be public
1487
- * or must be authenticated via a shared access signature.
1488
- * If the source blob is public, no authentication is required
1489
- * to perform the operation. Here are some examples of source object URLs:
1490
- * - https://myaccount.blob.core.windows.net/mycontainer/myblob
1491
- * - https://myaccount.blob.core.windows.net/mycontainer/myblob?snapshot=<DateTime>
1492
- * @param options - Optional parameters.
1493
- */
1494
- async syncUploadFromURL(sourceURL, options = {}) {
1495
- options.conditions = options.conditions || {};
1496
- ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
1497
- return tracingClient.withSpan("BlockBlobClient-syncUploadFromURL", options, async (updatedOptions) => {
1498
- var _a, _b, _c, _d, _e, _f;
1499
- return assertResponse(await this.blockBlobContext.putBlobFromUrl(0, sourceURL, Object.assign(Object.assign({}, options), { blobHttpHeaders: options.blobHTTPHeaders, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), sourceModifiedAccessConditions: {
1500
- sourceIfMatch: (_b = options.sourceConditions) === null || _b === void 0 ? void 0 : _b.ifMatch,
1501
- sourceIfModifiedSince: (_c = options.sourceConditions) === null || _c === void 0 ? void 0 : _c.ifModifiedSince,
1502
- sourceIfNoneMatch: (_d = options.sourceConditions) === null || _d === void 0 ? void 0 : _d.ifNoneMatch,
1503
- sourceIfUnmodifiedSince: (_e = options.sourceConditions) === null || _e === void 0 ? void 0 : _e.ifUnmodifiedSince,
1504
- sourceIfTags: (_f = options.sourceConditions) === null || _f === void 0 ? void 0 : _f.tagConditions,
1505
- }, cpkInfo: options.customerProvidedKey, copySourceAuthorization: httpAuthorizationToString(options.sourceAuthorization), tier: toAccessTier(options.tier), blobTagsString: toBlobTagsString(options.tags), copySourceTags: options.copySourceTags, tracingOptions: updatedOptions.tracingOptions })));
1506
- });
1507
- }
1508
- /**
1509
- * Uploads the specified block to the block blob's "staging area" to be later
1510
- * committed by a call to commitBlockList.
1511
- * @see https://learn.microsoft.com/rest/api/storageservices/put-block
1512
- *
1513
- * @param blockId - A 64-byte value that is base64-encoded
1514
- * @param body - Data to upload to the staging area.
1515
- * @param contentLength - Number of bytes to upload.
1516
- * @param options - Options to the Block Blob Stage Block operation.
1517
- * @returns Response data for the Block Blob Stage Block operation.
1518
- */
1519
- async stageBlock(blockId, body, contentLength, options = {}) {
1520
- ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
1521
- return tracingClient.withSpan("BlockBlobClient-stageBlock", options, async (updatedOptions) => {
1522
- return assertResponse(await this.blockBlobContext.stageBlock(blockId, contentLength, body, {
1523
- abortSignal: options.abortSignal,
1524
- leaseAccessConditions: options.conditions,
1525
- requestOptions: {
1526
- onUploadProgress: options.onProgress,
1527
- },
1528
- transactionalContentMD5: options.transactionalContentMD5,
1529
- transactionalContentCrc64: options.transactionalContentCrc64,
1530
- cpkInfo: options.customerProvidedKey,
1531
- encryptionScope: options.encryptionScope,
1532
- tracingOptions: updatedOptions.tracingOptions,
1533
- }));
1534
- });
1535
- }
1536
- /**
1537
- * The Stage Block From URL operation creates a new block to be committed as part
1538
- * of a blob where the contents are read from a URL.
1539
- * This API is available starting in version 2018-03-28.
1540
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/put-block-from-url
1541
- *
1542
- * @param blockId - A 64-byte value that is base64-encoded
1543
- * @param sourceURL - Specifies the URL of the blob. The value
1544
- * may be a URL of up to 2 KB in length that specifies a blob.
1545
- * The value should be URL-encoded as it would appear
1546
- * in a request URI. The source blob must either be public
1547
- * or must be authenticated via a shared access signature.
1548
- * If the source blob is public, no authentication is required
1549
- * to perform the operation. Here are some examples of source object URLs:
1550
- * - https://myaccount.blob.core.windows.net/mycontainer/myblob
1551
- * - https://myaccount.blob.core.windows.net/mycontainer/myblob?snapshot=<DateTime>
1552
- * @param offset - From which position of the blob to download, greater than or equal to 0
1553
- * @param count - How much data to be downloaded, greater than 0. Will download to the end when undefined
1554
- * @param options - Options to the Block Blob Stage Block From URL operation.
1555
- * @returns Response data for the Block Blob Stage Block From URL operation.
1556
- */
1557
- async stageBlockFromURL(blockId, sourceURL, offset = 0, count, options = {}) {
1558
- ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
1559
- return tracingClient.withSpan("BlockBlobClient-stageBlockFromURL", options, async (updatedOptions) => {
1560
- return assertResponse(await this.blockBlobContext.stageBlockFromURL(blockId, 0, sourceURL, {
1561
- abortSignal: options.abortSignal,
1562
- leaseAccessConditions: options.conditions,
1563
- sourceContentMD5: options.sourceContentMD5,
1564
- sourceContentCrc64: options.sourceContentCrc64,
1565
- sourceRange: offset === 0 && !count ? undefined : rangeToString({ offset, count }),
1566
- cpkInfo: options.customerProvidedKey,
1567
- encryptionScope: options.encryptionScope,
1568
- copySourceAuthorization: httpAuthorizationToString(options.sourceAuthorization),
1569
- tracingOptions: updatedOptions.tracingOptions,
1570
- }));
1571
- });
1572
- }
1573
- /**
1574
- * Writes a blob by specifying the list of block IDs that make up the blob.
1575
- * In order to be written as part of a blob, a block must have been successfully written
1576
- * to the server in a prior {@link stageBlock} operation. You can call {@link commitBlockList} to
1577
- * update a blob by uploading only those blocks that have changed, then committing the new and existing
1578
- * blocks together. Any blocks not specified in the block list and permanently deleted.
1579
- * @see https://learn.microsoft.com/rest/api/storageservices/put-block-list
1580
- *
1581
- * @param blocks - Array of 64-byte value that is base64-encoded
1582
- * @param options - Options to the Block Blob Commit Block List operation.
1583
- * @returns Response data for the Block Blob Commit Block List operation.
1584
- */
1585
- async commitBlockList(blocks, options = {}) {
1586
- options.conditions = options.conditions || {};
1587
- ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
1588
- return tracingClient.withSpan("BlockBlobClient-commitBlockList", options, async (updatedOptions) => {
1589
- var _a, _b, _c;
1590
- return assertResponse(await this.blockBlobContext.commitBlockList({ latest: blocks }, {
1591
- abortSignal: options.abortSignal,
1592
- blobHttpHeaders: options.blobHTTPHeaders,
1593
- leaseAccessConditions: options.conditions,
1594
- metadata: options.metadata,
1595
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
1596
- cpkInfo: options.customerProvidedKey,
1597
- encryptionScope: options.encryptionScope,
1598
- immutabilityPolicyExpiry: (_b = options.immutabilityPolicy) === null || _b === void 0 ? void 0 : _b.expiriesOn,
1599
- immutabilityPolicyMode: (_c = options.immutabilityPolicy) === null || _c === void 0 ? void 0 : _c.policyMode,
1600
- legalHold: options.legalHold,
1601
- tier: toAccessTier(options.tier),
1602
- blobTagsString: toBlobTagsString(options.tags),
1603
- tracingOptions: updatedOptions.tracingOptions,
1604
- }));
1605
- });
1606
- }
1607
- /**
1608
- * Returns the list of blocks that have been uploaded as part of a block blob
1609
- * using the specified block list filter.
1610
- * @see https://learn.microsoft.com/rest/api/storageservices/get-block-list
1611
- *
1612
- * @param listType - Specifies whether to return the list of committed blocks,
1613
- * the list of uncommitted blocks, or both lists together.
1614
- * @param options - Options to the Block Blob Get Block List operation.
1615
- * @returns Response data for the Block Blob Get Block List operation.
1616
- */
1617
- async getBlockList(listType, options = {}) {
1618
- return tracingClient.withSpan("BlockBlobClient-getBlockList", options, async (updatedOptions) => {
1619
- var _a;
1620
- const res = assertResponse(await this.blockBlobContext.getBlockList(listType, {
1621
- abortSignal: options.abortSignal,
1622
- leaseAccessConditions: options.conditions,
1623
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
1624
- tracingOptions: updatedOptions.tracingOptions,
1625
- }));
1626
- if (!res.committedBlocks) {
1627
- res.committedBlocks = [];
1628
- }
1629
- if (!res.uncommittedBlocks) {
1630
- res.uncommittedBlocks = [];
1631
- }
1632
- return res;
1633
- });
1634
- }
1635
- // High level functions
1636
- /**
1637
- * Uploads a Buffer(Node.js)/Blob(browsers)/ArrayBuffer/ArrayBufferView object to a BlockBlob.
1638
- *
1639
- * When data length is no more than the specifiled {@link BlockBlobParallelUploadOptions.maxSingleShotSize} (default is
1640
- * {@link BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}), this method will use 1 {@link upload} call to finish the upload.
1641
- * Otherwise, this method will call {@link stageBlock} to upload blocks, and finally call {@link commitBlockList}
1642
- * to commit the block list.
1643
- *
1644
- * A common {@link BlockBlobParallelUploadOptions.blobHTTPHeaders} option to set is
1645
- * `blobContentType`, enabling the browser to provide
1646
- * functionality based on file type.
1647
- *
1648
- * @param data - Buffer(Node.js), Blob, ArrayBuffer or ArrayBufferView
1649
- * @param options -
1650
- */
1651
- async uploadData(data, options = {}) {
1652
- return tracingClient.withSpan("BlockBlobClient-uploadData", options, async (updatedOptions) => {
1653
- if (isNode) {
1654
- let buffer;
1655
- if (data instanceof Buffer) {
1656
- buffer = data;
1657
- }
1658
- else if (data instanceof ArrayBuffer) {
1659
- buffer = Buffer.from(data);
1660
- }
1661
- else {
1662
- data = data;
1663
- buffer = Buffer.from(data.buffer, data.byteOffset, data.byteLength);
1664
- }
1665
- return this.uploadSeekableInternal((offset, size) => buffer.slice(offset, offset + size), buffer.byteLength, updatedOptions);
1666
- }
1667
- else {
1668
- const browserBlob = new Blob([data]);
1669
- return this.uploadSeekableInternal((offset, size) => browserBlob.slice(offset, offset + size), browserBlob.size, updatedOptions);
1670
- }
1671
- });
1672
- }
1673
- /**
1674
- * ONLY AVAILABLE IN BROWSERS.
1675
- *
1676
- * Uploads a browser Blob/File/ArrayBuffer/ArrayBufferView object to block blob.
1677
- *
1678
- * When buffer length lesser than or equal to 256MB, this method will use 1 upload call to finish the upload.
1679
- * Otherwise, this method will call {@link stageBlock} to upload blocks, and finally call
1680
- * {@link commitBlockList} to commit the block list.
1681
- *
1682
- * A common {@link BlockBlobParallelUploadOptions.blobHTTPHeaders} option to set is
1683
- * `blobContentType`, enabling the browser to provide
1684
- * functionality based on file type.
1685
- *
1686
- * @deprecated Use {@link uploadData} instead.
1687
- *
1688
- * @param browserData - Blob, File, ArrayBuffer or ArrayBufferView
1689
- * @param options - Options to upload browser data.
1690
- * @returns Response data for the Blob Upload operation.
1691
- */
1692
- async uploadBrowserData(browserData, options = {}) {
1693
- return tracingClient.withSpan("BlockBlobClient-uploadBrowserData", options, async (updatedOptions) => {
1694
- const browserBlob = new Blob([browserData]);
1695
- return this.uploadSeekableInternal((offset, size) => browserBlob.slice(offset, offset + size), browserBlob.size, updatedOptions);
1696
- });
1697
- }
1698
- /**
1699
- *
1700
- * Uploads data to block blob. Requires a bodyFactory as the data source,
1701
- * which need to return a {@link HttpRequestBody} object with the offset and size provided.
1702
- *
1703
- * When data length is no more than the specified {@link BlockBlobParallelUploadOptions.maxSingleShotSize} (default is
1704
- * {@link BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}), this method will use 1 {@link upload} call to finish the upload.
1705
- * Otherwise, this method will call {@link stageBlock} to upload blocks, and finally call {@link commitBlockList}
1706
- * to commit the block list.
1707
- *
1708
- * @param bodyFactory -
1709
- * @param size - size of the data to upload.
1710
- * @param options - Options to Upload to Block Blob operation.
1711
- * @returns Response data for the Blob Upload operation.
1712
- */
1713
- async uploadSeekableInternal(bodyFactory, size, options = {}) {
1714
- var _a, _b;
1715
- let blockSize = (_a = options.blockSize) !== null && _a !== void 0 ? _a : 0;
1716
- if (blockSize < 0 || blockSize > BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES) {
1717
- throw new RangeError(`blockSize option must be >= 0 and <= ${BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES}`);
1718
- }
1719
- const maxSingleShotSize = (_b = options.maxSingleShotSize) !== null && _b !== void 0 ? _b : BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES;
1720
- if (maxSingleShotSize < 0 || maxSingleShotSize > BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES) {
1721
- throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}`);
1722
- }
1723
- if (blockSize === 0) {
1724
- if (size > BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES * BLOCK_BLOB_MAX_BLOCKS) {
1725
- throw new RangeError(`${size} is too larger to upload to a block blob.`);
1726
- }
1727
- if (size > maxSingleShotSize) {
1728
- blockSize = Math.ceil(size / BLOCK_BLOB_MAX_BLOCKS);
1729
- if (blockSize < DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES) {
1730
- blockSize = DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES;
1731
- }
1732
- }
1733
- }
1734
- if (!options.blobHTTPHeaders) {
1735
- options.blobHTTPHeaders = {};
1736
- }
1737
- if (!options.conditions) {
1738
- options.conditions = {};
1739
- }
1740
- return tracingClient.withSpan("BlockBlobClient-uploadSeekableInternal", options, async (updatedOptions) => {
1741
- if (size <= maxSingleShotSize) {
1742
- return assertResponse(await this.upload(bodyFactory(0, size), size, updatedOptions));
1743
- }
1744
- const numBlocks = Math.floor((size - 1) / blockSize) + 1;
1745
- if (numBlocks > BLOCK_BLOB_MAX_BLOCKS) {
1746
- throw new RangeError(`The buffer's size is too big or the BlockSize is too small;` +
1747
- `the number of blocks must be <= ${BLOCK_BLOB_MAX_BLOCKS}`);
1748
- }
1749
- const blockList = [];
1750
- const blockIDPrefix = randomUUID();
1751
- let transferProgress = 0;
1752
- const batch = new Batch(options.concurrency);
1753
- for (let i = 0; i < numBlocks; i++) {
1754
- batch.addOperation(async () => {
1755
- const blockID = generateBlockID(blockIDPrefix, i);
1756
- const start = blockSize * i;
1757
- const end = i === numBlocks - 1 ? size : start + blockSize;
1758
- const contentLength = end - start;
1759
- blockList.push(blockID);
1760
- await this.stageBlock(blockID, bodyFactory(start, contentLength), contentLength, {
1761
- abortSignal: options.abortSignal,
1762
- conditions: options.conditions,
1763
- encryptionScope: options.encryptionScope,
1764
- tracingOptions: updatedOptions.tracingOptions,
1765
- });
1766
- // Update progress after block is successfully uploaded to server, in case of block trying
1767
- // TODO: Hook with convenience layer progress event in finer level
1768
- transferProgress += contentLength;
1769
- if (options.onProgress) {
1770
- options.onProgress({
1771
- loadedBytes: transferProgress,
1772
- });
1773
- }
1774
- });
1775
- }
1776
- await batch.do();
1777
- return this.commitBlockList(blockList, updatedOptions);
1778
- });
1779
- }
1780
- /**
1781
- * ONLY AVAILABLE IN NODE.JS RUNTIME.
1782
- *
1783
- * Uploads a local file in blocks to a block blob.
1784
- *
1785
- * When file size lesser than or equal to 256MB, this method will use 1 upload call to finish the upload.
1786
- * Otherwise, this method will call stageBlock to upload blocks, and finally call commitBlockList
1787
- * to commit the block list.
1788
- *
1789
- * @param filePath - Full path of local file
1790
- * @param options - Options to Upload to Block Blob operation.
1791
- * @returns Response data for the Blob Upload operation.
1792
- */
1793
- async uploadFile(filePath, options = {}) {
1794
- return tracingClient.withSpan("BlockBlobClient-uploadFile", options, async (updatedOptions) => {
1795
- const size = (await fsStat(filePath)).size;
1796
- return this.uploadSeekableInternal((offset, count) => {
1797
- return () => fsCreateReadStream(filePath, {
1798
- autoClose: true,
1799
- end: count ? offset + count - 1 : Infinity,
1800
- start: offset,
1801
- });
1802
- }, size, Object.assign(Object.assign({}, options), { tracingOptions: updatedOptions.tracingOptions }));
1803
- });
1804
- }
1805
- /**
1806
- * ONLY AVAILABLE IN NODE.JS RUNTIME.
1807
- *
1808
- * Uploads a Node.js Readable stream into block blob.
1809
- *
1810
- * PERFORMANCE IMPROVEMENT TIPS:
1811
- * * Input stream highWaterMark is better to set a same value with bufferSize
1812
- * parameter, which will avoid Buffer.concat() operations.
1813
- *
1814
- * @param stream - Node.js Readable stream
1815
- * @param bufferSize - Size of every buffer allocated, also the block size in the uploaded block blob. Default value is 8MB
1816
- * @param maxConcurrency - Max concurrency indicates the max number of buffers that can be allocated,
1817
- * positive correlation with max uploading concurrency. Default value is 5
1818
- * @param options - Options to Upload Stream to Block Blob operation.
1819
- * @returns Response data for the Blob Upload operation.
1820
- */
1821
- async uploadStream(stream, bufferSize = DEFAULT_BLOCK_BUFFER_SIZE_BYTES, maxConcurrency = 5, options = {}) {
1822
- if (!options.blobHTTPHeaders) {
1823
- options.blobHTTPHeaders = {};
1824
- }
1825
- if (!options.conditions) {
1826
- options.conditions = {};
1827
- }
1828
- return tracingClient.withSpan("BlockBlobClient-uploadStream", options, async (updatedOptions) => {
1829
- let blockNum = 0;
1830
- const blockIDPrefix = randomUUID();
1831
- let transferProgress = 0;
1832
- const blockList = [];
1833
- const scheduler = new BufferScheduler(stream, bufferSize, maxConcurrency, async (body, length) => {
1834
- const blockID = generateBlockID(blockIDPrefix, blockNum);
1835
- blockList.push(blockID);
1836
- blockNum++;
1837
- await this.stageBlock(blockID, body, length, {
1838
- customerProvidedKey: options.customerProvidedKey,
1839
- conditions: options.conditions,
1840
- encryptionScope: options.encryptionScope,
1841
- tracingOptions: updatedOptions.tracingOptions,
1842
- });
1843
- // Update progress after block is successfully uploaded to server, in case of block trying
1844
- transferProgress += length;
1845
- if (options.onProgress) {
1846
- options.onProgress({ loadedBytes: transferProgress });
1847
- }
1848
- },
1849
- // concurrency should set a smaller value than maxConcurrency, which is helpful to
1850
- // reduce the possibility when a outgoing handler waits for stream data, in
1851
- // this situation, outgoing handlers are blocked.
1852
- // Outgoing queue shouldn't be empty.
1853
- Math.ceil((maxConcurrency / 4) * 3));
1854
- await scheduler.do();
1855
- return assertResponse(await this.commitBlockList(blockList, Object.assign(Object.assign({}, options), { tracingOptions: updatedOptions.tracingOptions })));
1856
- });
1857
- }
1858
- }
1859
- /**
1860
- * PageBlobClient defines a set of operations applicable to page blobs.
1861
- */
1862
- export class PageBlobClient extends BlobClient {
1863
- constructor(urlOrConnectionString, credentialOrPipelineOrContainerName, blobNameOrOptions,
1864
- // Legacy, no fix for eslint error without breaking. Disable it for this interface.
1865
- /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/
1866
- options) {
1867
- // In TypeScript we cannot simply pass all parameters to super() like below so have to duplicate the code instead.
1868
- // super(s, credentialOrPipelineOrContainerNameOrOptions, blobNameOrOptions, options);
1869
- let pipeline;
1870
- let url;
1871
- options = options || {};
1872
- if (isPipelineLike(credentialOrPipelineOrContainerName)) {
1873
- // (url: string, pipeline: Pipeline)
1874
- url = urlOrConnectionString;
1875
- pipeline = credentialOrPipelineOrContainerName;
1876
- }
1877
- else if ((isNode && credentialOrPipelineOrContainerName instanceof StorageSharedKeyCredential) ||
1878
- credentialOrPipelineOrContainerName instanceof AnonymousCredential ||
1879
- isTokenCredential(credentialOrPipelineOrContainerName)) {
1880
- // (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)
1881
- url = urlOrConnectionString;
1882
- options = blobNameOrOptions;
1883
- pipeline = newPipeline(credentialOrPipelineOrContainerName, options);
1884
- }
1885
- else if (!credentialOrPipelineOrContainerName &&
1886
- typeof credentialOrPipelineOrContainerName !== "string") {
1887
- // (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)
1888
- // The second parameter is undefined. Use anonymous credential.
1889
- url = urlOrConnectionString;
1890
- pipeline = newPipeline(new AnonymousCredential(), options);
1891
- }
1892
- else if (credentialOrPipelineOrContainerName &&
1893
- typeof credentialOrPipelineOrContainerName === "string" &&
1894
- blobNameOrOptions &&
1895
- typeof blobNameOrOptions === "string") {
1896
- // (connectionString: string, containerName: string, blobName: string, options?: StoragePipelineOptions)
1897
- const containerName = credentialOrPipelineOrContainerName;
1898
- const blobName = blobNameOrOptions;
1899
- const extractedCreds = extractConnectionStringParts(urlOrConnectionString);
1900
- if (extractedCreds.kind === "AccountConnString") {
1901
- if (isNode) {
1902
- const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);
1903
- url = appendToURLPath(appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), encodeURIComponent(blobName));
1904
- if (!options.proxyOptions) {
1905
- options.proxyOptions = getDefaultProxySettings(extractedCreds.proxyUri);
1906
- }
1907
- pipeline = newPipeline(sharedKeyCredential, options);
1908
- }
1909
- else {
1910
- throw new Error("Account connection string is only supported in Node.js environment");
1911
- }
1912
- }
1913
- else if (extractedCreds.kind === "SASConnString") {
1914
- url =
1915
- appendToURLPath(appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), encodeURIComponent(blobName)) +
1916
- "?" +
1917
- extractedCreds.accountSas;
1918
- pipeline = newPipeline(new AnonymousCredential(), options);
1919
- }
1920
- else {
1921
- throw new Error("Connection string must be either an Account connection string or a SAS connection string");
1922
- }
1923
- }
1924
- else {
1925
- throw new Error("Expecting non-empty strings for containerName and blobName parameters");
1926
- }
1927
- super(url, pipeline);
1928
- this.pageBlobContext = this.storageClientContext.pageBlob;
1929
- }
1930
- /**
1931
- * Creates a new PageBlobClient object identical to the source but with the
1932
- * specified snapshot timestamp.
1933
- * Provide "" will remove the snapshot and return a Client to the base blob.
1934
- *
1935
- * @param snapshot - The snapshot timestamp.
1936
- * @returns A new PageBlobClient object identical to the source but with the specified snapshot timestamp.
1937
- */
1938
- withSnapshot(snapshot) {
1939
- return new PageBlobClient(setURLParameter(this.url, URLConstants.Parameters.SNAPSHOT, snapshot.length === 0 ? undefined : snapshot), this.pipeline);
1940
- }
1941
- /**
1942
- * Creates a page blob of the specified length. Call uploadPages to upload data
1943
- * data to a page blob.
1944
- * @see https://learn.microsoft.com/rest/api/storageservices/put-blob
1945
- *
1946
- * @param size - size of the page blob.
1947
- * @param options - Options to the Page Blob Create operation.
1948
- * @returns Response data for the Page Blob Create operation.
1949
- */
1950
- async create(size, options = {}) {
1951
- options.conditions = options.conditions || {};
1952
- ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
1953
- return tracingClient.withSpan("PageBlobClient-create", options, async (updatedOptions) => {
1954
- var _a, _b, _c;
1955
- return assertResponse(await this.pageBlobContext.create(0, size, {
1956
- abortSignal: options.abortSignal,
1957
- blobHttpHeaders: options.blobHTTPHeaders,
1958
- blobSequenceNumber: options.blobSequenceNumber,
1959
- leaseAccessConditions: options.conditions,
1960
- metadata: options.metadata,
1961
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
1962
- cpkInfo: options.customerProvidedKey,
1963
- encryptionScope: options.encryptionScope,
1964
- immutabilityPolicyExpiry: (_b = options.immutabilityPolicy) === null || _b === void 0 ? void 0 : _b.expiriesOn,
1965
- immutabilityPolicyMode: (_c = options.immutabilityPolicy) === null || _c === void 0 ? void 0 : _c.policyMode,
1966
- legalHold: options.legalHold,
1967
- tier: toAccessTier(options.tier),
1968
- blobTagsString: toBlobTagsString(options.tags),
1969
- tracingOptions: updatedOptions.tracingOptions,
1970
- }));
1971
- });
1972
- }
1973
- /**
1974
- * Creates a page blob of the specified length. Call uploadPages to upload data
1975
- * data to a page blob. If the blob with the same name already exists, the content
1976
- * of the existing blob will remain unchanged.
1977
- * @see https://learn.microsoft.com/rest/api/storageservices/put-blob
1978
- *
1979
- * @param size - size of the page blob.
1980
- * @param options -
1981
- */
1982
- async createIfNotExists(size, options = {}) {
1983
- return tracingClient.withSpan("PageBlobClient-createIfNotExists", options, async (updatedOptions) => {
1984
- var _a, _b;
1985
- try {
1986
- const conditions = { ifNoneMatch: ETagAny };
1987
- const res = assertResponse(await this.create(size, Object.assign(Object.assign({}, options), { conditions, tracingOptions: updatedOptions.tracingOptions })));
1988
- return Object.assign(Object.assign({ succeeded: true }, res), { _response: res._response });
1989
- }
1990
- catch (e) {
1991
- if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "BlobAlreadyExists") {
1992
- return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });
1993
- }
1994
- throw e;
1995
- }
1996
- });
1997
- }
1998
- /**
1999
- * Writes 1 or more pages to the page blob. The start and end offsets must be a multiple of 512.
2000
- * @see https://learn.microsoft.com/rest/api/storageservices/put-page
2001
- *
2002
- * @param body - Data to upload
2003
- * @param offset - Offset of destination page blob
2004
- * @param count - Content length of the body, also number of bytes to be uploaded
2005
- * @param options - Options to the Page Blob Upload Pages operation.
2006
- * @returns Response data for the Page Blob Upload Pages operation.
2007
- */
2008
- async uploadPages(body, offset, count, options = {}) {
2009
- options.conditions = options.conditions || {};
2010
- ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
2011
- return tracingClient.withSpan("PageBlobClient-uploadPages", options, async (updatedOptions) => {
2012
- var _a;
2013
- return assertResponse(await this.pageBlobContext.uploadPages(count, body, {
2014
- abortSignal: options.abortSignal,
2015
- leaseAccessConditions: options.conditions,
2016
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
2017
- requestOptions: {
2018
- onUploadProgress: options.onProgress,
2019
- },
2020
- range: rangeToString({ offset, count }),
2021
- sequenceNumberAccessConditions: options.conditions,
2022
- transactionalContentMD5: options.transactionalContentMD5,
2023
- transactionalContentCrc64: options.transactionalContentCrc64,
2024
- cpkInfo: options.customerProvidedKey,
2025
- encryptionScope: options.encryptionScope,
2026
- tracingOptions: updatedOptions.tracingOptions,
2027
- }));
2028
- });
2029
- }
2030
- /**
2031
- * The Upload Pages operation writes a range of pages to a page blob where the
2032
- * contents are read from a URL.
2033
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/put-page-from-url
2034
- *
2035
- * @param sourceURL - Specify a URL to the copy source, Shared Access Signature(SAS) maybe needed for authentication
2036
- * @param sourceOffset - The source offset to copy from. Pass 0 to copy from the beginning of source page blob
2037
- * @param destOffset - Offset of destination page blob
2038
- * @param count - Number of bytes to be uploaded from source page blob
2039
- * @param options -
2040
- */
2041
- async uploadPagesFromURL(sourceURL, sourceOffset, destOffset, count, options = {}) {
2042
- options.conditions = options.conditions || {};
2043
- options.sourceConditions = options.sourceConditions || {};
2044
- ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
2045
- return tracingClient.withSpan("PageBlobClient-uploadPagesFromURL", options, async (updatedOptions) => {
2046
- var _a, _b, _c, _d, _e;
2047
- return assertResponse(await this.pageBlobContext.uploadPagesFromURL(sourceURL, rangeToString({ offset: sourceOffset, count }), 0, rangeToString({ offset: destOffset, count }), {
2048
- abortSignal: options.abortSignal,
2049
- sourceContentMD5: options.sourceContentMD5,
2050
- sourceContentCrc64: options.sourceContentCrc64,
2051
- leaseAccessConditions: options.conditions,
2052
- sequenceNumberAccessConditions: options.conditions,
2053
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
2054
- sourceModifiedAccessConditions: {
2055
- sourceIfMatch: (_b = options.sourceConditions) === null || _b === void 0 ? void 0 : _b.ifMatch,
2056
- sourceIfModifiedSince: (_c = options.sourceConditions) === null || _c === void 0 ? void 0 : _c.ifModifiedSince,
2057
- sourceIfNoneMatch: (_d = options.sourceConditions) === null || _d === void 0 ? void 0 : _d.ifNoneMatch,
2058
- sourceIfUnmodifiedSince: (_e = options.sourceConditions) === null || _e === void 0 ? void 0 : _e.ifUnmodifiedSince,
2059
- },
2060
- cpkInfo: options.customerProvidedKey,
2061
- encryptionScope: options.encryptionScope,
2062
- copySourceAuthorization: httpAuthorizationToString(options.sourceAuthorization),
2063
- tracingOptions: updatedOptions.tracingOptions,
2064
- }));
2065
- });
2066
- }
2067
- /**
2068
- * Frees the specified pages from the page blob.
2069
- * @see https://learn.microsoft.com/rest/api/storageservices/put-page
2070
- *
2071
- * @param offset - Starting byte position of the pages to clear.
2072
- * @param count - Number of bytes to clear.
2073
- * @param options - Options to the Page Blob Clear Pages operation.
2074
- * @returns Response data for the Page Blob Clear Pages operation.
2075
- */
2076
- async clearPages(offset = 0, count, options = {}) {
2077
- options.conditions = options.conditions || {};
2078
- return tracingClient.withSpan("PageBlobClient-clearPages", options, async (updatedOptions) => {
2079
- var _a;
2080
- return assertResponse(await this.pageBlobContext.clearPages(0, {
2081
- abortSignal: options.abortSignal,
2082
- leaseAccessConditions: options.conditions,
2083
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
2084
- range: rangeToString({ offset, count }),
2085
- sequenceNumberAccessConditions: options.conditions,
2086
- cpkInfo: options.customerProvidedKey,
2087
- encryptionScope: options.encryptionScope,
2088
- tracingOptions: updatedOptions.tracingOptions,
2089
- }));
2090
- });
2091
- }
2092
- /**
2093
- * Returns the list of valid page ranges for a page blob or snapshot of a page blob.
2094
- * @see https://learn.microsoft.com/rest/api/storageservices/get-page-ranges
2095
- *
2096
- * @param offset - Starting byte position of the page ranges.
2097
- * @param count - Number of bytes to get.
2098
- * @param options - Options to the Page Blob Get Ranges operation.
2099
- * @returns Response data for the Page Blob Get Ranges operation.
2100
- */
2101
- async getPageRanges(offset = 0, count, options = {}) {
2102
- options.conditions = options.conditions || {};
2103
- return tracingClient.withSpan("PageBlobClient-getPageRanges", options, async (updatedOptions) => {
2104
- var _a;
2105
- const response = assertResponse(await this.pageBlobContext.getPageRanges({
2106
- abortSignal: options.abortSignal,
2107
- leaseAccessConditions: options.conditions,
2108
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
2109
- range: rangeToString({ offset, count }),
2110
- tracingOptions: updatedOptions.tracingOptions,
2111
- }));
2112
- return rangeResponseFromModel(response);
2113
- });
2114
- }
2115
- /**
2116
- * getPageRangesSegment returns a single segment of page ranges starting from the
2117
- * specified Marker. Use an empty Marker to start enumeration from the beginning.
2118
- * After getting a segment, process it, and then call getPageRangesSegment again
2119
- * (passing the the previously-returned Marker) to get the next segment.
2120
- * @see https://learn.microsoft.com/rest/api/storageservices/get-page-ranges
2121
- *
2122
- * @param offset - Starting byte position of the page ranges.
2123
- * @param count - Number of bytes to get.
2124
- * @param marker - A string value that identifies the portion of the list to be returned with the next list operation.
2125
- * @param options - Options to PageBlob Get Page Ranges Segment operation.
2126
- */
2127
- async listPageRangesSegment(offset = 0, count, marker, options = {}) {
2128
- return tracingClient.withSpan("PageBlobClient-getPageRangesSegment", options, async (updatedOptions) => {
2129
- var _a;
2130
- return assertResponse(await this.pageBlobContext.getPageRanges({
2131
- abortSignal: options.abortSignal,
2132
- leaseAccessConditions: options.conditions,
2133
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
2134
- range: rangeToString({ offset, count }),
2135
- marker: marker,
2136
- maxPageSize: options.maxPageSize,
2137
- tracingOptions: updatedOptions.tracingOptions,
2138
- }));
2139
- });
2140
- }
2141
- /**
2142
- * Returns an AsyncIterableIterator for {@link PageBlobGetPageRangesResponseModel}
2143
- *
2144
- * @param offset - Starting byte position of the page ranges.
2145
- * @param count - Number of bytes to get.
2146
- * @param marker - A string value that identifies the portion of
2147
- * the get of page ranges to be returned with the next getting operation. The
2148
- * operation returns the ContinuationToken value within the response body if the
2149
- * getting operation did not return all page ranges remaining within the current page.
2150
- * The ContinuationToken value can be used as the value for
2151
- * the marker parameter in a subsequent call to request the next page of get
2152
- * items. The marker value is opaque to the client.
2153
- * @param options - Options to List Page Ranges operation.
2154
- */
2155
- listPageRangeItemSegments() {
2156
- return __asyncGenerator(this, arguments, function* listPageRangeItemSegments_1(offset = 0, count, marker, options = {}) {
2157
- let getPageRangeItemSegmentsResponse;
2158
- if (!!marker || marker === undefined) {
2159
- do {
2160
- getPageRangeItemSegmentsResponse = yield __await(this.listPageRangesSegment(offset, count, marker, options));
2161
- marker = getPageRangeItemSegmentsResponse.continuationToken;
2162
- yield yield __await(yield __await(getPageRangeItemSegmentsResponse));
2163
- } while (marker);
2164
- }
2165
- });
2166
- }
2167
- /**
2168
- * Returns an AsyncIterableIterator of {@link PageRangeInfo} objects
2169
- *
2170
- * @param offset - Starting byte position of the page ranges.
2171
- * @param count - Number of bytes to get.
2172
- * @param options - Options to List Page Ranges operation.
2173
- */
2174
- listPageRangeItems() {
2175
- return __asyncGenerator(this, arguments, function* listPageRangeItems_1(offset = 0, count, options = {}) {
2176
- var _a, e_1, _b, _c;
2177
- let marker;
2178
- try {
2179
- for (var _d = true, _e = __asyncValues(this.listPageRangeItemSegments(offset, count, marker, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
2180
- _c = _f.value;
2181
- _d = false;
2182
- const getPageRangesSegment = _c;
2183
- yield __await(yield* __asyncDelegator(__asyncValues(ExtractPageRangeInfoItems(getPageRangesSegment))));
2184
- }
2185
- }
2186
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2187
- finally {
2188
- try {
2189
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
2190
- }
2191
- finally { if (e_1) throw e_1.error; }
2192
- }
2193
- });
2194
- }
2195
- /**
2196
- * Returns an async iterable iterator to list of page ranges for a page blob.
2197
- * @see https://learn.microsoft.com/rest/api/storageservices/get-page-ranges
2198
- *
2199
- * .byPage() returns an async iterable iterator to list of page ranges for a page blob.
2200
- *
2201
- * Example using `for await` syntax:
2202
- *
2203
- * ```js
2204
- * // Get the pageBlobClient before you run these snippets,
2205
- * // Can be obtained from `blobServiceClient.getContainerClient("<your-container-name>").getPageBlobClient("<your-blob-name>");`
2206
- * let i = 1;
2207
- * for await (const pageRange of pageBlobClient.listPageRanges()) {
2208
- * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`);
2209
- * }
2210
- * ```
2211
- *
2212
- * Example using `iter.next()`:
2213
- *
2214
- * ```js
2215
- * let i = 1;
2216
- * let iter = pageBlobClient.listPageRanges();
2217
- * let pageRangeItem = await iter.next();
2218
- * while (!pageRangeItem.done) {
2219
- * console.log(`Page range ${i++}: ${pageRangeItem.value.start} - ${pageRangeItem.value.end}, IsClear: ${pageRangeItem.value.isClear}`);
2220
- * pageRangeItem = await iter.next();
2221
- * }
2222
- * ```
2223
- *
2224
- * Example using `byPage()`:
2225
- *
2226
- * ```js
2227
- * // passing optional maxPageSize in the page settings
2228
- * let i = 1;
2229
- * for await (const response of pageBlobClient.listPageRanges().byPage({ maxPageSize: 20 })) {
2230
- * for (const pageRange of response) {
2231
- * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`);
2232
- * }
2233
- * }
2234
- * ```
2235
- *
2236
- * Example using paging with a marker:
2237
- *
2238
- * ```js
2239
- * let i = 1;
2240
- * let iterator = pageBlobClient.listPageRanges().byPage({ maxPageSize: 2 });
2241
- * let response = (await iterator.next()).value;
2242
- *
2243
- * // Prints 2 page ranges
2244
- * for (const pageRange of response) {
2245
- * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`);
2246
- * }
2247
- *
2248
- * // Gets next marker
2249
- * let marker = response.continuationToken;
2250
- *
2251
- * // Passing next marker as continuationToken
2252
- *
2253
- * iterator = pageBlobClient.listPageRanges().byPage({ continuationToken: marker, maxPageSize: 10 });
2254
- * response = (await iterator.next()).value;
2255
- *
2256
- * // Prints 10 page ranges
2257
- * for (const blob of response) {
2258
- * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`);
2259
- * }
2260
- * ```
2261
- * @param offset - Starting byte position of the page ranges.
2262
- * @param count - Number of bytes to get.
2263
- * @param options - Options to the Page Blob Get Ranges operation.
2264
- * @returns An asyncIterableIterator that supports paging.
2265
- */
2266
- listPageRanges(offset = 0, count, options = {}) {
2267
- options.conditions = options.conditions || {};
2268
- // AsyncIterableIterator to iterate over blobs
2269
- const iter = this.listPageRangeItems(offset, count, options);
2270
- return {
2271
- /**
2272
- * The next method, part of the iteration protocol
2273
- */
2274
- next() {
2275
- return iter.next();
2276
- },
2277
- /**
2278
- * The connection to the async iterator, part of the iteration protocol
2279
- */
2280
- [Symbol.asyncIterator]() {
2281
- return this;
2282
- },
2283
- /**
2284
- * Return an AsyncIterableIterator that works a page at a time
2285
- */
2286
- byPage: (settings = {}) => {
2287
- return this.listPageRangeItemSegments(offset, count, settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, options));
2288
- },
2289
- };
2290
- }
2291
- /**
2292
- * Gets the collection of page ranges that differ between a specified snapshot and this page blob.
2293
- * @see https://learn.microsoft.com/rest/api/storageservices/get-page-ranges
2294
- *
2295
- * @param offset - Starting byte position of the page blob
2296
- * @param count - Number of bytes to get ranges diff.
2297
- * @param prevSnapshot - Timestamp of snapshot to retrieve the difference.
2298
- * @param options - Options to the Page Blob Get Page Ranges Diff operation.
2299
- * @returns Response data for the Page Blob Get Page Range Diff operation.
2300
- */
2301
- async getPageRangesDiff(offset, count, prevSnapshot, options = {}) {
2302
- options.conditions = options.conditions || {};
2303
- return tracingClient.withSpan("PageBlobClient-getPageRangesDiff", options, async (updatedOptions) => {
2304
- var _a;
2305
- const result = assertResponse(await this.pageBlobContext.getPageRangesDiff({
2306
- abortSignal: options.abortSignal,
2307
- leaseAccessConditions: options.conditions,
2308
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
2309
- prevsnapshot: prevSnapshot,
2310
- range: rangeToString({ offset, count }),
2311
- tracingOptions: updatedOptions.tracingOptions,
2312
- }));
2313
- return rangeResponseFromModel(result);
2314
- });
2315
- }
2316
- /**
2317
- * getPageRangesDiffSegment returns a single segment of page ranges starting from the
2318
- * specified Marker for difference between previous snapshot and the target page blob.
2319
- * Use an empty Marker to start enumeration from the beginning.
2320
- * After getting a segment, process it, and then call getPageRangesDiffSegment again
2321
- * (passing the the previously-returned Marker) to get the next segment.
2322
- * @see https://learn.microsoft.com/rest/api/storageservices/get-page-ranges
2323
- *
2324
- * @param offset - Starting byte position of the page ranges.
2325
- * @param count - Number of bytes to get.
2326
- * @param prevSnapshotOrUrl - Timestamp of snapshot to retrieve the difference or URL of snapshot to retrieve the difference.
2327
- * @param marker - A string value that identifies the portion of the get to be returned with the next get operation.
2328
- * @param options - Options to the Page Blob Get Page Ranges Diff operation.
2329
- */
2330
- async listPageRangesDiffSegment(offset, count, prevSnapshotOrUrl, marker, options = {}) {
2331
- return tracingClient.withSpan("PageBlobClient-getPageRangesDiffSegment", options, async (updatedOptions) => {
2332
- var _a;
2333
- return assertResponse(await this.pageBlobContext.getPageRangesDiff({
2334
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
2335
- leaseAccessConditions: options === null || options === void 0 ? void 0 : options.conditions,
2336
- modifiedAccessConditions: Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.conditions), { ifTags: (_a = options === null || options === void 0 ? void 0 : options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
2337
- prevsnapshot: prevSnapshotOrUrl,
2338
- range: rangeToString({
2339
- offset: offset,
2340
- count: count,
2341
- }),
2342
- marker: marker,
2343
- maxPageSize: options === null || options === void 0 ? void 0 : options.maxPageSize,
2344
- tracingOptions: updatedOptions.tracingOptions,
2345
- }));
2346
- });
2347
- }
2348
- /**
2349
- * Returns an AsyncIterableIterator for {@link PageBlobGetPageRangesDiffResponseModel}
2350
- *
2351
- *
2352
- * @param offset - Starting byte position of the page ranges.
2353
- * @param count - Number of bytes to get.
2354
- * @param prevSnapshotOrUrl - Timestamp of snapshot to retrieve the difference or URL of snapshot to retrieve the difference.
2355
- * @param marker - A string value that identifies the portion of
2356
- * the get of page ranges to be returned with the next getting operation. The
2357
- * operation returns the ContinuationToken value within the response body if the
2358
- * getting operation did not return all page ranges remaining within the current page.
2359
- * The ContinuationToken value can be used as the value for
2360
- * the marker parameter in a subsequent call to request the next page of get
2361
- * items. The marker value is opaque to the client.
2362
- * @param options - Options to the Page Blob Get Page Ranges Diff operation.
2363
- */
2364
- listPageRangeDiffItemSegments(offset, count, prevSnapshotOrUrl, marker, options) {
2365
- return __asyncGenerator(this, arguments, function* listPageRangeDiffItemSegments_1() {
2366
- let getPageRangeItemSegmentsResponse;
2367
- if (!!marker || marker === undefined) {
2368
- do {
2369
- getPageRangeItemSegmentsResponse = yield __await(this.listPageRangesDiffSegment(offset, count, prevSnapshotOrUrl, marker, options));
2370
- marker = getPageRangeItemSegmentsResponse.continuationToken;
2371
- yield yield __await(yield __await(getPageRangeItemSegmentsResponse));
2372
- } while (marker);
2373
- }
2374
- });
2375
- }
2376
- /**
2377
- * Returns an AsyncIterableIterator of {@link PageRangeInfo} objects
2378
- *
2379
- * @param offset - Starting byte position of the page ranges.
2380
- * @param count - Number of bytes to get.
2381
- * @param prevSnapshotOrUrl - Timestamp of snapshot to retrieve the difference or URL of snapshot to retrieve the difference.
2382
- * @param options - Options to the Page Blob Get Page Ranges Diff operation.
2383
- */
2384
- listPageRangeDiffItems(offset, count, prevSnapshotOrUrl, options) {
2385
- return __asyncGenerator(this, arguments, function* listPageRangeDiffItems_1() {
2386
- var _a, e_2, _b, _c;
2387
- let marker;
2388
- try {
2389
- for (var _d = true, _e = __asyncValues(this.listPageRangeDiffItemSegments(offset, count, prevSnapshotOrUrl, marker, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
2390
- _c = _f.value;
2391
- _d = false;
2392
- const getPageRangesSegment = _c;
2393
- yield __await(yield* __asyncDelegator(__asyncValues(ExtractPageRangeInfoItems(getPageRangesSegment))));
2394
- }
2395
- }
2396
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
2397
- finally {
2398
- try {
2399
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
2400
- }
2401
- finally { if (e_2) throw e_2.error; }
2402
- }
2403
- });
2404
- }
2405
- /**
2406
- * Returns an async iterable iterator to list of page ranges that differ between a specified snapshot and this page blob.
2407
- * @see https://learn.microsoft.com/rest/api/storageservices/get-page-ranges
2408
- *
2409
- * .byPage() returns an async iterable iterator to list of page ranges that differ between a specified snapshot and this page blob.
2410
- *
2411
- * Example using `for await` syntax:
2412
- *
2413
- * ```js
2414
- * // Get the pageBlobClient before you run these snippets,
2415
- * // Can be obtained from `blobServiceClient.getContainerClient("<your-container-name>").getPageBlobClient("<your-blob-name>");`
2416
- * let i = 1;
2417
- * for await (const pageRange of pageBlobClient.listPageRangesDiff()) {
2418
- * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`);
2419
- * }
2420
- * ```
2421
- *
2422
- * Example using `iter.next()`:
2423
- *
2424
- * ```js
2425
- * let i = 1;
2426
- * let iter = pageBlobClient.listPageRangesDiff();
2427
- * let pageRangeItem = await iter.next();
2428
- * while (!pageRangeItem.done) {
2429
- * console.log(`Page range ${i++}: ${pageRangeItem.value.start} - ${pageRangeItem.value.end}, IsClear: ${pageRangeItem.value.isClear}`);
2430
- * pageRangeItem = await iter.next();
2431
- * }
2432
- * ```
2433
- *
2434
- * Example using `byPage()`:
2435
- *
2436
- * ```js
2437
- * // passing optional maxPageSize in the page settings
2438
- * let i = 1;
2439
- * for await (const response of pageBlobClient.listPageRangesDiff().byPage({ maxPageSize: 20 })) {
2440
- * for (const pageRange of response) {
2441
- * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`);
2442
- * }
2443
- * }
2444
- * ```
2445
- *
2446
- * Example using paging with a marker:
2447
- *
2448
- * ```js
2449
- * let i = 1;
2450
- * let iterator = pageBlobClient.listPageRangesDiff().byPage({ maxPageSize: 2 });
2451
- * let response = (await iterator.next()).value;
2452
- *
2453
- * // Prints 2 page ranges
2454
- * for (const pageRange of response) {
2455
- * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`);
2456
- * }
2457
- *
2458
- * // Gets next marker
2459
- * let marker = response.continuationToken;
2460
- *
2461
- * // Passing next marker as continuationToken
2462
- *
2463
- * iterator = pageBlobClient.listPageRangesDiff().byPage({ continuationToken: marker, maxPageSize: 10 });
2464
- * response = (await iterator.next()).value;
2465
- *
2466
- * // Prints 10 page ranges
2467
- * for (const blob of response) {
2468
- * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`);
2469
- * }
2470
- * ```
2471
- * @param offset - Starting byte position of the page ranges.
2472
- * @param count - Number of bytes to get.
2473
- * @param prevSnapshot - Timestamp of snapshot to retrieve the difference.
2474
- * @param options - Options to the Page Blob Get Ranges operation.
2475
- * @returns An asyncIterableIterator that supports paging.
2476
- */
2477
- listPageRangesDiff(offset, count, prevSnapshot, options = {}) {
2478
- options.conditions = options.conditions || {};
2479
- // AsyncIterableIterator to iterate over blobs
2480
- const iter = this.listPageRangeDiffItems(offset, count, prevSnapshot, Object.assign({}, options));
2481
- return {
2482
- /**
2483
- * The next method, part of the iteration protocol
2484
- */
2485
- next() {
2486
- return iter.next();
2487
- },
2488
- /**
2489
- * The connection to the async iterator, part of the iteration protocol
2490
- */
2491
- [Symbol.asyncIterator]() {
2492
- return this;
2493
- },
2494
- /**
2495
- * Return an AsyncIterableIterator that works a page at a time
2496
- */
2497
- byPage: (settings = {}) => {
2498
- return this.listPageRangeDiffItemSegments(offset, count, prevSnapshot, settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, options));
2499
- },
2500
- };
2501
- }
2502
- /**
2503
- * Gets the collection of page ranges that differ between a specified snapshot and this page blob for managed disks.
2504
- * @see https://learn.microsoft.com/rest/api/storageservices/get-page-ranges
2505
- *
2506
- * @param offset - Starting byte position of the page blob
2507
- * @param count - Number of bytes to get ranges diff.
2508
- * @param prevSnapshotUrl - URL of snapshot to retrieve the difference.
2509
- * @param options - Options to the Page Blob Get Page Ranges Diff operation.
2510
- * @returns Response data for the Page Blob Get Page Range Diff operation.
2511
- */
2512
- async getPageRangesDiffForManagedDisks(offset, count, prevSnapshotUrl, options = {}) {
2513
- options.conditions = options.conditions || {};
2514
- return tracingClient.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks", options, async (updatedOptions) => {
2515
- var _a;
2516
- const response = assertResponse(await this.pageBlobContext.getPageRangesDiff({
2517
- abortSignal: options.abortSignal,
2518
- leaseAccessConditions: options.conditions,
2519
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
2520
- prevSnapshotUrl,
2521
- range: rangeToString({ offset, count }),
2522
- tracingOptions: updatedOptions.tracingOptions,
2523
- }));
2524
- return rangeResponseFromModel(response);
2525
- });
2526
- }
2527
- /**
2528
- * Resizes the page blob to the specified size (which must be a multiple of 512).
2529
- * @see https://learn.microsoft.com/rest/api/storageservices/set-blob-properties
2530
- *
2531
- * @param size - Target size
2532
- * @param options - Options to the Page Blob Resize operation.
2533
- * @returns Response data for the Page Blob Resize operation.
2534
- */
2535
- async resize(size, options = {}) {
2536
- options.conditions = options.conditions || {};
2537
- return tracingClient.withSpan("PageBlobClient-resize", options, async (updatedOptions) => {
2538
- var _a;
2539
- return assertResponse(await this.pageBlobContext.resize(size, {
2540
- abortSignal: options.abortSignal,
2541
- leaseAccessConditions: options.conditions,
2542
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
2543
- encryptionScope: options.encryptionScope,
2544
- tracingOptions: updatedOptions.tracingOptions,
2545
- }));
2546
- });
2547
- }
2548
- /**
2549
- * Sets a page blob's sequence number.
2550
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-properties
2551
- *
2552
- * @param sequenceNumberAction - Indicates how the service should modify the blob's sequence number.
2553
- * @param sequenceNumber - Required if sequenceNumberAction is max or update
2554
- * @param options - Options to the Page Blob Update Sequence Number operation.
2555
- * @returns Response data for the Page Blob Update Sequence Number operation.
2556
- */
2557
- async updateSequenceNumber(sequenceNumberAction, sequenceNumber, options = {}) {
2558
- options.conditions = options.conditions || {};
2559
- return tracingClient.withSpan("PageBlobClient-updateSequenceNumber", options, async (updatedOptions) => {
2560
- var _a;
2561
- return assertResponse(await this.pageBlobContext.updateSequenceNumber(sequenceNumberAction, {
2562
- abortSignal: options.abortSignal,
2563
- blobSequenceNumber: sequenceNumber,
2564
- leaseAccessConditions: options.conditions,
2565
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
2566
- tracingOptions: updatedOptions.tracingOptions,
2567
- }));
2568
- });
2569
- }
2570
- /**
2571
- * Begins an operation to start an incremental copy from one page blob's snapshot to this page blob.
2572
- * The snapshot is copied such that only the differential changes between the previously
2573
- * copied snapshot are transferred to the destination.
2574
- * The copied snapshots are complete copies of the original snapshot and can be read or copied from as usual.
2575
- * @see https://learn.microsoft.com/rest/api/storageservices/incremental-copy-blob
2576
- * @see https://learn.microsoft.com/en-us/azure/virtual-machines/windows/incremental-snapshots
2577
- *
2578
- * @param copySource - Specifies the name of the source page blob snapshot. For example,
2579
- * https://myaccount.blob.core.windows.net/mycontainer/myblob?snapshot=<DateTime>
2580
- * @param options - Options to the Page Blob Copy Incremental operation.
2581
- * @returns Response data for the Page Blob Copy Incremental operation.
2582
- */
2583
- async startCopyIncremental(copySource, options = {}) {
2584
- return tracingClient.withSpan("PageBlobClient-startCopyIncremental", options, async (updatedOptions) => {
2585
- var _a;
2586
- return assertResponse(await this.pageBlobContext.copyIncremental(copySource, {
2587
- abortSignal: options.abortSignal,
2588
- modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }),
2589
- tracingOptions: updatedOptions.tracingOptions,
2590
- }));
2591
- });
2592
- }
2593
- }
2594
- //# sourceMappingURL=Clients.js.map