From 4321df48da6d0e044006d7d71106b6958adb3bb5 Mon Sep 17 00:00:00 2001 From: Roberto Trevino Date: Thu, 15 Jun 2023 12:15:08 -0600 Subject: [PATCH 1/9] update alpha ids swagger --- .../review/communication-alpha-ids.api.md | 60 +++- .../samples-dev/getConfiguration.ts | 4 +- .../src/alphaIdsClient.ts | 79 ++++- .../src/generated/src/alphaIDsClient.ts | 36 +- .../src/generated/src/index.ts | 2 + .../src/generated/src/models/index.ts | 87 ++++- .../src/generated/src/models/mappers.ts | 86 ++++- .../src/generated/src/models/parameters.ts | 40 ++- .../src/generated/src/operations/alphaIds.ts | 113 ------- .../src/operations/alphaIdsOperations.ts | 320 ++++++++++++++++++ .../src/generated/src/operations/index.ts | 2 +- .../src/operationsInterfaces/alphaIds.ts | 34 -- .../alphaIdsOperations.ts | 63 ++++ .../src/operationsInterfaces/index.ts | 2 +- .../src/generated/src/pagingHelper.ts | 39 +++ .../communication-alpha-ids/src/models.ts | 27 +- .../swagger/alphaids.json | 213 +++++++++++- .../test/internal/generated_client.spec.ts | 4 +- ...uration.spec.ts => dynamicAlphaId.spec.ts} | 8 + .../test/public/preRegisteredAlphaId.ts | 47 +++ .../public/utils/alphaIdClientTestUtils.ts | 4 +- 21 files changed, 1029 insertions(+), 241 deletions(-) delete mode 100644 sdk/communication/communication-alpha-ids/src/generated/src/operations/alphaIds.ts create mode 100644 sdk/communication/communication-alpha-ids/src/generated/src/operations/alphaIdsOperations.ts delete mode 100644 sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/alphaIds.ts create mode 100644 sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/alphaIdsOperations.ts create mode 100644 sdk/communication/communication-alpha-ids/src/generated/src/pagingHelper.ts rename sdk/communication/communication-alpha-ids/test/public/{manageAlphaIdConfiguration.spec.ts => dynamicAlphaId.spec.ts} (80%) create mode 100644 sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.ts diff --git a/sdk/communication/communication-alpha-ids/review/communication-alpha-ids.api.md b/sdk/communication/communication-alpha-ids/review/communication-alpha-ids.api.md index 37f5b7ca02d8..fa5641fdace7 100644 --- a/sdk/communication/communication-alpha-ids/review/communication-alpha-ids.api.md +++ b/sdk/communication/communication-alpha-ids/review/communication-alpha-ids.api.md @@ -7,13 +7,23 @@ /// import { CommonClientOptions } from '@azure/core-client'; +import * as coreClient from '@azure/core-client'; import { KeyCredential } from '@azure/core-auth'; import { OperationOptions } from '@azure/core-client'; +import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { TokenCredential } from '@azure/core-auth'; // @public -export interface AlphaIdConfiguration { - enabled: boolean; +export interface AlphaId { + countryCode?: string; + purchaseDate?: Date; + value?: string; +} + +// @public +export interface AlphaIds { + alphaIds?: AlphaId[]; + nextLink?: string; } // @public (undocumented) @@ -22,19 +32,61 @@ export class AlphaIdsClient { constructor(endpoint: string, credential: KeyCredential, options?: AlphaIdsClientOptions); constructor(endpoint: string, credential: TokenCredential, options?: AlphaIdsClientOptions); // (undocumented) - getConfiguration(options?: GetConfigurationOptions): Promise; + getConfiguration(options?: GetConfigurationOptions): Promise; // (undocumented) - upsertConfiguration(enabled: boolean, options?: UpsertConfigurationOptions): Promise; + getDynamicAlphaIdCountries(options?: GetDynamicAlphaIdCountriesOptions): Promise; + // (undocumented) + getPreRegisteredAlphaIdCountries(options?: GetPreRegisteredAlphaIdCountriesOptions): Promise; + // (undocumented) + listAlphaIds(options?: ListAlphaIdsOptions): PagedAsyncIterableIterator; + // (undocumented) + upsertConfiguration(enabled: boolean, options?: UpsertConfigurationOptions): Promise; } // @public export interface AlphaIdsClientOptions extends CommonClientOptions { } +// @public +export interface AlphaIdsGetAlphaIdsOptionalParams extends coreClient.OperationOptions { + skip?: number; + top?: number; +} + +// @public +export interface AlphaIdsGetDynamicAlphaIdCountriesOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface Countries { + countries?: string[]; +} + +// @public +export interface DynamicAlphaIdConfiguration { + enabled: boolean; +} + // @public export interface GetConfigurationOptions extends OperationOptions { } +// @public +export interface GetDynamicAlphaIdCountriesOptions extends AlphaIdsGetDynamicAlphaIdCountriesOptionalParams { +} + +// @public +export interface GetPreRegisteredAlphaIdCountriesOptions extends AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams { +} + +// @public +export interface ListAlphaIdsOptions extends AlphaIdsGetAlphaIdsOptionalParams { +} + // @public export interface UpsertConfigurationOptions extends OperationOptions { } diff --git a/sdk/communication/communication-alpha-ids/samples-dev/getConfiguration.ts b/sdk/communication/communication-alpha-ids/samples-dev/getConfiguration.ts index c89e09f53d18..9aec28996d04 100644 --- a/sdk/communication/communication-alpha-ids/samples-dev/getConfiguration.ts +++ b/sdk/communication/communication-alpha-ids/samples-dev/getConfiguration.ts @@ -5,7 +5,7 @@ * @summary Get the Alpha IDs configuration that's applied for the current resource */ -import { AlphaIdConfiguration, AlphaIdsClient } from "@azure-tools/communication-alpha-ids"; +import { DynamicAlphaIdConfiguration, AlphaIdsClient } from "@azure-tools/communication-alpha-ids"; import { RestError } from "@azure/core-rest-pipeline"; // Load the .env file if it exists @@ -26,7 +26,7 @@ export async function main() { try { // get the applied configuration for the current resource - const configuration: AlphaIdConfiguration = await client.getConfiguration(); + const configuration: DynamicAlphaIdConfiguration = await client.getConfiguration(); usageIsEnabled = configuration.enabled; } catch (error) { // 403 errors also mean that the usage is disallowed diff --git a/sdk/communication/communication-alpha-ids/src/alphaIdsClient.ts b/sdk/communication/communication-alpha-ids/src/alphaIdsClient.ts index 8c00140068d7..f47c80a018b5 100644 --- a/sdk/communication/communication-alpha-ids/src/alphaIdsClient.ts +++ b/sdk/communication/communication-alpha-ids/src/alphaIdsClient.ts @@ -2,9 +2,14 @@ // Licensed under the MIT license. /// import { - AlphaIdConfiguration, + DynamicAlphaIdConfiguration, GetConfigurationOptions, UpsertConfigurationOptions, + ListAlphaIdsOptions, + GetDynamicAlphaIdCountriesOptions, + GetPreRegisteredAlphaIdCountriesOptions, + AlphaId, + Countries, } from "./models"; import { isKeyCredential, parseClientArguments } from "@azure/communication-common"; import { KeyCredential, TokenCredential, isTokenCredential } from "@azure/core-auth"; @@ -13,10 +18,12 @@ import { AlphaIDsClient as AlphaIDsGeneratedClient } from "./generated/src"; import { createCommunicationAuthPolicy } from "@azure/communication-common"; import { logger } from "./utils"; import { tracingClient } from "./generated/src/tracing"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; + /** * Client options used to configure the AlphaIdsClient API requests. */ -export interface AlphaIdsClientOptions extends CommonClientOptions {} +export interface AlphaIdsClientOptions extends CommonClientOptions { } const isAlphaIdsClientOptions = (options: any): options is AlphaIdsClientOptions => options && !isKeyCredential(options) && !isTokenCredential(options); @@ -61,12 +68,12 @@ export class AlphaIdsClient { this.client.pipeline.addPolicy(authPolicy); } - public getConfiguration(options: GetConfigurationOptions = {}): Promise { + public getConfiguration(options: GetConfigurationOptions = {}): Promise { return tracingClient.withSpan( "AlphaIdsClient-getConfiguration", options, async (updatedOptions) => { - return this.client.alphaIds.getConfiguration(updatedOptions); + return this.client.alphaIdsOperations.getDynamicAlphaIdConfiguration(updatedOptions); } ); } @@ -74,13 +81,73 @@ export class AlphaIdsClient { public upsertConfiguration( enabled: boolean, options: UpsertConfigurationOptions = {} - ): Promise { + ): Promise { return tracingClient.withSpan( "AlphaIdsClient-upsertConfiguration", options, async (updatedOptions) => { - return this.client.alphaIds.upsertConfiguration(enabled, updatedOptions); + return this.client.alphaIdsOperations.upsertDynamicAlphaIdConfiguration(enabled, updatedOptions); } ); } + + public listAlphaIds( + options: ListAlphaIdsOptions = {} + ): PagedAsyncIterableIterator { + const { span, updatedOptions } = tracingClient.startSpan( + "AlphaIdsClient-listAlphaIds", + options + ); + try { + return this.client.alphaIdsOperations.listAlphaIds(updatedOptions); + } catch (e: any) { + span.setStatus({ + status: "error", + error: e, + }); + throw e; + } finally { + span.end(); + } + } + + public getDynamicAlphaIdCountries( + options: GetDynamicAlphaIdCountriesOptions = {} + ): Promise { + const { span, updatedOptions } = tracingClient.startSpan( + "AlphaIdsClient-getDynamicAlphaIdCountries", + options + ); + try { + return this.client.alphaIdsOperations.getDynamicAlphaIdCountries(updatedOptions); + } catch (e: any) { + span.setStatus({ + status: "error", + error: e, + }); + throw e; + } finally { + span.end(); + } + } + + public getPreRegisteredAlphaIdCountries( + options: GetPreRegisteredAlphaIdCountriesOptions = {} + ): Promise { + const { span, updatedOptions } = tracingClient.startSpan( + "AlphaIdsClient-getPreRegisteredAlphaIdCountries", + options + ); + try { + return this.client.alphaIdsOperations.getPreRegisteredAlphaIdCountries(updatedOptions); + } catch (e: any) { + span.setStatus({ + status: "error", + error: e, + }); + throw e; + } finally { + span.end(); + } + } } diff --git a/sdk/communication/communication-alpha-ids/src/generated/src/alphaIDsClient.ts b/sdk/communication/communication-alpha-ids/src/generated/src/alphaIDsClient.ts index 60d6749895f1..983984703c73 100644 --- a/sdk/communication/communication-alpha-ids/src/generated/src/alphaIDsClient.ts +++ b/sdk/communication/communication-alpha-ids/src/generated/src/alphaIDsClient.ts @@ -7,14 +7,13 @@ */ import * as coreClient from "@azure/core-client"; -import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, SendRequest } from "@azure/core-rest-pipeline"; -import { AlphaIdsImpl } from "./operations"; -import { AlphaIds } from "./operationsInterfaces"; +import { AlphaIdsOperationsImpl } from "./operations"; +import { AlphaIdsOperations } from "./operationsInterfaces"; import { AlphaIDsClientOptionalParams } from "./models"; export class AlphaIDsClient extends coreClient.ServiceClient { @@ -51,38 +50,15 @@ export class AlphaIDsClient extends coreClient.ServiceClient { userAgentOptions: { userAgentPrefix }, - baseUri: options.endpoint ?? options.baseUri ?? "{endpoint}" + endpoint: options.endpoint ?? options.baseUri ?? "{endpoint}" }; super(optionsWithDefaults); - - if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); - const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( - (pipelinePolicy) => - pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName - ); - if (!bearerTokenAuthenticationPolicyFound) { - this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName - }); - this.pipeline.addPolicy( - coreRestPipeline.bearerTokenAuthenticationPolicy({ - scopes: `${optionsWithDefaults.baseUri}/.default`, - challengeCallbacks: { - authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) - ); - } - } // Parameter assignments this.endpoint = endpoint; // Assigning values to Constant parameters - this.apiVersion = options.apiVersion || "2022-09-26-preview"; - this.alphaIds = new AlphaIdsImpl(this); + this.apiVersion = options.apiVersion || "2023-07-12"; + this.alphaIdsOperations = new AlphaIdsOperationsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -114,5 +90,5 @@ export class AlphaIDsClient extends coreClient.ServiceClient { this.pipeline.addPolicy(apiVersionPolicy); } - alphaIds: AlphaIds; + alphaIdsOperations: AlphaIdsOperations; } diff --git a/sdk/communication/communication-alpha-ids/src/generated/src/index.ts b/sdk/communication/communication-alpha-ids/src/generated/src/index.ts index 17d5a55472c5..d47cc39c52c3 100644 --- a/sdk/communication/communication-alpha-ids/src/generated/src/index.ts +++ b/sdk/communication/communication-alpha-ids/src/generated/src/index.ts @@ -6,6 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +/// +export { getContinuationToken } from "./pagingHelper"; export * from "./models"; export { AlphaIDsClient } from "./alphaIDsClient"; export * from "./operationsInterfaces"; diff --git a/sdk/communication/communication-alpha-ids/src/generated/src/models/index.ts b/sdk/communication/communication-alpha-ids/src/generated/src/models/index.ts index 54473ffd0483..8b7778d0a942 100644 --- a/sdk/communication/communication-alpha-ids/src/generated/src/models/index.ts +++ b/sdk/communication/communication-alpha-ids/src/generated/src/models/index.ts @@ -8,15 +8,22 @@ import * as coreClient from "@azure/core-client"; -/** - *
Represents a collection of settings for configuring Alpha ID support for a specific resource. - *
- * Initially, Alpha IDs were restricted to customers that had valid use cases for them, so this configuration could be leveraged to enable its usage. - * - */ -export interface AlphaIdConfiguration { - /** Indicates whether the use of Alpha IDs is supported for a specific resource. */ - enabled: boolean; +/** A wrapper for a list of alpha id entities. */ +export interface AlphaIds { + /** List of alpha ids. */ + alphaIds?: AlphaId[]; + /** Represents the URL link to the next page. */ + nextLink?: string; +} + +/** Represents an AlphaId acquired in a given country. */ +export interface AlphaId { + /** The value of the AlphaId e.g. 'CONTOSO', etc. */ + value?: string; + /** ISO 3166 2-char code representing the country e.g. 'US'. */ + countryCode?: string; + /** Date in which number was purchased. */ + purchaseDate?: Date; } /** The Communication Services error. */ @@ -48,19 +55,69 @@ export interface CommunicationError { readonly innerError?: CommunicationError; } +/** + *
Represents a collection of settings for configuring Dynamic Alpha ID support for a specific resource. + *
+ * Initially, Alpha IDs were restricted to customers that had valid use cases for them, so this configuration could be leveraged to enable its usage. + * + */ +export interface DynamicAlphaIdConfiguration { + /** Indicates whether the use of Dynamic Alpha IDs is supported for a specific resource. */ + enabled: boolean; +} + +/** A wrapper for a list of countries. */ +export interface Countries { + /** List of conutries supporting alpha ids. */ + countries?: string[]; +} + +/** Optional parameters. */ +export interface AlphaIdsGetAlphaIdsOptionalParams + extends coreClient.OperationOptions { + /** An optional parameter for how many entries to skip, for pagination purposes. */ + skip?: number; + /** An optional parameter for how many entries to return, for pagination purposes. */ + top?: number; +} + +/** Contains response data for the getAlphaIds operation. */ +export type AlphaIdsGetAlphaIdsResponse = AlphaIds; + +/** Optional parameters. */ +export interface AlphaIdsGetDynamicAlphaIdConfigurationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getDynamicAlphaIdConfiguration operation. */ +export type AlphaIdsGetDynamicAlphaIdConfigurationResponse = DynamicAlphaIdConfiguration; + +/** Optional parameters. */ +export interface AlphaIdsUpsertDynamicAlphaIdConfigurationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the upsertDynamicAlphaIdConfiguration operation. */ +export type AlphaIdsUpsertDynamicAlphaIdConfigurationResponse = DynamicAlphaIdConfiguration; + +/** Optional parameters. */ +export interface AlphaIdsGetDynamicAlphaIdCountriesOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getDynamicAlphaIdCountries operation. */ +export type AlphaIdsGetDynamicAlphaIdCountriesResponse = Countries; + /** Optional parameters. */ -export interface AlphaIdsGetConfigurationOptionalParams +export interface AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getConfiguration operation. */ -export type AlphaIdsGetConfigurationResponse = AlphaIdConfiguration; +/** Contains response data for the getPreRegisteredAlphaIdCountries operation. */ +export type AlphaIdsGetPreRegisteredAlphaIdCountriesResponse = Countries; /** Optional parameters. */ -export interface AlphaIdsUpsertConfigurationOptionalParams +export interface AlphaIdsGetAlphaIdsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the upsertConfiguration operation. */ -export type AlphaIdsUpsertConfigurationResponse = AlphaIdConfiguration; +/** Contains response data for the getAlphaIdsNext operation. */ +export type AlphaIdsGetAlphaIdsNextResponse = AlphaIds; /** Optional parameters. */ export interface AlphaIDsClientOptionalParams diff --git a/sdk/communication/communication-alpha-ids/src/generated/src/models/mappers.ts b/sdk/communication/communication-alpha-ids/src/generated/src/models/mappers.ts index 18779b86ccd1..dc231b2cf0f0 100644 --- a/sdk/communication/communication-alpha-ids/src/generated/src/models/mappers.ts +++ b/sdk/communication/communication-alpha-ids/src/generated/src/models/mappers.ts @@ -8,16 +8,54 @@ import * as coreClient from "@azure/core-client"; -export const AlphaIdConfiguration: coreClient.CompositeMapper = { +export const AlphaIds: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AlphaIdConfiguration", + className: "AlphaIds", modelProperties: { - enabled: { - serializedName: "enabled", - required: true, + alphaIds: { + serializedName: "alphaIds", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AlphaId" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const AlphaId: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AlphaId", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "String" + } + }, + countryCode: { + serializedName: "countryCode", + type: { + name: "String" + } + }, + purchaseDate: { + serializedName: "purchaseDate", + type: { + name: "DateTime" } } } @@ -89,3 +127,39 @@ export const CommunicationError: coreClient.CompositeMapper = { } } }; + +export const DynamicAlphaIdConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DynamicAlphaIdConfiguration", + modelProperties: { + enabled: { + serializedName: "enabled", + required: true, + type: { + name: "Boolean" + } + } + } + } +}; + +export const Countries: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Countries", + modelProperties: { + countries: { + serializedName: "countries", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; diff --git a/sdk/communication/communication-alpha-ids/src/generated/src/models/parameters.ts b/sdk/communication/communication-alpha-ids/src/generated/src/models/parameters.ts index fd835efab351..81480fe02902 100644 --- a/sdk/communication/communication-alpha-ids/src/generated/src/models/parameters.ts +++ b/sdk/communication/communication-alpha-ids/src/generated/src/models/parameters.ts @@ -11,7 +11,7 @@ import { OperationURLParameter, OperationQueryParameter } from "@azure/core-client"; -import { AlphaIdConfiguration as AlphaIdConfigurationMapper } from "../models/mappers"; +import { DynamicAlphaIdConfiguration as DynamicAlphaIdConfigurationMapper } from "../models/mappers"; export const accept: OperationParameter = { parameterPath: "accept", @@ -37,10 +37,32 @@ export const endpoint: OperationURLParameter = { skipEncoding: true }; +export const skip: OperationQueryParameter = { + parameterPath: ["options", "skip"], + mapper: { + defaultValue: 0, + serializedName: "skip", + type: { + name: "Number" + } + } +}; + +export const top: OperationQueryParameter = { + parameterPath: ["options", "top"], + mapper: { + defaultValue: 100, + serializedName: "top", + type: { + name: "Number" + } + } +}; + export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-09-26-preview", + defaultValue: "2023-07-12", isConstant: true, serializedName: "api-version", type: { @@ -63,5 +85,17 @@ export const contentType: OperationParameter = { export const enabled: OperationParameter = { parameterPath: "enabled", - mapper: AlphaIdConfigurationMapper + mapper: DynamicAlphaIdConfigurationMapper +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + type: { + name: "String" + } + }, + skipEncoding: true }; diff --git a/sdk/communication/communication-alpha-ids/src/generated/src/operations/alphaIds.ts b/sdk/communication/communication-alpha-ids/src/generated/src/operations/alphaIds.ts deleted file mode 100644 index 6530ba32edb0..000000000000 --- a/sdk/communication/communication-alpha-ids/src/generated/src/operations/alphaIds.ts +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { tracingClient } from "../tracing"; -import { AlphaIds } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AlphaIDsClient } from "../alphaIDsClient"; -import { - AlphaIdsGetConfigurationOptionalParams, - AlphaIdsGetConfigurationResponse, - AlphaIdsUpsertConfigurationOptionalParams, - AlphaIdsUpsertConfigurationResponse -} from "../models"; - -/** Class containing AlphaIds operations. */ -export class AlphaIdsImpl implements AlphaIds { - private readonly client: AlphaIDsClient; - - /** - * Initialize a new instance of the class AlphaIds class. - * @param client Reference to the service client - */ - constructor(client: AlphaIDsClient) { - this.client = client; - } - - /** - * Get the Alpha IDs configuration that's applied for the current resource. - * @param options The options parameters. - */ - async getConfiguration( - options?: AlphaIdsGetConfigurationOptionalParams - ): Promise { - return tracingClient.withSpan( - "AlphaIDsClient.getConfiguration", - options ?? {}, - async (options) => { - return this.client.sendOperationRequest( - { options }, - getConfigurationOperationSpec - ) as Promise; - } - ); - } - - /** - * Creates or updates Alpha ID Configuration for the current resource. - * @param enabled Indicates whether the use of Alpha IDs is supported for a specific resource. - * @param options The options parameters. - */ - async upsertConfiguration( - enabled: boolean, - options?: AlphaIdsUpsertConfigurationOptionalParams - ): Promise { - return tracingClient.withSpan( - "AlphaIDsClient.upsertConfiguration", - options ?? {}, - async (options) => { - return this.client.sendOperationRequest( - { enabled, options }, - upsertConfigurationOperationSpec - ) as Promise; - } - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getConfigurationOperationSpec: coreClient.OperationSpec = { - path: "/alphaIds/configuration", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AlphaIdConfiguration - }, - default: { - bodyMapper: Mappers.CommunicationErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept], - serializer -}; -const upsertConfigurationOperationSpec: coreClient.OperationSpec = { - path: "/alphaIds/configuration", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.AlphaIdConfiguration - }, - default: { - bodyMapper: Mappers.CommunicationErrorResponse - } - }, - requestBody: { - parameterPath: { enabled: ["enabled"] }, - mapper: { ...Mappers.AlphaIdConfiguration, required: true } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; diff --git a/sdk/communication/communication-alpha-ids/src/generated/src/operations/alphaIdsOperations.ts b/sdk/communication/communication-alpha-ids/src/generated/src/operations/alphaIdsOperations.ts new file mode 100644 index 000000000000..8b525f1e2790 --- /dev/null +++ b/sdk/communication/communication-alpha-ids/src/generated/src/operations/alphaIdsOperations.ts @@ -0,0 +1,320 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { tracingClient } from "../tracing"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { AlphaIdsOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AlphaIDsClient } from "../alphaIDsClient"; +import { + AlphaId, + AlphaIdsGetAlphaIdsNextOptionalParams, + AlphaIdsGetAlphaIdsOptionalParams, + AlphaIdsGetAlphaIdsResponse, + AlphaIdsGetDynamicAlphaIdConfigurationOptionalParams, + AlphaIdsGetDynamicAlphaIdConfigurationResponse, + AlphaIdsUpsertDynamicAlphaIdConfigurationOptionalParams, + AlphaIdsUpsertDynamicAlphaIdConfigurationResponse, + AlphaIdsGetDynamicAlphaIdCountriesOptionalParams, + AlphaIdsGetDynamicAlphaIdCountriesResponse, + AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams, + AlphaIdsGetPreRegisteredAlphaIdCountriesResponse, + AlphaIdsGetAlphaIdsNextResponse +} from "../models"; + +/// +/** Class containing AlphaIdsOperations operations. */ +export class AlphaIdsOperationsImpl implements AlphaIdsOperations { + private readonly client: AlphaIDsClient; + + /** + * Initialize a new instance of the class AlphaIdsOperations class. + * @param client Reference to the service client + */ + constructor(client: AlphaIDsClient) { + this.client = client; + } + + /** + * Gets the list of alpha ids for the current resource. + * @param options The options parameters. + */ + public listAlphaIds( + options?: AlphaIdsGetAlphaIdsOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.getAlphaIdsPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.getAlphaIdsPagingPage(options, settings); + } + }; + } + + private async *getAlphaIdsPagingPage( + options?: AlphaIdsGetAlphaIdsOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: AlphaIdsGetAlphaIdsResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._getAlphaIds(options); + let page = result.alphaIds || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._getAlphaIdsNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.alphaIds || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *getAlphaIdsPagingAll( + options?: AlphaIdsGetAlphaIdsOptionalParams + ): AsyncIterableIterator { + for await (const page of this.getAlphaIdsPagingPage(options)) { + yield* page; + } + } + + /** + * Gets the list of alpha ids for the current resource. + * @param options The options parameters. + */ + private async _getAlphaIds( + options?: AlphaIdsGetAlphaIdsOptionalParams + ): Promise { + return tracingClient.withSpan( + "AlphaIDsClient._getAlphaIds", + options ?? {}, + async (options) => { + return this.client.sendOperationRequest( + { options }, + getAlphaIdsOperationSpec + ) as Promise; + } + ); + } + + /** + * Get the Dynamic Alpha ID configuration that's applied for the current resource. + * @param options The options parameters. + */ + async getDynamicAlphaIdConfiguration( + options?: AlphaIdsGetDynamicAlphaIdConfigurationOptionalParams + ): Promise { + return tracingClient.withSpan( + "AlphaIDsClient.getDynamicAlphaIdConfiguration", + options ?? {}, + async (options) => { + return this.client.sendOperationRequest( + { options }, + getDynamicAlphaIdConfigurationOperationSpec + ) as Promise; + } + ); + } + + /** + * Creates or updates Dynamic Alpha ID Configuration for the current resource. + * @param enabled Indicates whether the use of Dynamic Alpha IDs is supported for a specific resource. + * @param options The options parameters. + */ + async upsertDynamicAlphaIdConfiguration( + enabled: boolean, + options?: AlphaIdsUpsertDynamicAlphaIdConfigurationOptionalParams + ): Promise { + return tracingClient.withSpan( + "AlphaIDsClient.upsertDynamicAlphaIdConfiguration", + options ?? {}, + async (options) => { + return this.client.sendOperationRequest( + { enabled, options }, + upsertDynamicAlphaIdConfigurationOperationSpec + ) as Promise; + } + ); + } + + /** + * Gets the list of countries that support Dynamic Alpha IDs. + * @param options The options parameters. + */ + async getDynamicAlphaIdCountries( + options?: AlphaIdsGetDynamicAlphaIdCountriesOptionalParams + ): Promise { + return tracingClient.withSpan( + "AlphaIDsClient.getDynamicAlphaIdCountries", + options ?? {}, + async (options) => { + return this.client.sendOperationRequest( + { options }, + getDynamicAlphaIdCountriesOperationSpec + ) as Promise; + } + ); + } + + /** + * Gets the list of countries that support Pre-Registered Alpha IDs. + * @param options The options parameters. + */ + async getPreRegisteredAlphaIdCountries( + options?: AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams + ): Promise { + return tracingClient.withSpan( + "AlphaIDsClient.getPreRegisteredAlphaIdCountries", + options ?? {}, + async (options) => { + return this.client.sendOperationRequest( + { options }, + getPreRegisteredAlphaIdCountriesOperationSpec + ) as Promise; + } + ); + } + + /** + * GetAlphaIdsNext + * @param nextLink The nextLink from the previous successful call to the GetAlphaIds method. + * @param options The options parameters. + */ + private async _getAlphaIdsNext( + nextLink: string, + options?: AlphaIdsGetAlphaIdsNextOptionalParams + ): Promise { + return tracingClient.withSpan( + "AlphaIDsClient._getAlphaIdsNext", + options ?? {}, + async (options) => { + return this.client.sendOperationRequest( + { nextLink, options }, + getAlphaIdsNextOperationSpec + ) as Promise; + } + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getAlphaIdsOperationSpec: coreClient.OperationSpec = { + path: "/alphaIds", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AlphaIds + }, + default: { + bodyMapper: Mappers.CommunicationErrorResponse + } + }, + queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept], + serializer +}; +const getDynamicAlphaIdConfigurationOperationSpec: coreClient.OperationSpec = { + path: "/alphaIds/dynamic/configuration", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DynamicAlphaIdConfiguration + }, + default: { + bodyMapper: Mappers.CommunicationErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept], + serializer +}; +const upsertDynamicAlphaIdConfigurationOperationSpec: coreClient.OperationSpec = { + path: "/alphaIds/dynamic/configuration", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.DynamicAlphaIdConfiguration + }, + default: { + bodyMapper: Mappers.CommunicationErrorResponse + } + }, + requestBody: { + parameterPath: { enabled: ["enabled"] }, + mapper: { ...Mappers.DynamicAlphaIdConfiguration, required: true } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getDynamicAlphaIdCountriesOperationSpec: coreClient.OperationSpec = { + path: "/alphaIds/dynamic/countries", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.Countries + }, + default: { + bodyMapper: Mappers.CommunicationErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept], + serializer +}; +const getPreRegisteredAlphaIdCountriesOperationSpec: coreClient.OperationSpec = { + path: "/alphaIds/pre-registered/countries", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.Countries + }, + default: { + bodyMapper: Mappers.CommunicationErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept], + serializer +}; +const getAlphaIdsNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AlphaIds + }, + default: { + bodyMapper: Mappers.CommunicationErrorResponse + } + }, + urlParameters: [Parameters.endpoint, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/communication/communication-alpha-ids/src/generated/src/operations/index.ts b/sdk/communication/communication-alpha-ids/src/generated/src/operations/index.ts index 0d64df3ad3ea..86d0fecfa523 100644 --- a/sdk/communication/communication-alpha-ids/src/generated/src/operations/index.ts +++ b/sdk/communication/communication-alpha-ids/src/generated/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./alphaIds"; +export * from "./alphaIdsOperations"; diff --git a/sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/alphaIds.ts b/sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/alphaIds.ts deleted file mode 100644 index e9811ba6b37a..000000000000 --- a/sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/alphaIds.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { - AlphaIdsGetConfigurationOptionalParams, - AlphaIdsGetConfigurationResponse, - AlphaIdsUpsertConfigurationOptionalParams, - AlphaIdsUpsertConfigurationResponse -} from "../models"; - -/** Interface representing a AlphaIds. */ -export interface AlphaIds { - /** - * Get the Alpha IDs configuration that's applied for the current resource. - * @param options The options parameters. - */ - getConfiguration( - options?: AlphaIdsGetConfigurationOptionalParams - ): Promise; - /** - * Creates or updates Alpha ID Configuration for the current resource. - * @param enabled Indicates whether the use of Alpha IDs is supported for a specific resource. - * @param options The options parameters. - */ - upsertConfiguration( - enabled: boolean, - options?: AlphaIdsUpsertConfigurationOptionalParams - ): Promise; -} diff --git a/sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/alphaIdsOperations.ts b/sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/alphaIdsOperations.ts new file mode 100644 index 000000000000..4fd687d005cf --- /dev/null +++ b/sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/alphaIdsOperations.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + AlphaId, + AlphaIdsGetAlphaIdsOptionalParams, + AlphaIdsGetDynamicAlphaIdConfigurationOptionalParams, + AlphaIdsGetDynamicAlphaIdConfigurationResponse, + AlphaIdsUpsertDynamicAlphaIdConfigurationOptionalParams, + AlphaIdsUpsertDynamicAlphaIdConfigurationResponse, + AlphaIdsGetDynamicAlphaIdCountriesOptionalParams, + AlphaIdsGetDynamicAlphaIdCountriesResponse, + AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams, + AlphaIdsGetPreRegisteredAlphaIdCountriesResponse +} from "../models"; + +/// +/** Interface representing a AlphaIdsOperations. */ +export interface AlphaIdsOperations { + /** + * Gets the list of alpha ids for the current resource. + * @param options The options parameters. + */ + listAlphaIds( + options?: AlphaIdsGetAlphaIdsOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get the Dynamic Alpha ID configuration that's applied for the current resource. + * @param options The options parameters. + */ + getDynamicAlphaIdConfiguration( + options?: AlphaIdsGetDynamicAlphaIdConfigurationOptionalParams + ): Promise; + /** + * Creates or updates Dynamic Alpha ID Configuration for the current resource. + * @param enabled Indicates whether the use of Dynamic Alpha IDs is supported for a specific resource. + * @param options The options parameters. + */ + upsertDynamicAlphaIdConfiguration( + enabled: boolean, + options?: AlphaIdsUpsertDynamicAlphaIdConfigurationOptionalParams + ): Promise; + /** + * Gets the list of countries that support Dynamic Alpha IDs. + * @param options The options parameters. + */ + getDynamicAlphaIdCountries( + options?: AlphaIdsGetDynamicAlphaIdCountriesOptionalParams + ): Promise; + /** + * Gets the list of countries that support Pre-Registered Alpha IDs. + * @param options The options parameters. + */ + getPreRegisteredAlphaIdCountries( + options?: AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams + ): Promise; +} diff --git a/sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/index.ts b/sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/index.ts index 0d64df3ad3ea..86d0fecfa523 100644 --- a/sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/index.ts +++ b/sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./alphaIds"; +export * from "./alphaIdsOperations"; diff --git a/sdk/communication/communication-alpha-ids/src/generated/src/pagingHelper.ts b/sdk/communication/communication-alpha-ids/src/generated/src/pagingHelper.ts new file mode 100644 index 000000000000..269a2b9814b5 --- /dev/null +++ b/sdk/communication/communication-alpha-ids/src/generated/src/pagingHelper.ts @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export interface PageInfo { + continuationToken?: string; +} + +const pageMap = new WeakMap(); + +/** + * Given the last `.value` produced by the `byPage` iterator, + * returns a continuation token that can be used to begin paging from + * that point later. + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @returns The continuation token that can be passed into byPage() during future calls. + */ +export function getContinuationToken(page: unknown): string | undefined { + if (typeof page !== "object" || page === null) { + return undefined; + } + return pageMap.get(page)?.continuationToken; +} + +export function setContinuationToken( + page: unknown, + continuationToken: string | undefined +): void { + if (typeof page !== "object" || page === null || !continuationToken) { + return; + } + const pageInfo = pageMap.get(page) ?? {}; + pageInfo.continuationToken = continuationToken; + pageMap.set(page, pageInfo); +} diff --git a/sdk/communication/communication-alpha-ids/src/models.ts b/sdk/communication/communication-alpha-ids/src/models.ts index 20685a5f6167..3f453aa5c96b 100644 --- a/sdk/communication/communication-alpha-ids/src/models.ts +++ b/sdk/communication/communication-alpha-ids/src/models.ts @@ -2,15 +2,34 @@ // Licensed under the MIT license. import { OperationOptions } from "@azure/core-client"; - +import { + AlphaIdsGetAlphaIdsOptionalParams, + AlphaIdsGetDynamicAlphaIdCountriesOptionalParams, + AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams +} from "."; /** * Additional options for the Get Alpha ID Configuration request. */ -export interface GetConfigurationOptions extends OperationOptions {} +export interface GetConfigurationOptions extends OperationOptions { } + +/** + * Additional options for the ListAlphaIds request. + */ +export interface ListAlphaIdsOptions extends AlphaIdsGetAlphaIdsOptionalParams { } + +/** + * Additional options for the GetDynamicAlphaIdCountries request. + */ +export interface GetDynamicAlphaIdCountriesOptions extends AlphaIdsGetDynamicAlphaIdCountriesOptionalParams { } + +/** + * Additional options for the GetPreRegisteredAlphaIdCountries request. + */ +export interface GetPreRegisteredAlphaIdCountriesOptions extends AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams { } /** * Additional options for the Upsert Alpha ID Configuration request. */ -export interface UpsertConfigurationOptions extends OperationOptions {} +export interface UpsertConfigurationOptions extends OperationOptions { } -export { AlphaIdConfiguration } from "./generated/src/models/"; +export { DynamicAlphaIdConfiguration, AlphaIds, AlphaId, AlphaIdsGetAlphaIdsOptionalParams, AlphaIdsGetDynamicAlphaIdCountriesOptionalParams, AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams, Countries } from "./generated/src/models/"; diff --git a/sdk/communication/communication-alpha-ids/swagger/alphaids.json b/sdk/communication/communication-alpha-ids/swagger/alphaids.json index ff6a250696a7..83d6d82a8df4 100644 --- a/sdk/communication/communication-alpha-ids/swagger/alphaids.json +++ b/sdk/communication/communication-alpha-ids/swagger/alphaids.json @@ -3,16 +3,72 @@ "info": { "title": "AlphaIdsClient", "description": "The alpha ids client uses Azure Communication Services to purchase and manage alpha ids.", - "version": "2022-09-26-preview" + "version": "2023-07-12" }, "paths": { - "/alphaIds/configuration": { + "/alphaIds": { "get": { "tags": [ - "AlphaIDs - Configuration" + "AlphaIDs" ], - "summary": "Get the Alpha IDs configuration that's applied for the current resource.", - "operationId": "AlphaIds_GetConfiguration", + "summary": "Gets the list of alpha ids for the current resource.", + "operationId": "AlphaIds_GetAlphaIds", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "query", + "name": "skip", + "description": "An optional parameter for how many entries to skip, for pagination purposes.", + "type": "integer", + "format": "int32", + "default": 0 + }, + { + "in": "query", + "name": "top", + "description": "An optional parameter for how many entries to return, for pagination purposes.", + "type": "integer", + "format": "int32", + "default": 100 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AlphaIds" + } + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/CommunicationErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink", + "itemName": "alphaIds" + }, + "x-ms-examples": { + "List alpha ids": { + "$ref": "./examples/GetAlphaIds.json" + } + } + } + }, + "/alphaIds/dynamic/configuration": { + "get": { + "tags": [ + "AlphaIDs" + ], + "summary": "Get the Dynamic Alpha ID configuration that's applied for the current resource.", + "operationId": "AlphaIds_GetDynamicAlphaIdConfiguration", "produces": [ "application/json" ], @@ -25,7 +81,7 @@ "200": { "description": "Success", "schema": { - "$ref": "#/definitions/AlphaIdConfiguration" + "$ref": "#/definitions/DynamicAlphaIdConfiguration" } }, "default": { @@ -36,17 +92,17 @@ } }, "x-ms-examples": { - "Get the current Alpha IDs configuration": { - "$ref": "./examples/GetAlphaIdConfiguration.json" + "Get the current Dynamic Alpha IDs configuration": { + "$ref": "./examples/GetDynamicAlphaIdConfiguration.json" } } }, "patch": { "tags": [ - "AlphaIDs - Configuration" + "AlphaIDs" ], - "summary": "Creates or updates Alpha ID Configuration for the current resource.", - "operationId": "AlphaIds_UpsertConfiguration", + "summary": "Creates or updates Dynamic Alpha ID Configuration for the current resource.", + "operationId": "AlphaIds_UpsertDynamicAlphaIdConfiguration", "consumes": [ "application/merge-patch+json" ], @@ -62,15 +118,87 @@ "name": "body", "description": "The configuration data that is intended to be applied.", "schema": { - "$ref": "#/definitions/AlphaIdConfiguration" + "$ref": "#/definitions/DynamicAlphaIdConfiguration" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DynamicAlphaIdConfiguration" + } + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/CommunicationErrorResponse" + } + } + }, + "x-ms-examples": { + "Enables Dynamic Alpha IDs for the current resource": { + "$ref": "./examples/UpsertDynamicAlphaIdConfiguration.json" + } + } + } + }, + "/alphaIds/dynamic/countries": { + "get": { + "tags": [ + "AlphaIDs" + ], + "summary": "Gets the list of countries that support Dynamic Alpha IDs.", + "operationId": "AlphaIds_GetDynamicAlphaIdCountries", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Countries" } + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/CommunicationErrorResponse" + } + } + }, + "x-ms-examples": { + "List dynamic alpha id countries": { + "$ref": "./examples/GetDynamicAlphaIdCountries.json" + } + } + } + }, + "/alphaIds/pre-registered/countries": { + "get": { + "tags": [ + "AlphaIDs" + ], + "summary": "Gets the list of countries that support Pre-Registered Alpha IDs.", + "operationId": "AlphaIds_GetPreRegisteredAlphaIdCountries", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "Success", "schema": { - "$ref": "#/definitions/AlphaIdConfiguration" + "$ref": "#/definitions/Countries" } }, "default": { @@ -81,23 +209,72 @@ } }, "x-ms-examples": { - "Enables Alpha ID for the current resource": { - "$ref": "./examples/UpsertAlphaIdConfiguration.json" + "List pre-registered alpha id countries": { + "$ref": "./examples/GetPreRegisteredAlphaIdCountries.json" } } } } }, "definitions": { - "AlphaIdConfiguration": { - "description": "
Represents a collection of settings for configuring Alpha ID support for a specific resource.\r\n
\r\n Initially, Alpha IDs were restricted to customers that had valid use cases for them, so this configuration could be leveraged to enable its usage.\r\n ", + "AlphaId": { + "description": "Represents an AlphaId acquired in a given country.", + "type": "object", + "properties": { + "value": { + "description": "The value of the AlphaId e.g. 'CONTOSO', etc.", + "type": "string" + }, + "countryCode": { + "description": "ISO 3166 2-char code representing the country e.g. 'US'.", + "type": "string" + }, + "purchaseDate": { + "format": "date-time", + "description": "Date in which number was purchased.", + "type": "string" + } + } + }, + "AlphaIds": { + "description": "A wrapper for a list of alpha id entities.", + "type": "object", + "properties": { + "alphaIds": { + "description": "List of alpha ids.", + "type": "array", + "items": { + "$ref": "#/definitions/AlphaId" + } + }, + "nextLink": { + "description": "Represents the URL link to the next page.", + "type": "string" + } + } + }, + "Countries": { + "description": "A wrapper for a list of countries.", + "type": "object", + "properties": { + "countries": { + "description": "List of conutries supporting alpha ids.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "DynamicAlphaIdConfiguration": { + "description": "
Represents a collection of settings for configuring Dynamic Alpha ID support for a specific resource.\r\n
\r\n Initially, Alpha IDs were restricted to customers that had valid use cases for them, so this configuration could be leveraged to enable its usage.\r\n ", "required": [ "enabled" ], "type": "object", "properties": { "enabled": { - "description": "Indicates whether the use of Alpha IDs is supported for a specific resource.", + "description": "Indicates whether the use of Dynamic Alpha IDs is supported for a specific resource.", "type": "boolean" } } diff --git a/sdk/communication/communication-alpha-ids/test/internal/generated_client.spec.ts b/sdk/communication/communication-alpha-ids/test/internal/generated_client.spec.ts index 39ebd8a7b1db..d24e6bc092d4 100644 --- a/sdk/communication/communication-alpha-ids/test/internal/generated_client.spec.ts +++ b/sdk/communication/communication-alpha-ids/test/internal/generated_client.spec.ts @@ -109,7 +109,7 @@ describe("AlphaIdsGeneratedClient - constructor", function () { ); const spy = sinon.spy(mockHttpClient, "sendRequest"); - await client.alphaIds.upsertConfiguration(true); + await client.alphaIdsOperations.upsertDynamicAlphaIdConfiguration(true); sinon.assert.calledOnce(spy); }); @@ -144,7 +144,7 @@ describe("AlphaIdsGeneratedClient - constructor", function () { ); const spy = sinon.spy(mockHttpClient, "sendRequest"); - await client.alphaIds.upsertConfiguration(true); + await client.alphaIdsOperations.upsertDynamicAlphaIdConfiguration(true); sinon.assert.calledOnce(spy); }); }); diff --git a/sdk/communication/communication-alpha-ids/test/public/manageAlphaIdConfiguration.spec.ts b/sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts similarity index 80% rename from sdk/communication/communication-alpha-ids/test/public/manageAlphaIdConfiguration.spec.ts rename to sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts index 53356a04b27d..43575fe575e2 100644 --- a/sdk/communication/communication-alpha-ids/test/public/manageAlphaIdConfiguration.spec.ts +++ b/sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts @@ -6,6 +6,7 @@ import { Context } from "mocha"; import { Recorder } from "@azure-tools/test-recorder"; import { createRecordedClient } from "./utils/recordedClient"; import { ignoreSubscriptionNotEligibleError } from "./utils/alphaIdClientTestUtils"; +import { assert } from "chai"; describe(`AlphaIdsClient - manage configuration`, function () { let recorder: Recorder; @@ -27,4 +28,11 @@ describe(`AlphaIdsClient - manage configuration`, function () { await ignoreSubscriptionNotEligibleError(() => client.upsertConfiguration(false), false); await ignoreSubscriptionNotEligibleError(() => client.getConfiguration(), false); }).timeout(15000); + + it("can list all dynamic alpha ids countries", async function () { + const countries = (await client.getDynamicAlphaIdCountries()).countries; + countries?.forEach((countryCode) => { + assert.isNotNull(countryCode); + }) + }).timeout(20000); }); diff --git a/sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.ts b/sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.ts new file mode 100644 index 000000000000..b07fbe5cf1ce --- /dev/null +++ b/sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.ts @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { Context } from "mocha"; +import { Recorder } from "@azure-tools/test-recorder"; +import { AlphaIdsClient } from "../../src"; +import { assert } from "chai"; +import { createRecordedClient } from "./utils/recordedClient"; + +describe(`AlphaIdsClient - Preregistered Alpha Ids Operations`, function () { + let recorder: Recorder; + let client: AlphaIdsClient; + + beforeEach(async function (this: Context) { + ({ client, recorder } = await createRecordedClient(this)); + }); + + afterEach(async function (this: Context) { + if (!this.currentTest?.isPending()) { + await recorder.stop(); + } + }); + + it("can list all pre-registered alpha ids", async function () { + for await (const alphaId of client.listAlphaIds()) { + assert.isNotNull(alphaId.value); + } + }).timeout(20000); + + it("can list all pre-registered alpha ids, by Page", async function () { + const pages = client.listAlphaIds().byPage(); + for await (const page of pages) { + // loop over each item in the page + for (const alphaId of page) { + assert.isNotNull(alphaId.value); + } + } + }).timeout(20000); + + it("can list all pre-registered alpha ids countries", async function () { + const countries = (await client.getPreRegisteredAlphaIdCountries()).countries; + countries?.forEach((countryCode) => { + assert.isNotNull(countryCode); + }) + }).timeout(20000); + +}); diff --git a/sdk/communication/communication-alpha-ids/test/public/utils/alphaIdClientTestUtils.ts b/sdk/communication/communication-alpha-ids/test/public/utils/alphaIdClientTestUtils.ts index 625332d915d0..bd12df7ae415 100644 --- a/sdk/communication/communication-alpha-ids/test/public/utils/alphaIdClientTestUtils.ts +++ b/sdk/communication/communication-alpha-ids/test/public/utils/alphaIdClientTestUtils.ts @@ -1,12 +1,12 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { AlphaIdConfiguration } from "../../../src"; +import { DynamicAlphaIdConfiguration } from "../../../src"; import { RestError } from "@azure/core-rest-pipeline"; import { assert } from "chai"; export async function ignoreSubscriptionNotEligibleError( - call: () => Promise, + call: () => Promise, expectedConfiguration: boolean ): Promise { try { From 587343cd951faa287b312e80fbfa79b157c348c9 Mon Sep 17 00:00:00 2001 From: Roberto Trevino Date: Tue, 20 Jun 2023 09:21:07 -0600 Subject: [PATCH 2/9] update tests --- ..._list_all_dynamic_alpha_ids_countries.json | 67 +++++++++++++++++ .../recording_can_manage_configuration.json | 72 ++++++++++--------- ..._can_list_all_preregistered_alpha_ids.json | 46 ++++++++++++ ...t_all_preregistered_alpha_ids_by_page.json | 46 ++++++++++++ ...all_preregistered_alpha_ids_countries.json | 54 ++++++++++++++ ..._list_all_dynamic_alpha_ids_countries.json | 58 +++++++++++++++ .../recording_can_manage_configuration.json | 72 ++++++++++--------- ..._can_list_all_preregistered_alpha_ids.json | 37 ++++++++++ ...t_all_preregistered_alpha_ids_by_page.json | 37 ++++++++++ ...all_preregistered_alpha_ids_countries.json | 45 ++++++++++++ .../test/internal/generated_client.spec.ts | 35 --------- ...lphaId.ts => preRegisteredAlphaId.spec.ts} | 0 12 files changed, 470 insertions(+), 99 deletions(-) create mode 100644 sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json create mode 100644 sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json create mode 100644 sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_by_page.json create mode 100644 sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json create mode 100644 sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json create mode 100644 sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json create mode 100644 sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_by_page.json create mode 100644 sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json rename sdk/communication/communication-alpha-ids/test/public/{preRegisteredAlphaId.ts => preRegisteredAlphaId.spec.ts} (100%) diff --git a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json new file mode 100644 index 000000000000..d2d7ac03c082 --- /dev/null +++ b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json @@ -0,0 +1,67 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/alphaIds/dynamic/countries?api-version=2023-07-12", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Tue, 20 Jun 2023 15:19:51 GMT", + "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "api-supported-versions": "2022-09-26-preview, 2023-07-12", + "Connection": "keep-alive", + "Content-Length": "115", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 20 Jun 2023 15:19:55 GMT", + "MS-CV": "4Q6Hre4jlEm/QhQRflqeDA.0", + "Strict-Transport-Security": "max-age=2592000", + "x-azure-ref": "20230620T151953Z-4v16pcke8d0f55s5uc5gugve9c00000001qg00000000rvfe", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1940ms" + }, + "ResponseBody": { + "countries": [ + "GB", + "AU", + "FR", + "CH", + "SE", + "IT", + "ES", + "DK", + "IE", + "PT", + "PL", + "AT", + "LT", + "LV", + "EE", + "HU", + "US", + "PR", + "CA", + "IN" + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_manage_configuration.json b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_manage_configuration.json index 02a22418e1d2..47161936442a 100644 --- a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_manage_configuration.json +++ b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_manage_configuration.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://endpoint/alphaIds/configuration?api-version=2022-09-26-preview", + "RequestUri": "https://endpoint/alphaIds/dynamic/configuration?api-version=2023-07-12", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -21,30 +21,32 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "JrNCayWTdjyW0IkLSnegu/ZtE/xRKwxrE4ojwpDzCio=", - "x-ms-date": "Wed, 17 May 2023 18:56:26 GMT", - "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.10.4 OS" + "x-ms-date": "Tue, 20 Jun 2023 15:19:47 GMT", + "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": { "enabled": true }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-09-26-preview", + "Accept-Ranges": "bytes", + "api-supported-versions": "2022-09-26-preview, 2023-07-12", + "Connection": "keep-alive", "Content-Length": "16", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 17 May 2023 18:56:28 GMT", - "MS-CV": "Ba0/TBglUUWG07us\u002Btv2Pw.0", + "Date": "Tue, 20 Jun 2023 15:19:50 GMT", + "MS-CV": "fUoObDgKJ0SdX\u002B9o/4WrKA.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0XCNlZAAAAAC8OU0OBB/BTbbJ8dmhR9AFREZXMzBFREdFMTYxOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "x-azure-ref": "20230620T151949Z-4v16pcke8d0f55s5uc5gugve9c00000001qg00000000rugc", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "965ms" + "X-Processing-Time": "779ms" }, "ResponseBody": { "enabled": true } }, { - "RequestUri": "https://endpoint/alphaIds/configuration?api-version=2022-09-26-preview", + "RequestUri": "https://endpoint/alphaIds/dynamic/configuration?api-version=2023-07-12", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -62,28 +64,30 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Wed, 17 May 2023 18:56:28 GMT", - "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.10.4 OS" + "x-ms-date": "Tue, 20 Jun 2023 15:19:48 GMT", + "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-09-26-preview", + "Accept-Ranges": "bytes", + "api-supported-versions": "2022-09-26-preview, 2023-07-12", + "Connection": "keep-alive", "Content-Length": "16", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 17 May 2023 18:56:29 GMT", - "MS-CV": "uYZslqCbMUCAajPb44ly7w.0", + "Date": "Tue, 20 Jun 2023 15:19:51 GMT", + "MS-CV": "7xFEdCYGtkO0NngpWKFo9Q.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0XSNlZAAAAADHvfDZ\u002B589TLT/Q89xv95HREZXMzBFREdFMTYxOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "x-azure-ref": "20230620T151950Z-4v16pcke8d0f55s5uc5gugve9c00000001qg00000000rusq", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "332ms" + "X-Processing-Time": "813ms" }, "ResponseBody": { "enabled": true } }, { - "RequestUri": "https://endpoint/alphaIds/configuration?api-version=2022-09-26-preview", + "RequestUri": "https://endpoint/alphaIds/dynamic/configuration?api-version=2023-07-12", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -103,30 +107,32 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "Ws8/93tEIGd7WSMHHzA/rKunqSc6NGKEpmeidd8yUUY=", - "x-ms-date": "Wed, 17 May 2023 18:56:28 GMT", - "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.10.4 OS" + "x-ms-date": "Tue, 20 Jun 2023 15:19:49 GMT", + "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": { "enabled": false }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-09-26-preview", + "Accept-Ranges": "bytes", + "api-supported-versions": "2022-09-26-preview, 2023-07-12", + "Connection": "keep-alive", "Content-Length": "17", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 17 May 2023 18:56:29 GMT", - "MS-CV": "y6tLhSN1ykSsJfrtl8e5NQ.0", + "Date": "Tue, 20 Jun 2023 15:19:52 GMT", + "MS-CV": "u5WZQlrHyUKbG8CAXQW5RQ.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0XSNlZAAAAAC9zjk7M2BZToNVVn/VAR7uREZXMzBFREdFMTYxOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "x-azure-ref": "20230620T151951Z-4v16pcke8d0f55s5uc5gugve9c00000001qg00000000ruz7", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "584ms" + "X-Processing-Time": "1016ms" }, "ResponseBody": { "enabled": false } }, { - "RequestUri": "https://endpoint/alphaIds/configuration?api-version=2022-09-26-preview", + "RequestUri": "https://endpoint/alphaIds/dynamic/configuration?api-version=2023-07-12", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -144,21 +150,23 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Wed, 17 May 2023 18:56:29 GMT", - "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.10.4 OS" + "x-ms-date": "Tue, 20 Jun 2023 15:19:50 GMT", + "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-09-26-preview", + "Accept-Ranges": "bytes", + "api-supported-versions": "2022-09-26-preview, 2023-07-12", + "Connection": "keep-alive", "Content-Length": "17", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 17 May 2023 18:56:30 GMT", - "MS-CV": "FePsUhv6iEqxU\u002BlPG2GREw.0", + "Date": "Tue, 20 Jun 2023 15:19:53 GMT", + "MS-CV": "YEAx0x6QN0ulFClA67W\u002Bhw.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0XiNlZAAAAACBVBjGgyzdQKmASRmwbhGZREZXMzBFREdFMTYxOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "x-azure-ref": "20230620T151952Z-4v16pcke8d0f55s5uc5gugve9c00000001qg00000000rv91", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "405ms" + "X-Processing-Time": "662ms" }, "ResponseBody": { "enabled": false diff --git a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json new file mode 100644 index 000000000000..b99d58c19c72 --- /dev/null +++ b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json @@ -0,0 +1,46 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/alphaIds?skip=0\u0026top=100\u0026api-version=2023-07-12", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Tue, 20 Jun 2023 15:19:53 GMT", + "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "api-supported-versions": "2022-09-26-preview, 2023-07-12", + "Connection": "keep-alive", + "Content-Length": "15", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 20 Jun 2023 15:19:55 GMT", + "MS-CV": "fmNrhQF6pkyRlx4EA/f31w.0", + "Strict-Transport-Security": "max-age=2592000", + "x-azure-ref": "20230620T151955Z-4v16pcke8d0f55s5uc5gugve9c00000001qg00000000rvze", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "299ms" + }, + "ResponseBody": { + "alphaIds": [] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_by_page.json b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_by_page.json new file mode 100644 index 000000000000..501823ad7d4b --- /dev/null +++ b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_by_page.json @@ -0,0 +1,46 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/alphaIds?skip=0\u0026top=100\u0026api-version=2023-07-12", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Tue, 20 Jun 2023 15:19:54 GMT", + "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "api-supported-versions": "2022-09-26-preview, 2023-07-12", + "Connection": "keep-alive", + "Content-Length": "15", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 20 Jun 2023 15:19:56 GMT", + "MS-CV": "S\u002BYJ/8pHR0ORLd6vvlG6XQ.0", + "Strict-Transport-Security": "max-age=2592000", + "x-azure-ref": "20230620T151955Z-4v16pcke8d0f55s5uc5gugve9c00000001qg00000000rw1y", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "300ms" + }, + "ResponseBody": { + "alphaIds": [] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json new file mode 100644 index 000000000000..b6fa6e89ed8e --- /dev/null +++ b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json @@ -0,0 +1,54 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/alphaIds/pre-registered/countries?api-version=2023-07-12", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Tue, 20 Jun 2023 15:19:54 GMT", + "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "api-supported-versions": "2022-09-26-preview, 2023-07-12", + "Connection": "keep-alive", + "Content-Length": "50", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 20 Jun 2023 15:19:57 GMT", + "MS-CV": "PGH5dUnpxEWx3mPtqOESZA.0", + "Strict-Transport-Security": "max-age=2592000", + "x-azure-ref": "20230620T151956Z-4v16pcke8d0f55s5uc5gugve9c00000001qg00000000rw51", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "856ms" + }, + "ResponseBody": { + "countries": [ + "NO", + "FI", + "RO", + "SK", + "SI", + "CZ", + "HR" + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json new file mode 100644 index 000000000000..2241023b82f3 --- /dev/null +++ b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json @@ -0,0 +1,58 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/alphaIds/dynamic/countries?api-version=2023-07-12", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Tue, 20 Jun 2023 15:19:28 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "api-supported-versions": "2022-09-26-preview, 2023-07-12", + "Connection": "keep-alive", + "Content-Length": "115", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 20 Jun 2023 15:19:31 GMT", + "MS-CV": "T5bn407lhkKEh5mz\u002B6COtA.0", + "Strict-Transport-Security": "max-age=2592000", + "x-azure-ref": "20230620T151930Z-61eagpmamh4yp7nzbxs6x2yz40000000013g000000009sxg", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "757ms" + }, + "ResponseBody": { + "countries": [ + "GB", + "AU", + "FR", + "CH", + "SE", + "IT", + "ES", + "DK", + "IE", + "PT", + "PL", + "AT", + "LT", + "LV", + "EE", + "HU", + "US", + "PR", + "CA", + "IN" + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_manage_configuration.json b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_manage_configuration.json index f92b7eea1ec3..0dbb480c79f2 100644 --- a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_manage_configuration.json +++ b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_manage_configuration.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://endpoint/alphaIds/configuration?api-version=2022-09-26-preview", + "RequestUri": "https://endpoint/alphaIds/dynamic/configuration?api-version=2023-07-12", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -10,62 +10,66 @@ "Connection": "keep-alive", "Content-Length": "16", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.10.4 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "JrNCayWTdjyW0IkLSnegu/ZtE/xRKwxrE4ojwpDzCio=", - "x-ms-date": "Wed, 17 May 2023 18:56:19 GMT" + "x-ms-date": "Tue, 20 Jun 2023 15:19:24 GMT" }, "RequestBody": { "enabled": true }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-09-26-preview", + "Accept-Ranges": "bytes", + "api-supported-versions": "2022-09-26-preview, 2023-07-12", + "Connection": "keep-alive", "Content-Length": "16", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 17 May 2023 18:56:20 GMT", - "MS-CV": "KqcGyYryOUq7/JiDkcE8sQ.0", + "Date": "Tue, 20 Jun 2023 15:19:28 GMT", + "MS-CV": "KvM6wrKEyECOPyS/BUAUHw.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0VCNlZAAAAABlpqY5wVxDR6IxOrjWguleREZXMzBFREdFMTYyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "x-azure-ref": "20230620T151926Z-61eagpmamh4yp7nzbxs6x2yz40000000013g000000009sh6", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "620ms" + "X-Processing-Time": "1522ms" }, "ResponseBody": { "enabled": true } }, { - "RequestUri": "https://endpoint/alphaIds/configuration?api-version=2022-09-26-preview", + "RequestUri": "https://endpoint/alphaIds/dynamic/configuration?api-version=2023-07-12", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.10.4 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Wed, 17 May 2023 18:56:20 GMT" + "x-ms-date": "Tue, 20 Jun 2023 15:19:26 GMT" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-09-26-preview", + "Accept-Ranges": "bytes", + "api-supported-versions": "2022-09-26-preview, 2023-07-12", + "Connection": "keep-alive", "Content-Length": "16", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 17 May 2023 18:56:21 GMT", - "MS-CV": "fDXbRyyrw0myHbVoHQqHmA.0", + "Date": "Tue, 20 Jun 2023 15:19:28 GMT", + "MS-CV": "SXOq9qIH5ke/lCqtCBuSlQ.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0VSNlZAAAAAAzrDTcuI65Spl\u002B77bOEpJQREZXMzBFREdFMTYyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "x-azure-ref": "20230620T151928Z-61eagpmamh4yp7nzbxs6x2yz40000000013g000000009sqn", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "293ms" + "X-Processing-Time": "600ms" }, "ResponseBody": { "enabled": true } }, { - "RequestUri": "https://endpoint/alphaIds/configuration?api-version=2022-09-26-preview", + "RequestUri": "https://endpoint/alphaIds/dynamic/configuration?api-version=2023-07-12", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -74,55 +78,59 @@ "Connection": "keep-alive", "Content-Length": "17", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.10.4 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "Ws8/93tEIGd7WSMHHzA/rKunqSc6NGKEpmeidd8yUUY=", - "x-ms-date": "Wed, 17 May 2023 18:56:20 GMT" + "x-ms-date": "Tue, 20 Jun 2023 15:19:27 GMT" }, "RequestBody": { "enabled": false }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-09-26-preview", + "Accept-Ranges": "bytes", + "api-supported-versions": "2022-09-26-preview, 2023-07-12", + "Connection": "keep-alive", "Content-Length": "17", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 17 May 2023 18:56:21 GMT", - "MS-CV": "7oXtV3ZoTEGJMsh1ql37kA.0", + "Date": "Tue, 20 Jun 2023 15:19:29 GMT", + "MS-CV": "sP6ESqfkDEy/\u002Bl9vdc0g0g.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0VSNlZAAAAAAGQ/8nNAADT4LfOxAd6y8YREZXMzBFREdFMTYyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "x-azure-ref": "20230620T151928Z-61eagpmamh4yp7nzbxs6x2yz40000000013g000000009ssy", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "398ms" + "X-Processing-Time": "691ms" }, "ResponseBody": { "enabled": false } }, { - "RequestUri": "https://endpoint/alphaIds/configuration?api-version=2022-09-26-preview", + "RequestUri": "https://endpoint/alphaIds/dynamic/configuration?api-version=2023-07-12", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.10.4 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Wed, 17 May 2023 18:56:21 GMT" + "x-ms-date": "Tue, 20 Jun 2023 15:19:27 GMT" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-09-26-preview", + "Accept-Ranges": "bytes", + "api-supported-versions": "2022-09-26-preview, 2023-07-12", + "Connection": "keep-alive", "Content-Length": "17", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 17 May 2023 18:56:21 GMT", - "MS-CV": "ikP0xR5/e0SXpb18E0BZ3A.0", + "Date": "Tue, 20 Jun 2023 15:19:30 GMT", + "MS-CV": "fuuiXxx6Nk6FZSblmMg\u002BNA.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0ViNlZAAAAACrmo8VjPsqRK1\u002BrC5p6lHhREZXMzBFREdFMTYyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "x-azure-ref": "20230620T151929Z-61eagpmamh4yp7nzbxs6x2yz40000000013g000000009sur", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "296ms" + "X-Processing-Time": "745ms" }, "ResponseBody": { "enabled": false diff --git a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json new file mode 100644 index 000000000000..8232180d7e1c --- /dev/null +++ b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json @@ -0,0 +1,37 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/alphaIds?skip=0\u0026top=100\u0026api-version=2023-07-12", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Tue, 20 Jun 2023 15:19:29 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "api-supported-versions": "2022-09-26-preview, 2023-07-12", + "Connection": "keep-alive", + "Content-Length": "15", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 20 Jun 2023 15:19:31 GMT", + "MS-CV": "pRDW41CJyEyVETwcXKrW/w.0", + "Strict-Transport-Security": "max-age=2592000", + "x-azure-ref": "20230620T151931Z-61eagpmamh4yp7nzbxs6x2yz40000000013g000000009sz9", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "291ms" + }, + "ResponseBody": { + "alphaIds": [] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_by_page.json b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_by_page.json new file mode 100644 index 000000000000..790f81fee3e0 --- /dev/null +++ b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_by_page.json @@ -0,0 +1,37 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/alphaIds?skip=0\u0026top=100\u0026api-version=2023-07-12", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Tue, 20 Jun 2023 15:19:29 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "api-supported-versions": "2022-09-26-preview, 2023-07-12", + "Connection": "keep-alive", + "Content-Length": "15", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 20 Jun 2023 15:19:43 GMT", + "MS-CV": "kVQXI7ltnk2dHZX8bUTInQ.0", + "Strict-Transport-Security": "max-age=2592000", + "x-azure-ref": "20230620T151931Z-61eagpmamh4yp7nzbxs6x2yz40000000013g000000009t07", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "11359ms" + }, + "ResponseBody": { + "alphaIds": [] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json new file mode 100644 index 000000000000..bc42ded3908a --- /dev/null +++ b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json @@ -0,0 +1,45 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/alphaIds/pre-registered/countries?api-version=2023-07-12", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Tue, 20 Jun 2023 15:19:41 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "api-supported-versions": "2022-09-26-preview, 2023-07-12", + "Connection": "keep-alive", + "Content-Length": "50", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 20 Jun 2023 15:19:44 GMT", + "MS-CV": "F1cbgUj4rUenh9RNoRNqLw.0", + "Strict-Transport-Security": "max-age=2592000", + "x-azure-ref": "20230620T151943Z-61eagpmamh4yp7nzbxs6x2yz40000000013g000000009u2r", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1005ms" + }, + "ResponseBody": { + "countries": [ + "NO", + "FI", + "RO", + "SK", + "SI", + "CZ", + "HR" + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-alpha-ids/test/internal/generated_client.spec.ts b/sdk/communication/communication-alpha-ids/test/internal/generated_client.spec.ts index d24e6bc092d4..b34a03ff28a8 100644 --- a/sdk/communication/communication-alpha-ids/test/internal/generated_client.spec.ts +++ b/sdk/communication/communication-alpha-ids/test/internal/generated_client.spec.ts @@ -112,39 +112,4 @@ describe("AlphaIdsGeneratedClient - constructor", function () { await client.alphaIdsOperations.upsertDynamicAlphaIdConfiguration(true); sinon.assert.calledOnce(spy); }); - - it("verify bearer policy exists without explicitly adding it", async function () { - const connectionString = `endpoint=${endpoint};accesskey=${accessKey}`; - const mockHttpClient = createMockHttpClient(); - const customHeaderPolicyName = "custom-header-policy"; - const customHeader = "alphaidsclient-headers-test-additional"; - const testPipeline = createEmptyPipeline(); - testPipeline.addPolicy(userAgentPolicy(customHeader, customHeaderPolicyName)); - const { url } = parseClientArguments(connectionString, {}); - const client = new AlphaIDsGeneratedClient(url, { - apiVersion: "customApiVersion", - httpClient: mockHttpClient, - pipeline: testPipeline, - endpoint: "https://contoso.spool.azure.local?param1=param1", - }); - const policies = client.pipeline.getOrderedPolicies(); - assert.isDefined(policies, "default pipeline should contain policies"); - // verify bearer token policy exists, after explicitly adding it - assert.isDefined( - policies.find((p) => p.name === bearerTokenAuthenticationPolicyName), - "pipeline should have bearerTokenAuthenticationPolicyName" - ); - assert.isDefined( - policies.find((p) => p.name === customHeaderPolicyName), - "pipeline should have customHeaderPolicyName" - ); - assert.isDefined( - policies.find((p) => p.name === "CustomApiVersionPolicy"), - "pipeline should have CustomApiVersionPolicy" - ); - - const spy = sinon.spy(mockHttpClient, "sendRequest"); - await client.alphaIdsOperations.upsertDynamicAlphaIdConfiguration(true); - sinon.assert.calledOnce(spy); - }); }); diff --git a/sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.ts b/sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.spec.ts similarity index 100% rename from sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.ts rename to sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.spec.ts From f66bf5a515a563e98aa135fc8c45e69bb23403ed Mon Sep 17 00:00:00 2001 From: Roberto Trevino Date: Fri, 23 Jun 2023 14:46:12 -0600 Subject: [PATCH 3/9] fix format --- .../src/alphaIdsClient.ts | 15 +++++++----- .../communication-alpha-ids/src/models.ts | 24 +++++++++++++------ .../test/public/dynamicAlphaId.spec.ts | 2 +- .../test/public/preRegisteredAlphaId.spec.ts | 3 +-- 4 files changed, 28 insertions(+), 16 deletions(-) diff --git a/sdk/communication/communication-alpha-ids/src/alphaIdsClient.ts b/sdk/communication/communication-alpha-ids/src/alphaIdsClient.ts index f47c80a018b5..f1e98a27295c 100644 --- a/sdk/communication/communication-alpha-ids/src/alphaIdsClient.ts +++ b/sdk/communication/communication-alpha-ids/src/alphaIdsClient.ts @@ -23,7 +23,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; /** * Client options used to configure the AlphaIdsClient API requests. */ -export interface AlphaIdsClientOptions extends CommonClientOptions { } +export interface AlphaIdsClientOptions extends CommonClientOptions {} const isAlphaIdsClientOptions = (options: any): options is AlphaIdsClientOptions => options && !isKeyCredential(options) && !isTokenCredential(options); @@ -68,7 +68,9 @@ export class AlphaIdsClient { this.client.pipeline.addPolicy(authPolicy); } - public getConfiguration(options: GetConfigurationOptions = {}): Promise { + public getConfiguration( + options: GetConfigurationOptions = {} + ): Promise { return tracingClient.withSpan( "AlphaIdsClient-getConfiguration", options, @@ -86,14 +88,15 @@ export class AlphaIdsClient { "AlphaIdsClient-upsertConfiguration", options, async (updatedOptions) => { - return this.client.alphaIdsOperations.upsertDynamicAlphaIdConfiguration(enabled, updatedOptions); + return this.client.alphaIdsOperations.upsertDynamicAlphaIdConfiguration( + enabled, + updatedOptions + ); } ); } - public listAlphaIds( - options: ListAlphaIdsOptions = {} - ): PagedAsyncIterableIterator { + public listAlphaIds(options: ListAlphaIdsOptions = {}): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan( "AlphaIdsClient-listAlphaIds", options diff --git a/sdk/communication/communication-alpha-ids/src/models.ts b/sdk/communication/communication-alpha-ids/src/models.ts index 3f453aa5c96b..dc142bacc2f1 100644 --- a/sdk/communication/communication-alpha-ids/src/models.ts +++ b/sdk/communication/communication-alpha-ids/src/models.ts @@ -5,31 +5,41 @@ import { OperationOptions } from "@azure/core-client"; import { AlphaIdsGetAlphaIdsOptionalParams, AlphaIdsGetDynamicAlphaIdCountriesOptionalParams, - AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams + AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams, } from "."; /** * Additional options for the Get Alpha ID Configuration request. */ -export interface GetConfigurationOptions extends OperationOptions { } +export interface GetConfigurationOptions extends OperationOptions {} /** * Additional options for the ListAlphaIds request. */ -export interface ListAlphaIdsOptions extends AlphaIdsGetAlphaIdsOptionalParams { } +export interface ListAlphaIdsOptions extends AlphaIdsGetAlphaIdsOptionalParams {} /** * Additional options for the GetDynamicAlphaIdCountries request. */ -export interface GetDynamicAlphaIdCountriesOptions extends AlphaIdsGetDynamicAlphaIdCountriesOptionalParams { } +export interface GetDynamicAlphaIdCountriesOptions + extends AlphaIdsGetDynamicAlphaIdCountriesOptionalParams {} /** * Additional options for the GetPreRegisteredAlphaIdCountries request. */ -export interface GetPreRegisteredAlphaIdCountriesOptions extends AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams { } +export interface GetPreRegisteredAlphaIdCountriesOptions + extends AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams {} /** * Additional options for the Upsert Alpha ID Configuration request. */ -export interface UpsertConfigurationOptions extends OperationOptions { } +export interface UpsertConfigurationOptions extends OperationOptions {} -export { DynamicAlphaIdConfiguration, AlphaIds, AlphaId, AlphaIdsGetAlphaIdsOptionalParams, AlphaIdsGetDynamicAlphaIdCountriesOptionalParams, AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams, Countries } from "./generated/src/models/"; +export { + DynamicAlphaIdConfiguration, + AlphaIds, + AlphaId, + AlphaIdsGetAlphaIdsOptionalParams, + AlphaIdsGetDynamicAlphaIdCountriesOptionalParams, + AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams, + Countries, +} from "./generated/src/models/"; diff --git a/sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts b/sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts index 43575fe575e2..565f559ac189 100644 --- a/sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts +++ b/sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts @@ -33,6 +33,6 @@ describe(`AlphaIdsClient - manage configuration`, function () { const countries = (await client.getDynamicAlphaIdCountries()).countries; countries?.forEach((countryCode) => { assert.isNotNull(countryCode); - }) + }); }).timeout(20000); }); diff --git a/sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.spec.ts b/sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.spec.ts index b07fbe5cf1ce..32061ad5fc5d 100644 --- a/sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.spec.ts +++ b/sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.spec.ts @@ -41,7 +41,6 @@ describe(`AlphaIdsClient - Preregistered Alpha Ids Operations`, function () { const countries = (await client.getPreRegisteredAlphaIdCountries()).countries; countries?.forEach((countryCode) => { assert.isNotNull(countryCode); - }) + }); }).timeout(20000); - }); From 9e351bf5574d12742c7759c78fcfc8dd6f2ea461 Mon Sep 17 00:00:00 2001 From: Roberto Trevino Date: Fri, 23 Jun 2023 19:12:18 -0600 Subject: [PATCH 4/9] add debug information to triage any errors --- .../test/public/dynamicAlphaId.spec.ts | 20 +++++++++++++++---- .../public/utils/alphaIdClientTestUtils.ts | 14 ++++++++++--- 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts b/sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts index 565f559ac189..ad296ae598b0 100644 --- a/sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts +++ b/sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts @@ -23,10 +23,22 @@ describe(`AlphaIdsClient - manage configuration`, function () { }); it("can manage configuration", async function () { - await ignoreSubscriptionNotEligibleError(() => client.upsertConfiguration(true), true); - await ignoreSubscriptionNotEligibleError(() => client.getConfiguration(), true); - await ignoreSubscriptionNotEligibleError(() => client.upsertConfiguration(false), false); - await ignoreSubscriptionNotEligibleError(() => client.getConfiguration(), false); + await ignoreSubscriptionNotEligibleError( + (operationOptions) => client.upsertConfiguration(true, operationOptions), + true + ); + await ignoreSubscriptionNotEligibleError( + (operationOptions) => client.getConfiguration(operationOptions), + true + ); + await ignoreSubscriptionNotEligibleError( + (operationOptions) => client.upsertConfiguration(false, operationOptions), + false + ); + await ignoreSubscriptionNotEligibleError( + (operationOptions) => client.getConfiguration(operationOptions), + false + ); }).timeout(15000); it("can list all dynamic alpha ids countries", async function () { diff --git a/sdk/communication/communication-alpha-ids/test/public/utils/alphaIdClientTestUtils.ts b/sdk/communication/communication-alpha-ids/test/public/utils/alphaIdClientTestUtils.ts index bd12df7ae415..0fdbb0e2011e 100644 --- a/sdk/communication/communication-alpha-ids/test/public/utils/alphaIdClientTestUtils.ts +++ b/sdk/communication/communication-alpha-ids/test/public/utils/alphaIdClientTestUtils.ts @@ -4,17 +4,25 @@ import { DynamicAlphaIdConfiguration } from "../../../src"; import { RestError } from "@azure/core-rest-pipeline"; import { assert } from "chai"; +import { FullOperationResponse, OperationOptions } from "@azure/core-client"; export async function ignoreSubscriptionNotEligibleError( - call: () => Promise, + call: (operationOptions: OperationOptions) => Promise, expectedConfiguration: boolean ): Promise { try { - const configuration = await call(); + let configurationResponse: FullOperationResponse | undefined; + const getConfigurationRequest: OperationOptions = { + onResponse: (response) => { + configurationResponse = response; + }, + }; + const configuration = await call(getConfigurationRequest); assert.isOk(configuration); assert.isTrue( configuration.enabled === expectedConfiguration, - `The expected configuration: ${expectedConfiguration} is different than the received configuration: ${configuration.enabled}` + `The expected configuration: ${expectedConfiguration.toString()} is different than the received configuration: ${configuration.enabled.toString()} + CV: ${configurationResponse?.headers.get("MS-CV")}` ); } catch (error) { if (isNotEligibleError(error)) { From 36276ff41b52f595970a57867d54aa7e2550ea6a Mon Sep 17 00:00:00 2001 From: Roberto Trevino Date: Fri, 23 Jun 2023 19:32:53 -0600 Subject: [PATCH 5/9] test pagination --- .../test/public/preRegisteredAlphaId.spec.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.spec.ts b/sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.spec.ts index 32061ad5fc5d..56f682bff718 100644 --- a/sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.spec.ts +++ b/sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.spec.ts @@ -22,20 +22,22 @@ describe(`AlphaIdsClient - Preregistered Alpha Ids Operations`, function () { }); it("can list all pre-registered alpha ids", async function () { + let totalItems = 0; for await (const alphaId of client.listAlphaIds()) { + totalItems++; assert.isNotNull(alphaId.value); } - }).timeout(20000); - it("can list all pre-registered alpha ids, by Page", async function () { - const pages = client.listAlphaIds().byPage(); + // now test using pagination + const itemsPerPage = totalItems > 1 ? Math.floor(totalItems / 2) : 1; + const pages = client.listAlphaIds({ top: itemsPerPage }).byPage(); for await (const page of pages) { // loop over each item in the page for (const alphaId of page) { assert.isNotNull(alphaId.value); } } - }).timeout(20000); + }).timeout(40000); it("can list all pre-registered alpha ids countries", async function () { const countries = (await client.getPreRegisteredAlphaIdCountries()).countries; From 6e09afa1479168a2ca09bbb2164576807f4bf2ed Mon Sep 17 00:00:00 2001 From: Roberto Trevino Date: Fri, 23 Jun 2023 20:06:17 -0600 Subject: [PATCH 6/9] update recordings --- ..._list_all_dynamic_alpha_ids_countries.json | 12 ++--- .../recording_can_manage_configuration.json | 48 ++++++++---------- ..._can_list_all_preregistered_alpha_ids.json | 49 ++++++++++++++++--- ...all_preregistered_alpha_ids_countries.json | 12 ++--- ..._list_all_dynamic_alpha_ids_countries.json | 12 ++--- .../recording_can_manage_configuration.json | 48 ++++++++---------- ..._can_list_all_preregistered_alpha_ids.json | 40 ++++++++++++--- ...all_preregistered_alpha_ids_countries.json | 12 ++--- 8 files changed, 137 insertions(+), 96 deletions(-) diff --git a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json index d2d7ac03c082..1172e21fdbb1 100644 --- a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json +++ b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json @@ -19,23 +19,21 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Tue, 20 Jun 2023 15:19:51 GMT", + "x-ms-date": "Sat, 24 Jun 2023 02:05:52 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Accept-Ranges": "bytes", "api-supported-versions": "2022-09-26-preview, 2023-07-12", - "Connection": "keep-alive", "Content-Length": "115", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 20 Jun 2023 15:19:55 GMT", - "MS-CV": "4Q6Hre4jlEm/QhQRflqeDA.0", + "Date": "Sat, 24 Jun 2023 02:05:51 GMT", + "MS-CV": "pKB8hK72CUS9H3cwbpZj7A.0", "Strict-Transport-Security": "max-age=2592000", - "x-azure-ref": "20230620T151953Z-4v16pcke8d0f55s5uc5gugve9c00000001qg00000000rvfe", + "X-Azure-Ref": "0gE\u002BWZAAAAAB3jn\u002Bt9tmcS6lhEewsSOQEREZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1940ms" + "X-Processing-Time": "277ms" }, "ResponseBody": { "countries": [ diff --git a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_manage_configuration.json b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_manage_configuration.json index 47161936442a..637fba1e5713 100644 --- a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_manage_configuration.json +++ b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_manage_configuration.json @@ -21,7 +21,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "JrNCayWTdjyW0IkLSnegu/ZtE/xRKwxrE4ojwpDzCio=", - "x-ms-date": "Tue, 20 Jun 2023 15:19:47 GMT", + "x-ms-date": "Sat, 24 Jun 2023 02:05:49 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": { @@ -29,17 +29,15 @@ }, "StatusCode": 200, "ResponseHeaders": { - "Accept-Ranges": "bytes", "api-supported-versions": "2022-09-26-preview, 2023-07-12", - "Connection": "keep-alive", "Content-Length": "16", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 20 Jun 2023 15:19:50 GMT", - "MS-CV": "fUoObDgKJ0SdX\u002B9o/4WrKA.0", + "Date": "Sat, 24 Jun 2023 02:05:50 GMT", + "MS-CV": "b9ADYSxA30ax6BU0kGN44w.0", "Strict-Transport-Security": "max-age=2592000", - "x-azure-ref": "20230620T151949Z-4v16pcke8d0f55s5uc5gugve9c00000001qg00000000rugc", + "X-Azure-Ref": "0fU\u002BWZAAAAADVyLj\u002Bu6/uSLvyBaLYmvodREZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "779ms" + "X-Processing-Time": "642ms" }, "ResponseBody": { "enabled": true @@ -64,23 +62,21 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Tue, 20 Jun 2023 15:19:48 GMT", + "x-ms-date": "Sat, 24 Jun 2023 02:05:50 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Accept-Ranges": "bytes", "api-supported-versions": "2022-09-26-preview, 2023-07-12", - "Connection": "keep-alive", "Content-Length": "16", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 20 Jun 2023 15:19:51 GMT", - "MS-CV": "7xFEdCYGtkO0NngpWKFo9Q.0", + "Date": "Sat, 24 Jun 2023 02:05:50 GMT", + "MS-CV": "uaoNxFYLNUy7B2lswXVIDQ.0", "Strict-Transport-Security": "max-age=2592000", - "x-azure-ref": "20230620T151950Z-4v16pcke8d0f55s5uc5gugve9c00000001qg00000000rusq", + "X-Azure-Ref": "0fk\u002BWZAAAAAAk0jj10ou2S5T6c550qQWiREZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "813ms" + "X-Processing-Time": "249ms" }, "ResponseBody": { "enabled": true @@ -107,7 +103,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "Ws8/93tEIGd7WSMHHzA/rKunqSc6NGKEpmeidd8yUUY=", - "x-ms-date": "Tue, 20 Jun 2023 15:19:49 GMT", + "x-ms-date": "Sat, 24 Jun 2023 02:05:51 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": { @@ -115,17 +111,15 @@ }, "StatusCode": 200, "ResponseHeaders": { - "Accept-Ranges": "bytes", "api-supported-versions": "2022-09-26-preview, 2023-07-12", - "Connection": "keep-alive", "Content-Length": "17", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 20 Jun 2023 15:19:52 GMT", - "MS-CV": "u5WZQlrHyUKbG8CAXQW5RQ.0", + "Date": "Sat, 24 Jun 2023 02:05:51 GMT", + "MS-CV": "cMhU2oAQKESce/4rb/9AlA.0", "Strict-Transport-Security": "max-age=2592000", - "x-azure-ref": "20230620T151951Z-4v16pcke8d0f55s5uc5gugve9c00000001qg00000000ruz7", + "X-Azure-Ref": "0f0\u002BWZAAAAAB3K7IUdV1sS4UPWZRHvakpREZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1016ms" + "X-Processing-Time": "389ms" }, "ResponseBody": { "enabled": false @@ -150,23 +144,21 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Tue, 20 Jun 2023 15:19:50 GMT", + "x-ms-date": "Sat, 24 Jun 2023 02:05:51 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Accept-Ranges": "bytes", "api-supported-versions": "2022-09-26-preview, 2023-07-12", - "Connection": "keep-alive", "Content-Length": "17", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 20 Jun 2023 15:19:53 GMT", - "MS-CV": "YEAx0x6QN0ulFClA67W\u002Bhw.0", + "Date": "Sat, 24 Jun 2023 02:05:51 GMT", + "MS-CV": "FZKYuEwdmkOtqotlr0FWhg.0", "Strict-Transport-Security": "max-age=2592000", - "x-azure-ref": "20230620T151952Z-4v16pcke8d0f55s5uc5gugve9c00000001qg00000000rv91", + "X-Azure-Ref": "0f0\u002BWZAAAAADuiEk/G2\u002BVTLqPGF0c5v1MREZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "662ms" + "X-Processing-Time": "275ms" }, "ResponseBody": { "enabled": false diff --git a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json index b99d58c19c72..ce74a7687a22 100644 --- a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json +++ b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json @@ -19,23 +19,60 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Tue, 20 Jun 2023 15:19:53 GMT", + "x-ms-date": "Sat, 24 Jun 2023 02:05:52 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Accept-Ranges": "bytes", "api-supported-versions": "2022-09-26-preview, 2023-07-12", + "Content-Length": "15", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 24 Jun 2023 02:05:52 GMT", + "MS-CV": "6feg2XXLAUGrru3q9Y/P/A.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0gE\u002BWZAAAAAA8hUbHJoC/S4HyrwPmWdc4REZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "233ms" + }, + "ResponseBody": { + "alphaIds": [] + } + }, + { + "RequestUri": "https://endpoint/alphaIds?skip=0\u0026top=1\u0026api-version=2023-07-12", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Sat, 24 Jun 2023 02:05:52 GMT", + "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "15", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 20 Jun 2023 15:19:55 GMT", - "MS-CV": "fmNrhQF6pkyRlx4EA/f31w.0", + "Date": "Sat, 24 Jun 2023 02:05:52 GMT", + "MS-CV": "gjDzlOVBqUiDOXXvGZ2AHA.0", "Strict-Transport-Security": "max-age=2592000", - "x-azure-ref": "20230620T151955Z-4v16pcke8d0f55s5uc5gugve9c00000001qg00000000rvze", + "X-Azure-Ref": "0gE\u002BWZAAAAACCf\u002Bn5dfJSRJ1bYo7VtsK9REZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "299ms" + "X-Processing-Time": "185ms" }, "ResponseBody": { "alphaIds": [] diff --git a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json index b6fa6e89ed8e..4d8598f4df5b 100644 --- a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json +++ b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json @@ -19,23 +19,21 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Tue, 20 Jun 2023 15:19:54 GMT", + "x-ms-date": "Sat, 24 Jun 2023 02:05:53 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Accept-Ranges": "bytes", "api-supported-versions": "2022-09-26-preview, 2023-07-12", - "Connection": "keep-alive", "Content-Length": "50", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 20 Jun 2023 15:19:57 GMT", - "MS-CV": "PGH5dUnpxEWx3mPtqOESZA.0", + "Date": "Sat, 24 Jun 2023 02:05:53 GMT", + "MS-CV": "6ZkiVR1Lo0e5UOT91rahrg.0", "Strict-Transport-Security": "max-age=2592000", - "x-azure-ref": "20230620T151956Z-4v16pcke8d0f55s5uc5gugve9c00000001qg00000000rw51", + "X-Azure-Ref": "0gU\u002BWZAAAAACSHsCk3DvJTpGleVMZTqdkREZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "856ms" + "X-Processing-Time": "327ms" }, "ResponseBody": { "countries": [ diff --git a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json index 2241023b82f3..257e01bac73e 100644 --- a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json +++ b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json @@ -11,22 +11,20 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Tue, 20 Jun 2023 15:19:28 GMT" + "x-ms-date": "Sat, 24 Jun 2023 02:05:43 GMT" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Accept-Ranges": "bytes", "api-supported-versions": "2022-09-26-preview, 2023-07-12", - "Connection": "keep-alive", "Content-Length": "115", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 20 Jun 2023 15:19:31 GMT", - "MS-CV": "T5bn407lhkKEh5mz\u002B6COtA.0", + "Date": "Sat, 24 Jun 2023 02:05:43 GMT", + "MS-CV": "\u002BBEG0hcGykWFzono/pO8pA.0", "Strict-Transport-Security": "max-age=2592000", - "x-azure-ref": "20230620T151930Z-61eagpmamh4yp7nzbxs6x2yz40000000013g000000009sxg", + "X-Azure-Ref": "0d0\u002BWZAAAAABRK3lJhCBiS7eFSa\u002BPctb7REZXMzBFREdFMTUxOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "757ms" + "X-Processing-Time": "339ms" }, "ResponseBody": { "countries": [ diff --git a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_manage_configuration.json b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_manage_configuration.json index 0dbb480c79f2..b9a1c175fa6d 100644 --- a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_manage_configuration.json +++ b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_manage_configuration.json @@ -13,24 +13,22 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "JrNCayWTdjyW0IkLSnegu/ZtE/xRKwxrE4ojwpDzCio=", - "x-ms-date": "Tue, 20 Jun 2023 15:19:24 GMT" + "x-ms-date": "Sat, 24 Jun 2023 02:05:41 GMT" }, "RequestBody": { "enabled": true }, "StatusCode": 200, "ResponseHeaders": { - "Accept-Ranges": "bytes", "api-supported-versions": "2022-09-26-preview, 2023-07-12", - "Connection": "keep-alive", "Content-Length": "16", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 20 Jun 2023 15:19:28 GMT", - "MS-CV": "KvM6wrKEyECOPyS/BUAUHw.0", + "Date": "Sat, 24 Jun 2023 02:05:42 GMT", + "MS-CV": "EBHKADgJuEC/GEBNDrp08A.0", "Strict-Transport-Security": "max-age=2592000", - "x-azure-ref": "20230620T151926Z-61eagpmamh4yp7nzbxs6x2yz40000000013g000000009sh6", + "X-Azure-Ref": "0dU\u002BWZAAAAADT\u002BXmFdV7fSaB9byxX63ntREZXMzBFREdFMTUxOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1522ms" + "X-Processing-Time": "250ms" }, "ResponseBody": { "enabled": true @@ -47,22 +45,20 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Tue, 20 Jun 2023 15:19:26 GMT" + "x-ms-date": "Sat, 24 Jun 2023 02:05:42 GMT" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Accept-Ranges": "bytes", "api-supported-versions": "2022-09-26-preview, 2023-07-12", - "Connection": "keep-alive", "Content-Length": "16", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 20 Jun 2023 15:19:28 GMT", - "MS-CV": "SXOq9qIH5ke/lCqtCBuSlQ.0", + "Date": "Sat, 24 Jun 2023 02:05:42 GMT", + "MS-CV": "AP1vk5FU90CuUAUIlPMqCw.0", "Strict-Transport-Security": "max-age=2592000", - "x-azure-ref": "20230620T151928Z-61eagpmamh4yp7nzbxs6x2yz40000000013g000000009sqn", + "X-Azure-Ref": "0dk\u002BWZAAAAADoHC5QSIkQRLTyBaOsNiTlREZXMzBFREdFMTUxOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "600ms" + "X-Processing-Time": "164ms" }, "ResponseBody": { "enabled": true @@ -81,24 +77,22 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "Ws8/93tEIGd7WSMHHzA/rKunqSc6NGKEpmeidd8yUUY=", - "x-ms-date": "Tue, 20 Jun 2023 15:19:27 GMT" + "x-ms-date": "Sat, 24 Jun 2023 02:05:42 GMT" }, "RequestBody": { "enabled": false }, "StatusCode": 200, "ResponseHeaders": { - "Accept-Ranges": "bytes", "api-supported-versions": "2022-09-26-preview, 2023-07-12", - "Connection": "keep-alive", "Content-Length": "17", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 20 Jun 2023 15:19:29 GMT", - "MS-CV": "sP6ESqfkDEy/\u002Bl9vdc0g0g.0", + "Date": "Sat, 24 Jun 2023 02:05:42 GMT", + "MS-CV": "YBrnZy7MGkC8qQbbql8OnA.0", "Strict-Transport-Security": "max-age=2592000", - "x-azure-ref": "20230620T151928Z-61eagpmamh4yp7nzbxs6x2yz40000000013g000000009ssy", + "X-Azure-Ref": "0dk\u002BWZAAAAADamXOxKMruSZfZKY1U9A3LREZXMzBFREdFMTUxOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "691ms" + "X-Processing-Time": "255ms" }, "ResponseBody": { "enabled": false @@ -115,22 +109,20 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Tue, 20 Jun 2023 15:19:27 GMT" + "x-ms-date": "Sat, 24 Jun 2023 02:05:42 GMT" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Accept-Ranges": "bytes", "api-supported-versions": "2022-09-26-preview, 2023-07-12", - "Connection": "keep-alive", "Content-Length": "17", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 20 Jun 2023 15:19:30 GMT", - "MS-CV": "fuuiXxx6Nk6FZSblmMg\u002BNA.0", + "Date": "Sat, 24 Jun 2023 02:05:43 GMT", + "MS-CV": "zWSRjTuu1EWOTtfNTKmrRw.0", "Strict-Transport-Security": "max-age=2592000", - "x-azure-ref": "20230620T151929Z-61eagpmamh4yp7nzbxs6x2yz40000000013g000000009sur", + "X-Azure-Ref": "0d0\u002BWZAAAAADmkZMvtjvoQ7RuGYLoU3\u002BUREZXMzBFREdFMTUxOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "745ms" + "X-Processing-Time": "219ms" }, "ResponseBody": { "enabled": false diff --git a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json index 8232180d7e1c..58655bd51a4e 100644 --- a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json +++ b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json @@ -11,22 +11,50 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Tue, 20 Jun 2023 15:19:29 GMT" + "x-ms-date": "Sat, 24 Jun 2023 02:05:43 GMT" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Accept-Ranges": "bytes", "api-supported-versions": "2022-09-26-preview, 2023-07-12", + "Content-Length": "15", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 24 Jun 2023 02:05:43 GMT", + "MS-CV": "tCSqDlBAVkOGjuvBYjf4Lw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0d0\u002BWZAAAAAAd1d\u002B/pFUhS7ju5QcCUFX5REZXMzBFREdFMTUxOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "128ms" + }, + "ResponseBody": { + "alphaIds": [] + } + }, + { + "RequestUri": "https://endpoint/alphaIds?skip=0\u0026top=1\u0026api-version=2023-07-12", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Sat, 24 Jun 2023 02:05:44 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "15", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 20 Jun 2023 15:19:31 GMT", - "MS-CV": "pRDW41CJyEyVETwcXKrW/w.0", + "Date": "Sat, 24 Jun 2023 02:05:44 GMT", + "MS-CV": "Eh4saENc4UqjXC0V\u002Bu2/PA.0", "Strict-Transport-Security": "max-age=2592000", - "x-azure-ref": "20230620T151931Z-61eagpmamh4yp7nzbxs6x2yz40000000013g000000009sz9", + "X-Azure-Ref": "0eE\u002BWZAAAAAAPMgjFMnHzTZ/\u002BWI\u002BLMkb9REZXMzBFREdFMTUxOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "291ms" + "X-Processing-Time": "135ms" }, "ResponseBody": { "alphaIds": [] diff --git a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json index bc42ded3908a..b643c3b7e105 100644 --- a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json +++ b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json @@ -11,22 +11,20 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Tue, 20 Jun 2023 15:19:41 GMT" + "x-ms-date": "Sat, 24 Jun 2023 02:05:44 GMT" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Accept-Ranges": "bytes", "api-supported-versions": "2022-09-26-preview, 2023-07-12", - "Connection": "keep-alive", "Content-Length": "50", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 20 Jun 2023 15:19:44 GMT", - "MS-CV": "F1cbgUj4rUenh9RNoRNqLw.0", + "Date": "Sat, 24 Jun 2023 02:05:44 GMT", + "MS-CV": "C9PiuMzPYkS0eXNzmzPnog.0", "Strict-Transport-Security": "max-age=2592000", - "x-azure-ref": "20230620T151943Z-61eagpmamh4yp7nzbxs6x2yz40000000013g000000009u2r", + "X-Azure-Ref": "0eE\u002BWZAAAAADxEy9PXOSfRItyqM9qpXUqREZXMzBFREdFMTUxOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1005ms" + "X-Processing-Time": "369ms" }, "ResponseBody": { "countries": [ From b641925388fcc2ee86dca68c891fe710e8070718 Mon Sep 17 00:00:00 2001 From: Roberto Trevino Date: Mon, 26 Jun 2023 11:54:16 -0600 Subject: [PATCH 7/9] change naming convention --- .../communication-alpha-ids/CHANGELOG.md | 2 + ..._list_all_dynamic_alpha_ids_countries.json | 10 ++--- .../recording_can_manage_configuration.json | 38 ++++++++-------- ..._can_list_all_preregistered_alpha_ids.json | 20 ++++----- ...all_preregistered_alpha_ids_countries.json | 10 ++--- ..._list_all_dynamic_alpha_ids_countries.json | 10 ++--- .../recording_can_manage_configuration.json | 40 ++++++++--------- ..._can_list_all_preregistered_alpha_ids.json | 20 ++++----- ...all_preregistered_alpha_ids_countries.json | 10 ++--- .../review/communication-alpha-ids.api.md | 8 ++-- .../samples-dev/getConfiguration.ts | 3 +- .../src/alphaIdsClient.ts | 6 +-- .../test/internal/headers.spec.ts | 8 ++-- .../test/public/dynamicAlphaId.spec.ts | 24 ++++++---- .../test/public/preRegisteredAlphaId.spec.ts | 4 +- .../public/utils/alphaIdClientTestUtils.ts | 45 ++++++------------- 16 files changed, 124 insertions(+), 134 deletions(-) diff --git a/sdk/communication/communication-alpha-ids/CHANGELOG.md b/sdk/communication/communication-alpha-ids/CHANGELOG.md index 33a6c8b38921..5bc3c300f308 100644 --- a/sdk/communication/communication-alpha-ids/CHANGELOG.md +++ b/sdk/communication/communication-alpha-ids/CHANGELOG.md @@ -4,6 +4,8 @@ ### Features Added +- APIs for querying and managing the usage of Pre-registered Alpha IDs + ### Breaking Changes ### Bugs Fixed diff --git a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json index 1172e21fdbb1..42c6da675aa5 100644 --- a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json +++ b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json @@ -19,7 +19,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Sat, 24 Jun 2023 02:05:52 GMT", + "x-ms-date": "Mon, 26 Jun 2023 17:45:19 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, @@ -28,12 +28,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "115", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 24 Jun 2023 02:05:51 GMT", - "MS-CV": "pKB8hK72CUS9H3cwbpZj7A.0", + "Date": "Mon, 26 Jun 2023 17:45:21 GMT", + "MS-CV": "2WIObgoTfkeaF\u002Bb\u002B4lCVqA.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0gE\u002BWZAAAAAB3jn\u002Bt9tmcS6lhEewsSOQEREZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0sM6ZZAAAAAAtIp3PcJ48T7/08bD1qLa2REZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "277ms" + "X-Processing-Time": "332ms" }, "ResponseBody": { "countries": [ diff --git a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_manage_configuration.json b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_manage_configuration.json index 637fba1e5713..23823970d759 100644 --- a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_manage_configuration.json +++ b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_manage_configuration.json @@ -21,7 +21,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "JrNCayWTdjyW0IkLSnegu/ZtE/xRKwxrE4ojwpDzCio=", - "x-ms-date": "Sat, 24 Jun 2023 02:05:49 GMT", + "x-ms-date": "Mon, 26 Jun 2023 17:45:15 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": { @@ -32,12 +32,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "16", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 24 Jun 2023 02:05:50 GMT", - "MS-CV": "b9ADYSxA30ax6BU0kGN44w.0", + "Date": "Mon, 26 Jun 2023 17:45:17 GMT", + "MS-CV": "p6PWJy7GIk24B63LnrS72A.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0fU\u002BWZAAAAADVyLj\u002Bu6/uSLvyBaLYmvodREZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0rc6ZZAAAAABnQC/GXvwjT4h\u002BYbibaiK8REZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "642ms" + "X-Processing-Time": "513ms" }, "ResponseBody": { "enabled": true @@ -62,7 +62,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Sat, 24 Jun 2023 02:05:50 GMT", + "x-ms-date": "Mon, 26 Jun 2023 17:45:17 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, @@ -71,12 +71,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "16", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 24 Jun 2023 02:05:50 GMT", - "MS-CV": "uaoNxFYLNUy7B2lswXVIDQ.0", + "Date": "Mon, 26 Jun 2023 17:45:18 GMT", + "MS-CV": "/CxJL\u002BtU6EmH/qr/\u002BH7C9g.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0fk\u002BWZAAAAAAk0jj10ou2S5T6c550qQWiREZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0rs6ZZAAAAAAQmUplW/9NQI3EWiUpSiddREZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "249ms" + "X-Processing-Time": "251ms" }, "ResponseBody": { "enabled": true @@ -103,7 +103,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "Ws8/93tEIGd7WSMHHzA/rKunqSc6NGKEpmeidd8yUUY=", - "x-ms-date": "Sat, 24 Jun 2023 02:05:51 GMT", + "x-ms-date": "Mon, 26 Jun 2023 17:45:18 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": { @@ -114,12 +114,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "17", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 24 Jun 2023 02:05:51 GMT", - "MS-CV": "cMhU2oAQKESce/4rb/9AlA.0", + "Date": "Mon, 26 Jun 2023 17:45:19 GMT", + "MS-CV": "DLakwlUzf0WJK9f18xCTIA.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0f0\u002BWZAAAAAB3K7IUdV1sS4UPWZRHvakpREZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0r86ZZAAAAADDfzprzNM6QIP5Vhivu3x4REZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "389ms" + "X-Processing-Time": "256ms" }, "ResponseBody": { "enabled": false @@ -144,7 +144,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Sat, 24 Jun 2023 02:05:51 GMT", + "x-ms-date": "Mon, 26 Jun 2023 17:45:19 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, @@ -153,10 +153,10 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "17", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 24 Jun 2023 02:05:51 GMT", - "MS-CV": "FZKYuEwdmkOtqotlr0FWhg.0", + "Date": "Mon, 26 Jun 2023 17:45:20 GMT", + "MS-CV": "oF5wBGzqUE2spC/bBzTNOQ.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0f0\u002BWZAAAAADuiEk/G2\u002BVTLqPGF0c5v1MREZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0sM6ZZAAAAAAp6tL3kjNRSpZjX5MQUyC5REZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", "X-Processing-Time": "275ms" }, diff --git a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json index ce74a7687a22..08e2785d6ad5 100644 --- a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json +++ b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json @@ -19,7 +19,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Sat, 24 Jun 2023 02:05:52 GMT", + "x-ms-date": "Mon, 26 Jun 2023 17:45:20 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, @@ -28,12 +28,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "15", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 24 Jun 2023 02:05:52 GMT", - "MS-CV": "6feg2XXLAUGrru3q9Y/P/A.0", + "Date": "Mon, 26 Jun 2023 17:45:21 GMT", + "MS-CV": "oY344O5YM0OF3832t/1YoA.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0gE\u002BWZAAAAAA8hUbHJoC/S4HyrwPmWdc4REZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0sc6ZZAAAAACBiqYWWweARoFzb12NwjEFREZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "233ms" + "X-Processing-Time": "194ms" }, "ResponseBody": { "alphaIds": [] @@ -58,7 +58,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Sat, 24 Jun 2023 02:05:52 GMT", + "x-ms-date": "Mon, 26 Jun 2023 17:45:20 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, @@ -67,12 +67,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "15", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 24 Jun 2023 02:05:52 GMT", - "MS-CV": "gjDzlOVBqUiDOXXvGZ2AHA.0", + "Date": "Mon, 26 Jun 2023 17:45:21 GMT", + "MS-CV": "XGTei2OmikS5vEsvv0kVXg.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0gE\u002BWZAAAAACCf\u002Bn5dfJSRJ1bYo7VtsK9REZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0sc6ZZAAAAAD50uF5cCMRR5FtJLvCXPiQREZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "185ms" + "X-Processing-Time": "126ms" }, "ResponseBody": { "alphaIds": [] diff --git a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json index 4d8598f4df5b..6b9a81c4c082 100644 --- a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json +++ b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json @@ -19,7 +19,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Sat, 24 Jun 2023 02:05:53 GMT", + "x-ms-date": "Mon, 26 Jun 2023 17:45:20 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, @@ -28,12 +28,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "50", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 24 Jun 2023 02:05:53 GMT", - "MS-CV": "6ZkiVR1Lo0e5UOT91rahrg.0", + "Date": "Mon, 26 Jun 2023 17:45:22 GMT", + "MS-CV": "tHC6SBRQAEOiYKGZGeVPoQ.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0gU\u002BWZAAAAACSHsCk3DvJTpGleVMZTqdkREZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0sc6ZZAAAAAALzEFTjEvDTpZA6nnlnrBhREZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "327ms" + "X-Processing-Time": "276ms" }, "ResponseBody": { "countries": [ diff --git a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json index 257e01bac73e..94f9b977015d 100644 --- a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json +++ b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json @@ -11,7 +11,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Sat, 24 Jun 2023 02:05:43 GMT" + "x-ms-date": "Mon, 26 Jun 2023 17:45:07 GMT" }, "RequestBody": null, "StatusCode": 200, @@ -19,12 +19,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "115", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 24 Jun 2023 02:05:43 GMT", - "MS-CV": "\u002BBEG0hcGykWFzono/pO8pA.0", + "Date": "Mon, 26 Jun 2023 17:45:08 GMT", + "MS-CV": "3/f\u002BqhulokKuJE4ES3DuTQ.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0d0\u002BWZAAAAABRK3lJhCBiS7eFSa\u002BPctb7REZXMzBFREdFMTUxOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0pM6ZZAAAAAC3lD8IwAFZQI58s1gcu8N6REZXMzBFREdFMTUxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "339ms" + "X-Processing-Time": "306ms" }, "ResponseBody": { "countries": [ diff --git a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_manage_configuration.json b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_manage_configuration.json index b9a1c175fa6d..e3fd8fcd7893 100644 --- a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_manage_configuration.json +++ b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_manage_configuration.json @@ -13,7 +13,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "JrNCayWTdjyW0IkLSnegu/ZtE/xRKwxrE4ojwpDzCio=", - "x-ms-date": "Sat, 24 Jun 2023 02:05:41 GMT" + "x-ms-date": "Mon, 26 Jun 2023 17:45:03 GMT" }, "RequestBody": { "enabled": true @@ -23,12 +23,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "16", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 24 Jun 2023 02:05:42 GMT", - "MS-CV": "EBHKADgJuEC/GEBNDrp08A.0", + "Date": "Mon, 26 Jun 2023 17:45:04 GMT", + "MS-CV": "302qKbixM0KKRSBqY/A7YQ.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0dU\u002BWZAAAAADT\u002BXmFdV7fSaB9byxX63ntREZXMzBFREdFMTUxOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0oM6ZZAAAAABAMghkKwgTTaL\u002BwretOaOwREZXMzBFREdFMTUxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "250ms" + "X-Processing-Time": "348ms" }, "ResponseBody": { "enabled": true @@ -45,7 +45,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Sat, 24 Jun 2023 02:05:42 GMT" + "x-ms-date": "Mon, 26 Jun 2023 17:45:05 GMT" }, "RequestBody": null, "StatusCode": 200, @@ -53,12 +53,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "16", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 24 Jun 2023 02:05:42 GMT", - "MS-CV": "AP1vk5FU90CuUAUIlPMqCw.0", + "Date": "Mon, 26 Jun 2023 17:45:05 GMT", + "MS-CV": "rWfNoxyqlkOVDxvASj/M2g.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0dk\u002BWZAAAAADoHC5QSIkQRLTyBaOsNiTlREZXMzBFREdFMTUxOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0os6ZZAAAAADJQhO670OZQqf694NV1X51REZXMzBFREdFMTUxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "164ms" + "X-Processing-Time": "258ms" }, "ResponseBody": { "enabled": true @@ -77,7 +77,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "Ws8/93tEIGd7WSMHHzA/rKunqSc6NGKEpmeidd8yUUY=", - "x-ms-date": "Sat, 24 Jun 2023 02:05:42 GMT" + "x-ms-date": "Mon, 26 Jun 2023 17:45:05 GMT" }, "RequestBody": { "enabled": false @@ -87,12 +87,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "17", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 24 Jun 2023 02:05:42 GMT", - "MS-CV": "YBrnZy7MGkC8qQbbql8OnA.0", + "Date": "Mon, 26 Jun 2023 17:45:06 GMT", + "MS-CV": "Km\u002BncYbHHUmmQxOYKN1M6g.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0dk\u002BWZAAAAADamXOxKMruSZfZKY1U9A3LREZXMzBFREdFMTUxOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0os6ZZAAAAACHcOTRuDvARYHCLfe5jVgXREZXMzBFREdFMTUxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "255ms" + "X-Processing-Time": "373ms" }, "ResponseBody": { "enabled": false @@ -109,7 +109,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Sat, 24 Jun 2023 02:05:42 GMT" + "x-ms-date": "Mon, 26 Jun 2023 17:45:06 GMT" }, "RequestBody": null, "StatusCode": 200, @@ -117,12 +117,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "17", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 24 Jun 2023 02:05:43 GMT", - "MS-CV": "zWSRjTuu1EWOTtfNTKmrRw.0", + "Date": "Mon, 26 Jun 2023 17:45:07 GMT", + "MS-CV": "tQoGkrdon06JkqTxsDWo4A.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0d0\u002BWZAAAAADmkZMvtjvoQ7RuGYLoU3\u002BUREZXMzBFREdFMTUxOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0o86ZZAAAAABiyHXhiHHtTKlu52CFgKjkREZXMzBFREdFMTUxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "219ms" + "X-Processing-Time": "260ms" }, "ResponseBody": { "enabled": false diff --git a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json index 58655bd51a4e..f0d4652e6282 100644 --- a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json +++ b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json @@ -11,7 +11,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Sat, 24 Jun 2023 02:05:43 GMT" + "x-ms-date": "Mon, 26 Jun 2023 17:45:07 GMT" }, "RequestBody": null, "StatusCode": 200, @@ -19,12 +19,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "15", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 24 Jun 2023 02:05:43 GMT", - "MS-CV": "tCSqDlBAVkOGjuvBYjf4Lw.0", + "Date": "Mon, 26 Jun 2023 17:45:08 GMT", + "MS-CV": "NO6Fp1k8vkSJTiPXowY6VQ.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0d0\u002BWZAAAAAAd1d\u002B/pFUhS7ju5QcCUFX5REZXMzBFREdFMTUxOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0pM6ZZAAAAAB0X6MudaPtQ7ldc76Li1SRREZXMzBFREdFMTUxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "128ms" + "X-Processing-Time": "195ms" }, "ResponseBody": { "alphaIds": [] @@ -41,7 +41,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Sat, 24 Jun 2023 02:05:44 GMT" + "x-ms-date": "Mon, 26 Jun 2023 17:45:07 GMT" }, "RequestBody": null, "StatusCode": 200, @@ -49,12 +49,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "15", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 24 Jun 2023 02:05:44 GMT", - "MS-CV": "Eh4saENc4UqjXC0V\u002Bu2/PA.0", + "Date": "Mon, 26 Jun 2023 17:45:08 GMT", + "MS-CV": "d9DmZCz8F06k4FLXjMoBMQ.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0eE\u002BWZAAAAAAPMgjFMnHzTZ/\u002BWI\u002BLMkb9REZXMzBFREdFMTUxOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0pM6ZZAAAAACNJZfMddiNQZvdcIAeqQMmREZXMzBFREdFMTUxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "135ms" + "X-Processing-Time": "325ms" }, "ResponseBody": { "alphaIds": [] diff --git a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json index b643c3b7e105..dad964b8975b 100644 --- a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json +++ b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json @@ -11,7 +11,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Sat, 24 Jun 2023 02:05:44 GMT" + "x-ms-date": "Mon, 26 Jun 2023 17:45:08 GMT" }, "RequestBody": null, "StatusCode": 200, @@ -19,12 +19,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "50", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 24 Jun 2023 02:05:44 GMT", - "MS-CV": "C9PiuMzPYkS0eXNzmzPnog.0", + "Date": "Mon, 26 Jun 2023 17:45:09 GMT", + "MS-CV": "1LYQxB9wX0m5Ot/R6KMW4w.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0eE\u002BWZAAAAADxEy9PXOSfRItyqM9qpXUqREZXMzBFREdFMTUxOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0pc6ZZAAAAACcGFXU8X4ZQoRES\u002BwrQBLPREZXMzBFREdFMTUxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "369ms" + "X-Processing-Time": "275ms" }, "ResponseBody": { "countries": [ diff --git a/sdk/communication/communication-alpha-ids/review/communication-alpha-ids.api.md b/sdk/communication/communication-alpha-ids/review/communication-alpha-ids.api.md index fa5641fdace7..6a14e3236813 100644 --- a/sdk/communication/communication-alpha-ids/review/communication-alpha-ids.api.md +++ b/sdk/communication/communication-alpha-ids/review/communication-alpha-ids.api.md @@ -32,15 +32,15 @@ export class AlphaIdsClient { constructor(endpoint: string, credential: KeyCredential, options?: AlphaIdsClientOptions); constructor(endpoint: string, credential: TokenCredential, options?: AlphaIdsClientOptions); // (undocumented) - getConfiguration(options?: GetConfigurationOptions): Promise; + getAlphaIds(options?: ListAlphaIdsOptions): PagedAsyncIterableIterator; + // (undocumented) + getDynamicAlphaIdConfiguration(options?: GetConfigurationOptions): Promise; // (undocumented) getDynamicAlphaIdCountries(options?: GetDynamicAlphaIdCountriesOptions): Promise; // (undocumented) getPreRegisteredAlphaIdCountries(options?: GetPreRegisteredAlphaIdCountriesOptions): Promise; // (undocumented) - listAlphaIds(options?: ListAlphaIdsOptions): PagedAsyncIterableIterator; - // (undocumented) - upsertConfiguration(enabled: boolean, options?: UpsertConfigurationOptions): Promise; + upsertDynamicAlphaIdConfiguration(enabled: boolean, options?: UpsertConfigurationOptions): Promise; } // @public diff --git a/sdk/communication/communication-alpha-ids/samples-dev/getConfiguration.ts b/sdk/communication/communication-alpha-ids/samples-dev/getConfiguration.ts index 9aec28996d04..eb2c31fa7048 100644 --- a/sdk/communication/communication-alpha-ids/samples-dev/getConfiguration.ts +++ b/sdk/communication/communication-alpha-ids/samples-dev/getConfiguration.ts @@ -26,7 +26,8 @@ export async function main() { try { // get the applied configuration for the current resource - const configuration: DynamicAlphaIdConfiguration = await client.getConfiguration(); + const configuration: DynamicAlphaIdConfiguration = + await client.getDynamicAlphaIdConfiguration(); usageIsEnabled = configuration.enabled; } catch (error) { // 403 errors also mean that the usage is disallowed diff --git a/sdk/communication/communication-alpha-ids/src/alphaIdsClient.ts b/sdk/communication/communication-alpha-ids/src/alphaIdsClient.ts index f1e98a27295c..252a8804b62b 100644 --- a/sdk/communication/communication-alpha-ids/src/alphaIdsClient.ts +++ b/sdk/communication/communication-alpha-ids/src/alphaIdsClient.ts @@ -68,7 +68,7 @@ export class AlphaIdsClient { this.client.pipeline.addPolicy(authPolicy); } - public getConfiguration( + public getDynamicAlphaIdConfiguration( options: GetConfigurationOptions = {} ): Promise { return tracingClient.withSpan( @@ -80,7 +80,7 @@ export class AlphaIdsClient { ); } - public upsertConfiguration( + public upsertDynamicAlphaIdConfiguration( enabled: boolean, options: UpsertConfigurationOptions = {} ): Promise { @@ -96,7 +96,7 @@ export class AlphaIdsClient { ); } - public listAlphaIds(options: ListAlphaIdsOptions = {}): PagedAsyncIterableIterator { + public getAlphaIds(options: ListAlphaIdsOptions = {}): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan( "AlphaIdsClient-listAlphaIds", options diff --git a/sdk/communication/communication-alpha-ids/test/internal/headers.spec.ts b/sdk/communication/communication-alpha-ids/test/internal/headers.spec.ts index 91d79d35bede..e19a4a2c339a 100644 --- a/sdk/communication/communication-alpha-ids/test/internal/headers.spec.ts +++ b/sdk/communication/communication-alpha-ids/test/internal/headers.spec.ts @@ -27,7 +27,7 @@ describe("AlphaIdsClient - headers", function () { it("calls the spy", async function () { const spy = sinon.spy(configurationHttpClient, "sendRequest"); - await client.getConfiguration(); + await client.getDynamicAlphaIdConfiguration(); sinon.assert.calledOnce(spy); request = spy.getCall(0).args[0]; @@ -67,7 +67,7 @@ describe("AlphaIdsClient - headers", function () { }); const spy = sinon.spy(configurationHttpClient, "sendRequest"); - await client.getConfiguration(); + await client.getDynamicAlphaIdConfiguration(); sinon.assert.calledOnce(spy); request = spy.getCall(0).args[0]; @@ -86,7 +86,7 @@ describe("AlphaIdsClient - headers", function () { }); const spy = sinon.spy(configurationHttpClient, "sendRequest"); - await client.getConfiguration(); + await client.getDynamicAlphaIdConfiguration(); sinon.assert.calledOnce(spy); request = spy.getCall(0).args[0]; @@ -103,7 +103,7 @@ describe("AlphaIdsClient - headers", function () { }); const spy = sinon.spy(configurationHttpClient, "sendRequest"); - await client.getConfiguration(); + await client.getDynamicAlphaIdConfiguration(); sinon.assert.calledOnce(spy); request = spy.getCall(0).args[0]; diff --git a/sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts b/sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts index ad296ae598b0..134e4b0f78a5 100644 --- a/sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts +++ b/sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts @@ -5,9 +5,11 @@ import { AlphaIdsClient } from "../../src"; import { Context } from "mocha"; import { Recorder } from "@azure-tools/test-recorder"; import { createRecordedClient } from "./utils/recordedClient"; -import { ignoreSubscriptionNotEligibleError } from "./utils/alphaIdClientTestUtils"; +import { assertAlphaDynamicConfiguration } from "./utils/alphaIdClientTestUtils"; import { assert } from "chai"; +const sleep = (ms: number): Promise => new Promise((resolve) => setTimeout(resolve, ms)); + describe(`AlphaIdsClient - manage configuration`, function () { let recorder: Recorder; let client: AlphaIdsClient; @@ -23,20 +25,24 @@ describe(`AlphaIdsClient - manage configuration`, function () { }); it("can manage configuration", async function () { - await ignoreSubscriptionNotEligibleError( - (operationOptions) => client.upsertConfiguration(true, operationOptions), + await assertAlphaDynamicConfiguration( + (operationOptions) => client.upsertDynamicAlphaIdConfiguration(true, operationOptions), true ); - await ignoreSubscriptionNotEligibleError( - (operationOptions) => client.getConfiguration(operationOptions), + // wait 1s to get the updated configuration + await sleep(1000); + await assertAlphaDynamicConfiguration( + (operationOptions) => client.getDynamicAlphaIdConfiguration(operationOptions), true ); - await ignoreSubscriptionNotEligibleError( - (operationOptions) => client.upsertConfiguration(false, operationOptions), + await assertAlphaDynamicConfiguration( + (operationOptions) => client.upsertDynamicAlphaIdConfiguration(false, operationOptions), false ); - await ignoreSubscriptionNotEligibleError( - (operationOptions) => client.getConfiguration(operationOptions), + // wait 1s to get the updated configuration + await sleep(1000); + await assertAlphaDynamicConfiguration( + (operationOptions) => client.getDynamicAlphaIdConfiguration(operationOptions), false ); }).timeout(15000); diff --git a/sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.spec.ts b/sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.spec.ts index 56f682bff718..c1f330b1f5e8 100644 --- a/sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.spec.ts +++ b/sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.spec.ts @@ -23,14 +23,14 @@ describe(`AlphaIdsClient - Preregistered Alpha Ids Operations`, function () { it("can list all pre-registered alpha ids", async function () { let totalItems = 0; - for await (const alphaId of client.listAlphaIds()) { + for await (const alphaId of client.getAlphaIds()) { totalItems++; assert.isNotNull(alphaId.value); } // now test using pagination const itemsPerPage = totalItems > 1 ? Math.floor(totalItems / 2) : 1; - const pages = client.listAlphaIds({ top: itemsPerPage }).byPage(); + const pages = client.getAlphaIds({ top: itemsPerPage }).byPage(); for await (const page of pages) { // loop over each item in the page for (const alphaId of page) { diff --git a/sdk/communication/communication-alpha-ids/test/public/utils/alphaIdClientTestUtils.ts b/sdk/communication/communication-alpha-ids/test/public/utils/alphaIdClientTestUtils.ts index 0fdbb0e2011e..36ae5d158b0f 100644 --- a/sdk/communication/communication-alpha-ids/test/public/utils/alphaIdClientTestUtils.ts +++ b/sdk/communication/communication-alpha-ids/test/public/utils/alphaIdClientTestUtils.ts @@ -2,43 +2,24 @@ // Licensed under the MIT license. import { DynamicAlphaIdConfiguration } from "../../../src"; -import { RestError } from "@azure/core-rest-pipeline"; import { assert } from "chai"; import { FullOperationResponse, OperationOptions } from "@azure/core-client"; -export async function ignoreSubscriptionNotEligibleError( +export async function assertAlphaDynamicConfiguration( call: (operationOptions: OperationOptions) => Promise, expectedConfiguration: boolean ): Promise { - try { - let configurationResponse: FullOperationResponse | undefined; - const getConfigurationRequest: OperationOptions = { - onResponse: (response) => { - configurationResponse = response; - }, - }; - const configuration = await call(getConfigurationRequest); - assert.isOk(configuration); - assert.isTrue( - configuration.enabled === expectedConfiguration, - `The expected configuration: ${expectedConfiguration.toString()} is different than the received configuration: ${configuration.enabled.toString()} + let configurationResponse: FullOperationResponse | undefined; + const getConfigurationRequest: OperationOptions = { + onResponse: (response) => { + configurationResponse = response; + }, + }; + const configuration = await call(getConfigurationRequest); + assert.isOk(configuration); + assert.isTrue( + configuration.enabled === expectedConfiguration, + `The expected configuration: ${expectedConfiguration.toString()} is different than the received configuration: ${configuration.enabled.toString()} CV: ${configurationResponse?.headers.get("MS-CV")}` - ); - } catch (error) { - if (isNotEligibleError(error)) { - return; - } - - throw error; - } -} - -function isNotEligibleError(error: any): boolean { - let errorMessage = error?.details?.error?.message; - - if (error instanceof RestError) { - errorMessage = error?.response?.bodyAsText; - } - - return error.statusCode === 403 && errorMessage.includes("is not eligible for Alpha IDs usage"); + ); } From a688f801ff76c45a337bcafe17654d34a984c60f Mon Sep 17 00:00:00 2001 From: Roberto Trevino Date: Mon, 26 Jun 2023 12:17:26 -0600 Subject: [PATCH 8/9] update swagger --- ..._list_all_dynamic_alpha_ids_countries.json | 10 ++-- .../recording_can_manage_configuration.json | 40 ++++++------- ..._can_list_all_preregistered_alpha_ids.json | 20 +++---- ...all_preregistered_alpha_ids_countries.json | 10 ++-- ..._list_all_dynamic_alpha_ids_countries.json | 10 ++-- .../recording_can_manage_configuration.json | 40 ++++++------- ..._can_list_all_preregistered_alpha_ids.json | 20 +++---- ...all_preregistered_alpha_ids_countries.json | 10 ++-- .../review/communication-alpha-ids.api.md | 20 +++---- .../src/alphaIdsClient.ts | 19 +++--- .../src/generated/src/alphaIDsClient.ts | 8 +-- .../src/generated/src/models/index.ts | 12 ++-- .../src/generated/src/models/mappers.ts | 8 +-- .../{alphaIdsOperations.ts => alphaIds.ts} | 16 ++--- .../src/generated/src/operations/index.ts | 2 +- .../{alphaIdsOperations.ts => alphaIds.ts} | 4 +- .../src/operationsInterfaces/index.ts | 2 +- .../communication-alpha-ids/src/models.ts | 3 +- .../swagger/alphaids.json | 59 ++++++++++--------- .../test/internal/generated_client.spec.ts | 2 +- 20 files changed, 153 insertions(+), 162 deletions(-) rename sdk/communication/communication-alpha-ids/src/generated/src/operations/{alphaIdsOperations.ts => alphaIds.ts} (96%) rename sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/{alphaIdsOperations.ts => alphaIds.ts} (96%) diff --git a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json index 42c6da675aa5..deed583e4bc7 100644 --- a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json +++ b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json @@ -19,7 +19,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 17:45:19 GMT", + "x-ms-date": "Mon, 26 Jun 2023 18:16:32 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, @@ -28,12 +28,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "115", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 17:45:21 GMT", - "MS-CV": "2WIObgoTfkeaF\u002Bb\u002B4lCVqA.0", + "Date": "Mon, 26 Jun 2023 18:16:33 GMT", + "MS-CV": "7XfiFuek80i2VtQHBaMJSw.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0sM6ZZAAAAAAtIp3PcJ48T7/08bD1qLa2REZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0AtaZZAAAAABqs6F0ML5rT4Hu/GAbqTwzREZXMzBFREdFMTYwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "332ms" + "X-Processing-Time": "254ms" }, "ResponseBody": { "countries": [ diff --git a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_manage_configuration.json b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_manage_configuration.json index 23823970d759..513696d19fcd 100644 --- a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_manage_configuration.json +++ b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_manage_configuration.json @@ -21,7 +21,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "JrNCayWTdjyW0IkLSnegu/ZtE/xRKwxrE4ojwpDzCio=", - "x-ms-date": "Mon, 26 Jun 2023 17:45:15 GMT", + "x-ms-date": "Mon, 26 Jun 2023 18:16:28 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": { @@ -32,12 +32,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "16", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 17:45:17 GMT", - "MS-CV": "p6PWJy7GIk24B63LnrS72A.0", + "Date": "Mon, 26 Jun 2023 18:16:29 GMT", + "MS-CV": "QsRFQTPCYkCnhS0/v5M8UQ.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0rc6ZZAAAAABnQC/GXvwjT4h\u002BYbibaiK8REZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0/tWZZAAAAAAPDpv4Wk2KS4N55tr4ha6wREZXMzBFREdFMTYwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "513ms" + "X-Processing-Time": "381ms" }, "ResponseBody": { "enabled": true @@ -62,7 +62,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 17:45:17 GMT", + "x-ms-date": "Mon, 26 Jun 2023 18:16:30 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, @@ -71,12 +71,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "16", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 17:45:18 GMT", - "MS-CV": "/CxJL\u002BtU6EmH/qr/\u002BH7C9g.0", + "Date": "Mon, 26 Jun 2023 18:16:31 GMT", + "MS-CV": "akYHbsMayUOyY7rI2MAPtw.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0rs6ZZAAAAAAQmUplW/9NQI3EWiUpSiddREZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0/9WZZAAAAAAeZzK2iGLET5eLArpSHLRCREZXMzBFREdFMTYwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "251ms" + "X-Processing-Time": "277ms" }, "ResponseBody": { "enabled": true @@ -103,7 +103,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "Ws8/93tEIGd7WSMHHzA/rKunqSc6NGKEpmeidd8yUUY=", - "x-ms-date": "Mon, 26 Jun 2023 17:45:18 GMT", + "x-ms-date": "Mon, 26 Jun 2023 18:16:31 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": { @@ -114,12 +114,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "17", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 17:45:19 GMT", - "MS-CV": "DLakwlUzf0WJK9f18xCTIA.0", + "Date": "Mon, 26 Jun 2023 18:16:31 GMT", + "MS-CV": "aARrXNRlA0WqGPNwSAJFNw.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0r86ZZAAAAADDfzprzNM6QIP5Vhivu3x4REZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0ANaZZAAAAACmo4zMSpXKR71DOzQo4R0FREZXMzBFREdFMTYwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "256ms" + "X-Processing-Time": "192ms" }, "ResponseBody": { "enabled": false @@ -144,7 +144,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 17:45:19 GMT", + "x-ms-date": "Mon, 26 Jun 2023 18:16:32 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, @@ -153,12 +153,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "17", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 17:45:20 GMT", - "MS-CV": "oF5wBGzqUE2spC/bBzTNOQ.0", + "Date": "Mon, 26 Jun 2023 18:16:32 GMT", + "MS-CV": "nIsVeqaCZ0CFPw3vQNWuQg.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0sM6ZZAAAAAAp6tL3kjNRSpZjX5MQUyC5REZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0AdaZZAAAAAC7wlONbqYDT5C1XSIveQUzREZXMzBFREdFMTYwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "275ms" + "X-Processing-Time": "259ms" }, "ResponseBody": { "enabled": false diff --git a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json index 08e2785d6ad5..aa6c9f1b4633 100644 --- a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json +++ b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json @@ -19,7 +19,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 17:45:20 GMT", + "x-ms-date": "Mon, 26 Jun 2023 18:16:33 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, @@ -28,12 +28,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "15", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 17:45:21 GMT", - "MS-CV": "oY344O5YM0OF3832t/1YoA.0", + "Date": "Mon, 26 Jun 2023 18:16:33 GMT", + "MS-CV": "YEp549P88Uiy43\u002BmpFZH5A.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0sc6ZZAAAAACBiqYWWweARoFzb12NwjEFREZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0AtaZZAAAAABPYFbXZb\u002BCQL95rqPXra2RREZXMzBFREdFMTYwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "194ms" + "X-Processing-Time": "261ms" }, "ResponseBody": { "alphaIds": [] @@ -58,7 +58,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 17:45:20 GMT", + "x-ms-date": "Mon, 26 Jun 2023 18:16:33 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, @@ -67,12 +67,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "15", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 17:45:21 GMT", - "MS-CV": "XGTei2OmikS5vEsvv0kVXg.0", + "Date": "Mon, 26 Jun 2023 18:16:34 GMT", + "MS-CV": "FjueEVSDak2efyTxdz3AFQ.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0sc6ZZAAAAAD50uF5cCMRR5FtJLvCXPiQREZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0AtaZZAAAAAAprDr04UEYT6NuWXntP3\u002BuREZXMzBFREdFMTYwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "126ms" + "X-Processing-Time": "131ms" }, "ResponseBody": { "alphaIds": [] diff --git a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json index 6b9a81c4c082..c8ad8bd083e7 100644 --- a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json +++ b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json @@ -19,7 +19,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 17:45:20 GMT", + "x-ms-date": "Mon, 26 Jun 2023 18:16:33 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, @@ -28,12 +28,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "50", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 17:45:22 GMT", - "MS-CV": "tHC6SBRQAEOiYKGZGeVPoQ.0", + "Date": "Mon, 26 Jun 2023 18:16:34 GMT", + "MS-CV": "\u002BLthIUDSc0GLKEi97lP9Yw.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0sc6ZZAAAAAALzEFTjEvDTpZA6nnlnrBhREZXMzBFREdFMTYwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0A9aZZAAAAAAIZWhnOjSkS5wewHNgBma/REZXMzBFREdFMTYwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "276ms" + "X-Processing-Time": "245ms" }, "ResponseBody": { "countries": [ diff --git a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json index 94f9b977015d..220f8357a6c5 100644 --- a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json +++ b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json @@ -11,7 +11,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 17:45:07 GMT" + "x-ms-date": "Mon, 26 Jun 2023 18:16:20 GMT" }, "RequestBody": null, "StatusCode": 200, @@ -19,12 +19,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "115", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 17:45:08 GMT", - "MS-CV": "3/f\u002BqhulokKuJE4ES3DuTQ.0", + "Date": "Mon, 26 Jun 2023 18:16:21 GMT", + "MS-CV": "N0xTKYmWiU\u002B3o\u002BYLuFlv4A.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0pM6ZZAAAAAC3lD8IwAFZQI58s1gcu8N6REZXMzBFREdFMTUxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "09dWZZAAAAAAC3BoPsDGKQ6cixRY\u002BVZ9vREZXMzBFREdFMTUwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "306ms" + "X-Processing-Time": "283ms" }, "ResponseBody": { "countries": [ diff --git a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_manage_configuration.json b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_manage_configuration.json index e3fd8fcd7893..9333a8343ed7 100644 --- a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_manage_configuration.json +++ b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_manage_configuration.json @@ -13,7 +13,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "JrNCayWTdjyW0IkLSnegu/ZtE/xRKwxrE4ojwpDzCio=", - "x-ms-date": "Mon, 26 Jun 2023 17:45:03 GMT" + "x-ms-date": "Mon, 26 Jun 2023 18:16:15 GMT" }, "RequestBody": { "enabled": true @@ -23,12 +23,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "16", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 17:45:04 GMT", - "MS-CV": "302qKbixM0KKRSBqY/A7YQ.0", + "Date": "Mon, 26 Jun 2023 18:16:17 GMT", + "MS-CV": "DieZJJpp1EG/WLhvzmf0hA.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0oM6ZZAAAAABAMghkKwgTTaL\u002BwretOaOwREZXMzBFREdFMTUxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "08dWZZAAAAABLB903q0/UT6Jwb7qlHqJWREZXMzBFREdFMTUwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "348ms" + "X-Processing-Time": "768ms" }, "ResponseBody": { "enabled": true @@ -45,7 +45,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 17:45:05 GMT" + "x-ms-date": "Mon, 26 Jun 2023 18:16:18 GMT" }, "RequestBody": null, "StatusCode": 200, @@ -53,12 +53,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "16", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 17:45:05 GMT", - "MS-CV": "rWfNoxyqlkOVDxvASj/M2g.0", + "Date": "Mon, 26 Jun 2023 18:16:19 GMT", + "MS-CV": "Mp7Zf2L\u002BT0mDhI87Ku20Ow.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0os6ZZAAAAADJQhO670OZQqf694NV1X51REZXMzBFREdFMTUxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "089WZZAAAAACv86swWayxSJPsB3WwoY0rREZXMzBFREdFMTUwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "258ms" + "X-Processing-Time": "271ms" }, "ResponseBody": { "enabled": true @@ -77,7 +77,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "Ws8/93tEIGd7WSMHHzA/rKunqSc6NGKEpmeidd8yUUY=", - "x-ms-date": "Mon, 26 Jun 2023 17:45:05 GMT" + "x-ms-date": "Mon, 26 Jun 2023 18:16:18 GMT" }, "RequestBody": { "enabled": false @@ -87,12 +87,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "17", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 17:45:06 GMT", - "MS-CV": "Km\u002BncYbHHUmmQxOYKN1M6g.0", + "Date": "Mon, 26 Jun 2023 18:16:19 GMT", + "MS-CV": "aeVJjt1gH06kmxNbhGKnOw.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0os6ZZAAAAACHcOTRuDvARYHCLfe5jVgXREZXMzBFREdFMTUxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "089WZZAAAAAAnLGP3cwfbRIwt9moPCZbXREZXMzBFREdFMTUwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "373ms" + "X-Processing-Time": "436ms" }, "ResponseBody": { "enabled": false @@ -109,7 +109,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 17:45:06 GMT" + "x-ms-date": "Mon, 26 Jun 2023 18:16:20 GMT" }, "RequestBody": null, "StatusCode": 200, @@ -117,12 +117,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "17", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 17:45:07 GMT", - "MS-CV": "tQoGkrdon06JkqTxsDWo4A.0", + "Date": "Mon, 26 Jun 2023 18:16:20 GMT", + "MS-CV": "U4WrptXN\u002BE2vBX/VQy1lpw.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0o86ZZAAAAABiyHXhiHHtTKlu52CFgKjkREZXMzBFREdFMTUxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "09dWZZAAAAACI7XCRnk/PQrNO12v0KlPzREZXMzBFREdFMTUwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "260ms" + "X-Processing-Time": "247ms" }, "ResponseBody": { "enabled": false diff --git a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json index f0d4652e6282..22612af59dd8 100644 --- a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json +++ b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json @@ -11,7 +11,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 17:45:07 GMT" + "x-ms-date": "Mon, 26 Jun 2023 18:16:21 GMT" }, "RequestBody": null, "StatusCode": 200, @@ -19,12 +19,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "15", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 17:45:08 GMT", - "MS-CV": "NO6Fp1k8vkSJTiPXowY6VQ.0", + "Date": "Mon, 26 Jun 2023 18:16:21 GMT", + "MS-CV": "Y/Q4eXQRL0qCbrBOVnB7eQ.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0pM6ZZAAAAAB0X6MudaPtQ7ldc76Li1SRREZXMzBFREdFMTUxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "09tWZZAAAAAAMzvFCoOvbTaTtEQt\u002BO6wPREZXMzBFREdFMTUwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "195ms" + "X-Processing-Time": "295ms" }, "ResponseBody": { "alphaIds": [] @@ -41,7 +41,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 17:45:07 GMT" + "x-ms-date": "Mon, 26 Jun 2023 18:16:21 GMT" }, "RequestBody": null, "StatusCode": 200, @@ -49,12 +49,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "15", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 17:45:08 GMT", - "MS-CV": "d9DmZCz8F06k4FLXjMoBMQ.0", + "Date": "Mon, 26 Jun 2023 18:16:22 GMT", + "MS-CV": "Dtlf7hJZdkqDEyOlzQG9qw.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0pM6ZZAAAAACNJZfMddiNQZvdcIAeqQMmREZXMzBFREdFMTUxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "09tWZZAAAAADyeliWAigNQInABr3gqckXREZXMzBFREdFMTUwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "325ms" + "X-Processing-Time": "595ms" }, "ResponseBody": { "alphaIds": [] diff --git a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json index dad964b8975b..bc5c1cb3faec 100644 --- a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json +++ b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json @@ -11,7 +11,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 17:45:08 GMT" + "x-ms-date": "Mon, 26 Jun 2023 18:16:22 GMT" }, "RequestBody": null, "StatusCode": 200, @@ -19,12 +19,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "50", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 17:45:09 GMT", - "MS-CV": "1LYQxB9wX0m5Ot/R6KMW4w.0", + "Date": "Mon, 26 Jun 2023 18:16:22 GMT", + "MS-CV": "/U812CsyR0OqQU7zthPgAw.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0pc6ZZAAAAACcGFXU8X4ZQoRES\u002BwrQBLPREZXMzBFREdFMTUxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "099WZZAAAAABu1tByqflKTqN1jgBnnn2FREZXMzBFREdFMTUwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "275ms" + "X-Processing-Time": "298ms" }, "ResponseBody": { "countries": [ diff --git a/sdk/communication/communication-alpha-ids/review/communication-alpha-ids.api.md b/sdk/communication/communication-alpha-ids/review/communication-alpha-ids.api.md index 6a14e3236813..b84438bf1c55 100644 --- a/sdk/communication/communication-alpha-ids/review/communication-alpha-ids.api.md +++ b/sdk/communication/communication-alpha-ids/review/communication-alpha-ids.api.md @@ -20,12 +20,6 @@ export interface AlphaId { value?: string; } -// @public -export interface AlphaIds { - alphaIds?: AlphaId[]; - nextLink?: string; -} - // @public (undocumented) export class AlphaIdsClient { constructor(connectionString: string, options?: AlphaIdsClientOptions); @@ -36,9 +30,9 @@ export class AlphaIdsClient { // (undocumented) getDynamicAlphaIdConfiguration(options?: GetConfigurationOptions): Promise; // (undocumented) - getDynamicAlphaIdCountries(options?: GetDynamicAlphaIdCountriesOptions): Promise; + getDynamicAlphaIdCountries(options?: GetDynamicAlphaIdCountriesOptions): Promise; // (undocumented) - getPreRegisteredAlphaIdCountries(options?: GetPreRegisteredAlphaIdCountriesOptions): Promise; + getPreRegisteredAlphaIdCountries(options?: GetPreRegisteredAlphaIdCountriesOptions): Promise; // (undocumented) upsertDynamicAlphaIdConfiguration(enabled: boolean, options?: UpsertConfigurationOptions): Promise; } @@ -61,11 +55,6 @@ export interface AlphaIdsGetDynamicAlphaIdCountriesOptionalParams extends coreCl export interface AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams extends coreClient.OperationOptions { } -// @public -export interface Countries { - countries?: string[]; -} - // @public export interface DynamicAlphaIdConfiguration { enabled: boolean; @@ -87,6 +76,11 @@ export interface GetPreRegisteredAlphaIdCountriesOptions extends AlphaIdsGetPreR export interface ListAlphaIdsOptions extends AlphaIdsGetAlphaIdsOptionalParams { } +// @public +export interface SupportedCountries { + countries?: string[]; +} + // @public export interface UpsertConfigurationOptions extends OperationOptions { } diff --git a/sdk/communication/communication-alpha-ids/src/alphaIdsClient.ts b/sdk/communication/communication-alpha-ids/src/alphaIdsClient.ts index 252a8804b62b..4ced71477058 100644 --- a/sdk/communication/communication-alpha-ids/src/alphaIdsClient.ts +++ b/sdk/communication/communication-alpha-ids/src/alphaIdsClient.ts @@ -9,7 +9,7 @@ import { GetDynamicAlphaIdCountriesOptions, GetPreRegisteredAlphaIdCountriesOptions, AlphaId, - Countries, + SupportedCountries, } from "./models"; import { isKeyCredential, parseClientArguments } from "@azure/communication-common"; import { KeyCredential, TokenCredential, isTokenCredential } from "@azure/core-auth"; @@ -75,7 +75,7 @@ export class AlphaIdsClient { "AlphaIdsClient-getConfiguration", options, async (updatedOptions) => { - return this.client.alphaIdsOperations.getDynamicAlphaIdConfiguration(updatedOptions); + return this.client.alphaIds.getDynamicAlphaIdConfiguration(updatedOptions); } ); } @@ -88,10 +88,7 @@ export class AlphaIdsClient { "AlphaIdsClient-upsertConfiguration", options, async (updatedOptions) => { - return this.client.alphaIdsOperations.upsertDynamicAlphaIdConfiguration( - enabled, - updatedOptions - ); + return this.client.alphaIds.upsertDynamicAlphaIdConfiguration(enabled, updatedOptions); } ); } @@ -102,7 +99,7 @@ export class AlphaIdsClient { options ); try { - return this.client.alphaIdsOperations.listAlphaIds(updatedOptions); + return this.client.alphaIds.listAlphaIds(updatedOptions); } catch (e: any) { span.setStatus({ status: "error", @@ -116,13 +113,13 @@ export class AlphaIdsClient { public getDynamicAlphaIdCountries( options: GetDynamicAlphaIdCountriesOptions = {} - ): Promise { + ): Promise { const { span, updatedOptions } = tracingClient.startSpan( "AlphaIdsClient-getDynamicAlphaIdCountries", options ); try { - return this.client.alphaIdsOperations.getDynamicAlphaIdCountries(updatedOptions); + return this.client.alphaIds.getDynamicAlphaIdCountries(updatedOptions); } catch (e: any) { span.setStatus({ status: "error", @@ -136,13 +133,13 @@ export class AlphaIdsClient { public getPreRegisteredAlphaIdCountries( options: GetPreRegisteredAlphaIdCountriesOptions = {} - ): Promise { + ): Promise { const { span, updatedOptions } = tracingClient.startSpan( "AlphaIdsClient-getPreRegisteredAlphaIdCountries", options ); try { - return this.client.alphaIdsOperations.getPreRegisteredAlphaIdCountries(updatedOptions); + return this.client.alphaIds.getPreRegisteredAlphaIdCountries(updatedOptions); } catch (e: any) { span.setStatus({ status: "error", diff --git a/sdk/communication/communication-alpha-ids/src/generated/src/alphaIDsClient.ts b/sdk/communication/communication-alpha-ids/src/generated/src/alphaIDsClient.ts index 983984703c73..dc07df1d4b45 100644 --- a/sdk/communication/communication-alpha-ids/src/generated/src/alphaIDsClient.ts +++ b/sdk/communication/communication-alpha-ids/src/generated/src/alphaIDsClient.ts @@ -12,8 +12,8 @@ import { PipelineResponse, SendRequest } from "@azure/core-rest-pipeline"; -import { AlphaIdsOperationsImpl } from "./operations"; -import { AlphaIdsOperations } from "./operationsInterfaces"; +import { AlphaIdsImpl } from "./operations"; +import { AlphaIds } from "./operationsInterfaces"; import { AlphaIDsClientOptionalParams } from "./models"; export class AlphaIDsClient extends coreClient.ServiceClient { @@ -58,7 +58,7 @@ export class AlphaIDsClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.apiVersion = options.apiVersion || "2023-07-12"; - this.alphaIdsOperations = new AlphaIdsOperationsImpl(this); + this.alphaIds = new AlphaIdsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -90,5 +90,5 @@ export class AlphaIDsClient extends coreClient.ServiceClient { this.pipeline.addPolicy(apiVersionPolicy); } - alphaIdsOperations: AlphaIdsOperations; + alphaIds: AlphaIds; } diff --git a/sdk/communication/communication-alpha-ids/src/generated/src/models/index.ts b/sdk/communication/communication-alpha-ids/src/generated/src/models/index.ts index 8b7778d0a942..4038a1eb1e2b 100644 --- a/sdk/communication/communication-alpha-ids/src/generated/src/models/index.ts +++ b/sdk/communication/communication-alpha-ids/src/generated/src/models/index.ts @@ -9,7 +9,7 @@ import * as coreClient from "@azure/core-client"; /** A wrapper for a list of alpha id entities. */ -export interface AlphaIds { +export interface AcquiredAlphaIds { /** List of alpha ids. */ alphaIds?: AlphaId[]; /** Represents the URL link to the next page. */ @@ -67,7 +67,7 @@ export interface DynamicAlphaIdConfiguration { } /** A wrapper for a list of countries. */ -export interface Countries { +export interface SupportedCountries { /** List of conutries supporting alpha ids. */ countries?: string[]; } @@ -82,7 +82,7 @@ export interface AlphaIdsGetAlphaIdsOptionalParams } /** Contains response data for the getAlphaIds operation. */ -export type AlphaIdsGetAlphaIdsResponse = AlphaIds; +export type AlphaIdsGetAlphaIdsResponse = AcquiredAlphaIds; /** Optional parameters. */ export interface AlphaIdsGetDynamicAlphaIdConfigurationOptionalParams @@ -103,21 +103,21 @@ export interface AlphaIdsGetDynamicAlphaIdCountriesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getDynamicAlphaIdCountries operation. */ -export type AlphaIdsGetDynamicAlphaIdCountriesResponse = Countries; +export type AlphaIdsGetDynamicAlphaIdCountriesResponse = SupportedCountries; /** Optional parameters. */ export interface AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getPreRegisteredAlphaIdCountries operation. */ -export type AlphaIdsGetPreRegisteredAlphaIdCountriesResponse = Countries; +export type AlphaIdsGetPreRegisteredAlphaIdCountriesResponse = SupportedCountries; /** Optional parameters. */ export interface AlphaIdsGetAlphaIdsNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getAlphaIdsNext operation. */ -export type AlphaIdsGetAlphaIdsNextResponse = AlphaIds; +export type AlphaIdsGetAlphaIdsNextResponse = AcquiredAlphaIds; /** Optional parameters. */ export interface AlphaIDsClientOptionalParams diff --git a/sdk/communication/communication-alpha-ids/src/generated/src/models/mappers.ts b/sdk/communication/communication-alpha-ids/src/generated/src/models/mappers.ts index dc231b2cf0f0..c4ae013240b2 100644 --- a/sdk/communication/communication-alpha-ids/src/generated/src/models/mappers.ts +++ b/sdk/communication/communication-alpha-ids/src/generated/src/models/mappers.ts @@ -8,10 +8,10 @@ import * as coreClient from "@azure/core-client"; -export const AlphaIds: coreClient.CompositeMapper = { +export const AcquiredAlphaIds: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AlphaIds", + className: "AcquiredAlphaIds", modelProperties: { alphaIds: { serializedName: "alphaIds", @@ -144,10 +144,10 @@ export const DynamicAlphaIdConfiguration: coreClient.CompositeMapper = { } }; -export const Countries: coreClient.CompositeMapper = { +export const SupportedCountries: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Countries", + className: "SupportedCountries", modelProperties: { countries: { serializedName: "countries", diff --git a/sdk/communication/communication-alpha-ids/src/generated/src/operations/alphaIdsOperations.ts b/sdk/communication/communication-alpha-ids/src/generated/src/operations/alphaIds.ts similarity index 96% rename from sdk/communication/communication-alpha-ids/src/generated/src/operations/alphaIdsOperations.ts rename to sdk/communication/communication-alpha-ids/src/generated/src/operations/alphaIds.ts index 8b525f1e2790..1c4948dd28ad 100644 --- a/sdk/communication/communication-alpha-ids/src/generated/src/operations/alphaIdsOperations.ts +++ b/sdk/communication/communication-alpha-ids/src/generated/src/operations/alphaIds.ts @@ -9,7 +9,7 @@ import { tracingClient } from "../tracing"; import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; import { setContinuationToken } from "../pagingHelper"; -import { AlphaIdsOperations } from "../operationsInterfaces"; +import { AlphaIds } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; @@ -31,12 +31,12 @@ import { } from "../models"; /// -/** Class containing AlphaIdsOperations operations. */ -export class AlphaIdsOperationsImpl implements AlphaIdsOperations { +/** Class containing AlphaIds operations. */ +export class AlphaIdsImpl implements AlphaIds { private readonly client: AlphaIDsClient; /** - * Initialize a new instance of the class AlphaIdsOperations class. + * Initialize a new instance of the class AlphaIds class. * @param client Reference to the service client */ constructor(client: AlphaIDsClient) { @@ -223,7 +223,7 @@ const getAlphaIdsOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AlphaIds + bodyMapper: Mappers.AcquiredAlphaIds }, default: { bodyMapper: Mappers.CommunicationErrorResponse @@ -276,7 +276,7 @@ const getDynamicAlphaIdCountriesOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Countries + bodyMapper: Mappers.SupportedCountries }, default: { bodyMapper: Mappers.CommunicationErrorResponse @@ -292,7 +292,7 @@ const getPreRegisteredAlphaIdCountriesOperationSpec: coreClient.OperationSpec = httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Countries + bodyMapper: Mappers.SupportedCountries }, default: { bodyMapper: Mappers.CommunicationErrorResponse @@ -308,7 +308,7 @@ const getAlphaIdsNextOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AlphaIds + bodyMapper: Mappers.AcquiredAlphaIds }, default: { bodyMapper: Mappers.CommunicationErrorResponse diff --git a/sdk/communication/communication-alpha-ids/src/generated/src/operations/index.ts b/sdk/communication/communication-alpha-ids/src/generated/src/operations/index.ts index 86d0fecfa523..0d64df3ad3ea 100644 --- a/sdk/communication/communication-alpha-ids/src/generated/src/operations/index.ts +++ b/sdk/communication/communication-alpha-ids/src/generated/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./alphaIdsOperations"; +export * from "./alphaIds"; diff --git a/sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/alphaIdsOperations.ts b/sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/alphaIds.ts similarity index 96% rename from sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/alphaIdsOperations.ts rename to sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/alphaIds.ts index 4fd687d005cf..9ceda36e1cf2 100644 --- a/sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/alphaIdsOperations.ts +++ b/sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/alphaIds.ts @@ -21,8 +21,8 @@ import { } from "../models"; /// -/** Interface representing a AlphaIdsOperations. */ -export interface AlphaIdsOperations { +/** Interface representing a AlphaIds. */ +export interface AlphaIds { /** * Gets the list of alpha ids for the current resource. * @param options The options parameters. diff --git a/sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/index.ts b/sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/index.ts index 86d0fecfa523..0d64df3ad3ea 100644 --- a/sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/index.ts +++ b/sdk/communication/communication-alpha-ids/src/generated/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./alphaIdsOperations"; +export * from "./alphaIds"; diff --git a/sdk/communication/communication-alpha-ids/src/models.ts b/sdk/communication/communication-alpha-ids/src/models.ts index dc142bacc2f1..10832bcba94e 100644 --- a/sdk/communication/communication-alpha-ids/src/models.ts +++ b/sdk/communication/communication-alpha-ids/src/models.ts @@ -36,10 +36,9 @@ export interface UpsertConfigurationOptions extends OperationOptions {} export { DynamicAlphaIdConfiguration, - AlphaIds, AlphaId, AlphaIdsGetAlphaIdsOptionalParams, AlphaIdsGetDynamicAlphaIdCountriesOptionalParams, AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams, - Countries, + SupportedCountries, } from "./generated/src/models/"; diff --git a/sdk/communication/communication-alpha-ids/swagger/alphaids.json b/sdk/communication/communication-alpha-ids/swagger/alphaids.json index 83d6d82a8df4..d023bff71317 100644 --- a/sdk/communication/communication-alpha-ids/swagger/alphaids.json +++ b/sdk/communication/communication-alpha-ids/swagger/alphaids.json @@ -41,7 +41,7 @@ "200": { "description": "Success", "schema": { - "$ref": "#/definitions/AlphaIds" + "$ref": "#/definitions/AcquiredAlphaIds" } }, "default": { @@ -162,7 +162,7 @@ "200": { "description": "Success", "schema": { - "$ref": "#/definitions/Countries" + "$ref": "#/definitions/SupportedCountries" } }, "default": { @@ -198,7 +198,7 @@ "200": { "description": "Success", "schema": { - "$ref": "#/definitions/Countries" + "$ref": "#/definitions/SupportedCountries" } }, "default": { @@ -217,6 +217,23 @@ } }, "definitions": { + "AcquiredAlphaIds": { + "description": "A wrapper for a list of alpha id entities.", + "type": "object", + "properties": { + "alphaIds": { + "description": "List of alpha ids.", + "type": "array", + "items": { + "$ref": "#/definitions/AlphaId" + } + }, + "nextLink": { + "description": "Represents the URL link to the next page.", + "type": "string" + } + } + }, "AlphaId": { "description": "Represents an AlphaId acquired in a given country.", "type": "object", @@ -236,24 +253,20 @@ } } }, - "AlphaIds": { - "description": "A wrapper for a list of alpha id entities.", + "DynamicAlphaIdConfiguration": { + "description": "
Represents a collection of settings for configuring Dynamic Alpha ID support for a specific resource.\r\n
\r\n Initially, Alpha IDs were restricted to customers that had valid use cases for them, so this configuration could be leveraged to enable its usage.\r\n ", + "required": [ + "enabled" + ], "type": "object", "properties": { - "alphaIds": { - "description": "List of alpha ids.", - "type": "array", - "items": { - "$ref": "#/definitions/AlphaId" - } - }, - "nextLink": { - "description": "Represents the URL link to the next page.", - "type": "string" + "enabled": { + "description": "Indicates whether the use of Dynamic Alpha IDs is supported for a specific resource.", + "type": "boolean" } } }, - "Countries": { + "SupportedCountries": { "description": "A wrapper for a list of countries.", "type": "object", "properties": { @@ -266,19 +279,7 @@ } } }, - "DynamicAlphaIdConfiguration": { - "description": "
Represents a collection of settings for configuring Dynamic Alpha ID support for a specific resource.\r\n
\r\n Initially, Alpha IDs were restricted to customers that had valid use cases for them, so this configuration could be leveraged to enable its usage.\r\n ", - "required": [ - "enabled" - ], - "type": "object", - "properties": { - "enabled": { - "description": "Indicates whether the use of Dynamic Alpha IDs is supported for a specific resource.", - "type": "boolean" - } - } - }, + "CommunicationErrorResponse": { "description": "The Communication Services error.", "type": "object", diff --git a/sdk/communication/communication-alpha-ids/test/internal/generated_client.spec.ts b/sdk/communication/communication-alpha-ids/test/internal/generated_client.spec.ts index b34a03ff28a8..047890a75330 100644 --- a/sdk/communication/communication-alpha-ids/test/internal/generated_client.spec.ts +++ b/sdk/communication/communication-alpha-ids/test/internal/generated_client.spec.ts @@ -109,7 +109,7 @@ describe("AlphaIdsGeneratedClient - constructor", function () { ); const spy = sinon.spy(mockHttpClient, "sendRequest"); - await client.alphaIdsOperations.upsertDynamicAlphaIdConfiguration(true); + await client.alphaIds.upsertDynamicAlphaIdConfiguration(true); sinon.assert.calledOnce(spy); }); }); From 3efa2929b127a527fff38363bd8ec807380f2360 Mon Sep 17 00:00:00 2001 From: Roberto Trevino Date: Mon, 26 Jun 2023 15:40:37 -0600 Subject: [PATCH 9/9] fix test failures --- ..._list_all_dynamic_alpha_ids_countries.json | 10 +-- .../recording_can_manage_configuration.json | 69 ++++--------------- ..._can_list_all_preregistered_alpha_ids.json | 20 +++--- ...all_preregistered_alpha_ids_countries.json | 10 +-- ..._list_all_dynamic_alpha_ids_countries.json | 10 +-- .../recording_can_manage_configuration.json | 60 ++++------------ ..._can_list_all_preregistered_alpha_ids.json | 20 +++--- ...all_preregistered_alpha_ids_countries.json | 10 +-- .../test/public/dynamicAlphaId.spec.ts | 47 +++++++------ .../public/utils/alphaIdClientTestUtils.ts | 25 ------- 10 files changed, 96 insertions(+), 185 deletions(-) delete mode 100644 sdk/communication/communication-alpha-ids/test/public/utils/alphaIdClientTestUtils.ts diff --git a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json index deed583e4bc7..eebd924f566e 100644 --- a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json +++ b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json @@ -19,7 +19,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 18:16:32 GMT", + "x-ms-date": "Mon, 26 Jun 2023 21:39:22 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, @@ -28,12 +28,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "115", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 18:16:33 GMT", - "MS-CV": "7XfiFuek80i2VtQHBaMJSw.0", + "Date": "Mon, 26 Jun 2023 21:39:23 GMT", + "MS-CV": "E9jdHz\u002BCskC3dz2Q8FwiWA.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0AtaZZAAAAABqs6F0ML5rT4Hu/GAbqTwzREZXMzBFREdFMTYwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0jAWaZAAAAABTsb5nc7NZQ5tyTHO5V6amREZXMzBFREdFMTYxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "254ms" + "X-Processing-Time": "342ms" }, "ResponseBody": { "countries": [ diff --git a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_manage_configuration.json b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_manage_configuration.json index 513696d19fcd..ec80d24ec9cd 100644 --- a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_manage_configuration.json +++ b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__manage_configuration/recording_can_manage_configuration.json @@ -21,7 +21,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "JrNCayWTdjyW0IkLSnegu/ZtE/xRKwxrE4ojwpDzCio=", - "x-ms-date": "Mon, 26 Jun 2023 18:16:28 GMT", + "x-ms-date": "Mon, 26 Jun 2023 21:39:20 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": { @@ -32,12 +32,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "16", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 18:16:29 GMT", - "MS-CV": "QsRFQTPCYkCnhS0/v5M8UQ.0", + "Date": "Mon, 26 Jun 2023 21:39:22 GMT", + "MS-CV": "mNRHyK/F8Uq7xsQrhNdnnQ.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0/tWZZAAAAAAPDpv4Wk2KS4N55tr4ha6wREZXMzBFREdFMTYwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0igWaZAAAAADGyurFDBM6RaNLlTYGNT4SREZXMzBFREdFMTYxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "381ms" + "X-Processing-Time": "701ms" }, "ResponseBody": { "enabled": true @@ -62,7 +62,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 18:16:30 GMT", + "x-ms-date": "Mon, 26 Jun 2023 21:39:21 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, @@ -71,12 +71,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "16", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 18:16:31 GMT", - "MS-CV": "akYHbsMayUOyY7rI2MAPtw.0", + "Date": "Mon, 26 Jun 2023 21:39:22 GMT", + "MS-CV": "LlyVApzSw0WnfhUruVCsOw.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0/9WZZAAAAAAeZzK2iGLET5eLArpSHLRCREZXMzBFREdFMTYwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0iwWaZAAAAAAQdzU8bWT0RYXJziKS0vRkREZXMzBFREdFMTYxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "277ms" + "X-Processing-Time": "280ms" }, "ResponseBody": { "enabled": true @@ -103,7 +103,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "Ws8/93tEIGd7WSMHHzA/rKunqSc6NGKEpmeidd8yUUY=", - "x-ms-date": "Mon, 26 Jun 2023 18:16:31 GMT", + "x-ms-date": "Mon, 26 Jun 2023 21:39:21 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": { @@ -114,51 +114,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "17", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 18:16:31 GMT", - "MS-CV": "aARrXNRlA0WqGPNwSAJFNw.0", + "Date": "Mon, 26 Jun 2023 21:39:23 GMT", + "MS-CV": "4NPHARdHFUCK1y8uytZZkg.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0ANaZZAAAAACmo4zMSpXKR71DOzQo4R0FREZXMzBFREdFMTYwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0iwWaZAAAAABQuA3yOhocQYqiw1zMgAGXREZXMzBFREdFMTYxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "192ms" - }, - "ResponseBody": { - "enabled": false - } - }, - { - "RequestUri": "https://endpoint/alphaIds/dynamic/configuration?api-version=2023-07-12", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "en-US", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Referer": "http://localhost:9876/", - "sec-ch-ua": "", - "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "\u0022\u0022", - "Sec-Fetch-Dest": "empty", - "Sec-Fetch-Mode": "cors", - "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 18:16:32 GMT", - "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2022-09-26-preview, 2023-07-12", - "Content-Length": "17", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 18:16:32 GMT", - "MS-CV": "nIsVeqaCZ0CFPw3vQNWuQg.0", - "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0AdaZZAAAAAC7wlONbqYDT5C1XSIveQUzREZXMzBFREdFMTYwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "259ms" + "X-Processing-Time": "413ms" }, "ResponseBody": { "enabled": false diff --git a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json index aa6c9f1b4633..5cfccc8fbbc5 100644 --- a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json +++ b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json @@ -19,7 +19,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 18:16:33 GMT", + "x-ms-date": "Mon, 26 Jun 2023 21:39:22 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, @@ -28,12 +28,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "15", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 18:16:33 GMT", - "MS-CV": "YEp549P88Uiy43\u002BmpFZH5A.0", + "Date": "Mon, 26 Jun 2023 21:39:24 GMT", + "MS-CV": "\u002BCniR9QVIEGA32UJkR4QfA.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0AtaZZAAAAABPYFbXZb\u002BCQL95rqPXra2RREZXMzBFREdFMTYwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0jAWaZAAAAACMrjUaVQ0UR7TbKlz3XAnnREZXMzBFREdFMTYxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "261ms" + "X-Processing-Time": "227ms" }, "ResponseBody": { "alphaIds": [] @@ -58,7 +58,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 18:16:33 GMT", + "x-ms-date": "Mon, 26 Jun 2023 21:39:23 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, @@ -67,12 +67,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "15", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 18:16:34 GMT", - "MS-CV": "FjueEVSDak2efyTxdz3AFQ.0", + "Date": "Mon, 26 Jun 2023 21:39:24 GMT", + "MS-CV": "DSOum7sjoEew0NjXEUhFpQ.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0AtaZZAAAAAAprDr04UEYT6NuWXntP3\u002BuREZXMzBFREdFMTYwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0jAWaZAAAAABzLsZixf9eSqGZuAVBMFTnREZXMzBFREdFMTYxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "131ms" + "X-Processing-Time": "183ms" }, "ResponseBody": { "alphaIds": [] diff --git a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json index c8ad8bd083e7..3add96047820 100644 --- a/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json +++ b/sdk/communication/communication-alpha-ids/recordings/browsers/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json @@ -19,7 +19,7 @@ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 18:16:33 GMT", + "x-ms-date": "Mon, 26 Jun 2023 21:39:23 GMT", "x-ms-useragent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, @@ -28,12 +28,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "50", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 18:16:34 GMT", - "MS-CV": "\u002BLthIUDSc0GLKEi97lP9Yw.0", + "Date": "Mon, 26 Jun 2023 21:39:24 GMT", + "MS-CV": "Oo\u002BRosL8nk6Sb5h2RQBOSw.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0A9aZZAAAAAAIZWhnOjSkS5wewHNgBma/REZXMzBFREdFMTYwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0jQWaZAAAAADOxWzBjakHSozW5o27uvHUREZXMzBFREdFMTYxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "245ms" + "X-Processing-Time": "316ms" }, "ResponseBody": { "countries": [ diff --git a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json index 220f8357a6c5..a6869d852543 100644 --- a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json +++ b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_list_all_dynamic_alpha_ids_countries.json @@ -11,7 +11,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 18:16:20 GMT" + "x-ms-date": "Mon, 26 Jun 2023 21:39:09 GMT" }, "RequestBody": null, "StatusCode": 200, @@ -19,12 +19,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "115", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 18:16:21 GMT", - "MS-CV": "N0xTKYmWiU\u002B3o\u002BYLuFlv4A.0", + "Date": "Mon, 26 Jun 2023 21:39:11 GMT", + "MS-CV": "ZNZw1JlNxkGGdxB51lVRBg.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "09dWZZAAAAAAC3BoPsDGKQ6cixRY\u002BVZ9vREZXMzBFREdFMTUwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0fwWaZAAAAADxGLYJq5w0SbxR8gBIhIHtREZXMzBFREdFMTUxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "283ms" + "X-Processing-Time": "415ms" }, "ResponseBody": { "countries": [ diff --git a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_manage_configuration.json b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_manage_configuration.json index 9333a8343ed7..7c8e86e2385a 100644 --- a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_manage_configuration.json +++ b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__manage_configuration/recording_can_manage_configuration.json @@ -13,7 +13,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "JrNCayWTdjyW0IkLSnegu/ZtE/xRKwxrE4ojwpDzCio=", - "x-ms-date": "Mon, 26 Jun 2023 18:16:15 GMT" + "x-ms-date": "Mon, 26 Jun 2023 21:39:08 GMT" }, "RequestBody": { "enabled": true @@ -23,12 +23,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "16", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 18:16:17 GMT", - "MS-CV": "DieZJJpp1EG/WLhvzmf0hA.0", + "Date": "Mon, 26 Jun 2023 21:39:09 GMT", + "MS-CV": "zxMpMRb1qUS4EepAgTIkoQ.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "08dWZZAAAAABLB903q0/UT6Jwb7qlHqJWREZXMzBFREdFMTUwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0fgWaZAAAAACTcFp7m/\u002BYQYMdvUEYRlFRREZXMzBFREdFMTUxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "768ms" + "X-Processing-Time": "422ms" }, "ResponseBody": { "enabled": true @@ -45,7 +45,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 18:16:18 GMT" + "x-ms-date": "Mon, 26 Jun 2023 21:39:09 GMT" }, "RequestBody": null, "StatusCode": 200, @@ -53,12 +53,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "16", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 18:16:19 GMT", - "MS-CV": "Mp7Zf2L\u002BT0mDhI87Ku20Ow.0", + "Date": "Mon, 26 Jun 2023 21:39:10 GMT", + "MS-CV": "szIIkg4fUUutMHrPMkOdvg.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "089WZZAAAAACv86swWayxSJPsB3WwoY0rREZXMzBFREdFMTUwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0fgWaZAAAAADd\u002Bxpv\u002Bu0VSr/LsBqssGXdREZXMzBFREdFMTUxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "271ms" + "X-Processing-Time": "205ms" }, "ResponseBody": { "enabled": true @@ -77,7 +77,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "Ws8/93tEIGd7WSMHHzA/rKunqSc6NGKEpmeidd8yUUY=", - "x-ms-date": "Mon, 26 Jun 2023 18:16:18 GMT" + "x-ms-date": "Mon, 26 Jun 2023 21:39:09 GMT" }, "RequestBody": { "enabled": false @@ -87,42 +87,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "17", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 18:16:19 GMT", - "MS-CV": "aeVJjt1gH06kmxNbhGKnOw.0", + "Date": "Mon, 26 Jun 2023 21:39:10 GMT", + "MS-CV": "KK18JwBXmEGPw5aCU/fPCw.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "089WZZAAAAAAnLGP3cwfbRIwt9moPCZbXREZXMzBFREdFMTUwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0fwWaZAAAAAALySJMTqc5SbniDK2gw6\u002BjREZXMzBFREdFMTUxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "436ms" - }, - "ResponseBody": { - "enabled": false - } - }, - { - "RequestUri": "https://endpoint/alphaIds/dynamic/configuration?api-version=2023-07-12", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 18:16:20 GMT" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2022-09-26-preview, 2023-07-12", - "Content-Length": "17", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 18:16:20 GMT", - "MS-CV": "U4WrptXN\u002BE2vBX/VQy1lpw.0", - "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "09dWZZAAAAACI7XCRnk/PQrNO12v0KlPzREZXMzBFREdFMTUwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "247ms" + "X-Processing-Time": "263ms" }, "ResponseBody": { "enabled": false diff --git a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json index 22612af59dd8..4f0287a36ce6 100644 --- a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json +++ b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids.json @@ -11,7 +11,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 18:16:21 GMT" + "x-ms-date": "Mon, 26 Jun 2023 21:39:10 GMT" }, "RequestBody": null, "StatusCode": 200, @@ -19,12 +19,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "15", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 18:16:21 GMT", - "MS-CV": "Y/Q4eXQRL0qCbrBOVnB7eQ.0", + "Date": "Mon, 26 Jun 2023 21:39:11 GMT", + "MS-CV": "hGFvYnCt8Um\u002BJAQA5yaRnA.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "09tWZZAAAAAAMzvFCoOvbTaTtEQt\u002BO6wPREZXMzBFREdFMTUwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0gAWaZAAAAADZ7bQlBvurTpVFmsOZwBEAREZXMzBFREdFMTUxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "295ms" + "X-Processing-Time": "448ms" }, "ResponseBody": { "alphaIds": [] @@ -41,7 +41,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 18:16:21 GMT" + "x-ms-date": "Mon, 26 Jun 2023 21:39:10 GMT" }, "RequestBody": null, "StatusCode": 200, @@ -49,12 +49,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "15", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 18:16:22 GMT", - "MS-CV": "Dtlf7hJZdkqDEyOlzQG9qw.0", + "Date": "Mon, 26 Jun 2023 21:39:12 GMT", + "MS-CV": "8sST0o/FgUWZLQbXZLhzGA.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "09tWZZAAAAADyeliWAigNQInABr3gqckXREZXMzBFREdFMTUwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0gAWaZAAAAAA5t3\u002BMPkv/QZOk21lWDP11REZXMzBFREdFMTUxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "595ms" + "X-Processing-Time": "302ms" }, "ResponseBody": { "alphaIds": [] diff --git a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json index bc5c1cb3faec..28dbb9e5f11c 100644 --- a/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json +++ b/sdk/communication/communication-alpha-ids/recordings/node/alphaidsclient__preregistered_alpha_ids_operations/recording_can_list_all_preregistered_alpha_ids_countries.json @@ -11,7 +11,7 @@ "User-Agent": "azsdk-js-communication-alpha-ids/1.0.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.13.0 OS/(x64-Linux-5.15.90.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Mon, 26 Jun 2023 18:16:22 GMT" + "x-ms-date": "Mon, 26 Jun 2023 21:39:11 GMT" }, "RequestBody": null, "StatusCode": 200, @@ -19,12 +19,12 @@ "api-supported-versions": "2022-09-26-preview, 2023-07-12", "Content-Length": "50", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 26 Jun 2023 18:16:22 GMT", - "MS-CV": "/U812CsyR0OqQU7zthPgAw.0", + "Date": "Mon, 26 Jun 2023 21:39:12 GMT", + "MS-CV": "\u002B/3wMuJsdkm3sZtTdEhm\u002Bg.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "099WZZAAAAABu1tByqflKTqN1jgBnnn2FREZXMzBFREdFMTUwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0gQWaZAAAAAA7JnAs2bIRRYk\u002B3ntj\u002BsxRREZXMzBFREdFMTUxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "298ms" + "X-Processing-Time": "357ms" }, "ResponseBody": { "countries": [ diff --git a/sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts b/sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts index 134e4b0f78a5..81101f323bc6 100644 --- a/sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts +++ b/sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts @@ -5,10 +5,9 @@ import { AlphaIdsClient } from "../../src"; import { Context } from "mocha"; import { Recorder } from "@azure-tools/test-recorder"; import { createRecordedClient } from "./utils/recordedClient"; -import { assertAlphaDynamicConfiguration } from "./utils/alphaIdClientTestUtils"; import { assert } from "chai"; - -const sleep = (ms: number): Promise => new Promise((resolve) => setTimeout(resolve, ms)); +import { FullOperationResponse, OperationOptions } from "@azure/core-client"; +import { DynamicAlphaIdConfiguration } from "../../src"; describe(`AlphaIdsClient - manage configuration`, function () { let recorder: Recorder; @@ -25,25 +24,31 @@ describe(`AlphaIdsClient - manage configuration`, function () { }); it("can manage configuration", async function () { - await assertAlphaDynamicConfiguration( - (operationOptions) => client.upsertDynamicAlphaIdConfiguration(true, operationOptions), - true - ); - // wait 1s to get the updated configuration - await sleep(1000); - await assertAlphaDynamicConfiguration( - (operationOptions) => client.getDynamicAlphaIdConfiguration(operationOptions), - true - ); - await assertAlphaDynamicConfiguration( - (operationOptions) => client.upsertDynamicAlphaIdConfiguration(false, operationOptions), - false + let configuration: DynamicAlphaIdConfiguration; + let configurationResponse: FullOperationResponse | undefined; + const getConfigurationRequest: OperationOptions = { + onResponse: (response) => { + configurationResponse = response; + }, + }; + + configuration = await client.upsertDynamicAlphaIdConfiguration(true, getConfigurationRequest); + assert.isOk(configuration); + assert.isTrue( + configuration.enabled, + `The expected configuration: true is different than the received configuration: false + CV: ${configurationResponse?.headers.get("MS-CV")}` ); - // wait 1s to get the updated configuration - await sleep(1000); - await assertAlphaDynamicConfiguration( - (operationOptions) => client.getDynamicAlphaIdConfiguration(operationOptions), - false + + configuration = await client.getDynamicAlphaIdConfiguration(getConfigurationRequest); + assert.isOk(configuration); + + configuration = await client.upsertDynamicAlphaIdConfiguration(false, getConfigurationRequest); + assert.isOk(configuration); + assert.isFalse( + configuration.enabled, + `The expected configuration: false is different than the received configuration: true + CV: ${configurationResponse?.headers.get("MS-CV")}` ); }).timeout(15000); diff --git a/sdk/communication/communication-alpha-ids/test/public/utils/alphaIdClientTestUtils.ts b/sdk/communication/communication-alpha-ids/test/public/utils/alphaIdClientTestUtils.ts deleted file mode 100644 index 36ae5d158b0f..000000000000 --- a/sdk/communication/communication-alpha-ids/test/public/utils/alphaIdClientTestUtils.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { DynamicAlphaIdConfiguration } from "../../../src"; -import { assert } from "chai"; -import { FullOperationResponse, OperationOptions } from "@azure/core-client"; - -export async function assertAlphaDynamicConfiguration( - call: (operationOptions: OperationOptions) => Promise, - expectedConfiguration: boolean -): Promise { - let configurationResponse: FullOperationResponse | undefined; - const getConfigurationRequest: OperationOptions = { - onResponse: (response) => { - configurationResponse = response; - }, - }; - const configuration = await call(getConfigurationRequest); - assert.isOk(configuration); - assert.isTrue( - configuration.enabled === expectedConfiguration, - `The expected configuration: ${expectedConfiguration.toString()} is different than the received configuration: ${configuration.enabled.toString()} - CV: ${configurationResponse?.headers.get("MS-CV")}` - ); -}