@azure/storage-blob 12.9.0-beta.2 → 12.9.0-beta.3
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/CHANGELOG.md +16 -5
- package/README.md +11 -10
- package/dist/index.js +841 -461
- package/dist/index.js.map +1 -1
- package/dist-esm/storage-blob/src/BatchResponseParser.js +2 -2
- package/dist-esm/storage-blob/src/BatchResponseParser.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobBatch.js +8 -8
- package/dist-esm/storage-blob/src/BlobBatch.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobBatchClient.js +2 -2
- package/dist-esm/storage-blob/src/BlobBatchClient.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobDownloadResponse.js +1 -1
- package/dist-esm/storage-blob/src/BlobDownloadResponse.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobLeaseClient.js +5 -5
- package/dist-esm/storage-blob/src/BlobLeaseClient.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobQueryResponse.browser.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobQueryResponse.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobServiceClient.js +22 -20
- package/dist-esm/storage-blob/src/BlobServiceClient.js.map +1 -1
- package/dist-esm/storage-blob/src/Clients.js +100 -97
- package/dist-esm/storage-blob/src/Clients.js.map +1 -1
- package/dist-esm/storage-blob/src/ContainerClient.js +241 -38
- package/dist-esm/storage-blob/src/ContainerClient.js.map +1 -1
- package/dist-esm/storage-blob/src/PageBlobRangeResponse.js +3 -3
- package/dist-esm/storage-blob/src/PageBlobRangeResponse.js.map +1 -1
- package/dist-esm/storage-blob/src/Pipeline.js +6 -6
- package/dist-esm/storage-blob/src/Pipeline.js.map +1 -1
- package/dist-esm/storage-blob/src/TelemetryPolicyFactory.js +1 -1
- package/dist-esm/storage-blob/src/TelemetryPolicyFactory.js.map +1 -1
- package/dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.js +1 -3
- package/dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.js.map +1 -1
- package/dist-esm/storage-blob/src/credentials/UserDelegationKeyCredential.js +1 -3
- package/dist-esm/storage-blob/src/credentials/UserDelegationKeyCredential.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/index.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/mappers.js +53 -0
- package/dist-esm/storage-blob/src/generated/src/models/mappers.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/parameters.js +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/container.js +41 -0
- package/dist-esm/storage-blob/src/generated/src/operations/container.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/storageClientContext.js +2 -2
- package/dist-esm/storage-blob/src/generated/src/storageClientContext.js.map +1 -1
- package/dist-esm/storage-blob/src/generatedModels.js.map +1 -1
- package/dist-esm/storage-blob/src/index.browser.js +1 -1
- package/dist-esm/storage-blob/src/index.browser.js.map +1 -1
- package/dist-esm/storage-blob/src/index.js +1 -1
- package/dist-esm/storage-blob/src/index.js.map +1 -1
- package/dist-esm/storage-blob/src/models.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/StorageBrowserPolicy.js +1 -1
- package/dist-esm/storage-blob/src/policies/StorageBrowserPolicy.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/StorageRetryPolicy.js +5 -5
- package/dist-esm/storage-blob/src/policies/StorageRetryPolicy.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js +1 -1
- package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/TelemetryPolicy.js +1 -1
- package/dist-esm/storage-blob/src/policies/TelemetryPolicy.js.map +1 -1
- package/dist-esm/storage-blob/src/pollers/BlobStartCopyFromUrlPoller.js +3 -3
- package/dist-esm/storage-blob/src/pollers/BlobStartCopyFromUrlPoller.js.map +1 -1
- package/dist-esm/storage-blob/src/sas/AccountSASSignatureValues.js +2 -2
- package/dist-esm/storage-blob/src/sas/AccountSASSignatureValues.js.map +1 -1
- package/dist-esm/storage-blob/src/sas/BlobSASSignatureValues.js +11 -6
- package/dist-esm/storage-blob/src/sas/BlobSASSignatureValues.js.map +1 -1
- package/dist-esm/storage-blob/src/sas/ContainerSASPermissions.js +13 -0
- package/dist-esm/storage-blob/src/sas/ContainerSASPermissions.js.map +1 -1
- package/dist-esm/storage-blob/src/sas/SASQueryParameters.js +2 -2
- package/dist-esm/storage-blob/src/sas/SASQueryParameters.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/Batch.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/BlobQuickQueryStream.js +1 -1
- package/dist-esm/storage-blob/src/utils/BlobQuickQueryStream.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/Mutex.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/RetriableReadableStream.js +1 -2
- package/dist-esm/storage-blob/src/utils/RetriableReadableStream.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/constants.js +8 -8
- package/dist-esm/storage-blob/src/utils/constants.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/tracing.js +2 -2
- package/dist-esm/storage-blob/src/utils/tracing.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/utils.common.js +25 -25
- package/dist-esm/storage-blob/src/utils/utils.common.js.map +1 -1
- package/dist-esm/storage-internal-avro/src/AvroParser.js.map +1 -1
- package/dist-esm/storage-internal-avro/src/AvroReader.js +8 -8
- package/dist-esm/storage-internal-avro/src/AvroReader.js.map +1 -1
- package/package.json +40 -49
- package/{typings → types}/3.1/storage-blob.d.ts +205 -5
- package/{typings → types}/latest/storage-blob.d.ts +184 -5
@@ -5564,7 +5564,7 @@ export declare class ContainerClient extends StorageClient {
|
|
5564
5564
|
* if (item.kind === "prefix") {
|
5565
5565
|
* console.log(`\tBlobPrefix: ${item.name}`);
|
5566
5566
|
* } else {
|
5567
|
-
* console.log(`\tBlobItem: name - ${item.name}
|
5567
|
+
* console.log(`\tBlobItem: name - ${item.name}`);
|
5568
5568
|
* }
|
5569
5569
|
* }
|
5570
5570
|
* ```
|
@@ -5579,7 +5579,7 @@ export declare class ContainerClient extends StorageClient {
|
|
5579
5579
|
* if (item.kind === "prefix") {
|
5580
5580
|
* console.log(`\tBlobPrefix: ${item.name}`);
|
5581
5581
|
* } else {
|
5582
|
-
* console.log(`\tBlobItem: name - ${item.name}
|
5582
|
+
* console.log(`\tBlobItem: name - ${item.name}`);
|
5583
5583
|
* }
|
5584
5584
|
* entity = await iter.next();
|
5585
5585
|
* }
|
@@ -5597,7 +5597,7 @@ export declare class ContainerClient extends StorageClient {
|
|
5597
5597
|
* }
|
5598
5598
|
* }
|
5599
5599
|
* for (const blob of response.segment.blobItems) {
|
5600
|
-
* console.log(`\tBlobItem: name - ${blob.name}
|
5600
|
+
* console.log(`\tBlobItem: name - ${blob.name}`);
|
5601
5601
|
* }
|
5602
5602
|
* }
|
5603
5603
|
* ```
|
@@ -5608,7 +5608,9 @@ export declare class ContainerClient extends StorageClient {
|
|
5608
5608
|
* console.log("Listing blobs by hierarchy by page, specifying a prefix and a max page size");
|
5609
5609
|
*
|
5610
5610
|
* let i = 1;
|
5611
|
-
* for await (const response of containerClient
|
5611
|
+
* for await (const response of containerClient
|
5612
|
+
* .listBlobsByHierarchy("/", { prefix: "prefix2/sub1/" })
|
5613
|
+
* .byPage({ maxPageSize: 2 })) {
|
5612
5614
|
* console.log(`Page ${i++}`);
|
5613
5615
|
* const segment = response.segment;
|
5614
5616
|
*
|
@@ -5619,7 +5621,7 @@ export declare class ContainerClient extends StorageClient {
|
|
5619
5621
|
* }
|
5620
5622
|
*
|
5621
5623
|
* for (const blob of response.segment.blobItems) {
|
5622
|
-
* console.log(`\tBlobItem: name - ${blob.name}
|
5624
|
+
* console.log(`\tBlobItem: name - ${blob.name}`);
|
5623
5625
|
* }
|
5624
5626
|
* }
|
5625
5627
|
* ```
|
@@ -5632,6 +5634,129 @@ export declare class ContainerClient extends StorageClient {
|
|
5632
5634
|
} & BlobPrefix) | ({
|
5633
5635
|
kind: "blob";
|
5634
5636
|
} & BlobItem), ContainerListBlobHierarchySegmentResponse>;
|
5637
|
+
/**
|
5638
|
+
* The Filter Blobs operation enables callers to list blobs in the container whose tags
|
5639
|
+
* match a given search expression.
|
5640
|
+
*
|
5641
|
+
* @param tagFilterSqlExpression - The where parameter enables the caller to query blobs whose tags match a given expression.
|
5642
|
+
* The given expression must evaluate to true for a blob to be returned in the results.
|
5643
|
+
* The[OData - ABNF] filter syntax rule defines the formal grammar for the value of the where query parameter;
|
5644
|
+
* however, only a subset of the OData filter syntax is supported in the Blob service.
|
5645
|
+
* @param marker - A string value that identifies the portion of
|
5646
|
+
* the list of blobs to be returned with the next listing operation. The
|
5647
|
+
* operation returns the continuationToken value within the response body if the
|
5648
|
+
* listing operation did not return all blobs remaining to be listed
|
5649
|
+
* with the current page. The continuationToken value can be used as the value for
|
5650
|
+
* the marker parameter in a subsequent call to request the next page of list
|
5651
|
+
* items. The marker value is opaque to the client.
|
5652
|
+
* @param options - Options to find blobs by tags.
|
5653
|
+
*/
|
5654
|
+
private findBlobsByTagsSegment;
|
5655
|
+
/**
|
5656
|
+
* Returns an AsyncIterableIterator for ContainerFindBlobsByTagsSegmentResponse.
|
5657
|
+
*
|
5658
|
+
* @param tagFilterSqlExpression - The where parameter enables the caller to query blobs whose tags match a given expression.
|
5659
|
+
* The given expression must evaluate to true for a blob to be returned in the results.
|
5660
|
+
* The[OData - ABNF] filter syntax rule defines the formal grammar for the value of the where query parameter;
|
5661
|
+
* however, only a subset of the OData filter syntax is supported in the Blob service.
|
5662
|
+
* @param marker - A string value that identifies the portion of
|
5663
|
+
* the list of blobs to be returned with the next listing operation. The
|
5664
|
+
* operation returns the continuationToken value within the response body if the
|
5665
|
+
* listing operation did not return all blobs remaining to be listed
|
5666
|
+
* with the current page. The continuationToken value can be used as the value for
|
5667
|
+
* the marker parameter in a subsequent call to request the next page of list
|
5668
|
+
* items. The marker value is opaque to the client.
|
5669
|
+
* @param options - Options to find blobs by tags.
|
5670
|
+
*/
|
5671
|
+
private findBlobsByTagsSegments;
|
5672
|
+
/**
|
5673
|
+
* Returns an AsyncIterableIterator for blobs.
|
5674
|
+
*
|
5675
|
+
* @param tagFilterSqlExpression - The where parameter enables the caller to query blobs whose tags match a given expression.
|
5676
|
+
* The given expression must evaluate to true for a blob to be returned in the results.
|
5677
|
+
* The[OData - ABNF] filter syntax rule defines the formal grammar for the value of the where query parameter;
|
5678
|
+
* however, only a subset of the OData filter syntax is supported in the Blob service.
|
5679
|
+
* @param options - Options to findBlobsByTagsItems.
|
5680
|
+
*/
|
5681
|
+
private findBlobsByTagsItems;
|
5682
|
+
/**
|
5683
|
+
* Returns an async iterable iterator to find all blobs with specified tag
|
5684
|
+
* under the specified container.
|
5685
|
+
*
|
5686
|
+
* .byPage() returns an async iterable iterator to list the blobs in pages.
|
5687
|
+
*
|
5688
|
+
* Example using `for await` syntax:
|
5689
|
+
*
|
5690
|
+
* ```js
|
5691
|
+
* let i = 1;
|
5692
|
+
* for await (const blob of containerClient.findBlobsByTags("tagkey='tagvalue'")) {
|
5693
|
+
* console.log(`Blob ${i++}: ${blob.name}`);
|
5694
|
+
* }
|
5695
|
+
* ```
|
5696
|
+
*
|
5697
|
+
* Example using `iter.next()`:
|
5698
|
+
*
|
5699
|
+
* ```js
|
5700
|
+
* let i = 1;
|
5701
|
+
* const iter = containerClient.findBlobsByTags("tagkey='tagvalue'");
|
5702
|
+
* let blobItem = await iter.next();
|
5703
|
+
* while (!blobItem.done) {
|
5704
|
+
* console.log(`Blob ${i++}: ${blobItem.value.name}`);
|
5705
|
+
* blobItem = await iter.next();
|
5706
|
+
* }
|
5707
|
+
* ```
|
5708
|
+
*
|
5709
|
+
* Example using `byPage()`:
|
5710
|
+
*
|
5711
|
+
* ```js
|
5712
|
+
* // passing optional maxPageSize in the page settings
|
5713
|
+
* let i = 1;
|
5714
|
+
* for await (const response of containerClient.findBlobsByTags("tagkey='tagvalue'").byPage({ maxPageSize: 20 })) {
|
5715
|
+
* if (response.blobs) {
|
5716
|
+
* for (const blob of response.blobs) {
|
5717
|
+
* console.log(`Blob ${i++}: ${blob.name}`);
|
5718
|
+
* }
|
5719
|
+
* }
|
5720
|
+
* }
|
5721
|
+
* ```
|
5722
|
+
*
|
5723
|
+
* Example using paging with a marker:
|
5724
|
+
*
|
5725
|
+
* ```js
|
5726
|
+
* let i = 1;
|
5727
|
+
* let iterator = containerClient.findBlobsByTags("tagkey='tagvalue'").byPage({ maxPageSize: 2 });
|
5728
|
+
* let response = (await iterator.next()).value;
|
5729
|
+
*
|
5730
|
+
* // Prints 2 blob names
|
5731
|
+
* if (response.blobs) {
|
5732
|
+
* for (const blob of response.blobs) {
|
5733
|
+
* console.log(`Blob ${i++}: ${blob.name}`);
|
5734
|
+
* }
|
5735
|
+
* }
|
5736
|
+
*
|
5737
|
+
* // Gets next marker
|
5738
|
+
* let marker = response.continuationToken;
|
5739
|
+
* // Passing next marker as continuationToken
|
5740
|
+
* iterator = containerClient
|
5741
|
+
* .findBlobsByTags("tagkey='tagvalue'")
|
5742
|
+
* .byPage({ continuationToken: marker, maxPageSize: 10 });
|
5743
|
+
* response = (await iterator.next()).value;
|
5744
|
+
*
|
5745
|
+
* // Prints blob names
|
5746
|
+
* if (response.blobs) {
|
5747
|
+
* for (const blob of response.blobs) {
|
5748
|
+
* console.log(`Blob ${i++}: ${blob.name}`);
|
5749
|
+
* }
|
5750
|
+
* }
|
5751
|
+
* ```
|
5752
|
+
*
|
5753
|
+
* @param tagFilterSqlExpression - The where parameter enables the caller to query blobs whose tags match a given expression.
|
5754
|
+
* The given expression must evaluate to true for a blob to be returned in the results.
|
5755
|
+
* The[OData - ABNF] filter syntax rule defines the formal grammar for the value of the where query parameter;
|
5756
|
+
* however, only a subset of the OData filter syntax is supported in the Blob service.
|
5757
|
+
* @param options - Options to find blobs by tags.
|
5758
|
+
*/
|
5759
|
+
findBlobsByTags(tagFilterSqlExpression: string, options?: ContainerFindBlobByTagsOptions): PagedAsyncIterableIterator<FilterBlobItem, ContainerFindBlobsByTagsSegmentResponse>;
|
5635
5760
|
private getContainerNameFromUrl;
|
5636
5761
|
/**
|
5637
5762
|
* Only available for ContainerClient constructed with a shared key credential.
|
@@ -5795,6 +5920,52 @@ export declare interface ContainerExistsOptions extends CommonOptions {
|
|
5795
5920
|
abortSignal?: AbortSignalLike;
|
5796
5921
|
}
|
5797
5922
|
|
5923
|
+
/** Defines headers for Container_filterBlobs operation. */
|
5924
|
+
export declare interface ContainerFilterBlobsHeaders {
|
5925
|
+
/** If a client request id header is sent in the request, this header will be present in the response with the same value. */
|
5926
|
+
clientRequestId?: string;
|
5927
|
+
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
|
5928
|
+
requestId?: string;
|
5929
|
+
/** Indicates the version of the Blob service used to execute the request. This header is returned for requests made against version 2009-09-19 and above. */
|
5930
|
+
version?: string;
|
5931
|
+
/** UTC date/time value generated by the service that indicates the time at which the response was initiated */
|
5932
|
+
date?: Date;
|
5933
|
+
}
|
5934
|
+
|
5935
|
+
/**
|
5936
|
+
* Options to configure the {@link BlobServiceClient.findBlobsByTags} operation.
|
5937
|
+
*/
|
5938
|
+
export declare interface ContainerFindBlobByTagsOptions extends CommonOptions {
|
5939
|
+
/**
|
5940
|
+
* An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
|
5941
|
+
* For example, use the @azure/abort-controller to create an `AbortSignal`.
|
5942
|
+
*/
|
5943
|
+
abortSignal?: AbortSignalLike;
|
5944
|
+
}
|
5945
|
+
|
5946
|
+
/**
|
5947
|
+
* The response of {@link BlobServiceClient.findBlobsByTags} operation.
|
5948
|
+
*/
|
5949
|
+
export declare type ContainerFindBlobsByTagsSegmentResponse = FilterBlobSegment & ContainerFilterBlobsHeaders & {
|
5950
|
+
/**
|
5951
|
+
* The underlying HTTP response.
|
5952
|
+
*/
|
5953
|
+
_response: HttpResponse & {
|
5954
|
+
/**
|
5955
|
+
* The parsed HTTP response headers.
|
5956
|
+
*/
|
5957
|
+
parsedHeaders: ContainerFilterBlobsHeaders;
|
5958
|
+
/**
|
5959
|
+
* The response body as text (string format)
|
5960
|
+
*/
|
5961
|
+
bodyAsText: string;
|
5962
|
+
/**
|
5963
|
+
* The response body as parsed JSON or XML
|
5964
|
+
*/
|
5965
|
+
parsedBody: FilterBlobSegmentModel;
|
5966
|
+
};
|
5967
|
+
};
|
5968
|
+
|
5798
5969
|
/**
|
5799
5970
|
* Options to configure {@link ContainerClient.generateSasUrl} operation.
|
5800
5971
|
*/
|
@@ -6228,6 +6399,10 @@ export declare class ContainerSASPermissions {
|
|
6228
6399
|
* Specifies that Permanent Delete is permitted.
|
6229
6400
|
*/
|
6230
6401
|
permanentDelete: boolean;
|
6402
|
+
/**
|
6403
|
+
* Specifies that Filter Blobs by Tags is permitted.
|
6404
|
+
*/
|
6405
|
+
filterByTags: boolean;
|
6231
6406
|
/**
|
6232
6407
|
* Converts the given permissions to a string. Using this method will guarantee the permissions are in an
|
6233
6408
|
* order accepted by the service.
|
@@ -6292,6 +6467,10 @@ export declare interface ContainerSASPermissionsLike {
|
|
6292
6467
|
* Specifies that Permanent Delete is permitted.
|
6293
6468
|
*/
|
6294
6469
|
permanentDelete?: boolean;
|
6470
|
+
/**
|
6471
|
+
* Specifies that Filter Blobs by Tags is permitted.
|
6472
|
+
*/
|
6473
|
+
filterByTags?: boolean;
|
6295
6474
|
}
|
6296
6475
|
|
6297
6476
|
/** Defines headers for Container_setAccessPolicy operation. */
|