[Storage] add re-exports for conveniences (#26567)
We used to re-export types, or have copies of same types from each storage package so customers have the conveniences of not importing them from another package. This PR adds back some missing types that were exported.
This commit is contained in:
Родитель
0ff1be67e6
Коммит
f230674c8e
|
@ -10,6 +10,7 @@ import { AbortSignalLike } from '@azure/abort-controller';
|
|||
import { AnonymousCredential } from '@azure/storage-blob';
|
||||
import { AnonymousCredentialPolicy } from '@azure/storage-blob';
|
||||
import { AzureLogger } from '@azure/logger';
|
||||
import { BaseRequestPolicy } from '@azure/storage-blob';
|
||||
import { BlobLeaseClient } from '@azure/storage-blob';
|
||||
import { BlobQueryArrowConfiguration } from '@azure/storage-blob';
|
||||
import { CommonOptions } from '@azure/storage-blob';
|
||||
|
@ -22,6 +23,10 @@ import { Credential as Credential_2 } from '@azure/storage-blob';
|
|||
import { CredentialPolicy } from '@azure/storage-blob';
|
||||
import { ServiceGetPropertiesResponse as DataLakeServiceGetPropertiesResponse } from '@azure/storage-blob';
|
||||
import { BlobServiceProperties as DataLakeServiceProperties } from '@azure/storage-blob';
|
||||
import { HttpHeaders } from '@azure/storage-blob';
|
||||
import { HttpOperationResponse } from '@azure/storage-blob';
|
||||
import { HttpRequestBody } from '@azure/storage-blob';
|
||||
import { IHttpClient } from '@azure/storage-blob';
|
||||
import { Lease } from '@azure/storage-blob';
|
||||
import { LeaseAccessConditions } from '@azure/storage-blob';
|
||||
import { LeaseOperationOptions } from '@azure/storage-blob';
|
||||
|
@ -32,6 +37,9 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|||
import { Pipeline } from '@azure/storage-blob';
|
||||
import { Readable } from 'stream';
|
||||
import { RequestBodyType } from '@azure/core-rest-pipeline';
|
||||
import { RequestPolicy } from '@azure/storage-blob';
|
||||
import { RequestPolicyFactory } from '@azure/storage-blob';
|
||||
import { RequestPolicyOptions } from '@azure/storage-blob';
|
||||
import { RestError } from '@azure/core-rest-pipeline';
|
||||
import { ServiceGetPropertiesOptions } from '@azure/storage-blob';
|
||||
import { ServiceListContainersSegmentResponse } from '@azure/storage-blob';
|
||||
|
@ -40,7 +48,9 @@ import { ServiceSetPropertiesOptions } from '@azure/storage-blob';
|
|||
import { ServiceSetPropertiesResponse } from '@azure/storage-blob';
|
||||
import { StorageBrowserPolicy } from '@azure/storage-blob';
|
||||
import { StorageBrowserPolicyFactory } from '@azure/storage-blob';
|
||||
import { StorageOAuthScopes } from '@azure/storage-blob';
|
||||
import { StoragePipelineOptions } from '@azure/storage-blob';
|
||||
import { StorageRetryOptions } from '@azure/storage-blob';
|
||||
import { StorageRetryPolicy } from '@azure/storage-blob';
|
||||
import { StorageRetryPolicyFactory } from '@azure/storage-blob';
|
||||
import { StorageSharedKeyCredential } from '@azure/storage-blob';
|
||||
|
@ -48,6 +58,7 @@ import { StorageSharedKeyCredentialPolicy } from '@azure/storage-blob';
|
|||
import { TokenCredential } from '@azure/core-auth';
|
||||
import { TransferProgressEvent } from '@azure/core-rest-pipeline';
|
||||
import { UserDelegationKeyModel } from '@azure/storage-blob';
|
||||
import { WebResource } from '@azure/storage-blob';
|
||||
import { WithResponse } from '@azure/storage-blob';
|
||||
|
||||
// @public
|
||||
|
@ -135,6 +146,8 @@ export { AnonymousCredential }
|
|||
|
||||
export { AnonymousCredentialPolicy }
|
||||
|
||||
export { BaseRequestPolicy }
|
||||
|
||||
// @public (undocumented)
|
||||
export interface BlobHierarchyListSegment {
|
||||
// (undocumented)
|
||||
|
@ -1057,6 +1070,14 @@ export function generateDataLakeSASQueryParameters(dataLakeSASSignatureValues: D
|
|||
// @public
|
||||
export function generateDataLakeSASQueryParameters(dataLakeSASSignatureValues: DataLakeSASSignatureValues, userDelegationKey: UserDelegationKey, accountName: string): SASQueryParameters;
|
||||
|
||||
export { HttpHeaders }
|
||||
|
||||
export { HttpOperationResponse }
|
||||
|
||||
export { HttpRequestBody }
|
||||
|
||||
export { IHttpClient }
|
||||
|
||||
export { Lease }
|
||||
|
||||
export { LeaseAccessConditions }
|
||||
|
@ -1783,6 +1804,12 @@ export interface RemovePathAccessControlItem {
|
|||
entityId?: string;
|
||||
}
|
||||
|
||||
export { RequestPolicy }
|
||||
|
||||
export { RequestPolicyFactory }
|
||||
|
||||
export { RequestPolicyOptions }
|
||||
|
||||
export { RestError }
|
||||
|
||||
// @public (undocumented)
|
||||
|
@ -1937,8 +1964,12 @@ export { StorageBrowserPolicy }
|
|||
|
||||
export { StorageBrowserPolicyFactory }
|
||||
|
||||
export { StorageOAuthScopes }
|
||||
|
||||
export { StoragePipelineOptions }
|
||||
|
||||
export { StorageRetryOptions }
|
||||
|
||||
export { StorageRetryPolicy }
|
||||
|
||||
export { StorageRetryPolicyFactory }
|
||||
|
@ -1973,6 +2004,8 @@ export interface UserDelegationKey {
|
|||
|
||||
export { UserDelegationKeyModel }
|
||||
|
||||
export { WebResource }
|
||||
|
||||
// (No @packageDocumentation comment for this package)
|
||||
|
||||
```
|
||||
|
|
|
@ -22,6 +22,16 @@ export {
|
|||
newPipeline,
|
||||
CommonOptions,
|
||||
StoragePipelineOptions,
|
||||
BaseRequestPolicy,
|
||||
RequestPolicyFactory,
|
||||
RequestPolicy,
|
||||
RequestPolicyOptions,
|
||||
WebResource,
|
||||
HttpOperationResponse,
|
||||
HttpHeaders,
|
||||
HttpRequestBody,
|
||||
IHttpClient,
|
||||
StorageOAuthScopes,
|
||||
AnonymousCredential,
|
||||
Credential,
|
||||
StorageSharedKeyCredential,
|
||||
|
@ -29,6 +39,7 @@ export {
|
|||
CredentialPolicy,
|
||||
StorageBrowserPolicy,
|
||||
StorageBrowserPolicyFactory,
|
||||
StorageRetryOptions,
|
||||
StorageRetryPolicy,
|
||||
StorageRetryPolicyFactory,
|
||||
StorageSharedKeyCredentialPolicy,
|
||||
|
|
|
@ -8,26 +8,26 @@
|
|||
|
||||
import { AbortSignalLike } from '@azure/abort-controller';
|
||||
import { AzureLogger } from '@azure/logger';
|
||||
import { CompatResponse } from '@azure/core-http-compat';
|
||||
import * as coreClient from '@azure/core-client';
|
||||
import * as coreHttpCompat from '@azure/core-http-compat';
|
||||
import * as coreRestPipeline from '@azure/core-rest-pipeline';
|
||||
import { HttpHeadersLike } from '@azure/core-http-compat';
|
||||
import { HttpHeadersLike as HttpHeaders } from '@azure/core-http-compat';
|
||||
import { CompatResponse as HttpOperationResponse } from '@azure/core-http-compat';
|
||||
import { HttpPipelineLogLevel } from '@azure/core-http-compat';
|
||||
import { RequestBodyType as HttpRequestBody } from '@azure/core-rest-pipeline';
|
||||
import { KeepAliveOptions } from '@azure/core-http-compat';
|
||||
import { OperationTracingOptions } from '@azure/core-tracing';
|
||||
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
||||
import { ProxySettings } from '@azure/core-rest-pipeline';
|
||||
import { Readable } from 'stream';
|
||||
import { RequestBodyType } from '@azure/core-rest-pipeline';
|
||||
import { RequestPolicy } from '@azure/core-http-compat';
|
||||
import { RequestPolicyFactory } from '@azure/core-http-compat';
|
||||
import { RequestPolicyOptionsLike } from '@azure/core-http-compat';
|
||||
import { RequestPolicyOptionsLike as RequestPolicyOptions } from '@azure/core-http-compat';
|
||||
import { RestError } from '@azure/core-rest-pipeline';
|
||||
import { TokenCredential } from '@azure/core-auth';
|
||||
import { TransferProgressEvent } from '@azure/core-rest-pipeline';
|
||||
import { UserAgentPolicyOptions } from '@azure/core-rest-pipeline';
|
||||
import { WebResourceLike } from '@azure/core-http-compat';
|
||||
import { WebResourceLike as WebResource } from '@azure/core-http-compat';
|
||||
|
||||
// @public
|
||||
export interface AccessPolicy {
|
||||
|
@ -83,23 +83,23 @@ export interface AccountSASSignatureValues {
|
|||
|
||||
// @public
|
||||
export class AnonymousCredential extends Credential_2 {
|
||||
create(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike): AnonymousCredentialPolicy;
|
||||
create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): AnonymousCredentialPolicy;
|
||||
}
|
||||
|
||||
// @public
|
||||
export class AnonymousCredentialPolicy extends CredentialPolicy {
|
||||
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike);
|
||||
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions);
|
||||
}
|
||||
|
||||
// @public
|
||||
export abstract class BaseRequestPolicy implements RequestPolicy {
|
||||
protected constructor(
|
||||
_nextPolicy: RequestPolicy,
|
||||
_options: RequestPolicyOptionsLike);
|
||||
_options: RequestPolicyOptions);
|
||||
log(logLevel: HttpPipelineLogLevel, message: string): void;
|
||||
readonly _nextPolicy: RequestPolicy;
|
||||
readonly _options: RequestPolicyOptionsLike;
|
||||
abstract sendRequest(webResource: WebResourceLike): Promise<CompatResponse>;
|
||||
readonly _options: RequestPolicyOptions;
|
||||
abstract sendRequest(webResource: WebResource): Promise<HttpOperationResponse>;
|
||||
shouldLog(logLevel: HttpPipelineLogLevel): boolean;
|
||||
}
|
||||
|
||||
|
@ -164,18 +164,18 @@ export interface CorsRule {
|
|||
|
||||
// @public
|
||||
abstract class Credential_2 implements RequestPolicyFactory {
|
||||
create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptionsLike): RequestPolicy;
|
||||
create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy;
|
||||
}
|
||||
export { Credential_2 as Credential }
|
||||
|
||||
// @public
|
||||
export abstract class CredentialPolicy extends BaseRequestPolicy {
|
||||
sendRequest(request: WebResourceLike): Promise<CompatResponse>;
|
||||
protected signRequest(request: WebResourceLike): WebResourceLike;
|
||||
sendRequest(request: WebResource): Promise<HttpOperationResponse>;
|
||||
protected signRequest(request: WebResource): WebResource;
|
||||
}
|
||||
|
||||
// @public
|
||||
export type CredentialPolicyCreator = (nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike) => CredentialPolicy;
|
||||
export type CredentialPolicyCreator = (nextPolicy: RequestPolicy, options: RequestPolicyOptions) => CredentialPolicy;
|
||||
|
||||
// @public
|
||||
export type DeleteSnapshotsOptionType = "include" | "include-leased";
|
||||
|
@ -1079,10 +1079,16 @@ export interface HttpAuthorization {
|
|||
value: string;
|
||||
}
|
||||
|
||||
export { HttpHeaders }
|
||||
|
||||
export { HttpOperationResponse }
|
||||
|
||||
export { HttpRequestBody }
|
||||
|
||||
// @public
|
||||
export interface HttpResponse {
|
||||
headers: HttpHeadersLike;
|
||||
request: WebResourceLike;
|
||||
headers: HttpHeaders;
|
||||
request: WebResource;
|
||||
status: number;
|
||||
}
|
||||
|
||||
|
@ -1252,6 +1258,13 @@ export type RawFileDownloadResponse = FileDownloadHeaders & {
|
|||
readableStreamBody?: NodeJS.ReadableStream;
|
||||
};
|
||||
|
||||
export { RequestPolicy as IHttpClient }
|
||||
export { RequestPolicy }
|
||||
|
||||
export { RequestPolicyFactory }
|
||||
|
||||
export { RequestPolicyOptions }
|
||||
|
||||
// @public
|
||||
export interface ResponseLike {
|
||||
_response: HttpResponse;
|
||||
|
@ -1605,7 +1618,7 @@ export class ShareFileClient extends StorageClient {
|
|||
startCopyFromURL(copySource: string, options?: FileStartCopyOptions): Promise<FileStartCopyResponse>;
|
||||
uploadData(data: Buffer | Blob | ArrayBuffer | ArrayBufferView, options?: FileParallelUploadOptions): Promise<void>;
|
||||
uploadFile(filePath: string, options?: FileParallelUploadOptions): Promise<void>;
|
||||
uploadRange(body: RequestBodyType, offset: number, contentLength: number, options?: FileUploadRangeOptions): Promise<FileUploadRangeResponse>;
|
||||
uploadRange(body: HttpRequestBody, offset: number, contentLength: number, options?: FileUploadRangeOptions): Promise<FileUploadRangeResponse>;
|
||||
uploadRangeFromURL(sourceURL: string, sourceOffset: number, destOffset: number, count: number, options?: FileUploadRangeFromURLOptions): Promise<FileUploadRangeFromURLResponse>;
|
||||
uploadResetableStream(streamFactory: (offset: number, count?: number) => NodeJS.ReadableStream, size: number, options?: FileParallelUploadOptions): Promise<void>;
|
||||
uploadSeekableBlob(blobFactory: (offset: number, size: number) => Blob, size: number, options?: FileParallelUploadOptions): Promise<void>;
|
||||
|
@ -1975,15 +1988,18 @@ export interface SourceModifiedAccessConditions {
|
|||
|
||||
// @public
|
||||
export class StorageBrowserPolicy extends BaseRequestPolicy {
|
||||
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike);
|
||||
sendRequest(request: WebResourceLike): Promise<CompatResponse>;
|
||||
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions);
|
||||
sendRequest(request: WebResource): Promise<HttpOperationResponse>;
|
||||
}
|
||||
|
||||
// @public
|
||||
export class StorageBrowserPolicyFactory implements RequestPolicyFactory {
|
||||
create(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike): StorageBrowserPolicy;
|
||||
create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageBrowserPolicy;
|
||||
}
|
||||
|
||||
// @public
|
||||
export const StorageOAuthScopes: string | string[];
|
||||
|
||||
// @public
|
||||
export interface StoragePipelineOptions {
|
||||
audience?: string | string[];
|
||||
|
@ -2006,16 +2022,16 @@ export interface StorageRetryOptions {
|
|||
|
||||
// @public
|
||||
export class StorageRetryPolicy extends BaseRequestPolicy {
|
||||
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike, retryOptions?: StorageRetryOptions);
|
||||
protected attemptSendRequest(request: WebResourceLike, secondaryHas404: boolean, attempt: number): Promise<CompatResponse>;
|
||||
sendRequest(request: WebResourceLike): Promise<CompatResponse>;
|
||||
protected shouldRetry(isPrimaryRetry: boolean, attempt: number, response?: CompatResponse, err?: RestError): boolean;
|
||||
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions, retryOptions?: StorageRetryOptions);
|
||||
protected attemptSendRequest(request: WebResource, secondaryHas404: boolean, attempt: number): Promise<HttpOperationResponse>;
|
||||
sendRequest(request: WebResource): Promise<HttpOperationResponse>;
|
||||
protected shouldRetry(isPrimaryRetry: boolean, attempt: number, response?: HttpOperationResponse, err?: RestError): boolean;
|
||||
}
|
||||
|
||||
// @public
|
||||
export class StorageRetryPolicyFactory implements RequestPolicyFactory {
|
||||
constructor(retryOptions?: StorageRetryOptions);
|
||||
create(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike): StorageRetryPolicy;
|
||||
create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageRetryPolicy;
|
||||
}
|
||||
|
||||
// @public
|
||||
|
@ -2029,13 +2045,13 @@ export class StorageSharedKeyCredential extends Credential_2 {
|
|||
constructor(accountName: string, accountKey: string);
|
||||
readonly accountName: string;
|
||||
computeHMACSHA256(stringToSign: string): string;
|
||||
create(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike): StorageSharedKeyCredentialPolicy;
|
||||
create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageSharedKeyCredentialPolicy;
|
||||
}
|
||||
|
||||
// @public
|
||||
export class StorageSharedKeyCredentialPolicy extends CredentialPolicy {
|
||||
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike, factory: StorageSharedKeyCredential);
|
||||
protected signRequest(request: WebResourceLike): WebResourceLike;
|
||||
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions, factory: StorageSharedKeyCredential);
|
||||
protected signRequest(request: WebResource): WebResource;
|
||||
}
|
||||
|
||||
// @public
|
||||
|
@ -2044,6 +2060,8 @@ export type TimeNowType = "now";
|
|||
// @public
|
||||
export type TimePreserveType = "preserve";
|
||||
|
||||
export { WebResource }
|
||||
|
||||
// @public
|
||||
export type WithResponse<T, Headers = undefined, Body = undefined> = T & (Body extends object ? ResponseWithBody<Headers, Body> : Headers extends object ? ResponseWithHeaders<Headers> : ResponseLike);
|
||||
|
||||
|
|
|
@ -39,6 +39,15 @@ export {
|
|||
isPipelineLike,
|
||||
newPipeline,
|
||||
StoragePipelineOptions,
|
||||
RequestPolicyFactory,
|
||||
RequestPolicy,
|
||||
RequestPolicyOptions,
|
||||
WebResource,
|
||||
HttpOperationResponse,
|
||||
HttpHeaders,
|
||||
HttpRequestBody,
|
||||
IHttpClient,
|
||||
StorageOAuthScopes,
|
||||
ServiceClientOptions,
|
||||
} from "../../storage-blob/src/Pipeline";
|
||||
export * from "../../storage-blob/src/policies/AnonymousCredentialPolicy";
|
||||
|
|
|
@ -6,22 +6,23 @@
|
|||
|
||||
import { AbortSignalLike } from '@azure/abort-controller';
|
||||
import { AzureLogger } from '@azure/logger';
|
||||
import { CompatResponse } from '@azure/core-http-compat';
|
||||
import * as coreClient from '@azure/core-client';
|
||||
import * as coreHttpCompat from '@azure/core-http-compat';
|
||||
import { HttpHeadersLike } from '@azure/core-http-compat';
|
||||
import { HttpHeadersLike as HttpHeaders } from '@azure/core-http-compat';
|
||||
import { CompatResponse as HttpOperationResponse } from '@azure/core-http-compat';
|
||||
import { HttpPipelineLogLevel } from '@azure/core-http-compat';
|
||||
import { RequestBodyType as HttpRequestBody } from '@azure/core-rest-pipeline';
|
||||
import { KeepAliveOptions } from '@azure/core-http-compat';
|
||||
import { OperationTracingOptions } from '@azure/core-tracing';
|
||||
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
||||
import { ProxySettings } from '@azure/core-rest-pipeline';
|
||||
import { RequestPolicy } from '@azure/core-http-compat';
|
||||
import { RequestPolicyFactory } from '@azure/core-http-compat';
|
||||
import { RequestPolicyOptionsLike } from '@azure/core-http-compat';
|
||||
import { RequestPolicyOptionsLike as RequestPolicyOptions } from '@azure/core-http-compat';
|
||||
import { RestError } from '@azure/core-rest-pipeline';
|
||||
import { TokenCredential } from '@azure/core-auth';
|
||||
import { UserAgentPolicyOptions } from '@azure/core-rest-pipeline';
|
||||
import { WebResourceLike } from '@azure/core-http-compat';
|
||||
import { WebResourceLike as WebResource } from '@azure/core-http-compat';
|
||||
|
||||
// @public
|
||||
export interface AccessPolicy {
|
||||
|
@ -77,23 +78,23 @@ export interface AccountSASSignatureValues {
|
|||
|
||||
// @public
|
||||
export class AnonymousCredential extends Credential_2 {
|
||||
create(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike): AnonymousCredentialPolicy;
|
||||
create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): AnonymousCredentialPolicy;
|
||||
}
|
||||
|
||||
// @public
|
||||
export class AnonymousCredentialPolicy extends CredentialPolicy {
|
||||
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike);
|
||||
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions);
|
||||
}
|
||||
|
||||
// @public
|
||||
export abstract class BaseRequestPolicy implements RequestPolicy {
|
||||
protected constructor(
|
||||
_nextPolicy: RequestPolicy,
|
||||
_options: RequestPolicyOptionsLike);
|
||||
_options: RequestPolicyOptions);
|
||||
log(logLevel: HttpPipelineLogLevel, message: string): void;
|
||||
readonly _nextPolicy: RequestPolicy;
|
||||
readonly _options: RequestPolicyOptionsLike;
|
||||
abstract sendRequest(webResource: WebResourceLike): Promise<CompatResponse>;
|
||||
readonly _options: RequestPolicyOptions;
|
||||
abstract sendRequest(webResource: WebResource): Promise<HttpOperationResponse>;
|
||||
shouldLog(logLevel: HttpPipelineLogLevel): boolean;
|
||||
}
|
||||
|
||||
|
@ -113,18 +114,18 @@ export interface CorsRule {
|
|||
|
||||
// @public
|
||||
abstract class Credential_2 implements RequestPolicyFactory {
|
||||
create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptionsLike): RequestPolicy;
|
||||
create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy;
|
||||
}
|
||||
export { Credential_2 as Credential }
|
||||
|
||||
// @public
|
||||
export abstract class CredentialPolicy extends BaseRequestPolicy {
|
||||
sendRequest(request: WebResourceLike): Promise<CompatResponse>;
|
||||
protected signRequest(request: WebResourceLike): WebResourceLike;
|
||||
sendRequest(request: WebResource): Promise<HttpOperationResponse>;
|
||||
protected signRequest(request: WebResource): WebResource;
|
||||
}
|
||||
|
||||
// @public
|
||||
export type CredentialPolicyCreator = (nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike) => CredentialPolicy;
|
||||
export type CredentialPolicyCreator = (nextPolicy: RequestPolicy, options: RequestPolicyOptions) => CredentialPolicy;
|
||||
|
||||
// @public
|
||||
export interface DequeuedMessageItem {
|
||||
|
@ -161,10 +162,16 @@ export interface GeoReplication {
|
|||
// @public
|
||||
export type GeoReplicationStatusType = "live" | "bootstrap" | "unavailable";
|
||||
|
||||
export { HttpHeaders }
|
||||
|
||||
export { HttpOperationResponse }
|
||||
|
||||
export { HttpRequestBody }
|
||||
|
||||
// @public
|
||||
export interface HttpResponse {
|
||||
headers: HttpHeadersLike;
|
||||
request: WebResourceLike;
|
||||
headers: HttpHeaders;
|
||||
request: WebResource;
|
||||
status: number;
|
||||
}
|
||||
|
||||
|
@ -613,6 +620,13 @@ export type QueueUpdateMessageResponse = MessageIdUpdateResponse;
|
|||
// @public
|
||||
export type ReceivedMessageItem = DequeuedMessageItem;
|
||||
|
||||
export { RequestPolicy as IHttpClient }
|
||||
export { RequestPolicy }
|
||||
|
||||
export { RequestPolicyFactory }
|
||||
|
||||
export { RequestPolicyOptions }
|
||||
|
||||
// @public
|
||||
export interface ResponseLike {
|
||||
_response: HttpResponse;
|
||||
|
@ -771,15 +785,18 @@ export interface SignedIdentifierModel {
|
|||
|
||||
// @public
|
||||
export class StorageBrowserPolicy extends BaseRequestPolicy {
|
||||
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike);
|
||||
sendRequest(request: WebResourceLike): Promise<CompatResponse>;
|
||||
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions);
|
||||
sendRequest(request: WebResource): Promise<HttpOperationResponse>;
|
||||
}
|
||||
|
||||
// @public
|
||||
export class StorageBrowserPolicyFactory implements RequestPolicyFactory {
|
||||
create(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike): StorageBrowserPolicy;
|
||||
create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageBrowserPolicy;
|
||||
}
|
||||
|
||||
// @public
|
||||
export const StorageOAuthScopes: string | string[];
|
||||
|
||||
// @public
|
||||
export interface StoragePipelineOptions {
|
||||
audience?: string | string[];
|
||||
|
@ -802,16 +819,16 @@ export interface StorageRetryOptions {
|
|||
|
||||
// @public
|
||||
export class StorageRetryPolicy extends BaseRequestPolicy {
|
||||
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike, retryOptions?: StorageRetryOptions);
|
||||
protected attemptSendRequest(request: WebResourceLike, secondaryHas404: boolean, attempt: number): Promise<CompatResponse>;
|
||||
sendRequest(request: WebResourceLike): Promise<CompatResponse>;
|
||||
protected shouldRetry(isPrimaryRetry: boolean, attempt: number, response?: CompatResponse, err?: RestError): boolean;
|
||||
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions, retryOptions?: StorageRetryOptions);
|
||||
protected attemptSendRequest(request: WebResource, secondaryHas404: boolean, attempt: number): Promise<HttpOperationResponse>;
|
||||
sendRequest(request: WebResource): Promise<HttpOperationResponse>;
|
||||
protected shouldRetry(isPrimaryRetry: boolean, attempt: number, response?: HttpOperationResponse, err?: RestError): boolean;
|
||||
}
|
||||
|
||||
// @public
|
||||
export class StorageRetryPolicyFactory implements RequestPolicyFactory {
|
||||
constructor(retryOptions?: StorageRetryOptions);
|
||||
create(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike): StorageRetryPolicy;
|
||||
create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageRetryPolicy;
|
||||
}
|
||||
|
||||
// @public
|
||||
|
@ -825,15 +842,17 @@ export class StorageSharedKeyCredential extends Credential_2 {
|
|||
constructor(accountName: string, accountKey: string);
|
||||
readonly accountName: string;
|
||||
computeHMACSHA256(stringToSign: string): string;
|
||||
create(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike): StorageSharedKeyCredentialPolicy;
|
||||
create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageSharedKeyCredentialPolicy;
|
||||
}
|
||||
|
||||
// @public
|
||||
export class StorageSharedKeyCredentialPolicy extends CredentialPolicy {
|
||||
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike, factory: StorageSharedKeyCredential);
|
||||
protected signRequest(request: WebResourceLike): WebResourceLike;
|
||||
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions, factory: StorageSharedKeyCredential);
|
||||
protected signRequest(request: WebResource): WebResource;
|
||||
}
|
||||
|
||||
export { WebResource }
|
||||
|
||||
// @public
|
||||
export type WithResponse<T, Headers = undefined, Body = undefined> = T & (Body extends object ? ResponseWithBody<Headers, Body> : Headers extends object ? ResponseWithHeaders<Headers> : ResponseLike);
|
||||
|
||||
|
|
|
@ -19,6 +19,15 @@ export {
|
|||
isPipelineLike,
|
||||
newPipeline,
|
||||
StoragePipelineOptions,
|
||||
RequestPolicyFactory,
|
||||
RequestPolicy,
|
||||
RequestPolicyOptions,
|
||||
WebResource,
|
||||
HttpOperationResponse,
|
||||
HttpHeaders,
|
||||
HttpRequestBody,
|
||||
IHttpClient,
|
||||
StorageOAuthScopes,
|
||||
ServiceClientOptions,
|
||||
} from "../../storage-blob/src/Pipeline";
|
||||
export * from "../../storage-blob/src/policies/AnonymousCredentialPolicy";
|
||||
|
|
Загрузка…
Ссылка в новой задаче