From 8ccc8f08cc9f132729abf471123ae3ccae15487d Mon Sep 17 00:00:00 2001 From: Karishma Ghiya Date: Thu, 2 Apr 2020 19:08:49 -0700 Subject: [PATCH 1/2] Updates to api review.md across sdks --- sdk/cosmosdb/cosmos/review/cosmos.api.md | 34 ++++++++++++------- .../keyvault-keys/review/keyvault-keys.api.md | 22 +++++++----- .../service-bus/review/service-bus.api.md | 20 +++++------ .../storage-blob/review/storage-blob.api.md | 18 ++++++---- .../review/storage-file-datalake.api.md | 8 +++-- .../review/storage-file-share.api.md | 24 +++++++------ .../storage-queue/review/storage-queue.api.md | 8 +++-- 7 files changed, 80 insertions(+), 54 deletions(-) diff --git a/sdk/cosmosdb/cosmos/review/cosmos.api.md b/sdk/cosmosdb/cosmos/review/cosmos.api.md index 2091b4a59a38..9e08332c73be 100644 --- a/sdk/cosmosdb/cosmos/review/cosmos.api.md +++ b/sdk/cosmosdb/cosmos/review/cosmos.api.md @@ -263,7 +263,7 @@ export class Container { // Warning: (ae-forgotten-export) The symbol "PartitionedQueryExecutionInfo" needs to be exported by the entry point index.d.ts // // (undocumented) - getQueryPlan(query: string | SqlQuerySpec): Promise>; + getQueryPlan(query: string | SqlQuerySpec): Promise>; // (undocumented) readonly id: string; item(id: string, partitionKeyValue?: any): Item; @@ -387,8 +387,8 @@ export class DatabaseAccount { // @deprecated get MediaLink(): string; readonly mediaLink: string; - readonly readableLocations: Location[]; - readonly writableLocations: Location[]; + readonly readableLocations: Location_2[]; + readonly writableLocations: Location_2[]; } // @public (undocumented) @@ -595,7 +595,7 @@ export class Items { } // @public -export interface Location { +interface Location_2 { // (undocumented) databaseAccountEndpoint: string; // (undocumented) @@ -604,8 +604,10 @@ export interface Location { unavailable?: boolean; } +export { Location_2 as Location } + // @public -export type Next = (context: RequestContext) => Promise>; +export type Next = (context: RequestContext) => Promise>; // @public export class Offer { @@ -739,7 +741,7 @@ export class PermissionResponse extends ResourceResponse; query(query: SqlQuerySpec, options?: FeedOptions): QueryIterator; @@ -750,13 +752,17 @@ export class Permissions { readonly user: User; } +export { Permissions_2 as Permissions } + // @public -export type Plugin = (context: RequestContext, next: Next) => Promise>; +type Plugin_2 = (context: RequestContext, next: Next) => Promise>; + +export { Plugin_2 as Plugin } // @public export interface PluginConfig { on: keyof typeof PluginOn; - plugin: Plugin; + plugin: Plugin_2; } // @public @@ -922,7 +928,7 @@ export interface RequestContext { } // @public (undocumented) -export interface RequestInfo { +interface RequestInfo_2 { // (undocumented) headers: CosmosHeaders; // (undocumented) @@ -935,6 +941,8 @@ export interface RequestInfo { verb: HTTPMethod; } +export { RequestInfo_2 as RequestInfo } + // @public export interface RequestOptions extends SharedOptions { accessCondition?: { @@ -988,7 +996,7 @@ export class ResourceResponse { } // @public (undocumented) -export interface Response { +interface Response_2 { // (undocumented) code?: number; // (undocumented) @@ -999,6 +1007,8 @@ export interface Response { substatus?: number; } +export { Response_2 as Response } + // @public export interface RetryOptions { fixedRetryIntervalInMilliseconds: number; @@ -1164,7 +1174,7 @@ export class TimeSpan { } // @public (undocumented) -export type TokenProvider = (requestInfo: RequestInfo) => Promise; +export type TokenProvider = (requestInfo: RequestInfo_2) => Promise; // @public export class Trigger { @@ -1240,7 +1250,7 @@ export class User { // (undocumented) readonly id: string; permission(id: string): Permission; - readonly permissions: Permissions; + readonly permissions: Permissions_2; read(options?: RequestOptions): Promise; replace(body: UserDefinition, options?: RequestOptions): Promise; get url(): string; diff --git a/sdk/keyvault/keyvault-keys/review/keyvault-keys.api.md b/sdk/keyvault/keyvault-keys/review/keyvault-keys.api.md index 9ba2f9bc8edf..651ddeb87160 100644 --- a/sdk/keyvault/keyvault-keys/review/keyvault-keys.api.md +++ b/sdk/keyvault/keyvault-keys/review/keyvault-keys.api.md @@ -85,9 +85,9 @@ export interface DecryptResult { // @public export interface DeletedKey { id?: string; - key?: JsonWebKey; + key?: JsonWebKey_2; keyOperations?: KeyOperation[]; - keyType?: KeyType; + keyType?: KeyType_2; name: string; properties: KeyProperties & { readonly recoveryId?: string; @@ -134,7 +134,7 @@ export interface ImportKeyOptions extends coreHttp.OperationOptions { } // @public -export interface JsonWebKey { +interface JsonWebKey_2 { crv?: KeyCurveName; d?: Uint8Array; dp?: Uint8Array; @@ -143,7 +143,7 @@ export interface JsonWebKey { k?: Uint8Array; keyOps?: KeyOperation[]; kid?: string; - kty?: KeyType; + kty?: KeyType_2; n?: Uint8Array; p?: Uint8Array; q?: Uint8Array; @@ -153,6 +153,8 @@ export interface JsonWebKey { y?: Uint8Array; } +export { JsonWebKey_2 as JsonWebKey } + // @public export class KeyClient { constructor(vaultUrl: string, credential: TokenCredential, pipelineOptions?: KeyClientOptions); @@ -160,11 +162,11 @@ export class KeyClient { beginDeleteKey(name: string, options?: BeginDeleteKeyOptions): Promise, DeletedKey>>; beginRecoverDeletedKey(name: string, options?: BeginRecoverDeletedKeyOptions): Promise, DeletedKey>>; createEcKey(name: string, options?: CreateEcKeyOptions): Promise; - createKey(name: string, keyType: KeyType, options?: CreateKeyOptions): Promise; + createKey(name: string, keyType: KeyType_2, options?: CreateKeyOptions): Promise; createRsaKey(name: string, options?: CreateRsaKeyOptions): Promise; getDeletedKey(name: string, options?: GetDeletedKeyOptions): Promise; getKey(name: string, options?: GetKeyOptions): Promise; - importKey(name: string, key: JsonWebKey, options?: ImportKeyOptions): Promise; + importKey(name: string, key: JsonWebKey_2, options?: ImportKeyOptions): Promise; listDeletedKeys(options?: ListDeletedKeysOptions): PagedAsyncIterableIterator; listPropertiesOfKeys(options?: ListPropertiesOfKeysOptions): PagedAsyncIterableIterator; listPropertiesOfKeyVersions(name: string, options?: ListPropertiesOfKeyVersionsOptions): PagedAsyncIterableIterator; @@ -210,14 +212,16 @@ export interface KeyProperties { } // @public -export type KeyType = "EC" | "EC-HSM" | "RSA" | "RSA-HSM" | "oct"; +type KeyType_2 = "EC" | "EC-HSM" | "RSA" | "RSA-HSM" | "oct"; + +export { KeyType_2 as KeyType } // @public export interface KeyVaultKey { id?: string; - key?: JsonWebKey; + key?: JsonWebKey_2; keyOperations?: KeyOperation[]; - keyType?: KeyType; + keyType?: KeyType_2; name: string; properties: KeyProperties; } diff --git a/sdk/servicebus/service-bus/review/service-bus.api.md b/sdk/servicebus/service-bus/review/service-bus.api.md index 10a7250896fe..14e7b243dd38 100644 --- a/sdk/servicebus/service-bus/review/service-bus.api.md +++ b/sdk/servicebus/service-bus/review/service-bus.api.md @@ -7,7 +7,7 @@ import { AmqpMessage } from '@azure/core-amqp'; import { delay } from '@azure/core-amqp'; import { Delivery } from 'rhea-promise'; -import Long from 'long'; +import { default as Long_2 } from 'long'; import { MessagingError } from '@azure/core-amqp'; import { OperationOptions } from '@azure/core-auth'; import { RetryOptions } from '@azure/core-amqp'; @@ -96,7 +96,7 @@ export interface ReceivedMessage extends ServiceBusMessage { readonly expiresAtUtc?: Date; lockedUntilUtc?: Date; readonly lockToken?: string; - readonly sequenceNumber?: Long; + readonly sequenceNumber?: Long_2; } // @public @@ -119,14 +119,14 @@ export interface Receiver { close(): Promise; diagnostics: { peek(maxMessageCount?: number): Promise; - peekBySequenceNumber(fromSequenceNumber: Long, maxMessageCount?: number): Promise; + peekBySequenceNumber(fromSequenceNumber: Long_2, maxMessageCount?: number): Promise; }; entityPath: string; getMessageIterator(options?: GetMessageIteratorOptions): AsyncIterableIterator; isReceivingMessages(): boolean; receiveBatch(maxMessages: number, options?: ReceiveBatchOptions): Promise; - receiveDeferredMessage(sequenceNumber: Long, options?: OperationOptions): Promise; - receiveDeferredMessages(sequenceNumbers: Long[], options?: OperationOptions): Promise; + receiveDeferredMessage(sequenceNumber: Long_2, options?: OperationOptions): Promise; + receiveDeferredMessages(sequenceNumbers: Long_2[], options?: OperationOptions): Promise; receiveMode: "peekLock" | "receiveAndDelete"; subscribe(handlers: MessageHandlers, options?: SubscribeOptions): void; } @@ -142,13 +142,13 @@ export interface RuleDescription { // @public export interface Sender { - cancelScheduledMessage(sequenceNumber: Long): Promise; - cancelScheduledMessages(sequenceNumbers: Long[]): Promise; + cancelScheduledMessage(sequenceNumber: Long_2): Promise; + cancelScheduledMessages(sequenceNumbers: Long_2[]): Promise; close(): Promise; createBatch(options?: CreateBatchOptions): Promise; isClosed: boolean; - scheduleMessage(scheduledEnqueueTimeUtc: Date, message: ServiceBusMessage): Promise; - scheduleMessages(scheduledEnqueueTimeUtc: Date, messages: ServiceBusMessage[]): Promise; + scheduleMessage(scheduledEnqueueTimeUtc: Date, message: ServiceBusMessage): Promise; + scheduleMessages(scheduledEnqueueTimeUtc: Date, messages: ServiceBusMessage[]): Promise; send(message: ServiceBusMessage): Promise; sendBatch(messageBatch: ServiceBusMessageBatch): Promise; } @@ -218,7 +218,7 @@ export interface SessionMessageHandlerOptions { export interface SessionReceiver extends Receiver { diagnostics: { peek(maxMessageCount?: number): Promise; - peekBySequenceNumber(fromSequenceNumber: Long, maxMessageCount?: number): Promise; + peekBySequenceNumber(fromSequenceNumber: Long_2, maxMessageCount?: number): Promise; }; getState(): Promise; renewSessionLock(): Promise; diff --git a/sdk/storage/storage-blob/review/storage-blob.api.md b/sdk/storage/storage-blob/review/storage-blob.api.md index 181ba0c8183a..bb5756fc190d 100644 --- a/sdk/storage/storage-blob/review/storage-blob.api.md +++ b/sdk/storage/storage-blob/review/storage-blob.api.md @@ -89,7 +89,7 @@ export interface AccountSASSignatureValues { } // @public -export class AnonymousCredential extends Credential { +export class AnonymousCredential extends Credential_2 { create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): AnonymousCredentialPolicy; } @@ -1088,7 +1088,7 @@ export interface BlockBlobStageBlockFromURLOptions extends CommonOptions { conditions?: LeaseAccessConditions; customerProvidedKey?: CpkInfo; encryptionScope?: string; - range?: Range; + range?: Range_2; sourceContentCrc64?: Uint8Array; sourceContentMD5?: Uint8Array; } @@ -1570,10 +1570,12 @@ export interface CpkInfo { } // @public -export abstract class Credential implements RequestPolicyFactory { +abstract class Credential_2 implements RequestPolicyFactory { create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy; } +export { Credential_2 as Credential } + // @public export abstract class CredentialPolicy extends BaseRequestPolicy { sendRequest(request: WebResource): Promise; @@ -2056,8 +2058,8 @@ export type PageBlobUploadPagesResponse = PageBlobUploadPagesHeaders & { // @public export interface PageList { - clearRange?: Range[]; - pageRange?: Range[]; + clearRange?: Range_2[]; + pageRange?: Range_2[]; } // @public @@ -2103,11 +2105,13 @@ export enum PremiumPageBlobTier { export type PublicAccessType = 'container' | 'blob'; // @public -export interface Range { +interface Range_2 { count?: number; offset: number; } +export { Range_2 as Range } + // @public export type RehydratePriority = 'High' | 'Standard'; @@ -2416,7 +2420,7 @@ export enum StorageRetryPolicyType { } // @public -export class StorageSharedKeyCredential extends Credential { +export class StorageSharedKeyCredential extends Credential_2 { constructor(accountName: string, accountKey: string); readonly accountName: string; computeHMACSHA256(stringToSign: string): string; diff --git a/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md b/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md index d0c931a0fb58..b5b1647378aa 100644 --- a/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md +++ b/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md @@ -96,7 +96,7 @@ export interface AccountSASSignatureValues { } // @public -export class AnonymousCredential extends Credential { +export class AnonymousCredential extends Credential_2 { create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): AnonymousCredentialPolicy; } @@ -116,10 +116,12 @@ export interface CommonOptions { export type CopyStatusType = "pending" | "success" | "aborted" | "failed"; // @public -export abstract class Credential implements RequestPolicyFactory { +abstract class Credential_2 implements RequestPolicyFactory { create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy; } +export { Credential_2 as Credential } + // @public export abstract class CredentialPolicy extends BaseRequestPolicy { sendRequest(request: WebResource): Promise; @@ -1514,7 +1516,7 @@ export enum StorageRetryPolicyType { } // @public -export class StorageSharedKeyCredential extends Credential { +export class StorageSharedKeyCredential extends Credential_2 { constructor(accountName: string, accountKey: string); readonly accountName: string; computeHMACSHA256(stringToSign: string): string; diff --git a/sdk/storage/storage-file-share/review/storage-file-share.api.md b/sdk/storage/storage-file-share/review/storage-file-share.api.md index 5e35c854daa1..c6308143b125 100644 --- a/sdk/storage/storage-file-share/review/storage-file-share.api.md +++ b/sdk/storage/storage-file-share/review/storage-file-share.api.md @@ -80,7 +80,7 @@ export interface AccountSASSignatureValues { } // @public -export class AnonymousCredential extends Credential { +export class AnonymousCredential extends Credential_2 { create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): AnonymousCredentialPolicy; } @@ -128,10 +128,12 @@ export interface CorsRule { } // @public -export abstract class Credential implements RequestPolicyFactory { +abstract class Credential_2 implements RequestPolicyFactory { create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy; } +export { Credential_2 as Credential } + // @public export abstract class CredentialPolicy extends BaseRequestPolicy { sendRequest(request: WebResource): Promise; @@ -673,7 +675,7 @@ export interface FileGetRangeListHeaders { export interface FileGetRangeListOptions extends CommonOptions { abortSignal?: AbortSignalLike; leaseAccessConditions?: LeaseAccessConditions; - range?: Range; + range?: Range_2; } // @public @@ -1124,7 +1126,7 @@ export interface Metrics { } // @public -export function newPipeline(credential: Credential, pipelineOptions?: StoragePipelineOptions): Pipeline; +export function newPipeline(credential: Credential_2, pipelineOptions?: StoragePipelineOptions): Pipeline; // @public (undocumented) export interface OperationTracingOptions { @@ -1145,11 +1147,13 @@ export interface PipelineOptions { } // @public -export interface Range { +interface Range_2 { count?: number; offset: number; } +export { Range_2 as Range } + // @public export interface RangeModel { end: number; @@ -1280,7 +1284,7 @@ export interface SetPropertiesResponse extends FileSetHTTPHeadersResponse { // @public export class ShareClient extends StorageClient { constructor(connectionString: string, name: string, options?: StoragePipelineOptions); - constructor(url: string, credential?: Credential, options?: StoragePipelineOptions); + constructor(url: string, credential?: Credential_2, options?: StoragePipelineOptions); constructor(url: string, pipeline: Pipeline); create(options?: ShareCreateOptions): Promise; createDirectory(directoryName: string, options?: DirectoryCreateOptions): Promise<{ @@ -1409,7 +1413,7 @@ export type ShareDeleteResponse = ShareDeleteHeaders & { // @public export class ShareDirectoryClient extends StorageClient { - constructor(url: string, credential?: Credential, options?: StoragePipelineOptions); + constructor(url: string, credential?: Credential_2, options?: StoragePipelineOptions); constructor(url: string, pipeline: Pipeline); create(options?: DirectoryCreateOptions): Promise; createFile(fileName: string, size: number, options?: FileCreateOptions): Promise<{ @@ -1443,7 +1447,7 @@ export class ShareDirectoryClient extends StorageClient { // @public export class ShareFileClient extends StorageClient { - constructor(url: string, credential?: Credential, options?: StoragePipelineOptions); + constructor(url: string, credential?: Credential_2, options?: StoragePipelineOptions); constructor(url: string, pipeline: Pipeline); abortCopyFromURL(copyId: string, options?: FileAbortCopyFromURLOptions): Promise; clearRange(offset: number, contentLength: number, options?: FileClearRangeOptions): Promise; @@ -1649,7 +1653,7 @@ export class ShareSASPermissions { // @public export class ShareServiceClient extends StorageClient { - constructor(url: string, credential?: Credential, options?: StoragePipelineOptions); + constructor(url: string, credential?: Credential_2, options?: StoragePipelineOptions); constructor(url: string, pipeline: Pipeline); createShare(shareName: string, options?: ShareCreateOptions): Promise<{ shareCreateResponse: ShareCreateResponse; @@ -1809,7 +1813,7 @@ export enum StorageRetryPolicyType { } // @public -export class StorageSharedKeyCredential extends Credential { +export class StorageSharedKeyCredential extends Credential_2 { constructor(accountName: string, accountKey: string); readonly accountName: string; computeHMACSHA256(stringToSign: string): string; diff --git a/sdk/storage/storage-queue/review/storage-queue.api.md b/sdk/storage/storage-queue/review/storage-queue.api.md index 102128e86f83..2ae151d18bc8 100644 --- a/sdk/storage/storage-queue/review/storage-queue.api.md +++ b/sdk/storage/storage-queue/review/storage-queue.api.md @@ -79,7 +79,7 @@ export interface AccountSASSignatureValues { } // @public -export class AnonymousCredential extends Credential { +export class AnonymousCredential extends Credential_2 { create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): AnonymousCredentialPolicy; } @@ -105,10 +105,12 @@ export interface CorsRule { } // @public -export abstract class Credential implements RequestPolicyFactory { +abstract class Credential_2 implements RequestPolicyFactory { create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy; } +export { Credential_2 as Credential } + // @public export abstract class CredentialPolicy extends BaseRequestPolicy { sendRequest(request: WebResource): Promise; @@ -850,7 +852,7 @@ export enum StorageRetryPolicyType { } // @public -export class StorageSharedKeyCredential extends Credential { +export class StorageSharedKeyCredential extends Credential_2 { constructor(accountName: string, accountKey: string); readonly accountName: string; computeHMACSHA256(stringToSign: string): string; From 4ecae71b623428145aa7037404cb9257cb4d8546 Mon Sep 17 00:00:00 2001 From: Ramya Achutha Rao Date: Sat, 4 Apr 2020 19:04:07 -0700 Subject: [PATCH 2/2] Fix the _2 occurances --- sdk/cosmosdb/cosmos/review/cosmos.api.md | 34 +++++++------------ .../keyvault-keys/review/keyvault-keys.api.md | 22 +++++------- .../service-bus/review/service-bus.api.md | 20 +++++------ .../storage-blob/review/storage-blob.api.md | 18 ++++------ .../review/storage-file-datalake.api.md | 8 ++--- .../review/storage-file-share.api.md | 24 ++++++------- .../storage-queue/review/storage-queue.api.md | 8 ++--- 7 files changed, 54 insertions(+), 80 deletions(-) diff --git a/sdk/cosmosdb/cosmos/review/cosmos.api.md b/sdk/cosmosdb/cosmos/review/cosmos.api.md index 9e08332c73be..2091b4a59a38 100644 --- a/sdk/cosmosdb/cosmos/review/cosmos.api.md +++ b/sdk/cosmosdb/cosmos/review/cosmos.api.md @@ -263,7 +263,7 @@ export class Container { // Warning: (ae-forgotten-export) The symbol "PartitionedQueryExecutionInfo" needs to be exported by the entry point index.d.ts // // (undocumented) - getQueryPlan(query: string | SqlQuerySpec): Promise>; + getQueryPlan(query: string | SqlQuerySpec): Promise>; // (undocumented) readonly id: string; item(id: string, partitionKeyValue?: any): Item; @@ -387,8 +387,8 @@ export class DatabaseAccount { // @deprecated get MediaLink(): string; readonly mediaLink: string; - readonly readableLocations: Location_2[]; - readonly writableLocations: Location_2[]; + readonly readableLocations: Location[]; + readonly writableLocations: Location[]; } // @public (undocumented) @@ -595,7 +595,7 @@ export class Items { } // @public -interface Location_2 { +export interface Location { // (undocumented) databaseAccountEndpoint: string; // (undocumented) @@ -604,10 +604,8 @@ interface Location_2 { unavailable?: boolean; } -export { Location_2 as Location } - // @public -export type Next = (context: RequestContext) => Promise>; +export type Next = (context: RequestContext) => Promise>; // @public export class Offer { @@ -741,7 +739,7 @@ export class PermissionResponse extends ResourceResponse; query(query: SqlQuerySpec, options?: FeedOptions): QueryIterator; @@ -752,17 +750,13 @@ class Permissions_2 { readonly user: User; } -export { Permissions_2 as Permissions } - // @public -type Plugin_2 = (context: RequestContext, next: Next) => Promise>; - -export { Plugin_2 as Plugin } +export type Plugin = (context: RequestContext, next: Next) => Promise>; // @public export interface PluginConfig { on: keyof typeof PluginOn; - plugin: Plugin_2; + plugin: Plugin; } // @public @@ -928,7 +922,7 @@ export interface RequestContext { } // @public (undocumented) -interface RequestInfo_2 { +export interface RequestInfo { // (undocumented) headers: CosmosHeaders; // (undocumented) @@ -941,8 +935,6 @@ interface RequestInfo_2 { verb: HTTPMethod; } -export { RequestInfo_2 as RequestInfo } - // @public export interface RequestOptions extends SharedOptions { accessCondition?: { @@ -996,7 +988,7 @@ export class ResourceResponse { } // @public (undocumented) -interface Response_2 { +export interface Response { // (undocumented) code?: number; // (undocumented) @@ -1007,8 +999,6 @@ interface Response_2 { substatus?: number; } -export { Response_2 as Response } - // @public export interface RetryOptions { fixedRetryIntervalInMilliseconds: number; @@ -1174,7 +1164,7 @@ export class TimeSpan { } // @public (undocumented) -export type TokenProvider = (requestInfo: RequestInfo_2) => Promise; +export type TokenProvider = (requestInfo: RequestInfo) => Promise; // @public export class Trigger { @@ -1250,7 +1240,7 @@ export class User { // (undocumented) readonly id: string; permission(id: string): Permission; - readonly permissions: Permissions_2; + readonly permissions: Permissions; read(options?: RequestOptions): Promise; replace(body: UserDefinition, options?: RequestOptions): Promise; get url(): string; diff --git a/sdk/keyvault/keyvault-keys/review/keyvault-keys.api.md b/sdk/keyvault/keyvault-keys/review/keyvault-keys.api.md index 651ddeb87160..9ba2f9bc8edf 100644 --- a/sdk/keyvault/keyvault-keys/review/keyvault-keys.api.md +++ b/sdk/keyvault/keyvault-keys/review/keyvault-keys.api.md @@ -85,9 +85,9 @@ export interface DecryptResult { // @public export interface DeletedKey { id?: string; - key?: JsonWebKey_2; + key?: JsonWebKey; keyOperations?: KeyOperation[]; - keyType?: KeyType_2; + keyType?: KeyType; name: string; properties: KeyProperties & { readonly recoveryId?: string; @@ -134,7 +134,7 @@ export interface ImportKeyOptions extends coreHttp.OperationOptions { } // @public -interface JsonWebKey_2 { +export interface JsonWebKey { crv?: KeyCurveName; d?: Uint8Array; dp?: Uint8Array; @@ -143,7 +143,7 @@ interface JsonWebKey_2 { k?: Uint8Array; keyOps?: KeyOperation[]; kid?: string; - kty?: KeyType_2; + kty?: KeyType; n?: Uint8Array; p?: Uint8Array; q?: Uint8Array; @@ -153,8 +153,6 @@ interface JsonWebKey_2 { y?: Uint8Array; } -export { JsonWebKey_2 as JsonWebKey } - // @public export class KeyClient { constructor(vaultUrl: string, credential: TokenCredential, pipelineOptions?: KeyClientOptions); @@ -162,11 +160,11 @@ export class KeyClient { beginDeleteKey(name: string, options?: BeginDeleteKeyOptions): Promise, DeletedKey>>; beginRecoverDeletedKey(name: string, options?: BeginRecoverDeletedKeyOptions): Promise, DeletedKey>>; createEcKey(name: string, options?: CreateEcKeyOptions): Promise; - createKey(name: string, keyType: KeyType_2, options?: CreateKeyOptions): Promise; + createKey(name: string, keyType: KeyType, options?: CreateKeyOptions): Promise; createRsaKey(name: string, options?: CreateRsaKeyOptions): Promise; getDeletedKey(name: string, options?: GetDeletedKeyOptions): Promise; getKey(name: string, options?: GetKeyOptions): Promise; - importKey(name: string, key: JsonWebKey_2, options?: ImportKeyOptions): Promise; + importKey(name: string, key: JsonWebKey, options?: ImportKeyOptions): Promise; listDeletedKeys(options?: ListDeletedKeysOptions): PagedAsyncIterableIterator; listPropertiesOfKeys(options?: ListPropertiesOfKeysOptions): PagedAsyncIterableIterator; listPropertiesOfKeyVersions(name: string, options?: ListPropertiesOfKeyVersionsOptions): PagedAsyncIterableIterator; @@ -212,16 +210,14 @@ export interface KeyProperties { } // @public -type KeyType_2 = "EC" | "EC-HSM" | "RSA" | "RSA-HSM" | "oct"; - -export { KeyType_2 as KeyType } +export type KeyType = "EC" | "EC-HSM" | "RSA" | "RSA-HSM" | "oct"; // @public export interface KeyVaultKey { id?: string; - key?: JsonWebKey_2; + key?: JsonWebKey; keyOperations?: KeyOperation[]; - keyType?: KeyType_2; + keyType?: KeyType; name: string; properties: KeyProperties; } diff --git a/sdk/servicebus/service-bus/review/service-bus.api.md b/sdk/servicebus/service-bus/review/service-bus.api.md index 14e7b243dd38..10a7250896fe 100644 --- a/sdk/servicebus/service-bus/review/service-bus.api.md +++ b/sdk/servicebus/service-bus/review/service-bus.api.md @@ -7,7 +7,7 @@ import { AmqpMessage } from '@azure/core-amqp'; import { delay } from '@azure/core-amqp'; import { Delivery } from 'rhea-promise'; -import { default as Long_2 } from 'long'; +import Long from 'long'; import { MessagingError } from '@azure/core-amqp'; import { OperationOptions } from '@azure/core-auth'; import { RetryOptions } from '@azure/core-amqp'; @@ -96,7 +96,7 @@ export interface ReceivedMessage extends ServiceBusMessage { readonly expiresAtUtc?: Date; lockedUntilUtc?: Date; readonly lockToken?: string; - readonly sequenceNumber?: Long_2; + readonly sequenceNumber?: Long; } // @public @@ -119,14 +119,14 @@ export interface Receiver { close(): Promise; diagnostics: { peek(maxMessageCount?: number): Promise; - peekBySequenceNumber(fromSequenceNumber: Long_2, maxMessageCount?: number): Promise; + peekBySequenceNumber(fromSequenceNumber: Long, maxMessageCount?: number): Promise; }; entityPath: string; getMessageIterator(options?: GetMessageIteratorOptions): AsyncIterableIterator; isReceivingMessages(): boolean; receiveBatch(maxMessages: number, options?: ReceiveBatchOptions): Promise; - receiveDeferredMessage(sequenceNumber: Long_2, options?: OperationOptions): Promise; - receiveDeferredMessages(sequenceNumbers: Long_2[], options?: OperationOptions): Promise; + receiveDeferredMessage(sequenceNumber: Long, options?: OperationOptions): Promise; + receiveDeferredMessages(sequenceNumbers: Long[], options?: OperationOptions): Promise; receiveMode: "peekLock" | "receiveAndDelete"; subscribe(handlers: MessageHandlers, options?: SubscribeOptions): void; } @@ -142,13 +142,13 @@ export interface RuleDescription { // @public export interface Sender { - cancelScheduledMessage(sequenceNumber: Long_2): Promise; - cancelScheduledMessages(sequenceNumbers: Long_2[]): Promise; + cancelScheduledMessage(sequenceNumber: Long): Promise; + cancelScheduledMessages(sequenceNumbers: Long[]): Promise; close(): Promise; createBatch(options?: CreateBatchOptions): Promise; isClosed: boolean; - scheduleMessage(scheduledEnqueueTimeUtc: Date, message: ServiceBusMessage): Promise; - scheduleMessages(scheduledEnqueueTimeUtc: Date, messages: ServiceBusMessage[]): Promise; + scheduleMessage(scheduledEnqueueTimeUtc: Date, message: ServiceBusMessage): Promise; + scheduleMessages(scheduledEnqueueTimeUtc: Date, messages: ServiceBusMessage[]): Promise; send(message: ServiceBusMessage): Promise; sendBatch(messageBatch: ServiceBusMessageBatch): Promise; } @@ -218,7 +218,7 @@ export interface SessionMessageHandlerOptions { export interface SessionReceiver extends Receiver { diagnostics: { peek(maxMessageCount?: number): Promise; - peekBySequenceNumber(fromSequenceNumber: Long_2, maxMessageCount?: number): Promise; + peekBySequenceNumber(fromSequenceNumber: Long, maxMessageCount?: number): Promise; }; getState(): Promise; renewSessionLock(): Promise; diff --git a/sdk/storage/storage-blob/review/storage-blob.api.md b/sdk/storage/storage-blob/review/storage-blob.api.md index bb5756fc190d..181ba0c8183a 100644 --- a/sdk/storage/storage-blob/review/storage-blob.api.md +++ b/sdk/storage/storage-blob/review/storage-blob.api.md @@ -89,7 +89,7 @@ export interface AccountSASSignatureValues { } // @public -export class AnonymousCredential extends Credential_2 { +export class AnonymousCredential extends Credential { create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): AnonymousCredentialPolicy; } @@ -1088,7 +1088,7 @@ export interface BlockBlobStageBlockFromURLOptions extends CommonOptions { conditions?: LeaseAccessConditions; customerProvidedKey?: CpkInfo; encryptionScope?: string; - range?: Range_2; + range?: Range; sourceContentCrc64?: Uint8Array; sourceContentMD5?: Uint8Array; } @@ -1570,12 +1570,10 @@ export interface CpkInfo { } // @public -abstract class Credential_2 implements RequestPolicyFactory { +export abstract class Credential implements RequestPolicyFactory { create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy; } -export { Credential_2 as Credential } - // @public export abstract class CredentialPolicy extends BaseRequestPolicy { sendRequest(request: WebResource): Promise; @@ -2058,8 +2056,8 @@ export type PageBlobUploadPagesResponse = PageBlobUploadPagesHeaders & { // @public export interface PageList { - clearRange?: Range_2[]; - pageRange?: Range_2[]; + clearRange?: Range[]; + pageRange?: Range[]; } // @public @@ -2105,13 +2103,11 @@ export enum PremiumPageBlobTier { export type PublicAccessType = 'container' | 'blob'; // @public -interface Range_2 { +export interface Range { count?: number; offset: number; } -export { Range_2 as Range } - // @public export type RehydratePriority = 'High' | 'Standard'; @@ -2420,7 +2416,7 @@ export enum StorageRetryPolicyType { } // @public -export class StorageSharedKeyCredential extends Credential_2 { +export class StorageSharedKeyCredential extends Credential { constructor(accountName: string, accountKey: string); readonly accountName: string; computeHMACSHA256(stringToSign: string): string; diff --git a/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md b/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md index b5b1647378aa..d0c931a0fb58 100644 --- a/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md +++ b/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md @@ -96,7 +96,7 @@ export interface AccountSASSignatureValues { } // @public -export class AnonymousCredential extends Credential_2 { +export class AnonymousCredential extends Credential { create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): AnonymousCredentialPolicy; } @@ -116,12 +116,10 @@ export interface CommonOptions { export type CopyStatusType = "pending" | "success" | "aborted" | "failed"; // @public -abstract class Credential_2 implements RequestPolicyFactory { +export abstract class Credential implements RequestPolicyFactory { create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy; } -export { Credential_2 as Credential } - // @public export abstract class CredentialPolicy extends BaseRequestPolicy { sendRequest(request: WebResource): Promise; @@ -1516,7 +1514,7 @@ export enum StorageRetryPolicyType { } // @public -export class StorageSharedKeyCredential extends Credential_2 { +export class StorageSharedKeyCredential extends Credential { constructor(accountName: string, accountKey: string); readonly accountName: string; computeHMACSHA256(stringToSign: string): string; diff --git a/sdk/storage/storage-file-share/review/storage-file-share.api.md b/sdk/storage/storage-file-share/review/storage-file-share.api.md index c6308143b125..5e35c854daa1 100644 --- a/sdk/storage/storage-file-share/review/storage-file-share.api.md +++ b/sdk/storage/storage-file-share/review/storage-file-share.api.md @@ -80,7 +80,7 @@ export interface AccountSASSignatureValues { } // @public -export class AnonymousCredential extends Credential_2 { +export class AnonymousCredential extends Credential { create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): AnonymousCredentialPolicy; } @@ -128,12 +128,10 @@ export interface CorsRule { } // @public -abstract class Credential_2 implements RequestPolicyFactory { +export abstract class Credential implements RequestPolicyFactory { create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy; } -export { Credential_2 as Credential } - // @public export abstract class CredentialPolicy extends BaseRequestPolicy { sendRequest(request: WebResource): Promise; @@ -675,7 +673,7 @@ export interface FileGetRangeListHeaders { export interface FileGetRangeListOptions extends CommonOptions { abortSignal?: AbortSignalLike; leaseAccessConditions?: LeaseAccessConditions; - range?: Range_2; + range?: Range; } // @public @@ -1126,7 +1124,7 @@ export interface Metrics { } // @public -export function newPipeline(credential: Credential_2, pipelineOptions?: StoragePipelineOptions): Pipeline; +export function newPipeline(credential: Credential, pipelineOptions?: StoragePipelineOptions): Pipeline; // @public (undocumented) export interface OperationTracingOptions { @@ -1147,13 +1145,11 @@ export interface PipelineOptions { } // @public -interface Range_2 { +export interface Range { count?: number; offset: number; } -export { Range_2 as Range } - // @public export interface RangeModel { end: number; @@ -1284,7 +1280,7 @@ export interface SetPropertiesResponse extends FileSetHTTPHeadersResponse { // @public export class ShareClient extends StorageClient { constructor(connectionString: string, name: string, options?: StoragePipelineOptions); - constructor(url: string, credential?: Credential_2, options?: StoragePipelineOptions); + constructor(url: string, credential?: Credential, options?: StoragePipelineOptions); constructor(url: string, pipeline: Pipeline); create(options?: ShareCreateOptions): Promise; createDirectory(directoryName: string, options?: DirectoryCreateOptions): Promise<{ @@ -1413,7 +1409,7 @@ export type ShareDeleteResponse = ShareDeleteHeaders & { // @public export class ShareDirectoryClient extends StorageClient { - constructor(url: string, credential?: Credential_2, options?: StoragePipelineOptions); + constructor(url: string, credential?: Credential, options?: StoragePipelineOptions); constructor(url: string, pipeline: Pipeline); create(options?: DirectoryCreateOptions): Promise; createFile(fileName: string, size: number, options?: FileCreateOptions): Promise<{ @@ -1447,7 +1443,7 @@ export class ShareDirectoryClient extends StorageClient { // @public export class ShareFileClient extends StorageClient { - constructor(url: string, credential?: Credential_2, options?: StoragePipelineOptions); + constructor(url: string, credential?: Credential, options?: StoragePipelineOptions); constructor(url: string, pipeline: Pipeline); abortCopyFromURL(copyId: string, options?: FileAbortCopyFromURLOptions): Promise; clearRange(offset: number, contentLength: number, options?: FileClearRangeOptions): Promise; @@ -1653,7 +1649,7 @@ export class ShareSASPermissions { // @public export class ShareServiceClient extends StorageClient { - constructor(url: string, credential?: Credential_2, options?: StoragePipelineOptions); + constructor(url: string, credential?: Credential, options?: StoragePipelineOptions); constructor(url: string, pipeline: Pipeline); createShare(shareName: string, options?: ShareCreateOptions): Promise<{ shareCreateResponse: ShareCreateResponse; @@ -1813,7 +1809,7 @@ export enum StorageRetryPolicyType { } // @public -export class StorageSharedKeyCredential extends Credential_2 { +export class StorageSharedKeyCredential extends Credential { constructor(accountName: string, accountKey: string); readonly accountName: string; computeHMACSHA256(stringToSign: string): string; diff --git a/sdk/storage/storage-queue/review/storage-queue.api.md b/sdk/storage/storage-queue/review/storage-queue.api.md index 2ae151d18bc8..102128e86f83 100644 --- a/sdk/storage/storage-queue/review/storage-queue.api.md +++ b/sdk/storage/storage-queue/review/storage-queue.api.md @@ -79,7 +79,7 @@ export interface AccountSASSignatureValues { } // @public -export class AnonymousCredential extends Credential_2 { +export class AnonymousCredential extends Credential { create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): AnonymousCredentialPolicy; } @@ -105,12 +105,10 @@ export interface CorsRule { } // @public -abstract class Credential_2 implements RequestPolicyFactory { +export abstract class Credential implements RequestPolicyFactory { create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy; } -export { Credential_2 as Credential } - // @public export abstract class CredentialPolicy extends BaseRequestPolicy { sendRequest(request: WebResource): Promise; @@ -852,7 +850,7 @@ export enum StorageRetryPolicyType { } // @public -export class StorageSharedKeyCredential extends Credential_2 { +export class StorageSharedKeyCredential extends Credential { constructor(accountName: string, accountKey: string); readonly accountName: string; computeHMACSHA256(stringToSign: string): string;