@azure/storage-blob 12.28.0-beta.2 → 12.28.1-alpha.20250724.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.
- package/dist/browser/BatchResponseParser.js +6 -1
- package/dist/browser/BatchResponseParser.js.map +1 -1
- package/dist/browser/BlobBatch.d.ts +8 -8
- package/dist/browser/BlobBatch.js +11 -2
- package/dist/browser/BlobBatch.js.map +1 -1
- package/dist/browser/BlobBatchClient.d.ts +10 -10
- package/dist/browser/BlobBatchClient.js +6 -3
- package/dist/browser/BlobBatchClient.js.map +1 -1
- package/dist/browser/BlobLeaseClient.d.ts +10 -10
- package/dist/browser/BlobLeaseClient.js +49 -40
- package/dist/browser/BlobLeaseClient.js.map +1 -1
- package/dist/browser/BlobQueryResponse-browser.mjs.map +1 -1
- package/dist/browser/BlobQueryResponse.js +1 -0
- package/dist/browser/BlobServiceClient.d.ts +11 -11
- package/dist/browser/BlobServiceClient.js +97 -92
- package/dist/browser/BlobServiceClient.js.map +1 -1
- package/dist/browser/Clients.d.ts +36 -36
- package/dist/browser/Clients.js +374 -219
- package/dist/browser/Clients.js.map +1 -1
- package/dist/browser/ContainerClient.d.ts +16 -16
- package/dist/browser/ContainerClient.js +197 -150
- package/dist/browser/ContainerClient.js.map +1 -1
- package/dist/browser/PageBlobRangeResponse.js +10 -3
- package/dist/browser/PageBlobRangeResponse.js.map +1 -1
- package/dist/browser/Pipeline.js +27 -10
- package/dist/browser/Pipeline.js.map +1 -1
- package/dist/browser/Range.d.ts +1 -1
- package/dist/browser/Range.js.map +1 -1
- package/dist/browser/StorageClient.js +23 -0
- package/dist/browser/StorageClient.js.map +1 -1
- package/dist/browser/StorageContextClient.js +1 -1
- package/dist/browser/StorageContextClient.js.map +1 -1
- package/dist/browser/StorageRetryPolicyFactory.d.ts +2 -2
- package/dist/browser/StorageRetryPolicyFactory.js +1 -0
- package/dist/browser/StorageRetryPolicyFactory.js.map +1 -1
- package/dist/browser/generated/src/operations/appendBlob.js +1 -0
- package/dist/browser/generated/src/operations/appendBlob.js.map +1 -1
- package/dist/browser/generated/src/operations/blob.js +1 -0
- package/dist/browser/generated/src/operations/blob.js.map +1 -1
- package/dist/browser/generated/src/operations/blockBlob.js +1 -0
- package/dist/browser/generated/src/operations/blockBlob.js.map +1 -1
- package/dist/browser/generated/src/operations/container.js +1 -0
- package/dist/browser/generated/src/operations/container.js.map +1 -1
- package/dist/browser/generated/src/operations/pageBlob.js +1 -0
- package/dist/browser/generated/src/operations/pageBlob.js.map +1 -1
- package/dist/browser/generated/src/operations/service.js +1 -0
- package/dist/browser/generated/src/operations/service.js.map +1 -1
- package/dist/browser/generated/src/storageClient.js +16 -4
- package/dist/browser/generated/src/storageClient.js.map +1 -1
- package/dist/browser/index-browser.d.mts.map +1 -1
- package/dist/browser/index-browser.mjs.map +1 -1
- package/dist/browser/index.d.ts +0 -8
- package/dist/browser/index.js +0 -8
- package/dist/browser/internal-avro/AvroParser.js +7 -1
- package/dist/browser/internal-avro/AvroParser.js.map +1 -1
- package/dist/browser/internal-avro/AvroReadableFromBlob.js +2 -0
- package/dist/browser/internal-avro/AvroReadableFromBlob.js.map +1 -1
- package/dist/browser/internal-avro/AvroReadableFromStream.js +3 -2
- package/dist/browser/internal-avro/AvroReadableFromStream.js.map +1 -1
- package/dist/browser/internal-avro/AvroReader.js +44 -34
- package/dist/browser/internal-avro/AvroReader.js.map +1 -1
- package/dist/browser/policies/RequestPolicy.js +2 -0
- package/dist/browser/policies/RequestPolicy.js.map +1 -1
- package/dist/browser/policies/StorageRetryPolicy.js +5 -1
- package/dist/browser/policies/StorageRetryPolicy.js.map +1 -1
- package/dist/browser/policies/StorageRetryPolicyV2.js +10 -12
- package/dist/browser/policies/StorageRetryPolicyV2.js.map +1 -1
- package/dist/browser/policies/StorageSharedKeyCredentialPolicy.d.ts +1 -1
- package/dist/browser/policies/StorageSharedKeyCredentialPolicy.js +6 -2
- package/dist/browser/policies/StorageSharedKeyCredentialPolicy.js.map +1 -1
- package/dist/browser/pollers/BlobStartCopyFromUrlPoller.js +7 -3
- package/dist/browser/pollers/BlobStartCopyFromUrlPoller.js.map +1 -1
- package/dist/browser/sas/AccountSASPermissions.d.ts +1 -1
- package/dist/browser/sas/AccountSASPermissions.js +54 -56
- package/dist/browser/sas/AccountSASPermissions.js.map +1 -1
- package/dist/browser/sas/AccountSASResourceTypes.d.ts +1 -1
- package/dist/browser/sas/AccountSASResourceTypes.js +13 -15
- package/dist/browser/sas/AccountSASResourceTypes.js.map +1 -1
- package/dist/browser/sas/AccountSASServices.js +16 -18
- package/dist/browser/sas/AccountSASServices.js.map +1 -1
- package/dist/browser/sas/AccountSASSignatureValues.d.ts +3 -3
- package/dist/browser/sas/AccountSASSignatureValues.js +1 -1
- package/dist/browser/sas/AccountSASSignatureValues.js.map +1 -1
- package/dist/browser/sas/BlobSASPermissions.js +44 -46
- package/dist/browser/sas/BlobSASPermissions.js.map +1 -1
- package/dist/browser/sas/BlobSASSignatureValues.d.ts +1 -1
- package/dist/browser/sas/BlobSASSignatureValues.js +1 -1
- package/dist/browser/sas/BlobSASSignatureValues.js.map +1 -1
- package/dist/browser/sas/ContainerSASPermissions.d.ts +1 -1
- package/dist/browser/sas/ContainerSASPermissions.js +53 -55
- package/dist/browser/sas/ContainerSASPermissions.js.map +1 -1
- package/dist/browser/sas/SASQueryParameters.d.ts +2 -2
- package/dist/browser/sas/SASQueryParameters.js +117 -0
- package/dist/browser/sas/SASQueryParameters.js.map +1 -1
- package/dist/browser/utils/Batch.js +29 -21
- package/dist/browser/utils/Batch.js.map +1 -1
- package/dist/browser/utils/BlobQuickQueryStream.js +6 -1
- package/dist/browser/utils/BlobQuickQueryStream.js.map +1 -1
- package/dist/browser/utils/Mutex.js +2 -2
- package/dist/browser/utils/Mutex.js.map +1 -1
- package/dist/browser/utils/RetriableReadableStream.js +70 -62
- package/dist/browser/utils/RetriableReadableStream.js.map +1 -1
- package/dist/browser/utils/constants.d.ts.map +1 -1
- package/dist/browser/utils/constants.js +1 -1
- package/dist/browser/utils/constants.js.map +1 -1
- package/dist/browser/utils/utils.common.d.ts +2 -2
- package/dist/browser/utils/utils.common.js +27 -14
- package/dist/browser/utils/utils.common.js.map +1 -1
- package/dist/commonjs/BatchResponseParser.js +6 -1
- package/dist/commonjs/BatchResponseParser.js.map +1 -1
- package/dist/commonjs/BlobBatch.d.ts +8 -8
- package/dist/commonjs/BlobBatch.js +11 -2
- package/dist/commonjs/BlobBatch.js.map +1 -1
- package/dist/commonjs/BlobBatchClient.d.ts +10 -10
- package/dist/commonjs/BlobBatchClient.js +6 -3
- package/dist/commonjs/BlobBatchClient.js.map +1 -1
- package/dist/commonjs/BlobDownloadResponse.js +2 -0
- package/dist/commonjs/BlobDownloadResponse.js.map +1 -1
- package/dist/commonjs/BlobLeaseClient.d.ts +10 -10
- package/dist/commonjs/BlobLeaseClient.js +49 -40
- package/dist/commonjs/BlobLeaseClient.js.map +1 -1
- package/dist/commonjs/BlobQueryResponse.js +2 -0
- package/dist/commonjs/BlobQueryResponse.js.map +1 -1
- package/dist/commonjs/BlobServiceClient.d.ts +11 -11
- package/dist/commonjs/BlobServiceClient.js +97 -92
- package/dist/commonjs/BlobServiceClient.js.map +1 -1
- package/dist/commonjs/Clients.d.ts +36 -36
- package/dist/commonjs/Clients.js +374 -219
- package/dist/commonjs/Clients.js.map +1 -1
- package/dist/commonjs/ContainerClient.d.ts +16 -16
- package/dist/commonjs/ContainerClient.js +197 -150
- package/dist/commonjs/ContainerClient.js.map +1 -1
- package/dist/commonjs/PageBlobRangeResponse.js +10 -3
- package/dist/commonjs/PageBlobRangeResponse.js.map +1 -1
- package/dist/commonjs/Pipeline.js +27 -10
- package/dist/commonjs/Pipeline.js.map +1 -1
- package/dist/commonjs/Range.d.ts +1 -1
- package/dist/commonjs/Range.js.map +1 -1
- package/dist/commonjs/StorageClient.js +23 -0
- package/dist/commonjs/StorageClient.js.map +1 -1
- package/dist/commonjs/StorageContextClient.js +1 -1
- package/dist/commonjs/StorageContextClient.js.map +1 -1
- package/dist/commonjs/StorageRetryPolicyFactory.d.ts +2 -2
- package/dist/commonjs/StorageRetryPolicyFactory.js +1 -0
- package/dist/commonjs/StorageRetryPolicyFactory.js.map +1 -1
- package/dist/commonjs/credentials/StorageSharedKeyCredential.js +8 -0
- package/dist/commonjs/credentials/StorageSharedKeyCredential.js.map +1 -1
- package/dist/commonjs/credentials/UserDelegationKeyCredential.d.ts +1 -1
- package/dist/commonjs/credentials/UserDelegationKeyCredential.js +13 -1
- package/dist/commonjs/credentials/UserDelegationKeyCredential.js.map +1 -1
- package/dist/commonjs/generated/src/operations/appendBlob.js +1 -0
- package/dist/commonjs/generated/src/operations/appendBlob.js.map +1 -1
- package/dist/commonjs/generated/src/operations/blob.js +1 -0
- package/dist/commonjs/generated/src/operations/blob.js.map +1 -1
- package/dist/commonjs/generated/src/operations/blockBlob.js +1 -0
- package/dist/commonjs/generated/src/operations/blockBlob.js.map +1 -1
- package/dist/commonjs/generated/src/operations/container.js +1 -0
- package/dist/commonjs/generated/src/operations/container.js.map +1 -1
- package/dist/commonjs/generated/src/operations/pageBlob.js +1 -0
- package/dist/commonjs/generated/src/operations/pageBlob.js.map +1 -1
- package/dist/commonjs/generated/src/operations/service.js +1 -0
- package/dist/commonjs/generated/src/operations/service.js.map +1 -1
- package/dist/commonjs/generated/src/storageClient.js +16 -4
- package/dist/commonjs/generated/src/storageClient.js.map +1 -1
- package/dist/commonjs/index.d.ts +1 -8
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +1 -8
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/internal-avro/AvroParser.js +7 -1
- package/dist/commonjs/internal-avro/AvroParser.js.map +1 -1
- package/dist/commonjs/internal-avro/AvroReadableFromBlob.js +2 -0
- package/dist/commonjs/internal-avro/AvroReadableFromBlob.js.map +1 -1
- package/dist/commonjs/internal-avro/AvroReadableFromStream.js +3 -2
- package/dist/commonjs/internal-avro/AvroReadableFromStream.js.map +1 -1
- package/dist/commonjs/internal-avro/AvroReader.js +44 -34
- package/dist/commonjs/internal-avro/AvroReader.js.map +1 -1
- package/dist/commonjs/policies/RequestPolicy.js +2 -0
- package/dist/commonjs/policies/RequestPolicy.js.map +1 -1
- package/dist/commonjs/policies/StorageRetryPolicy.js +5 -1
- package/dist/commonjs/policies/StorageRetryPolicy.js.map +1 -1
- package/dist/commonjs/policies/StorageRetryPolicyV2.js +10 -12
- package/dist/commonjs/policies/StorageRetryPolicyV2.js.map +1 -1
- package/dist/commonjs/policies/StorageSharedKeyCredentialPolicy.d.ts +1 -1
- package/dist/commonjs/policies/StorageSharedKeyCredentialPolicy.js +6 -2
- package/dist/commonjs/policies/StorageSharedKeyCredentialPolicy.js.map +1 -1
- package/dist/commonjs/policies/StorageSharedKeyCredentialPolicyV2.js +2 -2
- package/dist/commonjs/policies/StorageSharedKeyCredentialPolicyV2.js.map +1 -1
- package/dist/commonjs/pollers/BlobStartCopyFromUrlPoller.js +7 -3
- package/dist/commonjs/pollers/BlobStartCopyFromUrlPoller.js.map +1 -1
- package/dist/commonjs/sas/AccountSASPermissions.d.ts +1 -1
- package/dist/commonjs/sas/AccountSASPermissions.js +54 -56
- package/dist/commonjs/sas/AccountSASPermissions.js.map +1 -1
- package/dist/commonjs/sas/AccountSASResourceTypes.d.ts +1 -1
- package/dist/commonjs/sas/AccountSASResourceTypes.js +13 -15
- package/dist/commonjs/sas/AccountSASResourceTypes.js.map +1 -1
- package/dist/commonjs/sas/AccountSASServices.js +16 -18
- package/dist/commonjs/sas/AccountSASServices.js.map +1 -1
- package/dist/commonjs/sas/AccountSASSignatureValues.d.ts +3 -3
- package/dist/commonjs/sas/AccountSASSignatureValues.js +1 -1
- package/dist/commonjs/sas/AccountSASSignatureValues.js.map +1 -1
- package/dist/commonjs/sas/BlobSASPermissions.js +44 -46
- package/dist/commonjs/sas/BlobSASPermissions.js.map +1 -1
- package/dist/commonjs/sas/BlobSASSignatureValues.d.ts +1 -1
- package/dist/commonjs/sas/BlobSASSignatureValues.js +1 -1
- package/dist/commonjs/sas/BlobSASSignatureValues.js.map +1 -1
- package/dist/commonjs/sas/ContainerSASPermissions.d.ts +1 -1
- package/dist/commonjs/sas/ContainerSASPermissions.js +53 -55
- package/dist/commonjs/sas/ContainerSASPermissions.js.map +1 -1
- package/dist/commonjs/sas/SASQueryParameters.d.ts +2 -2
- package/dist/commonjs/sas/SASQueryParameters.js +117 -0
- package/dist/commonjs/sas/SASQueryParameters.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/commonjs/utils/Batch.js +29 -21
- package/dist/commonjs/utils/Batch.js.map +1 -1
- package/dist/commonjs/utils/BlobQuickQueryStream.js +6 -1
- package/dist/commonjs/utils/BlobQuickQueryStream.js.map +1 -1
- package/dist/commonjs/utils/Mutex.js +2 -2
- package/dist/commonjs/utils/Mutex.js.map +1 -1
- package/dist/commonjs/utils/RetriableReadableStream.js +70 -62
- package/dist/commonjs/utils/RetriableReadableStream.js.map +1 -1
- package/dist/commonjs/utils/constants.d.ts.map +1 -1
- package/dist/commonjs/utils/constants.js +1 -1
- package/dist/commonjs/utils/constants.js.map +1 -1
- package/dist/commonjs/utils/utils.common.d.ts +2 -2
- package/dist/commonjs/utils/utils.common.js +27 -14
- package/dist/commonjs/utils/utils.common.js.map +1 -1
- package/dist/commonjs/utils/utils.d.ts +1 -1
- package/dist/commonjs/utils/utils.d.ts.map +1 -1
- package/dist/commonjs/utils/utils.js +5 -5
- package/dist/commonjs/utils/utils.js.map +1 -1
- package/dist/esm/BatchResponseParser.js +6 -1
- package/dist/esm/BatchResponseParser.js.map +1 -1
- package/dist/esm/BlobBatch.d.ts +8 -8
- package/dist/esm/BlobBatch.js +11 -2
- package/dist/esm/BlobBatch.js.map +1 -1
- package/dist/esm/BlobBatchClient.d.ts +10 -10
- package/dist/esm/BlobBatchClient.js +6 -3
- package/dist/esm/BlobBatchClient.js.map +1 -1
- package/dist/esm/BlobDownloadResponse.js +2 -0
- package/dist/esm/BlobDownloadResponse.js.map +1 -1
- package/dist/esm/BlobLeaseClient.d.ts +10 -10
- package/dist/esm/BlobLeaseClient.js +49 -40
- package/dist/esm/BlobLeaseClient.js.map +1 -1
- package/dist/esm/BlobQueryResponse.js +2 -0
- package/dist/esm/BlobQueryResponse.js.map +1 -1
- package/dist/esm/BlobServiceClient.d.ts +11 -11
- package/dist/esm/BlobServiceClient.js +97 -92
- package/dist/esm/BlobServiceClient.js.map +1 -1
- package/dist/esm/Clients.d.ts +36 -36
- package/dist/esm/Clients.js +374 -219
- package/dist/esm/Clients.js.map +1 -1
- package/dist/esm/ContainerClient.d.ts +16 -16
- package/dist/esm/ContainerClient.js +197 -150
- package/dist/esm/ContainerClient.js.map +1 -1
- package/dist/esm/PageBlobRangeResponse.js +10 -3
- package/dist/esm/PageBlobRangeResponse.js.map +1 -1
- package/dist/esm/Pipeline.js +27 -10
- package/dist/esm/Pipeline.js.map +1 -1
- package/dist/esm/Range.d.ts +1 -1
- package/dist/esm/Range.js.map +1 -1
- package/dist/esm/StorageClient.js +23 -0
- package/dist/esm/StorageClient.js.map +1 -1
- package/dist/esm/StorageContextClient.js +1 -1
- package/dist/esm/StorageContextClient.js.map +1 -1
- package/dist/esm/StorageRetryPolicyFactory.d.ts +2 -2
- package/dist/esm/StorageRetryPolicyFactory.js +1 -0
- package/dist/esm/StorageRetryPolicyFactory.js.map +1 -1
- package/dist/esm/credentials/StorageSharedKeyCredential.js +8 -0
- package/dist/esm/credentials/StorageSharedKeyCredential.js.map +1 -1
- package/dist/esm/credentials/UserDelegationKeyCredential.d.ts +1 -1
- package/dist/esm/credentials/UserDelegationKeyCredential.js +13 -1
- package/dist/esm/credentials/UserDelegationKeyCredential.js.map +1 -1
- package/dist/esm/generated/src/operations/appendBlob.js +1 -0
- package/dist/esm/generated/src/operations/appendBlob.js.map +1 -1
- package/dist/esm/generated/src/operations/blob.js +1 -0
- package/dist/esm/generated/src/operations/blob.js.map +1 -1
- package/dist/esm/generated/src/operations/blockBlob.js +1 -0
- package/dist/esm/generated/src/operations/blockBlob.js.map +1 -1
- package/dist/esm/generated/src/operations/container.js +1 -0
- package/dist/esm/generated/src/operations/container.js.map +1 -1
- package/dist/esm/generated/src/operations/pageBlob.js +1 -0
- package/dist/esm/generated/src/operations/pageBlob.js.map +1 -1
- package/dist/esm/generated/src/operations/service.js +1 -0
- package/dist/esm/generated/src/operations/service.js.map +1 -1
- package/dist/esm/generated/src/storageClient.js +16 -4
- package/dist/esm/generated/src/storageClient.js.map +1 -1
- package/dist/esm/index.d.ts +1 -8
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/internal-avro/AvroParser.js +7 -1
- package/dist/esm/internal-avro/AvroParser.js.map +1 -1
- package/dist/esm/internal-avro/AvroReadableFromBlob.js +2 -0
- package/dist/esm/internal-avro/AvroReadableFromBlob.js.map +1 -1
- package/dist/esm/internal-avro/AvroReadableFromStream.js +3 -2
- package/dist/esm/internal-avro/AvroReadableFromStream.js.map +1 -1
- package/dist/esm/internal-avro/AvroReader.js +44 -34
- package/dist/esm/internal-avro/AvroReader.js.map +1 -1
- package/dist/esm/policies/RequestPolicy.js +2 -0
- package/dist/esm/policies/RequestPolicy.js.map +1 -1
- package/dist/esm/policies/StorageRetryPolicy.js +5 -1
- package/dist/esm/policies/StorageRetryPolicy.js.map +1 -1
- package/dist/esm/policies/StorageRetryPolicyV2.js +10 -12
- package/dist/esm/policies/StorageRetryPolicyV2.js.map +1 -1
- package/dist/esm/policies/StorageSharedKeyCredentialPolicy.d.ts +1 -1
- package/dist/esm/policies/StorageSharedKeyCredentialPolicy.js +6 -2
- package/dist/esm/policies/StorageSharedKeyCredentialPolicy.js.map +1 -1
- package/dist/esm/policies/StorageSharedKeyCredentialPolicyV2.js +2 -2
- package/dist/esm/policies/StorageSharedKeyCredentialPolicyV2.js.map +1 -1
- package/dist/esm/pollers/BlobStartCopyFromUrlPoller.js +7 -3
- package/dist/esm/pollers/BlobStartCopyFromUrlPoller.js.map +1 -1
- package/dist/esm/sas/AccountSASPermissions.d.ts +1 -1
- package/dist/esm/sas/AccountSASPermissions.js +54 -56
- package/dist/esm/sas/AccountSASPermissions.js.map +1 -1
- package/dist/esm/sas/AccountSASResourceTypes.d.ts +1 -1
- package/dist/esm/sas/AccountSASResourceTypes.js +13 -15
- package/dist/esm/sas/AccountSASResourceTypes.js.map +1 -1
- package/dist/esm/sas/AccountSASServices.js +16 -18
- package/dist/esm/sas/AccountSASServices.js.map +1 -1
- package/dist/esm/sas/AccountSASSignatureValues.d.ts +3 -3
- package/dist/esm/sas/AccountSASSignatureValues.js +1 -1
- package/dist/esm/sas/AccountSASSignatureValues.js.map +1 -1
- package/dist/esm/sas/BlobSASPermissions.js +44 -46
- package/dist/esm/sas/BlobSASPermissions.js.map +1 -1
- package/dist/esm/sas/BlobSASSignatureValues.d.ts +1 -1
- package/dist/esm/sas/BlobSASSignatureValues.js +1 -1
- package/dist/esm/sas/BlobSASSignatureValues.js.map +1 -1
- package/dist/esm/sas/ContainerSASPermissions.d.ts +1 -1
- package/dist/esm/sas/ContainerSASPermissions.js +53 -55
- package/dist/esm/sas/ContainerSASPermissions.js.map +1 -1
- package/dist/esm/sas/SASQueryParameters.d.ts +2 -2
- package/dist/esm/sas/SASQueryParameters.js +117 -0
- package/dist/esm/sas/SASQueryParameters.js.map +1 -1
- package/dist/esm/utils/Batch.js +29 -21
- package/dist/esm/utils/Batch.js.map +1 -1
- package/dist/esm/utils/BlobQuickQueryStream.js +6 -1
- package/dist/esm/utils/BlobQuickQueryStream.js.map +1 -1
- package/dist/esm/utils/Mutex.js +2 -2
- package/dist/esm/utils/Mutex.js.map +1 -1
- package/dist/esm/utils/RetriableReadableStream.js +70 -62
- package/dist/esm/utils/RetriableReadableStream.js.map +1 -1
- package/dist/esm/utils/constants.d.ts.map +1 -1
- package/dist/esm/utils/constants.js +1 -1
- package/dist/esm/utils/constants.js.map +1 -1
- package/dist/esm/utils/utils.common.d.ts +2 -2
- package/dist/esm/utils/utils.common.js +27 -14
- package/dist/esm/utils/utils.common.js.map +1 -1
- package/dist/esm/utils/utils.d.ts +1 -1
- package/dist/esm/utils/utils.d.ts.map +1 -1
- package/dist/esm/utils/utils.js +2 -2
- package/dist/esm/utils/utils.js.map +1 -1
- package/dist/react-native/BatchResponseParser.js +6 -1
- package/dist/react-native/BatchResponseParser.js.map +1 -1
- package/dist/react-native/BlobBatch.d.ts +8 -8
- package/dist/react-native/BlobBatch.js +11 -2
- package/dist/react-native/BlobBatch.js.map +1 -1
- package/dist/react-native/BlobBatchClient.d.ts +10 -10
- package/dist/react-native/BlobBatchClient.js +6 -3
- package/dist/react-native/BlobBatchClient.js.map +1 -1
- package/dist/react-native/BlobDownloadResponse.js +2 -0
- package/dist/react-native/BlobDownloadResponse.js.map +1 -1
- package/dist/react-native/BlobLeaseClient.d.ts +10 -10
- package/dist/react-native/BlobLeaseClient.js +49 -40
- package/dist/react-native/BlobLeaseClient.js.map +1 -1
- package/dist/react-native/BlobQueryResponse.js +2 -0
- package/dist/react-native/BlobQueryResponse.js.map +1 -1
- package/dist/react-native/BlobServiceClient.d.ts +11 -11
- package/dist/react-native/BlobServiceClient.js +97 -92
- package/dist/react-native/BlobServiceClient.js.map +1 -1
- package/dist/react-native/Clients.d.ts +36 -36
- package/dist/react-native/Clients.js +374 -219
- package/dist/react-native/Clients.js.map +1 -1
- package/dist/react-native/ContainerClient.d.ts +16 -16
- package/dist/react-native/ContainerClient.js +197 -150
- package/dist/react-native/ContainerClient.js.map +1 -1
- package/dist/react-native/PageBlobRangeResponse.js +10 -3
- package/dist/react-native/PageBlobRangeResponse.js.map +1 -1
- package/dist/react-native/Pipeline.js +27 -10
- package/dist/react-native/Pipeline.js.map +1 -1
- package/dist/react-native/Range.d.ts +1 -1
- package/dist/react-native/Range.js.map +1 -1
- package/dist/react-native/StorageClient.js +23 -0
- package/dist/react-native/StorageClient.js.map +1 -1
- package/dist/react-native/StorageContextClient.js +1 -1
- package/dist/react-native/StorageContextClient.js.map +1 -1
- package/dist/react-native/StorageRetryPolicyFactory.d.ts +2 -2
- package/dist/react-native/StorageRetryPolicyFactory.js +1 -0
- package/dist/react-native/StorageRetryPolicyFactory.js.map +1 -1
- package/dist/react-native/credentials/StorageSharedKeyCredential.js +8 -0
- package/dist/react-native/credentials/StorageSharedKeyCredential.js.map +1 -1
- package/dist/react-native/credentials/UserDelegationKeyCredential.d.ts +1 -1
- package/dist/react-native/credentials/UserDelegationKeyCredential.js +13 -1
- package/dist/react-native/credentials/UserDelegationKeyCredential.js.map +1 -1
- package/dist/react-native/generated/src/operations/appendBlob.js +1 -0
- package/dist/react-native/generated/src/operations/appendBlob.js.map +1 -1
- package/dist/react-native/generated/src/operations/blob.js +1 -0
- package/dist/react-native/generated/src/operations/blob.js.map +1 -1
- package/dist/react-native/generated/src/operations/blockBlob.js +1 -0
- package/dist/react-native/generated/src/operations/blockBlob.js.map +1 -1
- package/dist/react-native/generated/src/operations/container.js +1 -0
- package/dist/react-native/generated/src/operations/container.js.map +1 -1
- package/dist/react-native/generated/src/operations/pageBlob.js +1 -0
- package/dist/react-native/generated/src/operations/pageBlob.js.map +1 -1
- package/dist/react-native/generated/src/operations/service.js +1 -0
- package/dist/react-native/generated/src/operations/service.js.map +1 -1
- package/dist/react-native/generated/src/storageClient.js +16 -4
- package/dist/react-native/generated/src/storageClient.js.map +1 -1
- package/dist/react-native/index.d.ts +1 -8
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +1 -8
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/internal-avro/AvroParser.js +7 -1
- package/dist/react-native/internal-avro/AvroParser.js.map +1 -1
- package/dist/react-native/internal-avro/AvroReadableFromBlob.js +2 -0
- package/dist/react-native/internal-avro/AvroReadableFromBlob.js.map +1 -1
- package/dist/react-native/internal-avro/AvroReadableFromStream.js +3 -2
- package/dist/react-native/internal-avro/AvroReadableFromStream.js.map +1 -1
- package/dist/react-native/internal-avro/AvroReader.js +44 -34
- package/dist/react-native/internal-avro/AvroReader.js.map +1 -1
- package/dist/react-native/policies/RequestPolicy.js +2 -0
- package/dist/react-native/policies/RequestPolicy.js.map +1 -1
- package/dist/react-native/policies/StorageRetryPolicy.js +5 -1
- package/dist/react-native/policies/StorageRetryPolicy.js.map +1 -1
- package/dist/react-native/policies/StorageRetryPolicyV2.js +10 -12
- package/dist/react-native/policies/StorageRetryPolicyV2.js.map +1 -1
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicy.d.ts +1 -1
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicy.js +6 -2
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicy.js.map +1 -1
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2.js +2 -2
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2.js.map +1 -1
- package/dist/react-native/pollers/BlobStartCopyFromUrlPoller.js +7 -3
- package/dist/react-native/pollers/BlobStartCopyFromUrlPoller.js.map +1 -1
- package/dist/react-native/sas/AccountSASPermissions.d.ts +1 -1
- package/dist/react-native/sas/AccountSASPermissions.js +54 -56
- package/dist/react-native/sas/AccountSASPermissions.js.map +1 -1
- package/dist/react-native/sas/AccountSASResourceTypes.d.ts +1 -1
- package/dist/react-native/sas/AccountSASResourceTypes.js +13 -15
- package/dist/react-native/sas/AccountSASResourceTypes.js.map +1 -1
- package/dist/react-native/sas/AccountSASServices.js +16 -18
- package/dist/react-native/sas/AccountSASServices.js.map +1 -1
- package/dist/react-native/sas/AccountSASSignatureValues.d.ts +3 -3
- package/dist/react-native/sas/AccountSASSignatureValues.js +1 -1
- package/dist/react-native/sas/AccountSASSignatureValues.js.map +1 -1
- package/dist/react-native/sas/BlobSASPermissions.js +44 -46
- package/dist/react-native/sas/BlobSASPermissions.js.map +1 -1
- package/dist/react-native/sas/BlobSASSignatureValues.d.ts +1 -1
- package/dist/react-native/sas/BlobSASSignatureValues.js +1 -1
- package/dist/react-native/sas/BlobSASSignatureValues.js.map +1 -1
- package/dist/react-native/sas/ContainerSASPermissions.d.ts +1 -1
- package/dist/react-native/sas/ContainerSASPermissions.js +53 -55
- package/dist/react-native/sas/ContainerSASPermissions.js.map +1 -1
- package/dist/react-native/sas/SASQueryParameters.d.ts +2 -2
- package/dist/react-native/sas/SASQueryParameters.js +117 -0
- package/dist/react-native/sas/SASQueryParameters.js.map +1 -1
- package/dist/react-native/utils/Batch.js +29 -21
- package/dist/react-native/utils/Batch.js.map +1 -1
- package/dist/react-native/utils/BlobQuickQueryStream.js +6 -1
- package/dist/react-native/utils/BlobQuickQueryStream.js.map +1 -1
- package/dist/react-native/utils/Mutex.js +2 -2
- package/dist/react-native/utils/Mutex.js.map +1 -1
- package/dist/react-native/utils/RetriableReadableStream.js +70 -62
- package/dist/react-native/utils/RetriableReadableStream.js.map +1 -1
- package/dist/react-native/utils/constants.d.ts.map +1 -1
- package/dist/react-native/utils/constants.js +1 -1
- package/dist/react-native/utils/constants.js.map +1 -1
- package/dist/react-native/utils/utils.common.d.ts +2 -2
- package/dist/react-native/utils/utils.common.js +27 -14
- package/dist/react-native/utils/utils.common.js.map +1 -1
- package/dist/react-native/utils/utils.d.ts +1 -1
- package/dist/react-native/utils/utils.d.ts.map +1 -1
- package/dist/react-native/utils/utils.js +2 -2
- package/dist/react-native/utils/utils.js.map +1 -1
- package/package.json +10 -10
@@ -1,7 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ContainerClient = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
4
|
const core_rest_pipeline_1 = require("@azure/core-rest-pipeline");
|
6
5
|
const core_util_1 = require("@azure/core-util");
|
7
6
|
const core_auth_1 = require("@azure/core-auth");
|
@@ -19,6 +18,11 @@ const BlobBatchClient_js_1 = require("./BlobBatchClient.js");
|
|
19
18
|
* A ContainerClient represents a URL to the Azure Storage container allowing you to manipulate its blobs.
|
20
19
|
*/
|
21
20
|
class ContainerClient extends StorageClient_js_1.StorageClient {
|
21
|
+
/**
|
22
|
+
* containerContext provided by protocol layer.
|
23
|
+
*/
|
24
|
+
containerContext;
|
25
|
+
_containerName;
|
22
26
|
/**
|
23
27
|
* The name of the container.
|
24
28
|
*/
|
@@ -90,7 +94,7 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
90
94
|
/**
|
91
95
|
* Creates a new container under the specified account. If the container with
|
92
96
|
* the same name already exists, the operation fails.
|
93
|
-
* @see https://learn.microsoft.com/
|
97
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-container
|
94
98
|
* Naming rules: @see https://learn.microsoft.com/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata
|
95
99
|
*
|
96
100
|
* @param options - Options to Container Create operation.
|
@@ -122,21 +126,28 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
122
126
|
/**
|
123
127
|
* Creates a new container under the specified account. If the container with
|
124
128
|
* the same name already exists, it is not changed.
|
125
|
-
* @see https://learn.microsoft.com/
|
129
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-container
|
126
130
|
* Naming rules: @see https://learn.microsoft.com/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata
|
127
131
|
*
|
128
132
|
* @param options -
|
129
133
|
*/
|
130
134
|
async createIfNotExists(options = {}) {
|
131
135
|
return tracing_js_1.tracingClient.withSpan("ContainerClient-createIfNotExists", options, async (updatedOptions) => {
|
132
|
-
var _a, _b;
|
133
136
|
try {
|
134
137
|
const res = await this.create(updatedOptions);
|
135
|
-
return
|
138
|
+
return {
|
139
|
+
succeeded: true,
|
140
|
+
...res,
|
141
|
+
_response: res._response, // _response is made non-enumerable
|
142
|
+
};
|
136
143
|
}
|
137
144
|
catch (e) {
|
138
|
-
if (
|
139
|
-
return
|
145
|
+
if (e.details?.errorCode === "ContainerAlreadyExists") {
|
146
|
+
return {
|
147
|
+
succeeded: false,
|
148
|
+
...e.response?.parsedHeaders,
|
149
|
+
_response: e.response,
|
150
|
+
};
|
140
151
|
}
|
141
152
|
else {
|
142
153
|
throw e;
|
@@ -228,7 +239,7 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
228
239
|
/**
|
229
240
|
* Returns all user-defined metadata and system properties for the specified
|
230
241
|
* container. The data returned does not include the container's list of blobs.
|
231
|
-
* @see https://learn.microsoft.com/
|
242
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-container-properties
|
232
243
|
*
|
233
244
|
* WARNING: The `metadata` object returned in the response will have its keys in lowercase, even if
|
234
245
|
* they originally contained uppercase characters. This differs from the metadata keys returned by
|
@@ -242,13 +253,17 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
242
253
|
options.conditions = {};
|
243
254
|
}
|
244
255
|
return tracing_js_1.tracingClient.withSpan("ContainerClient-getProperties", options, async (updatedOptions) => {
|
245
|
-
return (0, utils_common_js_1.assertResponse)(await this.containerContext.getProperties(
|
256
|
+
return (0, utils_common_js_1.assertResponse)(await this.containerContext.getProperties({
|
257
|
+
abortSignal: options.abortSignal,
|
258
|
+
...options.conditions,
|
259
|
+
tracingOptions: updatedOptions.tracingOptions,
|
260
|
+
}));
|
246
261
|
});
|
247
262
|
}
|
248
263
|
/**
|
249
264
|
* Marks the specified container for deletion. The container and any blobs
|
250
265
|
* contained within it are later deleted during garbage collection.
|
251
|
-
* @see https://learn.microsoft.com/
|
266
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-container
|
252
267
|
*
|
253
268
|
* @param options - Options to Container Delete operation.
|
254
269
|
*/
|
@@ -268,20 +283,27 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
268
283
|
/**
|
269
284
|
* Marks the specified container for deletion if it exists. The container and any blobs
|
270
285
|
* contained within it are later deleted during garbage collection.
|
271
|
-
* @see https://learn.microsoft.com/
|
286
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-container
|
272
287
|
*
|
273
288
|
* @param options - Options to Container Delete operation.
|
274
289
|
*/
|
275
290
|
async deleteIfExists(options = {}) {
|
276
291
|
return tracing_js_1.tracingClient.withSpan("ContainerClient-deleteIfExists", options, async (updatedOptions) => {
|
277
|
-
var _a, _b;
|
278
292
|
try {
|
279
293
|
const res = await this.delete(updatedOptions);
|
280
|
-
return
|
294
|
+
return {
|
295
|
+
succeeded: true,
|
296
|
+
...res,
|
297
|
+
_response: res._response,
|
298
|
+
};
|
281
299
|
}
|
282
300
|
catch (e) {
|
283
|
-
if (
|
284
|
-
return
|
301
|
+
if (e.details?.errorCode === "ContainerNotFound") {
|
302
|
+
return {
|
303
|
+
succeeded: false,
|
304
|
+
...e.response?.parsedHeaders,
|
305
|
+
_response: e.response,
|
306
|
+
};
|
285
307
|
}
|
286
308
|
throw e;
|
287
309
|
}
|
@@ -293,7 +315,7 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
293
315
|
* If no option provided, or no metadata defined in the parameter, the container
|
294
316
|
* metadata will be removed.
|
295
317
|
*
|
296
|
-
* @see https://learn.microsoft.com/
|
318
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-container-metadata
|
297
319
|
*
|
298
320
|
* @param metadata - Replace existing metadata with this value.
|
299
321
|
* If no value provided the existing metadata will be removed.
|
@@ -323,7 +345,7 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
323
345
|
* WARNING: JavaScript Date will potentially lose precision when parsing startsOn and expiresOn strings.
|
324
346
|
* For example, new Date("2018-12-31T03:44:23.8827891Z").toISOString() will get "2018-12-31T03:44:23.882Z".
|
325
347
|
*
|
326
|
-
* @see https://learn.microsoft.com/
|
348
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-container-acl
|
327
349
|
*
|
328
350
|
* @param options - Options to Container Get Access Policy operation.
|
329
351
|
*/
|
@@ -381,7 +403,7 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
381
403
|
* When you establish a stored access policy on a container, it may take up to 30 seconds to take effect.
|
382
404
|
* During this interval, a shared access signature that is associated with the stored access policy will
|
383
405
|
* fail with status code 403 (Forbidden), until the access policy becomes active.
|
384
|
-
* @see https://learn.microsoft.com/
|
406
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-container-acl
|
385
407
|
*
|
386
408
|
* @param access - The level of public access to data in the container.
|
387
409
|
* @param containerAcl - Array of elements each having a unique Id and details of the access policy.
|
@@ -461,7 +483,7 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
461
483
|
* during garbage collection. Note that in order to delete a blob, you must delete
|
462
484
|
* all of its snapshots. You can delete both at the same time with the Delete
|
463
485
|
* Blob operation.
|
464
|
-
* @see https://learn.microsoft.com/
|
486
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-blob
|
465
487
|
*
|
466
488
|
* @param blobName -
|
467
489
|
* @param options - Options to Blob Delete operation.
|
@@ -488,11 +510,30 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
488
510
|
*/
|
489
511
|
async listBlobFlatSegment(marker, options = {}) {
|
490
512
|
return tracing_js_1.tracingClient.withSpan("ContainerClient-listBlobFlatSegment", options, async (updatedOptions) => {
|
491
|
-
const response = (0, utils_common_js_1.assertResponse)(await this.containerContext.listBlobFlatSegment(
|
492
|
-
|
493
|
-
|
513
|
+
const response = (0, utils_common_js_1.assertResponse)(await this.containerContext.listBlobFlatSegment({
|
514
|
+
marker,
|
515
|
+
...options,
|
516
|
+
tracingOptions: updatedOptions.tracingOptions,
|
517
|
+
}));
|
518
|
+
const wrappedResponse = {
|
519
|
+
...response,
|
520
|
+
_response: {
|
521
|
+
...response._response,
|
522
|
+
parsedBody: (0, utils_common_js_1.ConvertInternalResponseOfListBlobFlat)(response._response.parsedBody),
|
523
|
+
}, // _response is made non-enumerable
|
524
|
+
segment: {
|
525
|
+
...response.segment,
|
526
|
+
blobItems: response.segment.blobItems.map((blobItemInternal) => {
|
527
|
+
const blobItem = {
|
528
|
+
...blobItemInternal,
|
529
|
+
name: (0, utils_common_js_1.BlobNameToString)(blobItemInternal.name),
|
530
|
+
tags: (0, utils_common_js_1.toTags)(blobItemInternal.blobTags),
|
531
|
+
objectReplicationSourceProperties: (0, utils_common_js_1.parseObjectReplicationRecord)(blobItemInternal.objectReplicationMetadata),
|
532
|
+
};
|
494
533
|
return blobItem;
|
495
|
-
})
|
534
|
+
}),
|
535
|
+
},
|
536
|
+
};
|
496
537
|
return wrappedResponse;
|
497
538
|
});
|
498
539
|
}
|
@@ -509,15 +550,37 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
509
550
|
*/
|
510
551
|
async listBlobHierarchySegment(delimiter, marker, options = {}) {
|
511
552
|
return tracing_js_1.tracingClient.withSpan("ContainerClient-listBlobHierarchySegment", options, async (updatedOptions) => {
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
553
|
+
const response = (0, utils_common_js_1.assertResponse)(await this.containerContext.listBlobHierarchySegment(delimiter, {
|
554
|
+
marker,
|
555
|
+
...options,
|
556
|
+
tracingOptions: updatedOptions.tracingOptions,
|
557
|
+
}));
|
558
|
+
const wrappedResponse = {
|
559
|
+
...response,
|
560
|
+
_response: {
|
561
|
+
...response._response,
|
562
|
+
parsedBody: (0, utils_common_js_1.ConvertInternalResponseOfListBlobHierarchy)(response._response.parsedBody),
|
563
|
+
}, // _response is made non-enumerable
|
564
|
+
segment: {
|
565
|
+
...response.segment,
|
566
|
+
blobItems: response.segment.blobItems.map((blobItemInternal) => {
|
567
|
+
const blobItem = {
|
568
|
+
...blobItemInternal,
|
569
|
+
name: (0, utils_common_js_1.BlobNameToString)(blobItemInternal.name),
|
570
|
+
tags: (0, utils_common_js_1.toTags)(blobItemInternal.blobTags),
|
571
|
+
objectReplicationSourceProperties: (0, utils_common_js_1.parseObjectReplicationRecord)(blobItemInternal.objectReplicationMetadata),
|
572
|
+
};
|
516
573
|
return blobItem;
|
517
|
-
}),
|
518
|
-
|
574
|
+
}),
|
575
|
+
blobPrefixes: response.segment.blobPrefixes?.map((blobPrefixInternal) => {
|
576
|
+
const blobPrefix = {
|
577
|
+
...blobPrefixInternal,
|
578
|
+
name: (0, utils_common_js_1.BlobNameToString)(blobPrefixInternal.name),
|
579
|
+
};
|
519
580
|
return blobPrefix;
|
520
|
-
})
|
581
|
+
}),
|
582
|
+
},
|
583
|
+
};
|
521
584
|
return wrappedResponse;
|
522
585
|
});
|
523
586
|
}
|
@@ -533,43 +596,26 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
533
596
|
* items. The marker value is opaque to the client.
|
534
597
|
* @param options - Options to list blobs operation.
|
535
598
|
*/
|
536
|
-
listSegments(
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
}
|
546
|
-
});
|
599
|
+
async *listSegments(marker, options = {}) {
|
600
|
+
let listBlobsFlatSegmentResponse;
|
601
|
+
if (!!marker || marker === undefined) {
|
602
|
+
do {
|
603
|
+
listBlobsFlatSegmentResponse = await this.listBlobFlatSegment(marker, options);
|
604
|
+
marker = listBlobsFlatSegmentResponse.continuationToken;
|
605
|
+
yield await listBlobsFlatSegmentResponse;
|
606
|
+
} while (marker);
|
607
|
+
}
|
547
608
|
}
|
548
609
|
/**
|
549
610
|
* Returns an AsyncIterableIterator of {@link BlobItem} objects
|
550
611
|
*
|
551
612
|
* @param options - Options to list blobs operation.
|
552
613
|
*/
|
553
|
-
listItems() {
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listSegments(marker, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
559
|
-
_c = _f.value;
|
560
|
-
_d = false;
|
561
|
-
const listBlobsFlatSegmentResponse = _c;
|
562
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(listBlobsFlatSegmentResponse.segment.blobItems)));
|
563
|
-
}
|
564
|
-
}
|
565
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
566
|
-
finally {
|
567
|
-
try {
|
568
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
569
|
-
}
|
570
|
-
finally { if (e_1) throw e_1.error; }
|
571
|
-
}
|
572
|
-
});
|
614
|
+
async *listItems(options = {}) {
|
615
|
+
let marker;
|
616
|
+
for await (const listBlobsFlatSegmentResponse of this.listSegments(marker, options)) {
|
617
|
+
yield* listBlobsFlatSegmentResponse.segment.blobItems;
|
618
|
+
}
|
573
619
|
}
|
574
620
|
/**
|
575
621
|
* Returns an async iterable iterator to list all the blobs
|
@@ -675,7 +721,10 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
675
721
|
if (options.prefix === "") {
|
676
722
|
options.prefix = undefined;
|
677
723
|
}
|
678
|
-
const updatedOptions =
|
724
|
+
const updatedOptions = {
|
725
|
+
...options,
|
726
|
+
...(include.length > 0 ? { include: include } : {}),
|
727
|
+
};
|
679
728
|
// AsyncIterableIterator to iterate over blobs
|
680
729
|
const iter = this.listItems(updatedOptions);
|
681
730
|
return {
|
@@ -695,7 +744,10 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
695
744
|
* Return an AsyncIterableIterator that works a page at a time
|
696
745
|
*/
|
697
746
|
byPage: (settings = {}) => {
|
698
|
-
return this.listSegments(settings.continuationToken,
|
747
|
+
return this.listSegments(settings.continuationToken, {
|
748
|
+
maxPageSize: settings.maxPageSize,
|
749
|
+
...updatedOptions,
|
750
|
+
});
|
699
751
|
},
|
700
752
|
};
|
701
753
|
}
|
@@ -712,17 +764,15 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
712
764
|
* items. The marker value is opaque to the client.
|
713
765
|
* @param options - Options to list blobs operation.
|
714
766
|
*/
|
715
|
-
listHierarchySegments(
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
}
|
725
|
-
});
|
767
|
+
async *listHierarchySegments(delimiter, marker, options = {}) {
|
768
|
+
let listBlobsHierarchySegmentResponse;
|
769
|
+
if (!!marker || marker === undefined) {
|
770
|
+
do {
|
771
|
+
listBlobsHierarchySegmentResponse = await this.listBlobHierarchySegment(delimiter, marker, options);
|
772
|
+
marker = listBlobsHierarchySegmentResponse.continuationToken;
|
773
|
+
yield await listBlobsHierarchySegmentResponse;
|
774
|
+
} while (marker);
|
775
|
+
}
|
726
776
|
}
|
727
777
|
/**
|
728
778
|
* Returns an AsyncIterableIterator for {@link BlobPrefix} and {@link BlobItem} objects.
|
@@ -730,34 +780,22 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
730
780
|
* @param delimiter - The character or string used to define the virtual hierarchy
|
731
781
|
* @param options - Options to list blobs operation.
|
732
782
|
*/
|
733
|
-
listItemsByHierarchy(
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
for (
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
if (segment.blobPrefixes) {
|
744
|
-
for (const prefix of segment.blobPrefixes) {
|
745
|
-
yield yield tslib_1.__await(Object.assign({ kind: "prefix" }, prefix));
|
746
|
-
}
|
747
|
-
}
|
748
|
-
for (const blob of segment.blobItems) {
|
749
|
-
yield yield tslib_1.__await(Object.assign({ kind: "blob" }, blob));
|
750
|
-
}
|
783
|
+
async *listItemsByHierarchy(delimiter, options = {}) {
|
784
|
+
let marker;
|
785
|
+
for await (const listBlobsHierarchySegmentResponse of this.listHierarchySegments(delimiter, marker, options)) {
|
786
|
+
const segment = listBlobsHierarchySegmentResponse.segment;
|
787
|
+
if (segment.blobPrefixes) {
|
788
|
+
for (const prefix of segment.blobPrefixes) {
|
789
|
+
yield {
|
790
|
+
kind: "prefix",
|
791
|
+
...prefix,
|
792
|
+
};
|
751
793
|
}
|
752
794
|
}
|
753
|
-
|
754
|
-
|
755
|
-
try {
|
756
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
757
|
-
}
|
758
|
-
finally { if (e_2) throw e_2.error; }
|
795
|
+
for (const blob of segment.blobItems) {
|
796
|
+
yield { kind: "blob", ...blob };
|
759
797
|
}
|
760
|
-
}
|
798
|
+
}
|
761
799
|
}
|
762
800
|
/**
|
763
801
|
* Returns an async iterable iterator to list all the blobs by hierarchy.
|
@@ -892,7 +930,10 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
892
930
|
if (options.prefix === "") {
|
893
931
|
options.prefix = undefined;
|
894
932
|
}
|
895
|
-
const updatedOptions =
|
933
|
+
const updatedOptions = {
|
934
|
+
...options,
|
935
|
+
...(include.length > 0 ? { include: include } : {}),
|
936
|
+
};
|
896
937
|
// AsyncIterableIterator to iterate over blob prefixes and blobs
|
897
938
|
const iter = this.listItemsByHierarchy(delimiter, updatedOptions);
|
898
939
|
return {
|
@@ -912,7 +953,10 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
912
953
|
* Return an AsyncIterableIterator that works a page at a time
|
913
954
|
*/
|
914
955
|
byPage: (settings = {}) => {
|
915
|
-
return this.listHierarchySegments(delimiter, settings.continuationToken,
|
956
|
+
return this.listHierarchySegments(delimiter, settings.continuationToken, {
|
957
|
+
maxPageSize: settings.maxPageSize,
|
958
|
+
...updatedOptions,
|
959
|
+
});
|
916
960
|
},
|
917
961
|
};
|
918
962
|
}
|
@@ -942,14 +986,17 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
942
986
|
maxPageSize: options.maxPageSize,
|
943
987
|
tracingOptions: updatedOptions.tracingOptions,
|
944
988
|
}));
|
945
|
-
const wrappedResponse =
|
946
|
-
|
989
|
+
const wrappedResponse = {
|
990
|
+
...response,
|
991
|
+
_response: response._response, // _response is made non-enumerable
|
992
|
+
blobs: response.blobs.map((blob) => {
|
947
993
|
let tagValue = "";
|
948
|
-
if (
|
994
|
+
if (blob.tags?.blobTagSet.length === 1) {
|
949
995
|
tagValue = blob.tags.blobTagSet[0].value;
|
950
996
|
}
|
951
|
-
return
|
952
|
-
})
|
997
|
+
return { ...blob, tags: (0, utils_common_js_1.toTags)(blob.tags), tagValue };
|
998
|
+
}),
|
999
|
+
};
|
953
1000
|
return wrappedResponse;
|
954
1001
|
});
|
955
1002
|
}
|
@@ -969,18 +1016,16 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
969
1016
|
* items. The marker value is opaque to the client.
|
970
1017
|
* @param options - Options to find blobs by tags.
|
971
1018
|
*/
|
972
|
-
findBlobsByTagsSegments(
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
}
|
983
|
-
});
|
1019
|
+
async *findBlobsByTagsSegments(tagFilterSqlExpression, marker, options = {}) {
|
1020
|
+
let response;
|
1021
|
+
if (!!marker || marker === undefined) {
|
1022
|
+
do {
|
1023
|
+
response = await this.findBlobsByTagsSegment(tagFilterSqlExpression, marker, options);
|
1024
|
+
response.blobs = response.blobs || [];
|
1025
|
+
marker = response.continuationToken;
|
1026
|
+
yield response;
|
1027
|
+
} while (marker);
|
1028
|
+
}
|
984
1029
|
}
|
985
1030
|
/**
|
986
1031
|
* Returns an AsyncIterableIterator for blobs.
|
@@ -991,26 +1036,11 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
991
1036
|
* however, only a subset of the OData filter syntax is supported in the Blob service.
|
992
1037
|
* @param options - Options to findBlobsByTagsItems.
|
993
1038
|
*/
|
994
|
-
findBlobsByTagsItems(
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.findBlobsByTagsSegments(tagFilterSqlExpression, marker, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
1000
|
-
_c = _f.value;
|
1001
|
-
_d = false;
|
1002
|
-
const segment = _c;
|
1003
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(segment.blobs)));
|
1004
|
-
}
|
1005
|
-
}
|
1006
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
1007
|
-
finally {
|
1008
|
-
try {
|
1009
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
1010
|
-
}
|
1011
|
-
finally { if (e_3) throw e_3.error; }
|
1012
|
-
}
|
1013
|
-
});
|
1039
|
+
async *findBlobsByTagsItems(tagFilterSqlExpression, options = {}) {
|
1040
|
+
let marker;
|
1041
|
+
for await (const segment of this.findBlobsByTagsSegments(tagFilterSqlExpression, marker, options)) {
|
1042
|
+
yield* segment.blobs;
|
1043
|
+
}
|
1014
1044
|
}
|
1015
1045
|
/**
|
1016
1046
|
* Returns an async iterable iterator to find all blobs with specified tag
|
@@ -1091,7 +1121,9 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
1091
1121
|
*/
|
1092
1122
|
findBlobsByTags(tagFilterSqlExpression, options = {}) {
|
1093
1123
|
// AsyncIterableIterator to iterate over blobs
|
1094
|
-
const listSegmentOptions =
|
1124
|
+
const listSegmentOptions = {
|
1125
|
+
...options,
|
1126
|
+
};
|
1095
1127
|
const iter = this.findBlobsByTagsItems(tagFilterSqlExpression, listSegmentOptions);
|
1096
1128
|
return {
|
1097
1129
|
/**
|
@@ -1110,7 +1142,10 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
1110
1142
|
* Return an AsyncIterableIterator that works a page at a time
|
1111
1143
|
*/
|
1112
1144
|
byPage: (settings = {}) => {
|
1113
|
-
return this.findBlobsByTagsSegments(tagFilterSqlExpression, settings.continuationToken,
|
1145
|
+
return this.findBlobsByTagsSegments(tagFilterSqlExpression, settings.continuationToken, {
|
1146
|
+
maxPageSize: settings.maxPageSize,
|
1147
|
+
...listSegmentOptions,
|
1148
|
+
});
|
1114
1149
|
},
|
1115
1150
|
};
|
1116
1151
|
}
|
@@ -1119,7 +1154,7 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
1119
1154
|
* for the specified account.
|
1120
1155
|
* The Get Account Information operation is available on service versions beginning
|
1121
1156
|
* with version 2018-03-28.
|
1122
|
-
* @see https://learn.microsoft.com/
|
1157
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-account-information
|
1123
1158
|
*
|
1124
1159
|
* @param options - Options to the Service Get Account Info operation.
|
1125
1160
|
* @returns Response data for the Service Get Account Info operation.
|
@@ -1175,7 +1210,7 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
1175
1210
|
* Generates a Blob Container Service Shared Access Signature (SAS) URI based on the client properties
|
1176
1211
|
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
1177
1212
|
*
|
1178
|
-
* @see https://learn.microsoft.com/
|
1213
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
1179
1214
|
*
|
1180
1215
|
* @param options - Optional parameters.
|
1181
1216
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
@@ -1185,7 +1220,10 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
1185
1220
|
if (!(this.credential instanceof StorageSharedKeyCredential_js_1.StorageSharedKeyCredential)) {
|
1186
1221
|
throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");
|
1187
1222
|
}
|
1188
|
-
const sas = (0, BlobSASSignatureValues_js_1.generateBlobSASQueryParameters)(
|
1223
|
+
const sas = (0, BlobSASSignatureValues_js_1.generateBlobSASQueryParameters)({
|
1224
|
+
containerName: this._containerName,
|
1225
|
+
...options,
|
1226
|
+
}, this.credential).toString();
|
1189
1227
|
resolve((0, utils_common_js_1.appendToURLQuery)(this.url, sas));
|
1190
1228
|
});
|
1191
1229
|
}
|
@@ -1195,7 +1233,7 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
1195
1233
|
* Generates string to sign for a Blob Container Service Shared Access Signature (SAS) URI
|
1196
1234
|
* based on the client properties and parameters passed in. The SAS is signed by the shared key credential of the client.
|
1197
1235
|
*
|
1198
|
-
* @see https://learn.microsoft.com/
|
1236
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
1199
1237
|
*
|
1200
1238
|
* @param options - Optional parameters.
|
1201
1239
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
@@ -1205,13 +1243,16 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
1205
1243
|
if (!(this.credential instanceof StorageSharedKeyCredential_js_1.StorageSharedKeyCredential)) {
|
1206
1244
|
throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");
|
1207
1245
|
}
|
1208
|
-
return (0, BlobSASSignatureValues_js_1.generateBlobSASQueryParametersInternal)(
|
1246
|
+
return (0, BlobSASSignatureValues_js_1.generateBlobSASQueryParametersInternal)({
|
1247
|
+
containerName: this._containerName,
|
1248
|
+
...options,
|
1249
|
+
}, this.credential).stringToSign;
|
1209
1250
|
}
|
1210
1251
|
/**
|
1211
1252
|
* Generates a Blob Container Service Shared Access Signature (SAS) URI based on the client properties
|
1212
1253
|
* and parameters passed in. The SAS is signed by the input user delegation key.
|
1213
1254
|
*
|
1214
|
-
* @see https://learn.microsoft.com/
|
1255
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
1215
1256
|
*
|
1216
1257
|
* @param options - Optional parameters.
|
1217
1258
|
* @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
|
@@ -1219,7 +1260,10 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
1219
1260
|
*/
|
1220
1261
|
generateUserDelegationSasUrl(options, userDelegationKey) {
|
1221
1262
|
return new Promise((resolve) => {
|
1222
|
-
const sas = (0, BlobSASSignatureValues_js_1.generateBlobSASQueryParameters)(
|
1263
|
+
const sas = (0, BlobSASSignatureValues_js_1.generateBlobSASQueryParameters)({
|
1264
|
+
containerName: this._containerName,
|
1265
|
+
...options,
|
1266
|
+
}, userDelegationKey, this.accountName).toString();
|
1223
1267
|
resolve((0, utils_common_js_1.appendToURLQuery)(this.url, sas));
|
1224
1268
|
});
|
1225
1269
|
}
|
@@ -1227,19 +1271,22 @@ class ContainerClient extends StorageClient_js_1.StorageClient {
|
|
1227
1271
|
* Generates string to sign for a Blob Container Service Shared Access Signature (SAS) URI
|
1228
1272
|
* based on the client properties and parameters passed in. The SAS is signed by the input user delegation key.
|
1229
1273
|
*
|
1230
|
-
* @see https://learn.microsoft.com/
|
1274
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
1231
1275
|
*
|
1232
1276
|
* @param options - Optional parameters.
|
1233
1277
|
* @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
|
1234
1278
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
1235
1279
|
*/
|
1236
1280
|
generateUserDelegationSasStringToSign(options, userDelegationKey) {
|
1237
|
-
return (0, BlobSASSignatureValues_js_1.generateBlobSASQueryParametersInternal)(
|
1281
|
+
return (0, BlobSASSignatureValues_js_1.generateBlobSASQueryParametersInternal)({
|
1282
|
+
containerName: this._containerName,
|
1283
|
+
...options,
|
1284
|
+
}, userDelegationKey, this.accountName).stringToSign;
|
1238
1285
|
}
|
1239
1286
|
/**
|
1240
1287
|
* Creates a BlobBatchClient object to conduct batch operations.
|
1241
1288
|
*
|
1242
|
-
* @see https://learn.microsoft.com/
|
1289
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/blob-batch
|
1243
1290
|
*
|
1244
1291
|
* @returns A new BlobBatchClient object for this container.
|
1245
1292
|
*/
|