@azure/storage-blob 12.8.0-beta.1 → 12.8.1-alpha.20210930.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -2
- package/dist/index.js +112 -63
- package/dist/index.js.map +1 -1
- package/dist-esm/storage-blob/src/BatchResponseParser.js +3 -3
- package/dist-esm/storage-blob/src/BatchResponseParser.js.map +1 -1
- package/dist-esm/storage-blob/src/BatchUtils.browser.js +1 -1
- package/dist-esm/storage-blob/src/BatchUtils.browser.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobBatch.js +3 -2
- package/dist-esm/storage-blob/src/BlobBatch.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobBatchClient.js +15 -6
- package/dist-esm/storage-blob/src/BlobBatchClient.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobServiceClient.js +11 -4
- package/dist-esm/storage-blob/src/BlobServiceClient.js.map +1 -1
- package/dist-esm/storage-blob/src/Clients.js +23 -11
- package/dist-esm/storage-blob/src/Clients.js.map +1 -1
- package/dist-esm/storage-blob/src/ContainerClient.js +8 -5
- package/dist-esm/storage-blob/src/ContainerClient.js.map +1 -1
- package/dist-esm/storage-blob/src/Pipeline.js +14 -0
- package/dist-esm/storage-blob/src/Pipeline.js.map +1 -1
- package/dist-esm/storage-blob/src/Range.js.map +1 -1
- package/dist-esm/storage-blob/src/StorageClient.js.map +1 -1
- package/dist-esm/storage-blob/src/credentials/Credential.js +1 -5
- package/dist-esm/storage-blob/src/credentials/Credential.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/storageClientContext.js +1 -1
- package/dist-esm/storage-blob/src/generated/src/storageClientContext.js.map +1 -1
- package/dist-esm/storage-blob/src/models.js +1 -1
- package/dist-esm/storage-blob/src/models.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/AnonymousCredentialPolicy.js +2 -0
- package/dist-esm/storage-blob/src/policies/AnonymousCredentialPolicy.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/StorageBrowserPolicy.js +2 -0
- package/dist-esm/storage-blob/src/policies/StorageBrowserPolicy.js.map +1 -1
- package/dist-esm/storage-blob/src/policies/StorageRetryPolicy.js +1 -1
- 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/sas/AccountSASPermissions.js.map +1 -1
- package/dist-esm/storage-blob/src/sas/ContainerSASPermissions.js.map +1 -1
- package/dist-esm/storage-blob/src/sas/SASQueryParameters.js +1 -1
- package/dist-esm/storage-blob/src/sas/SASQueryParameters.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/BlobQuickQueryStream.js +16 -12
- package/dist-esm/storage-blob/src/utils/BlobQuickQueryStream.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/RetriableReadableStream.js +2 -3
- package/dist-esm/storage-blob/src/utils/RetriableReadableStream.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/constants.js +1 -1
- package/dist-esm/storage-blob/src/utils/constants.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/tracing.js +1 -0
- package/dist-esm/storage-blob/src/utils/tracing.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/utils.browser.js +15 -5
- package/dist-esm/storage-blob/src/utils/utils.browser.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/utils.common.js +8 -10
- package/dist-esm/storage-blob/src/utils/utils.common.js.map +1 -1
- package/package.json +13 -14
- package/typings/3.1/storage-blob.d.ts +56 -27
- package/typings/latest/storage-blob.d.ts +72 -27
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="node" />
|
2
2
|
import { AbortSignalLike } from '@azure/abort-controller';
|
3
|
+
import { AzureLogger } from '@azure/logger';
|
3
4
|
import { BaseRequestPolicy } from '@azure/core-http';
|
4
5
|
import * as coreHttp from '@azure/core-http';
|
5
6
|
import { deserializationPolicy } from '@azure/core-http';
|
@@ -134,7 +135,7 @@ export declare interface AccountSASPermissionsLike {
|
|
134
135
|
*/
|
135
136
|
write?: boolean;
|
136
137
|
/**
|
137
|
-
* Permission to
|
138
|
+
* Permission to delete blobs and files granted.
|
138
139
|
*/
|
139
140
|
delete?: boolean;
|
140
141
|
/**
|
@@ -308,7 +309,7 @@ export declare interface AccountSASSignatureValues {
|
|
308
309
|
* HTTP(S) requests that read public resources or for use with Shared Access
|
309
310
|
* Signatures (SAS).
|
310
311
|
*/
|
311
|
-
export declare class AnonymousCredential extends
|
312
|
+
export declare class AnonymousCredential extends Credential_2 {
|
312
313
|
/**
|
313
314
|
* Creates an {@link AnonymousCredentialPolicy} object.
|
314
315
|
*
|
@@ -555,7 +556,7 @@ export declare class AppendBlobClient extends BlobClient {
|
|
555
556
|
* @param pipeline - Call newPipeline() to create a default
|
556
557
|
* pipeline, or provide a customized pipeline.
|
557
558
|
*/
|
558
|
-
constructor(url: string, pipeline:
|
559
|
+
constructor(url: string, pipeline: PipelineLike);
|
559
560
|
/**
|
560
561
|
* Creates a new AppendBlobClient object identical to the source but with the
|
561
562
|
* specified snapshot timestamp.
|
@@ -1014,7 +1015,7 @@ export declare class BlobBatchClient {
|
|
1014
1015
|
* @param pipeline - Call newPipeline() to create a default
|
1015
1016
|
* pipeline, or provide a customized pipeline.
|
1016
1017
|
*/
|
1017
|
-
constructor(url: string, pipeline:
|
1018
|
+
constructor(url: string, pipeline: PipelineLike);
|
1018
1019
|
/**
|
1019
1020
|
* Creates a {@link BlobBatch}.
|
1020
1021
|
* A BlobBatch represents an aggregated set of operations on blobs.
|
@@ -1124,12 +1125,7 @@ export declare type BlobBatchSetBlobsAccessTierResponse = BlobBatchSubmitBatchRe
|
|
1124
1125
|
/**
|
1125
1126
|
* Options to configure the Service - Submit Batch Optional Params.
|
1126
1127
|
*/
|
1127
|
-
export declare interface BlobBatchSubmitBatchOptionalParams extends ServiceSubmitBatchOptionalParamsModel
|
1128
|
-
/**
|
1129
|
-
* An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
|
1130
|
-
* For example, use the @azure/abort-controller to create an `AbortSignal`.
|
1131
|
-
*/
|
1132
|
-
abortSignal?: AbortSignalLike;
|
1128
|
+
export declare interface BlobBatchSubmitBatchOptionalParams extends ServiceSubmitBatchOptionalParamsModel {
|
1133
1129
|
}
|
1134
1130
|
/**
|
1135
1131
|
* Contains response data for blob batch operations.
|
@@ -1291,7 +1287,7 @@ export declare class BlobClient extends StorageClient {
|
|
1291
1287
|
* @param pipeline - Call newPipeline() to create a default
|
1292
1288
|
* pipeline, or provide a customized pipeline.
|
1293
1289
|
*/
|
1294
|
-
constructor(url: string, pipeline:
|
1290
|
+
constructor(url: string, pipeline: PipelineLike);
|
1295
1291
|
/**
|
1296
1292
|
* Creates a new BlobClient object identical to the source but with the specified snapshot timestamp.
|
1297
1293
|
* Provide "" will remove the snapshot and return a Client to the base blob.
|
@@ -3066,7 +3062,7 @@ export declare class BlobServiceClient extends StorageClient {
|
|
3066
3062
|
* @param pipeline - Call newPipeline() to create a default
|
3067
3063
|
* pipeline, or provide a customized pipeline.
|
3068
3064
|
*/
|
3069
|
-
constructor(url: string, pipeline:
|
3065
|
+
constructor(url: string, pipeline: PipelineLike);
|
3070
3066
|
/**
|
3071
3067
|
* Creates a {@link ContainerClient} object
|
3072
3068
|
*
|
@@ -3951,7 +3947,7 @@ export declare class BlockBlobClient extends BlobClient {
|
|
3951
3947
|
* @param pipeline - Call newPipeline() to create a default
|
3952
3948
|
* pipeline, or provide a customized pipeline.
|
3953
3949
|
*/
|
3954
|
-
constructor(url: string, pipeline:
|
3950
|
+
constructor(url: string, pipeline: PipelineLike);
|
3955
3951
|
/**
|
3956
3952
|
* Creates a new BlockBlobClient object identical to the source but with the
|
3957
3953
|
* specified snapshot timestamp.
|
@@ -4487,7 +4483,7 @@ export declare interface BlockBlobStageBlockFromURLOptions extends CommonOptions
|
|
4487
4483
|
* Specifies the bytes of the source Blob/File to upload.
|
4488
4484
|
* If not specified, the entire content is uploaded as a single block.
|
4489
4485
|
*/
|
4490
|
-
range?:
|
4486
|
+
range?: Range_2;
|
4491
4487
|
/**
|
4492
4488
|
* If specified, contains the lease id that must be matched and lease with this id
|
4493
4489
|
* must be active in order for the operation to succeed.
|
@@ -5015,7 +5011,7 @@ export declare class ContainerClient extends StorageClient {
|
|
5015
5011
|
* @param pipeline - Call newPipeline() to create a default
|
5016
5012
|
* pipeline, or provide a customized pipeline.
|
5017
5013
|
*/
|
5018
|
-
constructor(url: string, pipeline:
|
5014
|
+
constructor(url: string, pipeline: PipelineLike);
|
5019
5015
|
/**
|
5020
5016
|
* Creates a new container under the specified account. If the container with
|
5021
5017
|
* the same name already exists, the operation fails.
|
@@ -5832,7 +5828,7 @@ export declare interface ContainerListBlobsOptions extends CommonOptions {
|
|
5832
5828
|
/**
|
5833
5829
|
* Specifies whether deleted blob with versions be returned in the response.
|
5834
5830
|
*/
|
5835
|
-
|
5831
|
+
includeDeletedWithVersions?: boolean;
|
5836
5832
|
/**
|
5837
5833
|
* Specifies whether blob immutability policy be returned in the response.
|
5838
5834
|
*/
|
@@ -6174,7 +6170,7 @@ export declare interface CpkInfo {
|
|
6174
6170
|
* Credential is an abstract class for Azure Storage HTTP requests signing. This
|
6175
6171
|
* class will host an credentialPolicyCreator factory which generates CredentialPolicy.
|
6176
6172
|
*/
|
6177
|
-
|
6173
|
+
declare abstract class Credential_2 implements RequestPolicyFactory {
|
6178
6174
|
/**
|
6179
6175
|
* Creates a RequestPolicy object.
|
6180
6176
|
*
|
@@ -6183,6 +6179,7 @@ export declare abstract class Credential implements RequestPolicyFactory {
|
|
6183
6179
|
*/
|
6184
6180
|
create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy;
|
6185
6181
|
}
|
6182
|
+
export { Credential_2 as Credential };
|
6186
6183
|
/**
|
6187
6184
|
* Credential policy used to sign HTTP(S) requests before sending. This is an
|
6188
6185
|
* abstract class.
|
@@ -6404,12 +6401,18 @@ export declare interface HttpAuthorization {
|
|
6404
6401
|
/**
|
6405
6402
|
* the credentials containing the authentication information of the user agent for the resource being requested.
|
6406
6403
|
*/
|
6407
|
-
|
6404
|
+
value: string;
|
6408
6405
|
}
|
6409
6406
|
export { HttpHeaders };
|
6410
6407
|
export { HttpOperationResponse };
|
6411
6408
|
export { HttpRequestBody };
|
6412
6409
|
export { IHttpClient };
|
6410
|
+
/**
|
6411
|
+
* A helper to decide if a given argument satisfies the Pipeline contract
|
6412
|
+
* @param pipeline - An argument that may be a Pipeline
|
6413
|
+
* @returns true when the argument satisfies the Pipeline contract
|
6414
|
+
*/
|
6415
|
+
export declare function isPipelineLike(pipeline: unknown): pipeline is PipelineLike;
|
6413
6416
|
/**
|
6414
6417
|
* The details for a specific lease.
|
6415
6418
|
*/
|
@@ -6561,7 +6564,7 @@ export declare interface ListContainersSegmentResponse {
|
|
6561
6564
|
/**
|
6562
6565
|
* The `@azure/logger` configuration for this package.
|
6563
6566
|
*/
|
6564
|
-
export declare const logger:
|
6567
|
+
export declare const logger: AzureLogger;
|
6565
6568
|
/** Azure Analytics Logging settings. */
|
6566
6569
|
export declare interface Logging {
|
6567
6570
|
/** The version of Storage Analytics to configure. */
|
@@ -6790,7 +6793,7 @@ export declare class PageBlobClient extends BlobClient {
|
|
6790
6793
|
* @param pipeline - Call newPipeline() to create a default
|
6791
6794
|
* pipeline, or provide a customized pipeline.
|
6792
6795
|
*/
|
6793
|
-
constructor(url: string, pipeline:
|
6796
|
+
constructor(url: string, pipeline: PipelineLike);
|
6794
6797
|
/**
|
6795
6798
|
* Creates a new PageBlobClient object identical to the source but with the
|
6796
6799
|
* specified snapshot timestamp.
|
@@ -7495,12 +7498,12 @@ export declare interface PageList {
|
|
7495
7498
|
/**
|
7496
7499
|
* Valid non-overlapping page ranges.
|
7497
7500
|
*/
|
7498
|
-
pageRange?:
|
7501
|
+
pageRange?: Range_2[];
|
7499
7502
|
/**
|
7500
7503
|
* Present if the prevSnapshot parameter was specified and there were cleared
|
7501
7504
|
* pages between the previous snapshot and the target snapshot.
|
7502
7505
|
*/
|
7503
|
-
clearRange?:
|
7506
|
+
clearRange?: Range_2[];
|
7504
7507
|
}
|
7505
7508
|
/**
|
7506
7509
|
* The multipart/mixed response which contains the response for each subrequest.
|
@@ -7527,7 +7530,7 @@ export declare interface ParsedBatchResponse {
|
|
7527
7530
|
* Refer to {@link newPipeline} and provided policies before implementing your
|
7528
7531
|
* customized Pipeline.
|
7529
7532
|
*/
|
7530
|
-
export declare class Pipeline {
|
7533
|
+
export declare class Pipeline implements PipelineLike {
|
7531
7534
|
/**
|
7532
7535
|
* A list of chained request policy factories.
|
7533
7536
|
*/
|
@@ -7551,6 +7554,31 @@ export declare class Pipeline {
|
|
7551
7554
|
*/
|
7552
7555
|
toServiceClientOptions(): ServiceClientOptions;
|
7553
7556
|
}
|
7557
|
+
/**
|
7558
|
+
* An interface for the {@link Pipeline} class containing HTTP request policies.
|
7559
|
+
* You can create a default Pipeline by calling {@link newPipeline}.
|
7560
|
+
* Or you can create a Pipeline with your own policies by the constructor of Pipeline.
|
7561
|
+
*
|
7562
|
+
* Refer to {@link newPipeline} and provided policies before implementing your
|
7563
|
+
* customized Pipeline.
|
7564
|
+
*/
|
7565
|
+
export declare interface PipelineLike {
|
7566
|
+
/**
|
7567
|
+
* A list of chained request policy factories.
|
7568
|
+
*/
|
7569
|
+
readonly factories: RequestPolicyFactory[];
|
7570
|
+
/**
|
7571
|
+
* Configures pipeline logger and HTTP client.
|
7572
|
+
*/
|
7573
|
+
readonly options: PipelineOptions;
|
7574
|
+
/**
|
7575
|
+
* Transfer Pipeline object to ServiceClientOptions object which is required by
|
7576
|
+
* ServiceClient constructor.
|
7577
|
+
*
|
7578
|
+
* @returns The ServiceClientOptions object from this Pipeline.
|
7579
|
+
*/
|
7580
|
+
toServiceClientOptions(): ServiceClientOptions;
|
7581
|
+
}
|
7554
7582
|
/**
|
7555
7583
|
* Option interface for Pipeline constructor.
|
7556
7584
|
*/
|
@@ -7619,7 +7647,7 @@ export declare type PublicAccessType = "container" | "blob";
|
|
7619
7647
|
* Range for Blob Service Operations.
|
7620
7648
|
* @see https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-the-range-header-for-blob-service-operations
|
7621
7649
|
*/
|
7622
|
-
|
7650
|
+
declare interface Range_2 {
|
7623
7651
|
/**
|
7624
7652
|
* StartByte, larger than or equal 0.
|
7625
7653
|
*/
|
@@ -7630,6 +7658,7 @@ export declare interface Range {
|
|
7630
7658
|
*/
|
7631
7659
|
count?: number;
|
7632
7660
|
}
|
7661
|
+
export { Range_2 as Range };
|
7633
7662
|
/** Defines values for RehydratePriority. */
|
7634
7663
|
export declare type RehydratePriority = "High" | "Standard";
|
7635
7664
|
export { RequestPolicy };
|
@@ -7674,7 +7703,7 @@ export declare enum SASProtocol {
|
|
7674
7703
|
/**
|
7675
7704
|
* Represents the components that make up an Azure Storage SAS' query parameters. This type is not constructed directly
|
7676
7705
|
* by the user; it is only generated by the {@link AccountSASSignatureValues} and {@link BlobSASSignatureValues}
|
7677
|
-
* types. Once generated, it can be encoded into a {@
|
7706
|
+
* types. Once generated, it can be encoded into a {@link String} and appended to a URL directly (though caution should
|
7678
7707
|
* be taken here in case there are existing query parameters, which might affect the appropriate means of appending
|
7679
7708
|
* these query parameters).
|
7680
7709
|
*
|
@@ -8414,7 +8443,7 @@ declare abstract class StorageClient {
|
|
8414
8443
|
* @param url - url to resource
|
8415
8444
|
* @param pipeline - request policy pipeline.
|
8416
8445
|
*/
|
8417
|
-
protected constructor(url: string, pipeline:
|
8446
|
+
protected constructor(url: string, pipeline: PipelineLike);
|
8418
8447
|
}
|
8419
8448
|
declare class StorageClientContext extends coreHttp.ServiceClient {
|
8420
8449
|
url: string;
|
@@ -8593,7 +8622,7 @@ export declare enum StorageRetryPolicyType {
|
|
8593
8622
|
*
|
8594
8623
|
* StorageSharedKeyCredential for account key authorization of Azure Storage service.
|
8595
8624
|
*/
|
8596
|
-
export declare class StorageSharedKeyCredential extends
|
8625
|
+
export declare class StorageSharedKeyCredential extends Credential_2 {
|
8597
8626
|
/**
|
8598
8627
|
* Azure Storage account name; readonly.
|
8599
8628
|
*/
|
@@ -1,5 +1,7 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
|
2
3
|
import { AbortSignalLike } from '@azure/abort-controller';
|
4
|
+
import { AzureLogger } from '@azure/logger';
|
3
5
|
import { BaseRequestPolicy } from '@azure/core-http';
|
4
6
|
import * as coreHttp from '@azure/core-http';
|
5
7
|
import { deserializationPolicy } from '@azure/core-http';
|
@@ -139,7 +141,7 @@ export declare interface AccountSASPermissionsLike {
|
|
139
141
|
*/
|
140
142
|
write?: boolean;
|
141
143
|
/**
|
142
|
-
* Permission to
|
144
|
+
* Permission to delete blobs and files granted.
|
143
145
|
*/
|
144
146
|
delete?: boolean;
|
145
147
|
/**
|
@@ -317,7 +319,7 @@ export declare interface AccountSASSignatureValues {
|
|
317
319
|
* HTTP(S) requests that read public resources or for use with Shared Access
|
318
320
|
* Signatures (SAS).
|
319
321
|
*/
|
320
|
-
export declare class AnonymousCredential extends
|
322
|
+
export declare class AnonymousCredential extends Credential_2 {
|
321
323
|
/**
|
322
324
|
* Creates an {@link AnonymousCredentialPolicy} object.
|
323
325
|
*
|
@@ -572,7 +574,7 @@ export declare class AppendBlobClient extends BlobClient {
|
|
572
574
|
* @param pipeline - Call newPipeline() to create a default
|
573
575
|
* pipeline, or provide a customized pipeline.
|
574
576
|
*/
|
575
|
-
constructor(url: string, pipeline:
|
577
|
+
constructor(url: string, pipeline: PipelineLike);
|
576
578
|
/**
|
577
579
|
* Creates a new AppendBlobClient object identical to the source but with the
|
578
580
|
* specified snapshot timestamp.
|
@@ -829,6 +831,7 @@ export declare interface AppendPositionAccessConditions {
|
|
829
831
|
|
830
832
|
/** Defines values for ArchiveStatus. */
|
831
833
|
export declare type ArchiveStatus = "rehydrate-pending-to-hot" | "rehydrate-pending-to-cool";
|
834
|
+
|
832
835
|
export { BaseRequestPolicy }
|
833
836
|
|
834
837
|
/**
|
@@ -1048,7 +1051,7 @@ export declare class BlobBatchClient {
|
|
1048
1051
|
* @param pipeline - Call newPipeline() to create a default
|
1049
1052
|
* pipeline, or provide a customized pipeline.
|
1050
1053
|
*/
|
1051
|
-
constructor(url: string, pipeline:
|
1054
|
+
constructor(url: string, pipeline: PipelineLike);
|
1052
1055
|
/**
|
1053
1056
|
* Creates a {@link BlobBatch}.
|
1054
1057
|
* A BlobBatch represents an aggregated set of operations on blobs.
|
@@ -1161,12 +1164,7 @@ export declare type BlobBatchSetBlobsAccessTierResponse = BlobBatchSubmitBatchRe
|
|
1161
1164
|
/**
|
1162
1165
|
* Options to configure the Service - Submit Batch Optional Params.
|
1163
1166
|
*/
|
1164
|
-
export declare interface BlobBatchSubmitBatchOptionalParams extends ServiceSubmitBatchOptionalParamsModel
|
1165
|
-
/**
|
1166
|
-
* An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
|
1167
|
-
* For example, use the @azure/abort-controller to create an `AbortSignal`.
|
1168
|
-
*/
|
1169
|
-
abortSignal?: AbortSignalLike;
|
1167
|
+
export declare interface BlobBatchSubmitBatchOptionalParams extends ServiceSubmitBatchOptionalParamsModel {
|
1170
1168
|
}
|
1171
1169
|
|
1172
1170
|
/**
|
@@ -1341,7 +1339,7 @@ export declare class BlobClient extends StorageClient {
|
|
1341
1339
|
* @param pipeline - Call newPipeline() to create a default
|
1342
1340
|
* pipeline, or provide a customized pipeline.
|
1343
1341
|
*/
|
1344
|
-
constructor(url: string, pipeline:
|
1342
|
+
constructor(url: string, pipeline: PipelineLike);
|
1345
1343
|
/**
|
1346
1344
|
* Creates a new BlobClient object identical to the source but with the specified snapshot timestamp.
|
1347
1345
|
* Provide "" will remove the snapshot and return a Client to the base blob.
|
@@ -3181,7 +3179,7 @@ export declare class BlobServiceClient extends StorageClient {
|
|
3181
3179
|
* @param pipeline - Call newPipeline() to create a default
|
3182
3180
|
* pipeline, or provide a customized pipeline.
|
3183
3181
|
*/
|
3184
|
-
constructor(url: string, pipeline:
|
3182
|
+
constructor(url: string, pipeline: PipelineLike);
|
3185
3183
|
/**
|
3186
3184
|
* Creates a {@link ContainerClient} object
|
3187
3185
|
*
|
@@ -4099,7 +4097,7 @@ export declare class BlockBlobClient extends BlobClient {
|
|
4099
4097
|
* @param pipeline - Call newPipeline() to create a default
|
4100
4098
|
* pipeline, or provide a customized pipeline.
|
4101
4099
|
*/
|
4102
|
-
constructor(url: string, pipeline:
|
4100
|
+
constructor(url: string, pipeline: PipelineLike);
|
4103
4101
|
/**
|
4104
4102
|
* Creates a new BlockBlobClient object identical to the source but with the
|
4105
4103
|
* specified snapshot timestamp.
|
@@ -4647,7 +4645,7 @@ export declare interface BlockBlobStageBlockFromURLOptions extends CommonOptions
|
|
4647
4645
|
* Specifies the bytes of the source Blob/File to upload.
|
4648
4646
|
* If not specified, the entire content is uploaded as a single block.
|
4649
4647
|
*/
|
4650
|
-
range?:
|
4648
|
+
range?: Range_2;
|
4651
4649
|
/**
|
4652
4650
|
* If specified, contains the lease id that must be matched and lease with this id
|
4653
4651
|
* must be active in order for the operation to succeed.
|
@@ -5197,7 +5195,7 @@ export declare class ContainerClient extends StorageClient {
|
|
5197
5195
|
* @param pipeline - Call newPipeline() to create a default
|
5198
5196
|
* pipeline, or provide a customized pipeline.
|
5199
5197
|
*/
|
5200
|
-
constructor(url: string, pipeline:
|
5198
|
+
constructor(url: string, pipeline: PipelineLike);
|
5201
5199
|
/**
|
5202
5200
|
* Creates a new container under the specified account. If the container with
|
5203
5201
|
* the same name already exists, the operation fails.
|
@@ -6038,7 +6036,7 @@ export declare interface ContainerListBlobsOptions extends CommonOptions {
|
|
6038
6036
|
/**
|
6039
6037
|
* Specifies whether deleted blob with versions be returned in the response.
|
6040
6038
|
*/
|
6041
|
-
|
6039
|
+
includeDeletedWithVersions?: boolean;
|
6042
6040
|
/**
|
6043
6041
|
* Specifies whether blob immutability policy be returned in the response.
|
6044
6042
|
*/
|
@@ -6401,7 +6399,7 @@ export declare interface CpkInfo {
|
|
6401
6399
|
* Credential is an abstract class for Azure Storage HTTP requests signing. This
|
6402
6400
|
* class will host an credentialPolicyCreator factory which generates CredentialPolicy.
|
6403
6401
|
*/
|
6404
|
-
|
6402
|
+
declare abstract class Credential_2 implements RequestPolicyFactory {
|
6405
6403
|
/**
|
6406
6404
|
* Creates a RequestPolicy object.
|
6407
6405
|
*
|
@@ -6410,6 +6408,7 @@ export declare abstract class Credential implements RequestPolicyFactory {
|
|
6410
6408
|
*/
|
6411
6409
|
create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy;
|
6412
6410
|
}
|
6411
|
+
export { Credential_2 as Credential }
|
6413
6412
|
|
6414
6413
|
/**
|
6415
6414
|
* Credential policy used to sign HTTP(S) requests before sending. This is an
|
@@ -6438,6 +6437,7 @@ export declare type CredentialPolicyCreator = (nextPolicy: RequestPolicy, option
|
|
6438
6437
|
|
6439
6438
|
/** Defines values for DeleteSnapshotsOptionType. */
|
6440
6439
|
export declare type DeleteSnapshotsOptionType = "include" | "only";
|
6440
|
+
|
6441
6441
|
export { deserializationPolicy }
|
6442
6442
|
|
6443
6443
|
/** Defines values for EncryptionAlgorithmType. */
|
@@ -6645,13 +6645,24 @@ export declare interface HttpAuthorization {
|
|
6645
6645
|
/**
|
6646
6646
|
* the credentials containing the authentication information of the user agent for the resource being requested.
|
6647
6647
|
*/
|
6648
|
-
|
6648
|
+
value: string;
|
6649
6649
|
}
|
6650
|
+
|
6650
6651
|
export { HttpHeaders }
|
6652
|
+
|
6651
6653
|
export { HttpOperationResponse }
|
6654
|
+
|
6652
6655
|
export { HttpRequestBody }
|
6656
|
+
|
6653
6657
|
export { IHttpClient }
|
6654
6658
|
|
6659
|
+
/**
|
6660
|
+
* A helper to decide if a given argument satisfies the Pipeline contract
|
6661
|
+
* @param pipeline - An argument that may be a Pipeline
|
6662
|
+
* @returns true when the argument satisfies the Pipeline contract
|
6663
|
+
*/
|
6664
|
+
export declare function isPipelineLike(pipeline: unknown): pipeline is PipelineLike;
|
6665
|
+
|
6655
6666
|
/**
|
6656
6667
|
* The details for a specific lease.
|
6657
6668
|
*/
|
@@ -6817,7 +6828,7 @@ export declare interface ListContainersSegmentResponse {
|
|
6817
6828
|
/**
|
6818
6829
|
* The `@azure/logger` configuration for this package.
|
6819
6830
|
*/
|
6820
|
-
export declare const logger:
|
6831
|
+
export declare const logger: AzureLogger;
|
6821
6832
|
|
6822
6833
|
/** Azure Analytics Logging settings. */
|
6823
6834
|
export declare interface Logging {
|
@@ -7061,7 +7072,7 @@ export declare class PageBlobClient extends BlobClient {
|
|
7061
7072
|
* @param pipeline - Call newPipeline() to create a default
|
7062
7073
|
* pipeline, or provide a customized pipeline.
|
7063
7074
|
*/
|
7064
|
-
constructor(url: string, pipeline:
|
7075
|
+
constructor(url: string, pipeline: PipelineLike);
|
7065
7076
|
/**
|
7066
7077
|
* Creates a new PageBlobClient object identical to the source but with the
|
7067
7078
|
* specified snapshot timestamp.
|
@@ -7794,12 +7805,12 @@ export declare interface PageList {
|
|
7794
7805
|
/**
|
7795
7806
|
* Valid non-overlapping page ranges.
|
7796
7807
|
*/
|
7797
|
-
pageRange?:
|
7808
|
+
pageRange?: Range_2[];
|
7798
7809
|
/**
|
7799
7810
|
* Present if the prevSnapshot parameter was specified and there were cleared
|
7800
7811
|
* pages between the previous snapshot and the target snapshot.
|
7801
7812
|
*/
|
7802
|
-
clearRange?:
|
7813
|
+
clearRange?: Range_2[];
|
7803
7814
|
}
|
7804
7815
|
|
7805
7816
|
/**
|
@@ -7828,7 +7839,7 @@ export declare interface ParsedBatchResponse {
|
|
7828
7839
|
* Refer to {@link newPipeline} and provided policies before implementing your
|
7829
7840
|
* customized Pipeline.
|
7830
7841
|
*/
|
7831
|
-
export declare class Pipeline {
|
7842
|
+
export declare class Pipeline implements PipelineLike {
|
7832
7843
|
/**
|
7833
7844
|
* A list of chained request policy factories.
|
7834
7845
|
*/
|
@@ -7853,6 +7864,32 @@ export declare class Pipeline {
|
|
7853
7864
|
toServiceClientOptions(): ServiceClientOptions;
|
7854
7865
|
}
|
7855
7866
|
|
7867
|
+
/**
|
7868
|
+
* An interface for the {@link Pipeline} class containing HTTP request policies.
|
7869
|
+
* You can create a default Pipeline by calling {@link newPipeline}.
|
7870
|
+
* Or you can create a Pipeline with your own policies by the constructor of Pipeline.
|
7871
|
+
*
|
7872
|
+
* Refer to {@link newPipeline} and provided policies before implementing your
|
7873
|
+
* customized Pipeline.
|
7874
|
+
*/
|
7875
|
+
export declare interface PipelineLike {
|
7876
|
+
/**
|
7877
|
+
* A list of chained request policy factories.
|
7878
|
+
*/
|
7879
|
+
readonly factories: RequestPolicyFactory[];
|
7880
|
+
/**
|
7881
|
+
* Configures pipeline logger and HTTP client.
|
7882
|
+
*/
|
7883
|
+
readonly options: PipelineOptions;
|
7884
|
+
/**
|
7885
|
+
* Transfer Pipeline object to ServiceClientOptions object which is required by
|
7886
|
+
* ServiceClient constructor.
|
7887
|
+
*
|
7888
|
+
* @returns The ServiceClientOptions object from this Pipeline.
|
7889
|
+
*/
|
7890
|
+
toServiceClientOptions(): ServiceClientOptions;
|
7891
|
+
}
|
7892
|
+
|
7856
7893
|
/**
|
7857
7894
|
* Option interface for Pipeline constructor.
|
7858
7895
|
*/
|
@@ -7862,7 +7899,9 @@ export declare interface PipelineOptions {
|
|
7862
7899
|
*/
|
7863
7900
|
httpClient?: IHttpClient;
|
7864
7901
|
}
|
7902
|
+
|
7865
7903
|
export { PollerLike }
|
7904
|
+
|
7866
7905
|
export { PollOperationState }
|
7867
7906
|
|
7868
7907
|
/**
|
@@ -7924,7 +7963,7 @@ export declare type PublicAccessType = "container" | "blob";
|
|
7924
7963
|
* Range for Blob Service Operations.
|
7925
7964
|
* @see https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-the-range-header-for-blob-service-operations
|
7926
7965
|
*/
|
7927
|
-
|
7966
|
+
declare interface Range_2 {
|
7928
7967
|
/**
|
7929
7968
|
* StartByte, larger than or equal 0.
|
7930
7969
|
*/
|
@@ -7935,12 +7974,17 @@ export declare interface Range {
|
|
7935
7974
|
*/
|
7936
7975
|
count?: number;
|
7937
7976
|
}
|
7977
|
+
export { Range_2 as Range }
|
7938
7978
|
|
7939
7979
|
/** Defines values for RehydratePriority. */
|
7940
7980
|
export declare type RehydratePriority = "High" | "Standard";
|
7981
|
+
|
7941
7982
|
export { RequestPolicy }
|
7983
|
+
|
7942
7984
|
export { RequestPolicyFactory }
|
7985
|
+
|
7943
7986
|
export { RequestPolicyOptions }
|
7987
|
+
|
7944
7988
|
export { RestError }
|
7945
7989
|
|
7946
7990
|
/** the retention policy which determines how long the associated data should persist */
|
@@ -7984,7 +8028,7 @@ export declare enum SASProtocol {
|
|
7984
8028
|
/**
|
7985
8029
|
* Represents the components that make up an Azure Storage SAS' query parameters. This type is not constructed directly
|
7986
8030
|
* by the user; it is only generated by the {@link AccountSASSignatureValues} and {@link BlobSASSignatureValues}
|
7987
|
-
* types. Once generated, it can be encoded into a {@
|
8031
|
+
* types. Once generated, it can be encoded into a {@link String} and appended to a URL directly (though caution should
|
7988
8032
|
* be taken here in case there are existing query parameters, which might affect the appropriate means of appending
|
7989
8033
|
* these query parameters).
|
7990
8034
|
*
|
@@ -8766,7 +8810,7 @@ declare abstract class StorageClient {
|
|
8766
8810
|
* @param url - url to resource
|
8767
8811
|
* @param pipeline - request policy pipeline.
|
8768
8812
|
*/
|
8769
|
-
protected constructor(url: string, pipeline:
|
8813
|
+
protected constructor(url: string, pipeline: PipelineLike);
|
8770
8814
|
}
|
8771
8815
|
|
8772
8816
|
declare class StorageClientContext extends coreHttp.ServiceClient {
|
@@ -8954,7 +8998,7 @@ export declare enum StorageRetryPolicyType {
|
|
8954
8998
|
*
|
8955
8999
|
* StorageSharedKeyCredential for account key authorization of Azure Storage service.
|
8956
9000
|
*/
|
8957
|
-
export declare class StorageSharedKeyCredential extends
|
9001
|
+
export declare class StorageSharedKeyCredential extends Credential_2 {
|
8958
9002
|
/**
|
8959
9003
|
* Azure Storage account name; readonly.
|
8960
9004
|
*/
|
@@ -9104,6 +9148,7 @@ export declare interface UserDelegationKeyModel {
|
|
9104
9148
|
/** The key as a base64 string */
|
9105
9149
|
value: string;
|
9106
9150
|
}
|
9151
|
+
|
9107
9152
|
export { WebResource }
|
9108
9153
|
|
9109
9154
|
export { }
|