@azure/storage-blob 12.28.0-beta.2 → 12.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +6 -6
@@ -1,4 +1,3 @@
|
|
1
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
2
1
|
import { getDefaultProxySettings } from "@azure/core-rest-pipeline";
|
3
2
|
import { isNodeLike } from "@azure/core-util";
|
4
3
|
import { isTokenCredential } from "@azure/core-auth";
|
@@ -16,6 +15,11 @@ import { BlobBatchClient } from "./BlobBatchClient.js";
|
|
16
15
|
* A ContainerClient represents a URL to the Azure Storage container allowing you to manipulate its blobs.
|
17
16
|
*/
|
18
17
|
export class ContainerClient extends StorageClient {
|
18
|
+
/**
|
19
|
+
* containerContext provided by protocol layer.
|
20
|
+
*/
|
21
|
+
containerContext;
|
22
|
+
_containerName;
|
19
23
|
/**
|
20
24
|
* The name of the container.
|
21
25
|
*/
|
@@ -87,7 +91,7 @@ export class ContainerClient extends StorageClient {
|
|
87
91
|
/**
|
88
92
|
* Creates a new container under the specified account. If the container with
|
89
93
|
* the same name already exists, the operation fails.
|
90
|
-
* @see https://learn.microsoft.com/
|
94
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-container
|
91
95
|
* Naming rules: @see https://learn.microsoft.com/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata
|
92
96
|
*
|
93
97
|
* @param options - Options to Container Create operation.
|
@@ -119,21 +123,28 @@ export class ContainerClient extends StorageClient {
|
|
119
123
|
/**
|
120
124
|
* Creates a new container under the specified account. If the container with
|
121
125
|
* the same name already exists, it is not changed.
|
122
|
-
* @see https://learn.microsoft.com/
|
126
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-container
|
123
127
|
* Naming rules: @see https://learn.microsoft.com/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata
|
124
128
|
*
|
125
129
|
* @param options -
|
126
130
|
*/
|
127
131
|
async createIfNotExists(options = {}) {
|
128
132
|
return tracingClient.withSpan("ContainerClient-createIfNotExists", options, async (updatedOptions) => {
|
129
|
-
var _a, _b;
|
130
133
|
try {
|
131
134
|
const res = await this.create(updatedOptions);
|
132
|
-
return
|
135
|
+
return {
|
136
|
+
succeeded: true,
|
137
|
+
...res,
|
138
|
+
_response: res._response, // _response is made non-enumerable
|
139
|
+
};
|
133
140
|
}
|
134
141
|
catch (e) {
|
135
|
-
if (
|
136
|
-
return
|
142
|
+
if (e.details?.errorCode === "ContainerAlreadyExists") {
|
143
|
+
return {
|
144
|
+
succeeded: false,
|
145
|
+
...e.response?.parsedHeaders,
|
146
|
+
_response: e.response,
|
147
|
+
};
|
137
148
|
}
|
138
149
|
else {
|
139
150
|
throw e;
|
@@ -225,7 +236,7 @@ export class ContainerClient extends StorageClient {
|
|
225
236
|
/**
|
226
237
|
* Returns all user-defined metadata and system properties for the specified
|
227
238
|
* container. The data returned does not include the container's list of blobs.
|
228
|
-
* @see https://learn.microsoft.com/
|
239
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-container-properties
|
229
240
|
*
|
230
241
|
* WARNING: The `metadata` object returned in the response will have its keys in lowercase, even if
|
231
242
|
* they originally contained uppercase characters. This differs from the metadata keys returned by
|
@@ -239,13 +250,17 @@ export class ContainerClient extends StorageClient {
|
|
239
250
|
options.conditions = {};
|
240
251
|
}
|
241
252
|
return tracingClient.withSpan("ContainerClient-getProperties", options, async (updatedOptions) => {
|
242
|
-
return assertResponse(await this.containerContext.getProperties(
|
253
|
+
return assertResponse(await this.containerContext.getProperties({
|
254
|
+
abortSignal: options.abortSignal,
|
255
|
+
...options.conditions,
|
256
|
+
tracingOptions: updatedOptions.tracingOptions,
|
257
|
+
}));
|
243
258
|
});
|
244
259
|
}
|
245
260
|
/**
|
246
261
|
* Marks the specified container for deletion. The container and any blobs
|
247
262
|
* contained within it are later deleted during garbage collection.
|
248
|
-
* @see https://learn.microsoft.com/
|
263
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-container
|
249
264
|
*
|
250
265
|
* @param options - Options to Container Delete operation.
|
251
266
|
*/
|
@@ -265,20 +280,27 @@ export class ContainerClient extends StorageClient {
|
|
265
280
|
/**
|
266
281
|
* Marks the specified container for deletion if it exists. The container and any blobs
|
267
282
|
* contained within it are later deleted during garbage collection.
|
268
|
-
* @see https://learn.microsoft.com/
|
283
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-container
|
269
284
|
*
|
270
285
|
* @param options - Options to Container Delete operation.
|
271
286
|
*/
|
272
287
|
async deleteIfExists(options = {}) {
|
273
288
|
return tracingClient.withSpan("ContainerClient-deleteIfExists", options, async (updatedOptions) => {
|
274
|
-
var _a, _b;
|
275
289
|
try {
|
276
290
|
const res = await this.delete(updatedOptions);
|
277
|
-
return
|
291
|
+
return {
|
292
|
+
succeeded: true,
|
293
|
+
...res,
|
294
|
+
_response: res._response,
|
295
|
+
};
|
278
296
|
}
|
279
297
|
catch (e) {
|
280
|
-
if (
|
281
|
-
return
|
298
|
+
if (e.details?.errorCode === "ContainerNotFound") {
|
299
|
+
return {
|
300
|
+
succeeded: false,
|
301
|
+
...e.response?.parsedHeaders,
|
302
|
+
_response: e.response,
|
303
|
+
};
|
282
304
|
}
|
283
305
|
throw e;
|
284
306
|
}
|
@@ -290,7 +312,7 @@ export class ContainerClient extends StorageClient {
|
|
290
312
|
* If no option provided, or no metadata defined in the parameter, the container
|
291
313
|
* metadata will be removed.
|
292
314
|
*
|
293
|
-
* @see https://learn.microsoft.com/
|
315
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-container-metadata
|
294
316
|
*
|
295
317
|
* @param metadata - Replace existing metadata with this value.
|
296
318
|
* If no value provided the existing metadata will be removed.
|
@@ -320,7 +342,7 @@ export class ContainerClient extends StorageClient {
|
|
320
342
|
* WARNING: JavaScript Date will potentially lose precision when parsing startsOn and expiresOn strings.
|
321
343
|
* For example, new Date("2018-12-31T03:44:23.8827891Z").toISOString() will get "2018-12-31T03:44:23.882Z".
|
322
344
|
*
|
323
|
-
* @see https://learn.microsoft.com/
|
345
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-container-acl
|
324
346
|
*
|
325
347
|
* @param options - Options to Container Get Access Policy operation.
|
326
348
|
*/
|
@@ -378,7 +400,7 @@ export class ContainerClient extends StorageClient {
|
|
378
400
|
* When you establish a stored access policy on a container, it may take up to 30 seconds to take effect.
|
379
401
|
* During this interval, a shared access signature that is associated with the stored access policy will
|
380
402
|
* fail with status code 403 (Forbidden), until the access policy becomes active.
|
381
|
-
* @see https://learn.microsoft.com/
|
403
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-container-acl
|
382
404
|
*
|
383
405
|
* @param access - The level of public access to data in the container.
|
384
406
|
* @param containerAcl - Array of elements each having a unique Id and details of the access policy.
|
@@ -458,7 +480,7 @@ export class ContainerClient extends StorageClient {
|
|
458
480
|
* during garbage collection. Note that in order to delete a blob, you must delete
|
459
481
|
* all of its snapshots. You can delete both at the same time with the Delete
|
460
482
|
* Blob operation.
|
461
|
-
* @see https://learn.microsoft.com/
|
483
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-blob
|
462
484
|
*
|
463
485
|
* @param blobName -
|
464
486
|
* @param options - Options to Blob Delete operation.
|
@@ -485,11 +507,30 @@ export class ContainerClient extends StorageClient {
|
|
485
507
|
*/
|
486
508
|
async listBlobFlatSegment(marker, options = {}) {
|
487
509
|
return tracingClient.withSpan("ContainerClient-listBlobFlatSegment", options, async (updatedOptions) => {
|
488
|
-
const response = assertResponse(await this.containerContext.listBlobFlatSegment(
|
489
|
-
|
490
|
-
|
510
|
+
const response = assertResponse(await this.containerContext.listBlobFlatSegment({
|
511
|
+
marker,
|
512
|
+
...options,
|
513
|
+
tracingOptions: updatedOptions.tracingOptions,
|
514
|
+
}));
|
515
|
+
const wrappedResponse = {
|
516
|
+
...response,
|
517
|
+
_response: {
|
518
|
+
...response._response,
|
519
|
+
parsedBody: ConvertInternalResponseOfListBlobFlat(response._response.parsedBody),
|
520
|
+
}, // _response is made non-enumerable
|
521
|
+
segment: {
|
522
|
+
...response.segment,
|
523
|
+
blobItems: response.segment.blobItems.map((blobItemInternal) => {
|
524
|
+
const blobItem = {
|
525
|
+
...blobItemInternal,
|
526
|
+
name: BlobNameToString(blobItemInternal.name),
|
527
|
+
tags: toTags(blobItemInternal.blobTags),
|
528
|
+
objectReplicationSourceProperties: parseObjectReplicationRecord(blobItemInternal.objectReplicationMetadata),
|
529
|
+
};
|
491
530
|
return blobItem;
|
492
|
-
})
|
531
|
+
}),
|
532
|
+
},
|
533
|
+
};
|
493
534
|
return wrappedResponse;
|
494
535
|
});
|
495
536
|
}
|
@@ -506,15 +547,37 @@ export class ContainerClient extends StorageClient {
|
|
506
547
|
*/
|
507
548
|
async listBlobHierarchySegment(delimiter, marker, options = {}) {
|
508
549
|
return tracingClient.withSpan("ContainerClient-listBlobHierarchySegment", options, async (updatedOptions) => {
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
550
|
+
const response = assertResponse(await this.containerContext.listBlobHierarchySegment(delimiter, {
|
551
|
+
marker,
|
552
|
+
...options,
|
553
|
+
tracingOptions: updatedOptions.tracingOptions,
|
554
|
+
}));
|
555
|
+
const wrappedResponse = {
|
556
|
+
...response,
|
557
|
+
_response: {
|
558
|
+
...response._response,
|
559
|
+
parsedBody: ConvertInternalResponseOfListBlobHierarchy(response._response.parsedBody),
|
560
|
+
}, // _response is made non-enumerable
|
561
|
+
segment: {
|
562
|
+
...response.segment,
|
563
|
+
blobItems: response.segment.blobItems.map((blobItemInternal) => {
|
564
|
+
const blobItem = {
|
565
|
+
...blobItemInternal,
|
566
|
+
name: BlobNameToString(blobItemInternal.name),
|
567
|
+
tags: toTags(blobItemInternal.blobTags),
|
568
|
+
objectReplicationSourceProperties: parseObjectReplicationRecord(blobItemInternal.objectReplicationMetadata),
|
569
|
+
};
|
513
570
|
return blobItem;
|
514
|
-
}),
|
515
|
-
|
571
|
+
}),
|
572
|
+
blobPrefixes: response.segment.blobPrefixes?.map((blobPrefixInternal) => {
|
573
|
+
const blobPrefix = {
|
574
|
+
...blobPrefixInternal,
|
575
|
+
name: BlobNameToString(blobPrefixInternal.name),
|
576
|
+
};
|
516
577
|
return blobPrefix;
|
517
|
-
})
|
578
|
+
}),
|
579
|
+
},
|
580
|
+
};
|
518
581
|
return wrappedResponse;
|
519
582
|
});
|
520
583
|
}
|
@@ -530,43 +593,26 @@ export class ContainerClient extends StorageClient {
|
|
530
593
|
* items. The marker value is opaque to the client.
|
531
594
|
* @param options - Options to list blobs operation.
|
532
595
|
*/
|
533
|
-
listSegments(
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
}
|
543
|
-
});
|
596
|
+
async *listSegments(marker, options = {}) {
|
597
|
+
let listBlobsFlatSegmentResponse;
|
598
|
+
if (!!marker || marker === undefined) {
|
599
|
+
do {
|
600
|
+
listBlobsFlatSegmentResponse = await this.listBlobFlatSegment(marker, options);
|
601
|
+
marker = listBlobsFlatSegmentResponse.continuationToken;
|
602
|
+
yield await listBlobsFlatSegmentResponse;
|
603
|
+
} while (marker);
|
604
|
+
}
|
544
605
|
}
|
545
606
|
/**
|
546
607
|
* Returns an AsyncIterableIterator of {@link BlobItem} objects
|
547
608
|
*
|
548
609
|
* @param options - Options to list blobs operation.
|
549
610
|
*/
|
550
|
-
listItems() {
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
for (var _d = true, _e = __asyncValues(this.listSegments(marker, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
556
|
-
_c = _f.value;
|
557
|
-
_d = false;
|
558
|
-
const listBlobsFlatSegmentResponse = _c;
|
559
|
-
yield __await(yield* __asyncDelegator(__asyncValues(listBlobsFlatSegmentResponse.segment.blobItems)));
|
560
|
-
}
|
561
|
-
}
|
562
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
563
|
-
finally {
|
564
|
-
try {
|
565
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
566
|
-
}
|
567
|
-
finally { if (e_1) throw e_1.error; }
|
568
|
-
}
|
569
|
-
});
|
611
|
+
async *listItems(options = {}) {
|
612
|
+
let marker;
|
613
|
+
for await (const listBlobsFlatSegmentResponse of this.listSegments(marker, options)) {
|
614
|
+
yield* listBlobsFlatSegmentResponse.segment.blobItems;
|
615
|
+
}
|
570
616
|
}
|
571
617
|
/**
|
572
618
|
* Returns an async iterable iterator to list all the blobs
|
@@ -672,7 +718,10 @@ export class ContainerClient extends StorageClient {
|
|
672
718
|
if (options.prefix === "") {
|
673
719
|
options.prefix = undefined;
|
674
720
|
}
|
675
|
-
const updatedOptions =
|
721
|
+
const updatedOptions = {
|
722
|
+
...options,
|
723
|
+
...(include.length > 0 ? { include: include } : {}),
|
724
|
+
};
|
676
725
|
// AsyncIterableIterator to iterate over blobs
|
677
726
|
const iter = this.listItems(updatedOptions);
|
678
727
|
return {
|
@@ -692,7 +741,10 @@ export class ContainerClient extends StorageClient {
|
|
692
741
|
* Return an AsyncIterableIterator that works a page at a time
|
693
742
|
*/
|
694
743
|
byPage: (settings = {}) => {
|
695
|
-
return this.listSegments(settings.continuationToken,
|
744
|
+
return this.listSegments(settings.continuationToken, {
|
745
|
+
maxPageSize: settings.maxPageSize,
|
746
|
+
...updatedOptions,
|
747
|
+
});
|
696
748
|
},
|
697
749
|
};
|
698
750
|
}
|
@@ -709,17 +761,15 @@ export class ContainerClient extends StorageClient {
|
|
709
761
|
* items. The marker value is opaque to the client.
|
710
762
|
* @param options - Options to list blobs operation.
|
711
763
|
*/
|
712
|
-
listHierarchySegments(
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
}
|
722
|
-
});
|
764
|
+
async *listHierarchySegments(delimiter, marker, options = {}) {
|
765
|
+
let listBlobsHierarchySegmentResponse;
|
766
|
+
if (!!marker || marker === undefined) {
|
767
|
+
do {
|
768
|
+
listBlobsHierarchySegmentResponse = await this.listBlobHierarchySegment(delimiter, marker, options);
|
769
|
+
marker = listBlobsHierarchySegmentResponse.continuationToken;
|
770
|
+
yield await listBlobsHierarchySegmentResponse;
|
771
|
+
} while (marker);
|
772
|
+
}
|
723
773
|
}
|
724
774
|
/**
|
725
775
|
* Returns an AsyncIterableIterator for {@link BlobPrefix} and {@link BlobItem} objects.
|
@@ -727,34 +777,22 @@ export class ContainerClient extends StorageClient {
|
|
727
777
|
* @param delimiter - The character or string used to define the virtual hierarchy
|
728
778
|
* @param options - Options to list blobs operation.
|
729
779
|
*/
|
730
|
-
listItemsByHierarchy(
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
for (
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
if (segment.blobPrefixes) {
|
741
|
-
for (const prefix of segment.blobPrefixes) {
|
742
|
-
yield yield __await(Object.assign({ kind: "prefix" }, prefix));
|
743
|
-
}
|
744
|
-
}
|
745
|
-
for (const blob of segment.blobItems) {
|
746
|
-
yield yield __await(Object.assign({ kind: "blob" }, blob));
|
747
|
-
}
|
780
|
+
async *listItemsByHierarchy(delimiter, options = {}) {
|
781
|
+
let marker;
|
782
|
+
for await (const listBlobsHierarchySegmentResponse of this.listHierarchySegments(delimiter, marker, options)) {
|
783
|
+
const segment = listBlobsHierarchySegmentResponse.segment;
|
784
|
+
if (segment.blobPrefixes) {
|
785
|
+
for (const prefix of segment.blobPrefixes) {
|
786
|
+
yield {
|
787
|
+
kind: "prefix",
|
788
|
+
...prefix,
|
789
|
+
};
|
748
790
|
}
|
749
791
|
}
|
750
|
-
|
751
|
-
|
752
|
-
try {
|
753
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
754
|
-
}
|
755
|
-
finally { if (e_2) throw e_2.error; }
|
792
|
+
for (const blob of segment.blobItems) {
|
793
|
+
yield { kind: "blob", ...blob };
|
756
794
|
}
|
757
|
-
}
|
795
|
+
}
|
758
796
|
}
|
759
797
|
/**
|
760
798
|
* Returns an async iterable iterator to list all the blobs by hierarchy.
|
@@ -889,7 +927,10 @@ export class ContainerClient extends StorageClient {
|
|
889
927
|
if (options.prefix === "") {
|
890
928
|
options.prefix = undefined;
|
891
929
|
}
|
892
|
-
const updatedOptions =
|
930
|
+
const updatedOptions = {
|
931
|
+
...options,
|
932
|
+
...(include.length > 0 ? { include: include } : {}),
|
933
|
+
};
|
893
934
|
// AsyncIterableIterator to iterate over blob prefixes and blobs
|
894
935
|
const iter = this.listItemsByHierarchy(delimiter, updatedOptions);
|
895
936
|
return {
|
@@ -909,7 +950,10 @@ export class ContainerClient extends StorageClient {
|
|
909
950
|
* Return an AsyncIterableIterator that works a page at a time
|
910
951
|
*/
|
911
952
|
byPage: (settings = {}) => {
|
912
|
-
return this.listHierarchySegments(delimiter, settings.continuationToken,
|
953
|
+
return this.listHierarchySegments(delimiter, settings.continuationToken, {
|
954
|
+
maxPageSize: settings.maxPageSize,
|
955
|
+
...updatedOptions,
|
956
|
+
});
|
913
957
|
},
|
914
958
|
};
|
915
959
|
}
|
@@ -939,14 +983,17 @@ export class ContainerClient extends StorageClient {
|
|
939
983
|
maxPageSize: options.maxPageSize,
|
940
984
|
tracingOptions: updatedOptions.tracingOptions,
|
941
985
|
}));
|
942
|
-
const wrappedResponse =
|
943
|
-
|
986
|
+
const wrappedResponse = {
|
987
|
+
...response,
|
988
|
+
_response: response._response, // _response is made non-enumerable
|
989
|
+
blobs: response.blobs.map((blob) => {
|
944
990
|
let tagValue = "";
|
945
|
-
if (
|
991
|
+
if (blob.tags?.blobTagSet.length === 1) {
|
946
992
|
tagValue = blob.tags.blobTagSet[0].value;
|
947
993
|
}
|
948
|
-
return
|
949
|
-
})
|
994
|
+
return { ...blob, tags: toTags(blob.tags), tagValue };
|
995
|
+
}),
|
996
|
+
};
|
950
997
|
return wrappedResponse;
|
951
998
|
});
|
952
999
|
}
|
@@ -966,18 +1013,16 @@ export class ContainerClient extends StorageClient {
|
|
966
1013
|
* items. The marker value is opaque to the client.
|
967
1014
|
* @param options - Options to find blobs by tags.
|
968
1015
|
*/
|
969
|
-
findBlobsByTagsSegments(
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
}
|
980
|
-
});
|
1016
|
+
async *findBlobsByTagsSegments(tagFilterSqlExpression, marker, options = {}) {
|
1017
|
+
let response;
|
1018
|
+
if (!!marker || marker === undefined) {
|
1019
|
+
do {
|
1020
|
+
response = await this.findBlobsByTagsSegment(tagFilterSqlExpression, marker, options);
|
1021
|
+
response.blobs = response.blobs || [];
|
1022
|
+
marker = response.continuationToken;
|
1023
|
+
yield response;
|
1024
|
+
} while (marker);
|
1025
|
+
}
|
981
1026
|
}
|
982
1027
|
/**
|
983
1028
|
* Returns an AsyncIterableIterator for blobs.
|
@@ -988,26 +1033,11 @@ export class ContainerClient extends StorageClient {
|
|
988
1033
|
* however, only a subset of the OData filter syntax is supported in the Blob service.
|
989
1034
|
* @param options - Options to findBlobsByTagsItems.
|
990
1035
|
*/
|
991
|
-
findBlobsByTagsItems(
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
for (var _d = true, _e = __asyncValues(this.findBlobsByTagsSegments(tagFilterSqlExpression, marker, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
997
|
-
_c = _f.value;
|
998
|
-
_d = false;
|
999
|
-
const segment = _c;
|
1000
|
-
yield __await(yield* __asyncDelegator(__asyncValues(segment.blobs)));
|
1001
|
-
}
|
1002
|
-
}
|
1003
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
1004
|
-
finally {
|
1005
|
-
try {
|
1006
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
1007
|
-
}
|
1008
|
-
finally { if (e_3) throw e_3.error; }
|
1009
|
-
}
|
1010
|
-
});
|
1036
|
+
async *findBlobsByTagsItems(tagFilterSqlExpression, options = {}) {
|
1037
|
+
let marker;
|
1038
|
+
for await (const segment of this.findBlobsByTagsSegments(tagFilterSqlExpression, marker, options)) {
|
1039
|
+
yield* segment.blobs;
|
1040
|
+
}
|
1011
1041
|
}
|
1012
1042
|
/**
|
1013
1043
|
* Returns an async iterable iterator to find all blobs with specified tag
|
@@ -1088,7 +1118,9 @@ export class ContainerClient extends StorageClient {
|
|
1088
1118
|
*/
|
1089
1119
|
findBlobsByTags(tagFilterSqlExpression, options = {}) {
|
1090
1120
|
// AsyncIterableIterator to iterate over blobs
|
1091
|
-
const listSegmentOptions =
|
1121
|
+
const listSegmentOptions = {
|
1122
|
+
...options,
|
1123
|
+
};
|
1092
1124
|
const iter = this.findBlobsByTagsItems(tagFilterSqlExpression, listSegmentOptions);
|
1093
1125
|
return {
|
1094
1126
|
/**
|
@@ -1107,7 +1139,10 @@ export class ContainerClient extends StorageClient {
|
|
1107
1139
|
* Return an AsyncIterableIterator that works a page at a time
|
1108
1140
|
*/
|
1109
1141
|
byPage: (settings = {}) => {
|
1110
|
-
return this.findBlobsByTagsSegments(tagFilterSqlExpression, settings.continuationToken,
|
1142
|
+
return this.findBlobsByTagsSegments(tagFilterSqlExpression, settings.continuationToken, {
|
1143
|
+
maxPageSize: settings.maxPageSize,
|
1144
|
+
...listSegmentOptions,
|
1145
|
+
});
|
1111
1146
|
},
|
1112
1147
|
};
|
1113
1148
|
}
|
@@ -1116,7 +1151,7 @@ export class ContainerClient extends StorageClient {
|
|
1116
1151
|
* for the specified account.
|
1117
1152
|
* The Get Account Information operation is available on service versions beginning
|
1118
1153
|
* with version 2018-03-28.
|
1119
|
-
* @see https://learn.microsoft.com/
|
1154
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-account-information
|
1120
1155
|
*
|
1121
1156
|
* @param options - Options to the Service Get Account Info operation.
|
1122
1157
|
* @returns Response data for the Service Get Account Info operation.
|
@@ -1172,7 +1207,7 @@ export class ContainerClient extends StorageClient {
|
|
1172
1207
|
* Generates a Blob Container Service Shared Access Signature (SAS) URI based on the client properties
|
1173
1208
|
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
1174
1209
|
*
|
1175
|
-
* @see https://learn.microsoft.com/
|
1210
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
1176
1211
|
*
|
1177
1212
|
* @param options - Optional parameters.
|
1178
1213
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
@@ -1182,7 +1217,10 @@ export class ContainerClient extends StorageClient {
|
|
1182
1217
|
if (!(this.credential instanceof StorageSharedKeyCredential)) {
|
1183
1218
|
throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");
|
1184
1219
|
}
|
1185
|
-
const sas = generateBlobSASQueryParameters(
|
1220
|
+
const sas = generateBlobSASQueryParameters({
|
1221
|
+
containerName: this._containerName,
|
1222
|
+
...options,
|
1223
|
+
}, this.credential).toString();
|
1186
1224
|
resolve(appendToURLQuery(this.url, sas));
|
1187
1225
|
});
|
1188
1226
|
}
|
@@ -1192,7 +1230,7 @@ export class ContainerClient extends StorageClient {
|
|
1192
1230
|
* Generates string to sign for a Blob Container Service Shared Access Signature (SAS) URI
|
1193
1231
|
* based on the client properties and parameters passed in. The SAS is signed by the shared key credential of the client.
|
1194
1232
|
*
|
1195
|
-
* @see https://learn.microsoft.com/
|
1233
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
1196
1234
|
*
|
1197
1235
|
* @param options - Optional parameters.
|
1198
1236
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
@@ -1202,13 +1240,16 @@ export class ContainerClient extends StorageClient {
|
|
1202
1240
|
if (!(this.credential instanceof StorageSharedKeyCredential)) {
|
1203
1241
|
throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");
|
1204
1242
|
}
|
1205
|
-
return generateBlobSASQueryParametersInternal(
|
1243
|
+
return generateBlobSASQueryParametersInternal({
|
1244
|
+
containerName: this._containerName,
|
1245
|
+
...options,
|
1246
|
+
}, this.credential).stringToSign;
|
1206
1247
|
}
|
1207
1248
|
/**
|
1208
1249
|
* Generates a Blob Container Service Shared Access Signature (SAS) URI based on the client properties
|
1209
1250
|
* and parameters passed in. The SAS is signed by the input user delegation key.
|
1210
1251
|
*
|
1211
|
-
* @see https://learn.microsoft.com/
|
1252
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
1212
1253
|
*
|
1213
1254
|
* @param options - Optional parameters.
|
1214
1255
|
* @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
|
@@ -1216,7 +1257,10 @@ export class ContainerClient extends StorageClient {
|
|
1216
1257
|
*/
|
1217
1258
|
generateUserDelegationSasUrl(options, userDelegationKey) {
|
1218
1259
|
return new Promise((resolve) => {
|
1219
|
-
const sas = generateBlobSASQueryParameters(
|
1260
|
+
const sas = generateBlobSASQueryParameters({
|
1261
|
+
containerName: this._containerName,
|
1262
|
+
...options,
|
1263
|
+
}, userDelegationKey, this.accountName).toString();
|
1220
1264
|
resolve(appendToURLQuery(this.url, sas));
|
1221
1265
|
});
|
1222
1266
|
}
|
@@ -1224,19 +1268,22 @@ export class ContainerClient extends StorageClient {
|
|
1224
1268
|
* Generates string to sign for a Blob Container Service Shared Access Signature (SAS) URI
|
1225
1269
|
* based on the client properties and parameters passed in. The SAS is signed by the input user delegation key.
|
1226
1270
|
*
|
1227
|
-
* @see https://learn.microsoft.com/
|
1271
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
1228
1272
|
*
|
1229
1273
|
* @param options - Optional parameters.
|
1230
1274
|
* @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
|
1231
1275
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
1232
1276
|
*/
|
1233
1277
|
generateUserDelegationSasStringToSign(options, userDelegationKey) {
|
1234
|
-
return generateBlobSASQueryParametersInternal(
|
1278
|
+
return generateBlobSASQueryParametersInternal({
|
1279
|
+
containerName: this._containerName,
|
1280
|
+
...options,
|
1281
|
+
}, userDelegationKey, this.accountName).stringToSign;
|
1235
1282
|
}
|
1236
1283
|
/**
|
1237
1284
|
* Creates a BlobBatchClient object to conduct batch operations.
|
1238
1285
|
*
|
1239
|
-
* @see https://learn.microsoft.com/
|
1286
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/blob-batch
|
1240
1287
|
*
|
1241
1288
|
* @returns A new BlobBatchClient object for this container.
|
1242
1289
|
*/
|