diff --git a/sdk/communication/Azure.Communication.Administration/README.md b/sdk/communication/Azure.Communication.Administration/README.md index c18261448c403..d67e8b17d51ed 100644 --- a/sdk/communication/Azure.Communication.Administration/README.md +++ b/sdk/communication/Azure.Communication.Administration/README.md @@ -7,7 +7,7 @@ Identity client: 2020-07-20-preview2 Azure Communication Administration is managing tokens and phone numbers for Azure Communication Services. -[Source code][source] | [Package (NuGet)][package] | [Product documentation][product_docs] +[Source code][source] | [Package (NuGet)][package] | [Product documentation][product_docs] | [Samples][source_samples] ## Getting started @@ -205,19 +205,6 @@ Console.WriteLine($"ReservationId: {reservationResponse.Value.ReservationId}, St ```C# var reservationPurchaseOperation = await client.StartPurchaseReservationAsync(reservationId).ConfigureAwait(false); await reservationPurchaseOperation.WaitForCompletionAsync().ConfigureAwait(false); - -// Ensure purchase has completed successfuly -try -{ - var reservationStatus = reservationPurchaseOperation.Value; - // ... -} -catch (Exception ex) -{ - Console.WriteLine("Purchase failed"); - Console.WriteLine(ex.Message); -} - ``` ### Configure phone number @@ -249,6 +236,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [azure_sub]: https://azure.microsoft.com/free/ [azure_portal]: https://portal.azure.com [source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/communication/Azure.Communication.Administration/src +[source_samples]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.Administration/samples [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/communication/Azure.Communication.Administration/api/Azure.Communication.Administration.netstandard2.0.cs b/sdk/communication/Azure.Communication.Administration/api/Azure.Communication.Administration.netstandard2.0.cs index 3f3e5e1b043f6..bd775d3899d41 100644 --- a/sdk/communication/Azure.Communication.Administration/api/Azure.Communication.Administration.netstandard2.0.cs +++ b/sdk/communication/Azure.Communication.Administration/api/Azure.Communication.Administration.netstandard2.0.cs @@ -76,6 +76,8 @@ public PhoneNumberAdministrationClient(string connectionString, Azure.Communicat public virtual System.Threading.Tasks.Task> GetReservationByIdAsync(string reservationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Communication.Administration.Models.PhoneNumberReservationPurchaseOperation StartPurchaseReservation(string reservationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task StartPurchaseReservationAsync(string reservationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Communication.Administration.Models.ReleasePhoneNumberOperation StartReleasePhoneNumber(Azure.Communication.PhoneNumber phoneNumber, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task StartReleasePhoneNumberAsync(Azure.Communication.PhoneNumber phoneNumber, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Communication.Administration.Models.ReleasePhoneNumberOperation StartReleasePhoneNumbers(System.Collections.Generic.IEnumerable phoneNumbers, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task StartReleasePhoneNumbersAsync(System.Collections.Generic.IEnumerable phoneNumbers, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Communication.Administration.Models.PhoneNumberReservationOperation StartReservation(Azure.Communication.Administration.Models.CreateReservationOptions body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } diff --git a/sdk/communication/Azure.Communication.Administration/samples/README.md b/sdk/communication/Azure.Communication.Administration/samples/README.md index 0f7037a4110f4..d8d334f2da08c 100644 --- a/sdk/communication/Azure.Communication.Administration/samples/README.md +++ b/sdk/communication/Azure.Communication.Administration/samples/README.md @@ -9,15 +9,21 @@ name: Azure Communication Administration samples for .NET description: Samples for the Azure.Communication.Administration client library --- -# Azure Communication Administration SDK Samples +# Azure Communication Administration SDK samples Azure Communication Administration is a client library that is used to do operations necessary for using different services offered by Azure Communication Services, such as calling, chat, SMS, PSTN etc. To get started you will need to have an Azure Subscription. Once you have this you can go into the Azure portal and create Azure Communication Services resource. The page will give you necessary information to be able to use the sample codes here such as connections string, shared access key, etc. This client library allows to do following operations: - Generate user tokens that allows the holders to access Azure Communication Services. + - Purchase, configure and release phone numbers. - \ No newline at end of file + #### You can find samples for each of these functions below. + - Generate user tokens [synchronously][sample_identity] or [asynchronously][sample_identity_async] + - Manage phone numbers [synchronously][sample_admin] or [asynchronously][sample_admin_async] + + +[sample_identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/communication/Azure.Communication.Administration/samples/Sample1_CommunicationIdentityClient.md +[sample_identity_async]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/communication/Azure.Communication.Administration/samples/Sample1_CommunicationIdentityClientAsync.md +[sample_admin]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.Administration/samples/Sample2_PhoneNumberAdministrationClient.md +[sample_admin_async]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.Administration/samples/Sample2_PhoneNumberAdministrationClientAsync.md diff --git a/sdk/communication/Azure.Communication.Administration/samples/Sample1_CommunicationIdentityClient.md b/sdk/communication/Azure.Communication.Administration/samples/Sample1_CommunicationIdentityClient.md index 636ae8feb685c..d8d1ca10935e9 100644 --- a/sdk/communication/Azure.Communication.Administration/samples/Sample1_CommunicationIdentityClient.md +++ b/sdk/communication/Azure.Communication.Administration/samples/Sample1_CommunicationIdentityClient.md @@ -6,7 +6,7 @@ To get started you'll need an Azure Communication Services resource. See the REA ## Create a `CommunicationIdentityClient` -To create a new `CommunicationIdentityClient` you need a connection string to the Azure Communication Services resource that you can get from the Azure Portal once you create a relevant resource. +To create a new `CommunicationIdentityClient` you need a connection string to the Azure Communication Services resource that you can get from the Azure Portal once you have created the resource. You can set `connectionString` based on an environment variable, a configuration setting, or any way that works for your application. @@ -53,4 +53,4 @@ To see the full example source files, see: [ReadMe](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/communication/Azure.Communication.Administration/samples/ReadMe.md) [GenerateUserTokenCode](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/communication/Azure.Communication.Administration/tests/samples/Sample1_CommunicationIdentityClient.cs) - --> \ No newline at end of file + --> diff --git a/sdk/communication/Azure.Communication.Administration/samples/Sample1_CommunicationIdentityClientAsync.md b/sdk/communication/Azure.Communication.Administration/samples/Sample1_CommunicationIdentityClientAsync.md index 25905f5f48f8d..6e79bc222368a 100644 --- a/sdk/communication/Azure.Communication.Administration/samples/Sample1_CommunicationIdentityClientAsync.md +++ b/sdk/communication/Azure.Communication.Administration/samples/Sample1_CommunicationIdentityClientAsync.md @@ -6,7 +6,7 @@ To get started you'll need an Azure Communication Services resource. See the REA ## Create a `CommunicationIdentityClient` -To create a new `CommunicationIdentityClient` you need a connection string to the Azure Communication Services resource that you can get from the Azure Portal once you create a relevant resource. +To create a new `CommunicationIdentityClient` you need a connection string to the Azure Communication Services resource that you can get from the Azure Portal once you have created the resource. You can set `connectionString` based on an environment variable, a configuration setting, or any way that works for your application. @@ -53,4 +53,4 @@ To see the full example source files, see: \ No newline at end of file +--> diff --git a/sdk/communication/Azure.Communication.Administration/samples/Sample2_PhoneNumberAdministrationClient.md b/sdk/communication/Azure.Communication.Administration/samples/Sample2_PhoneNumberAdministrationClient.md new file mode 100644 index 0000000000000..179b27a97dee6 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/samples/Sample2_PhoneNumberAdministrationClient.md @@ -0,0 +1,200 @@ +# Searching, reserving, purchasing, releasing phone numbers + +This sample demonstrates how to search, reserve, purchase and release phone numbers in Azure Communication Services. +To get started, you'll need a URI to an Azure Communication Services. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.Administration/README.md) for links and instructions. + +## Creating a PhoneNumberAdministrationClient + +To create a new `PhoneNumberAdministrationClient` you need a connection string to the Azure Communication Services resource that you can get from the Azure Portal once you have created the resource. + +You can set `connectionString` based on an environment variable, a configuration setting, or any way that works for your application. + +```C# Snippet:CreatePhoneNumberAdministrationClient +// Get a connection string to our Azure Communication resource. +var connectionString = ""; +var client = new PhoneNumberAdministrationClient(connectionString); +``` + +## Listing all supported countries + +In order to acquire a phone number you will need to know if Azure Communication Services are available in a particular country. You can find out by retrieving a list of supported countries. + +```C# Snippet:GetAllSupportedCountries +var supportedCountries = client.GetAllSupportedCountries(locale); +foreach (var country in supportedCountries) +{ + Console.WriteLine($"Supported country code: {country.CountryCode}, name: {country.LocalizedName}"); +} +``` + +## Listing phone plan groups + +Phone plan groups come in two types, Geographic and Toll-Free. + +```C# Snippet:GetPhonePlanGroups +var phonePlanGroups = client.GetPhonePlanGroups(countryCode, locale); + +foreach (var phonePlanGroup in phonePlanGroups) +{ + Console.WriteLine($"Plan group: {phonePlanGroup.LocalizedName}, type: {phonePlanGroup.PhoneNumberType}"); +} +``` + +## Listing phone plans + +Unlike Toll-Free phone plans, area codes for Geographic phone plans are empty. Area codes are found in the Area Codes API. + +```C# Snippet:GetPhonePlans +var phonePlans = client.GetPhonePlans(countryCode, phonePlanGroupId, locale); +foreach (var phonePlan in phonePlans) +{ + Console.WriteLine($"Plan: {phonePlan.LocalizedName}, {phonePlan.LocationType}"); +} +``` + +## Get location options + +For Geographic phone plans, you can query the available geographic locations. The locations options are structured like the geographic hierarchy of a country. For example, the US has states and within each state are cities. + +```C# Snippet:GetPhonePlanLocationOptions +var locationOptionsResponse = client.GetPhonePlanLocationOptions(countryCode, geographicPhonePlanGroup.PhonePlanGroupId, phonePlanId); + +void PrintLocationOption(LocationOptions locationOptions) +{ + Console.WriteLine($"LabelId: {locationOptions.LabelId}, LabelName: {locationOptions.LabelName}"); + + foreach (var locationOption in locationOptions.Options) + { + Console.WriteLine($"Name: {locationOption.Name}, Value: {locationOption.Value}"); + + foreach (var subLocationOption in locationOption.LocationOptions) + PrintLocationOption(subLocationOption); + } +} +PrintLocationOption(locationOptionsResponse.Value.LocationOptions); +``` + +## Get area codes + +Fetching area codes for geographic phone plans will require the location options queries set. You must include the chain of geographic locations traversing down the location options object returned by the `GetPhonePlanLocationOptions`. + +```C# Snippet:GeographicalAreaCodes +var locationOptionsResponse = client.GetPhonePlanLocationOptions(countryCode, geographicPhonePlanGroupId, geographicPhonePlanId); +var state = locationOptionsResponse.Value.LocationOptions.Options.First(); + +var locationOptionsQueries = new List +{ + new LocationOptionsQuery + { + LabelId = "state", + OptionsValue = state.Value + }, + new LocationOptionsQuery + { + LabelId = "city", + OptionsValue = state.LocationOptions.First().Options.First().Value + } +}; + +var areaCodes = client.GetAllAreaCodes(geographicPhonePlan.LocationType.ToString(), countryCode, geographicPhonePlan.PhonePlanId, locationOptionsQueries); + +foreach (var areaCode in areaCodes.Value.PrimaryAreaCodes) +{ + Console.WriteLine($"Primary area code: {areaCode}"); +} +``` + +Area codes for toll-free phone plans can be found in the plan. + +```C# Snippet:TollFreePlanAreaCodes +var phonePlans = client.GetPhonePlans(countryCode, tollFreePhonePlanGroupId, locale); +var tollFreePhonePlan = phonePlans.First(); + +foreach (var areaCode in tollFreePhonePlan.AreaCodes) +{ + Console.WriteLine($"Area code: {areaCode}"); +} +``` + +## Reserve phone numbers + +Phone numbers need to be reserved before they can be purchased. Reservation is a long running operation that can be started by `CreateReservationOptions` function that returns an `PhoneNumberReservationOperation` object. `PhoneNumberReservationOperation` can be used to update status of the operation and to check for completeness. + +```C# Snippet:ReservePhoneNumbers +var reservationName = "My reservation"; +var reservationDescription = "reservation description"; +var reservationOptions = new CreateReservationOptions(reservationName, reservationDescription, new[] { phonePlanId }, areaCode); +reservationOptions.Quantity = 1; + +var reserveOperation = client.StartReservation(reservationOptions); + +while (!reserveOperation.HasCompleted) +{ + Thread.Sleep(2000); + + reserveOperation.UpdateStatus(); +} +``` + +## Persist reserve phone numbers operation + +You can persist the operation Id of the phone number reservation so that you can come back and check the operation status later. + +```C# Snippet:PersistReservePhoneNumbersOperation +var reservationId = reserveOperation.Id; + +// persist reservationId and then continue with a new operation + +var reserveOperation = new PhoneNumberReservationOperation(client, reservationId); + +while (!reserveOperation.HasCompleted) +{ + Thread.Sleep(2000); + + reserveOperation.UpdateStatus(); +} +``` + +## Purchase phone numbers + +Phone numbers can be acquired through purchasing a reservation. + +```C# Snippet:StartPurchaseReservation +var purchaseOperation = client.StartPurchaseReservation(reservationId); + +while (!purchaseOperation.HasCompleted) +{ + Thread.Sleep(2000); + + purchaseOperation.UpdateStatus(); +} +``` + +## Listing acquired phone numbers + +You can list all phone numbers that have been acquired for your resource. + +```C# Snippet:ListAcquiredPhoneNumbers +var acquiredPhoneNumbers = client.GetAllPhoneNumbers(locale); + +foreach (var phoneNumber in acquiredPhoneNumbers) +{ + Console.WriteLine($"Phone number: {phoneNumber.PhoneNumber}, activation state: {phoneNumber.ActivationState}"); +} +``` + +## Release phone numbers + +If you no longer need a phone number you can release it. + +```C# Snippet:ReleasePhoneNumbers +var acquiredPhoneNumber = ""; +var releaseOperation = client.StartReleasePhoneNumber(new PhoneNumber(acquiredPhoneNumber)); + +while (!releaseOperation.HasCompleted) +{ + Thread.Sleep(2000); + + releaseOperation.UpdateStatus(); +} +``` diff --git a/sdk/communication/Azure.Communication.Administration/samples/Sample2_PhoneNumberAdministrationClientAsync.md b/sdk/communication/Azure.Communication.Administration/samples/Sample2_PhoneNumberAdministrationClientAsync.md new file mode 100644 index 0000000000000..fd7ecf9bbdfaf --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/samples/Sample2_PhoneNumberAdministrationClientAsync.md @@ -0,0 +1,176 @@ +# Searching, reserving, purchasing, releasing phone numbers (Async) + +This sample demonstrates how to search, reserve, purchase and release phone numbers in Azure Communication Services. +To get started, you'll need a URI to an Azure Communication Services. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.Administration/README.md) for links and instructions. + +## Creating a PhoneNumberAdministrationClient + +To create a new `PhoneNumberAdministrationClient` you need a connection string to the Azure Communication Services resource that you can get from the Azure Portal once you have created the resource. + +You can set `connectionString` based on an environment variable, a configuration setting, or any way that works for your application. + +```C# Snippet:CreatePhoneNumberAdministrationClient +// Get a connection string to our Azure Communication resource. +var connectionString = ""; +var client = new PhoneNumberAdministrationClient(connectionString); +``` + +## Listing all supported countries + +In order to acquire a phone number you will need to know if Azure Communication Services are available in a particular country. You can find out by retrieving a list of supported countries. + +```C# Snippet:GetAllSupportedCountriesAsync +var supportedCountries = client.GetAllSupportedCountriesAsync(locale); +await foreach (var country in supportedCountries) +{ + Console.WriteLine($"Supported country code: {country.CountryCode}, name: {country.LocalizedName}"); +} +``` + +## Listing phone plan groups + +Phone plan groups come in two types, Geographic and Toll-Free. + +```C# Snippet:GetPhonePlanGroupsAsync +var phonePlanGroups = client.GetPhonePlanGroupsAsync(countryCode, locale); + +await foreach (var phonePlanGroup in phonePlanGroups) +{ + Console.WriteLine($"Plan group: {phonePlanGroup.LocalizedName}, type: {phonePlanGroup.PhoneNumberType}"); +} +``` + +## Listing phone plans + +Unlike Toll-Free phone plans, area codes for Geographic phone plans are empty. Area codes are found in the Area Codes API. + +```C# Snippet:GetPhonePlansAsync +var phonePlans = client.GetPhonePlansAsync(countryCode, phonePlanGroupId, locale); +await foreach (var phonePlan in phonePlans) +{ + Console.WriteLine($"Plan: {phonePlan.LocalizedName}, {phonePlan.LocationType}"); +} +``` + +## Get location options + +For Geographic phone plans, you can query the available geographic locations. The locations options are structured like the geographic hierarchy of a country. For example, the US has states and within each state are cities. + +```C# Snippet:GetPhonePlanLocationOptionsAsync +var locationOptionsResponse = await client.GetPhonePlanLocationOptionsAsync(countryCode, geographicPhonePlanGroupId, phonePlanId); + +void PrintLocationOption(LocationOptions locationOptions) +{ + Console.WriteLine($"LabelId: {locationOptions.LabelId}, LabelName: {locationOptions.LabelName}"); + + foreach (var locationOption in locationOptions.Options) + { + Console.WriteLine($"Name: {locationOption.Name}, Value: {locationOption.Value}"); + + foreach (var subLocationOption in locationOption.LocationOptions) + PrintLocationOption(subLocationOption); + } +} +PrintLocationOption(locationOptionsResponse.Value.LocationOptions); +``` + +## Get area codes + +Fetching area codes for geographic phone plans will require the location options queries set. You must include the chain of geographic locations traversing down the location options object returned by the `GetPhonePlanLocationOptions`. + +```C# Snippet:GeographicalAreaCodesAsync +var locationOptionsResponse = await client.GetPhonePlanLocationOptionsAsync(countryCode, geographicPhonePlanGroupId, geographicPhonePlanId); +var state = locationOptionsResponse.Value.LocationOptions.Options.First(); + +var locationOptionsQueries = new List +{ + new LocationOptionsQuery + { + LabelId = "state", + OptionsValue = state.Value + }, + new LocationOptionsQuery + { + LabelId = "city", + OptionsValue = state.LocationOptions.First().Options.First().Value + } +}; + +var areaCodes = await client.GetAllAreaCodesAsync(geographicPhonePlan.LocationType.ToString(), countryCode, geographicPhonePlan.PhonePlanId, locationOptionsQueries); + +foreach (var areaCode in areaCodes.Value.PrimaryAreaCodes) +{ + Console.WriteLine($"Primary area code: {areaCode}"); +} +``` + +Area codes for toll-free phone plans can be found in the plan. + +```C# Snippet:TollFreePlanAreaCodesAsync +var phonePlans = client.GetPhonePlansAsync(countryCode, tollFreePhonePlanGroup.PhonePlanGroupId, locale); +var tollFreePhonePlan = (await phonePlans.ToEnumerableAsync()).First(); + +foreach (var areaCode in tollFreePhonePlan.AreaCodes) +{ + Console.WriteLine($"Area code: {areaCode}"); +} +``` + +## Reserve phone numbers + +Phone numbers need to be reserved before they can be purchased. Reservation is a long running operation that can be started by `CreateReservationOptions` function that returns an `PhoneNumberReservationOperation` object. `PhoneNumberReservationOperation` can be used to update status of the operation and to check for completeness. + +```C# Snippet:ReservePhoneNumbersAsync +var reservationName = "My reservation"; +var reservationDescription = "reservation description"; +var reservationOptions = new CreateReservationOptions(reservationName, reservationDescription, new[] { phonePlanId }, areaCode); +reservationOptions.Quantity = 1; + +var reserveOperation = await client.StartReservationAsync(reservationOptions); +await reserveOperation.WaitForCompletionAsync(); +``` + +## Persist reserve phone numbers operation + +You can persist the operation Id of the phone number reservation so that you can come back and check the operation status later. + +```C# Snippet:PersistReservePhoneNumbersOperationAsync +var reservationId = reserveOperation.Id; + +// persist reservationId and then continue with a new operation + +var reserveOperation = new PhoneNumberReservationOperation(client, reservationId); +await reserveOperation.WaitForCompletionAsync(); +``` + +## Purchase phone numbers + +Phone numbers can be acquired through purchasing a reservation. + +```C# Snippet:StartPurchaseReservationAsync +var purchaseOperation = await client.StartPurchaseReservationAsync(reservationId); +await purchaseOperation.WaitForCompletionAsync(); +``` + +## Listing acquired phone numbers + +You can list all phone numbers that have been acquired for your resource. + +```C# Snippet:ListAcquiredPhoneNumbersAsync +var acquiredPhoneNumbers = client.GetAllPhoneNumbersAsync(locale); + +await foreach (var phoneNumber in acquiredPhoneNumbers) +{ + Console.WriteLine($"Phone number: {phoneNumber.PhoneNumber}, activation state: {phoneNumber.ActivationState}"); +} +``` + +## Release phone numbers + +If you no longer need a phone number you can release it. + +```C# Snippet:ReleasePhoneNumbersAsync +var acquiredPhoneNumber = ""; +var releaseOperation = client.StartReleasePhoneNumber(new PhoneNumber(acquiredPhoneNumber)); +await releaseOperation.WaitForCompletionAsync(); +``` diff --git a/sdk/communication/Azure.Communication.Administration/src/PhoneNumberAdministrationClient.cs b/sdk/communication/Azure.Communication.Administration/src/PhoneNumberAdministrationClient.cs index ef55493e35010..02ca5c385abd5 100644 --- a/sdk/communication/Azure.Communication.Administration/src/PhoneNumberAdministrationClient.cs +++ b/sdk/communication/Azure.Communication.Administration/src/PhoneNumberAdministrationClient.cs @@ -554,6 +554,25 @@ public virtual Response GetReleaseById(string releaseId, Can } } + /// Starts a release for the given phone numbers. + /// The phone number in the release request. + /// The cancellation token to use. + /// A . + public virtual async Task StartReleasePhoneNumberAsync(PhoneNumber phoneNumber, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = ClientDiagnostics.CreateScope($"{nameof(PhoneNumberAdministrationClient)}.{nameof(StartReleasePhoneNumber)}"); + scope.Start(); + try + { + return await StartReleasePhoneNumbersAsync(new[] { phoneNumber }, cancellationToken).ConfigureAwait(false); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + /// Starts a release for the given phone numbers. /// The list of phone numbers in the release request. /// The cancellation token to use. @@ -578,6 +597,25 @@ public virtual async Task StartReleasePhoneNumbersA } } + /// Starts a release for the given phone number. + /// The phone number in the release request. + /// The cancellation token to use. + /// A . + public virtual ReleasePhoneNumberOperation StartReleasePhoneNumber(PhoneNumber phoneNumber, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = ClientDiagnostics.CreateScope($"{nameof(PhoneNumberAdministrationClient)}.{nameof(StartReleasePhoneNumber)}"); + scope.Start(); + try + { + return StartReleasePhoneNumbers(new[] { phoneNumber }, cancellationToken); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + /// Starts a release for the given phone numbers. /// The list of phone numbers in the release request. /// The cancellation token to use. diff --git a/sdk/communication/Azure.Communication.Administration/tests/Azure.Communication.Administration.Tests.csproj b/sdk/communication/Azure.Communication.Administration/tests/Azure.Communication.Administration.Tests.csproj index 325076356ff77..a1ae6441c9a3f 100644 --- a/sdk/communication/Azure.Communication.Administration/tests/Azure.Communication.Administration.Tests.csproj +++ b/sdk/communication/Azure.Communication.Administration/tests/Azure.Communication.Administration.Tests.csproj @@ -24,5 +24,7 @@ + + diff --git a/sdk/communication/Azure.Communication.Administration/tests/Infrastructure/PhoneNumberAdministrationClientLiveTestBase.cs b/sdk/communication/Azure.Communication.Administration/tests/Infrastructure/PhoneNumberAdministrationClientLiveTestBase.cs index 7bed4c4defd67..eae45615acdea 100644 --- a/sdk/communication/Azure.Communication.Administration/tests/Infrastructure/PhoneNumberAdministrationClientLiveTestBase.cs +++ b/sdk/communication/Azure.Communication.Administration/tests/Infrastructure/PhoneNumberAdministrationClientLiveTestBase.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System; using Azure.Communication.Pipeline; using Azure.Core.TestFramework; @@ -11,6 +12,9 @@ public class PhoneNumberAdministrationClientLiveTestBase : RecordedTestBase Sanitizer = new CommunicationRecordedTestSanitizer(); + public bool IncludePhoneNumberLiveTests + => TestEnvironment.Mode == RecordedTestMode.Playback || Environment.GetEnvironmentVariable("INCLUDE_PHONENUMBER_LIVE_TESTS") == "True"; + /// /// Creates a with the connectionstring via environment /// variables and instruments it to make use of the Azure Core Test Framework functionalities. diff --git a/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs b/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs index 9878821b05ad4..8b4a0cd2c853c 100644 --- a/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs +++ b/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs @@ -66,7 +66,7 @@ public async Task GetAllPhoneNumbers() public async Task GetPlanGroups(string? locale, bool? includeRateInformation) { var client = CreateClient(); - var countryCode = "US"; + const string countryCode = "US"; var pageablePhonePlanGroups = client.GetPhonePlanGroupsAsync(countryCode, locale, includeRateInformation); @@ -96,7 +96,7 @@ public async Task GetPlanGroups(string? locale, bool? includeRateInformation) public async Task GetPhonePlans(string? locale) { var client = CreateClient(); - var countryCode = "US"; + const string countryCode = "US"; var pageablePhonePlanGroups = client.GetPhonePlanGroupsAsync(countryCode, locale); var phonePlanGroups = await pageablePhonePlanGroups.ToEnumerableAsync().ConfigureAwait(false); @@ -114,7 +114,7 @@ public async Task GetPhonePlans(string? locale) public async Task GetAreaCodesForPlan(string? locale) { var client = CreateClient(); - var countryCode = "US"; + const string countryCode = "US"; var pageablePhonePlanGroups = client.GetPhonePlanGroupsAsync(countryCode, locale); var phonePlanGroups = await pageablePhonePlanGroups.ToEnumerableAsync().ConfigureAwait(false); @@ -152,8 +152,11 @@ public async Task GetAreaCodesForPlan(string? locale) [AsyncOnly] public async Task CreateReservationErrorState(string? locale) { + if (!IncludePhoneNumberLiveTests) + Assert.Ignore("Include phone number live tests flag is off."); + var client = CreateClient(); - var countryCode = "US"; + const string countryCode = "US"; var pageablePhonePlanGroups = client.GetPhonePlanGroupsAsync(countryCode, locale); var phonePlanGroups = await pageablePhonePlanGroups.ToEnumerableAsync().ConfigureAwait(false); @@ -189,8 +192,11 @@ public async Task CreateReservationErrorState(string? locale) [AsyncOnly] public async Task CreateReservation(string? locale) { + if (!IncludePhoneNumberLiveTests) + Assert.Ignore("Include phone number live tests flag is off."); + var client = CreateClient(); - var countryCode = "US"; + const string countryCode = "US"; var pageablePhonePlanGroups = client.GetPhonePlanGroupsAsync(countryCode, locale); var phonePlanGroups = await pageablePhonePlanGroups.ToEnumerableAsync().ConfigureAwait(false); diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/GeographicalAreaCodes.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/GeographicalAreaCodes.json new file mode 100644 index 0000000000000..34cf04ee6773a --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/GeographicalAreaCodes.json @@ -0,0 +1,1683 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Mon, 23 Nov 2020 18:16:26 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "3842b83a737c63b61efa20af45873db5", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 23 Nov 2020 18:16:27 GMT", + "MS-CV": "ERQenTZPo02IHU\u002B0bPj9fQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0evy7XwAAAAAAEeBZpDbRTJ\u002BObXB5HFfSWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "238ms" + }, + "ResponseBody": { + "phonePlanGroups": [ + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "Geographic", + "localizedName": "Azure- User - Geographic", + "localizedDescription": "These are numbers used by Azure resources." + }, + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "Geographic", + "localizedName": "Azure - Geographic", + "localizedDescription": "These are numbers used by Azure resources." + }, + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "TollFree", + "localizedName": "Azure - Toll Free", + "localizedDescription": "These are toll free numbers used by Azure resources." + } + ], + "nextLink": null + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/Sanitized/phoneplans?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Mon, 23 Nov 2020 18:16:27 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "db4017535bbf4e303c6238d70143a7b4", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 23 Nov 2020 18:16:27 GMT", + "MS-CV": "udIUoHlO0UeFmqywxZpHEg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0e/y7XwAAAADjlpT9cZC4TKIBBDc5ZbZhWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "313ms" + }, + "ResponseBody": { + "phonePlans": [ + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only PSTN For User - Geographic", + "locationType": "Selection", + "areaCodes": [], + "capabilities": [ + "Azure", + "OutboundCalling", + "UserAssignment", + "Geographic" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Inbound Only PSTN For User - Geographic", + "locationType": "Selection", + "areaCodes": [], + "capabilities": [ + "Azure", + "InboundCalling", + "UserAssignment", + "Geographic" + ], + "maximumSearchSize": 20 + } + ], + "nextLink": null + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/Sanitized/phoneplans/Sanitized/locationoptions?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Mon, 23 Nov 2020 18:16:27 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "ec0a3f305ddd3a89e2c6c105c844a5c6", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 23 Nov 2020 18:16:27 GMT", + "MS-CV": "5FYrdo4J5kudVMeTiKi1jg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0e/y7XwAAAACIS9JhzShZSKrIbzXOedqNWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "246ms" + }, + "ResponseBody": { + "locationOptions": { + "labelId": "state", + "labelName": "State", + "options": [ + { + "name": "AL", + "value": "AL", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Birmingham", + "value": "NOAM-US-AL-BI", + "locationOptions": [] + }, + { + "name": "Huntsville", + "value": "NOAM-US-AL-HN", + "locationOptions": [] + }, + { + "name": "Mobile", + "value": "NOAM-US-AL-MO", + "locationOptions": [] + }, + { + "name": "Montgomery", + "value": "NOAM-US-AL-MN", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "AR", + "value": "AR", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Fort Smith", + "value": "NOAM-US-AR-FS", + "locationOptions": [] + }, + { + "name": "Jonesboro", + "value": "NOAM-US-AR-JO", + "locationOptions": [] + }, + { + "name": "Little Rock", + "value": "NOAM-US-AR-LR", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "AZ", + "value": "AZ", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Phoenix", + "value": "NOAM-US-AZ-PH", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "CA", + "value": "CA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Burbank", + "value": "NOAM-US-CA-BU", + "locationOptions": [] + }, + { + "name": "Concord", + "value": "NOAM-US-CA-CO", + "locationOptions": [] + }, + { + "name": "Fresno", + "value": "NOAM-US-CA-FR", + "locationOptions": [] + }, + { + "name": "Irvine", + "value": "NOAM-US-CA-IR", + "locationOptions": [] + }, + { + "name": "Los Angeles", + "value": "NOAM-US-CA-LA", + "locationOptions": [] + }, + { + "name": "Riverside", + "value": "NOAM-US-CA-RI", + "locationOptions": [] + }, + { + "name": "Sacramento", + "value": "NOAM-US-CA-SA", + "locationOptions": [] + }, + { + "name": "Salinas", + "value": "NOAM-US-CA-SL", + "locationOptions": [] + }, + { + "name": "San Diego", + "value": "NOAM-US-CA-SD", + "locationOptions": [] + }, + { + "name": "San Francisco", + "value": "NOAM-US-CA-SF", + "locationOptions": [] + }, + { + "name": "San Jose", + "value": "NOAM-US-CA-SJ", + "locationOptions": [] + }, + { + "name": "Santa Barbara", + "value": "NOAM-US-CA-SB", + "locationOptions": [] + }, + { + "name": "Santa Clarita", + "value": "NOAM-US-CA-SC", + "locationOptions": [] + }, + { + "name": "Santa Rosa", + "value": "NOAM-US-CA-SR", + "locationOptions": [] + }, + { + "name": "Stockton", + "value": "NOAM-US-CA-ST", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "CL", + "value": "CL", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Washington DC", + "value": "NOAM-US-CL-DC", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "CO", + "value": "CO", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Denver", + "value": "NOAM-US-CO-DE", + "locationOptions": [] + }, + { + "name": "Pueblo", + "value": "NOAM-US-CO-PU", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "CT", + "value": "CT", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Bridgeport", + "value": "NOAM-US-CT-BR", + "locationOptions": [] + }, + { + "name": "Hartford", + "value": "NOAM-US-CT-HA", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "DE", + "value": "DE", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Wilmington", + "value": "NOAM-US-DE-WI", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "FL", + "value": "FL", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Cape Coral", + "value": "NOAM-US-FL-CC", + "locationOptions": [] + }, + { + "name": "Fort Lauderdale", + "value": "NOAM-US-FL-FL", + "locationOptions": [] + }, + { + "name": "Gainesville", + "value": "NOAM-US-FL-GA", + "locationOptions": [] + }, + { + "name": "Jacksonville", + "value": "NOAM-US-FL-JA", + "locationOptions": [] + }, + { + "name": "Lakeland", + "value": "NOAM-US-FL-LA", + "locationOptions": [] + }, + { + "name": "Miami", + "value": "NOAM-US-FL-MI", + "locationOptions": [] + }, + { + "name": "Orlando", + "value": "NOAM-US-FL-OR", + "locationOptions": [] + }, + { + "name": "Port St Lucie", + "value": "NOAM-US-FL-PS", + "locationOptions": [] + }, + { + "name": "Sarasota", + "value": "NOAM-US-FL-SA", + "locationOptions": [] + }, + { + "name": "St. Petersburg", + "value": "NOAM-US-FL-SP", + "locationOptions": [] + }, + { + "name": "Tallahassee", + "value": "NOAM-US-FL-TA", + "locationOptions": [] + }, + { + "name": "West Palm Beach", + "value": "NOAM-US-FL-WP", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "GA", + "value": "GA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Albany", + "value": "NOAM-US-GA-AL", + "locationOptions": [] + }, + { + "name": "Atlanta", + "value": "NOAM-US-GA-AT", + "locationOptions": [] + }, + { + "name": "Augusta", + "value": "NOAM-US-GA-AU", + "locationOptions": [] + }, + { + "name": "Macon", + "value": "NOAM-US-GA-MA", + "locationOptions": [] + }, + { + "name": "Savannah", + "value": "NOAM-US-GA-SA", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "HI", + "value": "HI", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Honolulu", + "value": "NOAM-US-HI-HO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "IA", + "value": "IA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Cedar Rapids", + "value": "NOAM-US-IA-CR", + "locationOptions": [] + }, + { + "name": "Davenport", + "value": "NOAM-US-IA-DA", + "locationOptions": [] + }, + { + "name": "Mason City", + "value": "NOAM-US-IA-MC", + "locationOptions": [] + }, + { + "name": "Sioux City", + "value": "NOAM-US-IA-SC", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "ID", + "value": "ID", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Boise", + "value": "NOAM-US-ID-BO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "IL", + "value": "IL", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Alton", + "value": "NOAM-US-IL-AL", + "locationOptions": [] + }, + { + "name": "Aurora", + "value": "NOAM-US-IL-AU", + "locationOptions": [] + }, + { + "name": "Big Rock", + "value": "NOAM-US-IL-BK", + "locationOptions": [] + }, + { + "name": "Champaign", + "value": "NOAM-US-IL-CA", + "locationOptions": [] + }, + { + "name": "Chicago", + "value": "NOAM-US-IL-CH", + "locationOptions": [] + }, + { + "name": "Rock Island", + "value": "NOAM-US-IL-RI", + "locationOptions": [] + }, + { + "name": "Rockford", + "value": "NOAM-US-IL-RO", + "locationOptions": [] + }, + { + "name": "Waukegan", + "value": "NOAM-US-IL-WK", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "IN", + "value": "IN", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Evansville", + "value": "NOAM-US-IN-EV", + "locationOptions": [] + }, + { + "name": "Fort Wayne", + "value": "NOAM-US-IN-FW", + "locationOptions": [] + }, + { + "name": "Gary", + "value": "NOAM-US-IN-GA", + "locationOptions": [] + }, + { + "name": "Indianapolis", + "value": "NOAM-US-IN-IN", + "locationOptions": [] + }, + { + "name": "South Bend", + "value": "NOAM-US-IN-SB", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "KS", + "value": "KS", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Kansas City", + "value": "NOAM-US-KS-KS", + "locationOptions": [] + }, + { + "name": "Topeka", + "value": "NOAM-US-KS-TO", + "locationOptions": [] + }, + { + "name": "Wichita", + "value": "NOAM-US-KS-WI", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "KY", + "value": "KY", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Lexington", + "value": "NOAM-US-KY-LE", + "locationOptions": [] + }, + { + "name": "Louisville", + "value": "NOAM-US-KY-LO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "LA", + "value": "LA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Baton Rouge", + "value": "NOAM-US-LA-BR", + "locationOptions": [] + }, + { + "name": "Lafayette", + "value": "NOAM-US-LA-LA", + "locationOptions": [] + }, + { + "name": "New Orleans", + "value": "NOAM-US-LA-NO", + "locationOptions": [] + }, + { + "name": "Shreveport", + "value": "NOAM-US-LA-SH", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MA", + "value": "MA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Lowell", + "value": "NOAM-US-MA-LO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MD", + "value": "MD", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Baltimore", + "value": "NOAM-US-MD-BA", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "ME", + "value": "ME", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Portland", + "value": "NOAM-US-ME-PO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MI", + "value": "MI", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Ann Arbor", + "value": "NOAM-US-MI-AA", + "locationOptions": [] + }, + { + "name": "Detroit", + "value": "NOAM-US-MI-DE", + "locationOptions": [] + }, + { + "name": "Flint", + "value": "NOAM-US-MI-FL", + "locationOptions": [] + }, + { + "name": "Grand Rapids", + "value": "NOAM-US-MI-GP", + "locationOptions": [] + }, + { + "name": "Grant", + "value": "NOAM-US-MI-GR", + "locationOptions": [] + }, + { + "name": "Lansing", + "value": "NOAM-US-MI-LA", + "locationOptions": [] + }, + { + "name": "Otsego", + "value": "NOAM-US-MI-OT", + "locationOptions": [] + }, + { + "name": "Saginaw", + "value": "NOAM-US-MI-SA", + "locationOptions": [] + }, + { + "name": "Sault Ste Marie", + "value": "NOAM-US-MI-SS", + "locationOptions": [] + }, + { + "name": "Troy", + "value": "NOAM-US-MI-TR", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MN", + "value": "MN", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Alexandria", + "value": "NOAM-US-MN-AL", + "locationOptions": [] + }, + { + "name": "Duluth", + "value": "NOAM-US-MN-DU", + "locationOptions": [] + }, + { + "name": "Minneapolis", + "value": "NOAM-US-MN-MI", + "locationOptions": [] + }, + { + "name": "Plymouth", + "value": "NOAM-US-MN-PL", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MO", + "value": "MO", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Columbia", + "value": "NOAM-US-MO-CO", + "locationOptions": [] + }, + { + "name": "Kansas City", + "value": "NOAM-US-MO-KS", + "locationOptions": [] + }, + { + "name": "Marshall", + "value": "NOAM-US-MO-MA", + "locationOptions": [] + }, + { + "name": "Springfield", + "value": "NOAM-US-MO-SP", + "locationOptions": [] + }, + { + "name": "St. Charles", + "value": "NOAM-US-MO-SC", + "locationOptions": [] + }, + { + "name": "St. Louis", + "value": "NOAM-US-MO-SL", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MS", + "value": "MS", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Biloxi", + "value": "NOAM-US-MS-BI", + "locationOptions": [] + }, + { + "name": "Jackson", + "value": "NOAM-US-MS-JA", + "locationOptions": [] + }, + { + "name": "Starkville", + "value": "NOAM-US-MS-ST", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MT", + "value": "MT", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Billings", + "value": "NOAM-US-MT-BI", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NC", + "value": "NC", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Asheville", + "value": "NOAM-US-NC-AS", + "locationOptions": [] + }, + { + "name": "Charlotte", + "value": "NOAM-US-NC-CH", + "locationOptions": [] + }, + { + "name": "Fayetteville", + "value": "NOAM-US-NC-FA", + "locationOptions": [] + }, + { + "name": "Greensboro", + "value": "NOAM-US-NC-GR", + "locationOptions": [] + }, + { + "name": "Raleigh", + "value": "NOAM-US-NC-RA", + "locationOptions": [] + }, + { + "name": "Rocky Mount", + "value": "NOAM-US-NC-RM", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "ND", + "value": "ND", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Fargo", + "value": "NOAM-US-ND-FA", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NE", + "value": "NE", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Kearney", + "value": "NOAM-US-NE-KE", + "locationOptions": [] + }, + { + "name": "Omaha", + "value": "NOAM-US-NE-OM", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NJ", + "value": "NJ", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Atlantic City", + "value": "NOAM-US-NJ-AC", + "locationOptions": [] + }, + { + "name": "Camden", + "value": "NOAM-US-NJ-CA", + "locationOptions": [] + }, + { + "name": "Edison", + "value": "NOAM-US-NJ-ED", + "locationOptions": [] + }, + { + "name": "Elizabeth", + "value": "NOAM-US-NJ-EL", + "locationOptions": [] + }, + { + "name": "Jersey City", + "value": "NOAM-US-NJ-JC", + "locationOptions": [] + }, + { + "name": "Newark", + "value": "NOAM-US-NJ-NE", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NM", + "value": "NM", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Albuquerque", + "value": "NOAM-US-NM-AL", + "locationOptions": [] + }, + { + "name": "Las Cruces", + "value": "NOAM-US-NM-LC", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NV", + "value": "NV", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Las Vegas", + "value": "NOAM-US-NV-LV", + "locationOptions": [] + }, + { + "name": "Reno", + "value": "NOAM-US-NV-RE", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NY", + "value": "NY", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Albany", + "value": "NOAM-US-NY-AL", + "locationOptions": [] + }, + { + "name": "Brentwood", + "value": "NOAM-US-NY-BR", + "locationOptions": [] + }, + { + "name": "Elmira", + "value": "NOAM-US-NY-EL", + "locationOptions": [] + }, + { + "name": "Hempstead", + "value": "NOAM-US-NY-HE", + "locationOptions": [] + }, + { + "name": "New York City", + "value": "NOAM-US-NY-NY", + "locationOptions": [] + }, + { + "name": "Niagara Falls", + "value": "NOAM-US-NY-NF", + "locationOptions": [] + }, + { + "name": "Rochester", + "value": "NOAM-US-NY-RO", + "locationOptions": [] + }, + { + "name": "Syracuse", + "value": "NOAM-US-NY-SY", + "locationOptions": [] + }, + { + "name": "Yonkers", + "value": "NOAM-US-NY-YO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "OH", + "value": "OH", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Akron", + "value": "NOAM-US-OH-AK", + "locationOptions": [] + }, + { + "name": "Cincinnati", + "value": "NOAM-US-OH-CI", + "locationOptions": [] + }, + { + "name": "Cleveland", + "value": "NOAM-US-OH-CL", + "locationOptions": [] + }, + { + "name": "Columbus", + "value": "NOAM-US-OH-CO", + "locationOptions": [] + }, + { + "name": "Dayton", + "value": "NOAM-US-OH-DA", + "locationOptions": [] + }, + { + "name": "Toledo", + "value": "NOAM-US-OH-TO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "OK", + "value": "OK", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Lawton", + "value": "NOAM-US-OK-LA", + "locationOptions": [] + }, + { + "name": "Oklahoma City", + "value": "NOAM-US-OK-OC", + "locationOptions": [] + }, + { + "name": "Tulsa", + "value": "NOAM-US-OK-TU", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "OR", + "value": "OR", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Portland", + "value": "NOAM-US-OR-PO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "PA", + "value": "PA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Erie", + "value": "NOAM-US-PA-ER", + "locationOptions": [] + }, + { + "name": "Lancaster", + "value": "NOAM-US-PA-LA", + "locationOptions": [] + }, + { + "name": "Philadelphia", + "value": "NOAM-US-PA-PI", + "locationOptions": [] + }, + { + "name": "Pittsburgh", + "value": "NOAM-US-PA-PT", + "locationOptions": [] + }, + { + "name": "Scranton", + "value": "NOAM-US-PA-SC", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "RI", + "value": "RI", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Providence", + "value": "NOAM-US-RI-PR", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "SC", + "value": "SC", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Charleston", + "value": "NOAM-US-SC-CH", + "locationOptions": [] + }, + { + "name": "Columbia", + "value": "NOAM-US-SC-CO", + "locationOptions": [] + }, + { + "name": "Greenville", + "value": "NOAM-US-SC-GR", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "SD", + "value": "SD", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Sioux Falls", + "value": "NOAM-US-SD-SF", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "TN", + "value": "TN", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Chattanooga", + "value": "NOAM-US-TN-CH", + "locationOptions": [] + }, + { + "name": "Clarksville", + "value": "NOAM-US-TN-CL", + "locationOptions": [] + }, + { + "name": "Jackson", + "value": "NOAM-US-TN-JA", + "locationOptions": [] + }, + { + "name": "Knoxville", + "value": "NOAM-US-TN-KN", + "locationOptions": [] + }, + { + "name": "Memphis", + "value": "NOAM-US-TN-ME", + "locationOptions": [] + }, + { + "name": "Nashville", + "value": "NOAM-US-TN-NA", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "TX", + "value": "TX", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Abilene", + "value": "NOAM-US-TX-AB", + "locationOptions": [] + }, + { + "name": "Austin", + "value": "NOAM-US-TX-AU", + "locationOptions": [] + }, + { + "name": "Bryan", + "value": "NOAM-US-TX-BR", + "locationOptions": [] + }, + { + "name": "Corpus Christi", + "value": "NOAM-US-TX-CC", + "locationOptions": [] + }, + { + "name": "Denton", + "value": "NOAM-US-TX-DE", + "locationOptions": [] + }, + { + "name": "El Paso", + "value": "NOAM-US-TX-EP", + "locationOptions": [] + }, + { + "name": "Fort Worth", + "value": "NOAM-US-TX-FW", + "locationOptions": [] + }, + { + "name": "Galveston", + "value": "NOAM-US-TX-GA", + "locationOptions": [] + }, + { + "name": "Houston", + "value": "NOAM-US-TX-HO", + "locationOptions": [] + }, + { + "name": "Huntsville", + "value": "NOAM-US-TX-HU", + "locationOptions": [] + }, + { + "name": "Laredo", + "value": "NOAM-US-TX-LA", + "locationOptions": [] + }, + { + "name": "Lubbock", + "value": "NOAM-US-TX-LU", + "locationOptions": [] + }, + { + "name": "Tyler", + "value": "NOAM-US-TX-TY", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "UT", + "value": "UT", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Salt Lake City", + "value": "NOAM-US-UT-SL", + "locationOptions": [] + }, + { + "name": "St. George", + "value": "NOAM-US-UT-SG", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "VA", + "value": "VA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Arlington", + "value": "NOAM-US-VA-AR", + "locationOptions": [] + }, + { + "name": "Danville", + "value": "NOAM-US-VA-DA", + "locationOptions": [] + }, + { + "name": "Lynchburg", + "value": "NOAM-US-VA-LY", + "locationOptions": [] + }, + { + "name": "Richmond", + "value": "NOAM-US-VA-RI", + "locationOptions": [] + }, + { + "name": "Roanoke", + "value": "NOAM-US-VA-RO", + "locationOptions": [] + }, + { + "name": "Virginia Beach", + "value": "NOAM-US-VA-VB", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "VT", + "value": "VT", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Brattleboro", + "value": "NOAM-US-VT-BR", + "locationOptions": [] + }, + { + "name": "Burlington", + "value": "NOAM-US-VT-BU", + "locationOptions": [] + }, + { + "name": "Newport", + "value": "NOAM-US-VT-NE", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "WI", + "value": "WI", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Eau Claire", + "value": "NOAM-US-WI-EC", + "locationOptions": [] + }, + { + "name": "Green Bay", + "value": "NOAM-US-WI-GB", + "locationOptions": [] + }, + { + "name": "Kenosha", + "value": "NOAM-US-WI-KE", + "locationOptions": [] + }, + { + "name": "Madison", + "value": "NOAM-US-WI-MA", + "locationOptions": [] + }, + { + "name": "Milwaukee", + "value": "NOAM-US-WI-MI", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "WY", + "value": "WY", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Laramie", + "value": "NOAM-US-WY-LA", + "locationOptions": [] + } + ] + } + ] + } + ] + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/areacodes?locationType=Selection\u0026phonePlanId=Sanitized\u0026api-version=2020-07-20-preview1", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "111", + "Content-Type": "application/json", + "Date": "Mon, 23 Nov 2020 18:16:27 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "d4d23d5b9c22dec487f3fb193bde62db", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "locationOptions": [ + { + "labelId": "state", + "optionsValue": "AL" + }, + { + "labelId": "city", + "optionsValue": "NOAM-US-AL-BI" + } + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 23 Nov 2020 18:16:28 GMT", + "MS-CV": "rNFeWbr8s0uc33JRgCpu2g.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0e/y7XwAAAAC4K3diMQ0oQbp0jmMjPAcvWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "199ms" + }, + "ResponseBody": { + "primaryAreaCodes": [ + "205" + ], + "secondaryAreaCodes": [], + "nextLink": null + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "2016080553" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/GeographicalAreaCodesAsyncAsync.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/GeographicalAreaCodesAsyncAsync.json new file mode 100644 index 0000000000000..8191ad1eb1fc4 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/GeographicalAreaCodesAsyncAsync.json @@ -0,0 +1,1683 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Mon, 23 Nov 2020 18:13:46 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "600e9b395f04b5e42a77e41dbdd390c0", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 23 Nov 2020 18:13:53 GMT", + "MS-CV": "RNkRUS9CxkWaqG7Rcum5vQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "02/u7XwAAAABFhiRcYEluR5FSuOPFHmWiWVZSMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "6200ms" + }, + "ResponseBody": { + "phonePlanGroups": [ + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "Geographic", + "localizedName": "Azure- User - Geographic", + "localizedDescription": "These are numbers used by Azure resources." + }, + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "Geographic", + "localizedName": "Azure - Geographic", + "localizedDescription": "These are numbers used by Azure resources." + }, + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "TollFree", + "localizedName": "Azure - Toll Free", + "localizedDescription": "These are toll free numbers used by Azure resources." + } + ], + "nextLink": null + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/Sanitized/phoneplans?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Mon, 23 Nov 2020 18:13:53 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "620ebbc56fb302dcf046140614ad6228", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 23 Nov 2020 18:13:53 GMT", + "MS-CV": "swyOJqBLB0awkmYw6gYT\u002Bg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "04fu7XwAAAAAs\u002BvbduHonRrwpUY5/CRcOWVZSMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "285ms" + }, + "ResponseBody": { + "phonePlans": [ + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only PSTN For User - Geographic", + "locationType": "Selection", + "areaCodes": [], + "capabilities": [ + "Azure", + "OutboundCalling", + "UserAssignment", + "Geographic" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Inbound Only PSTN For User - Geographic", + "locationType": "Selection", + "areaCodes": [], + "capabilities": [ + "Azure", + "InboundCalling", + "UserAssignment", + "Geographic" + ], + "maximumSearchSize": 20 + } + ], + "nextLink": null + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/Sanitized/phoneplans/Sanitized/locationoptions?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Mon, 23 Nov 2020 18:13:53 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "bab8c0b4d205556331a110c804c6bf41", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 23 Nov 2020 18:13:53 GMT", + "MS-CV": "ISTAdpiUGkaPQw0CijYNwg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "04fu7XwAAAAD\u002B6eU6LitdTbku/JQFpHEvWVZSMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "240ms" + }, + "ResponseBody": { + "locationOptions": { + "labelId": "state", + "labelName": "State", + "options": [ + { + "name": "AL", + "value": "AL", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Birmingham", + "value": "NOAM-US-AL-BI", + "locationOptions": [] + }, + { + "name": "Huntsville", + "value": "NOAM-US-AL-HN", + "locationOptions": [] + }, + { + "name": "Mobile", + "value": "NOAM-US-AL-MO", + "locationOptions": [] + }, + { + "name": "Montgomery", + "value": "NOAM-US-AL-MN", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "AR", + "value": "AR", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Fort Smith", + "value": "NOAM-US-AR-FS", + "locationOptions": [] + }, + { + "name": "Jonesboro", + "value": "NOAM-US-AR-JO", + "locationOptions": [] + }, + { + "name": "Little Rock", + "value": "NOAM-US-AR-LR", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "AZ", + "value": "AZ", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Phoenix", + "value": "NOAM-US-AZ-PH", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "CA", + "value": "CA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Burbank", + "value": "NOAM-US-CA-BU", + "locationOptions": [] + }, + { + "name": "Concord", + "value": "NOAM-US-CA-CO", + "locationOptions": [] + }, + { + "name": "Fresno", + "value": "NOAM-US-CA-FR", + "locationOptions": [] + }, + { + "name": "Irvine", + "value": "NOAM-US-CA-IR", + "locationOptions": [] + }, + { + "name": "Los Angeles", + "value": "NOAM-US-CA-LA", + "locationOptions": [] + }, + { + "name": "Riverside", + "value": "NOAM-US-CA-RI", + "locationOptions": [] + }, + { + "name": "Sacramento", + "value": "NOAM-US-CA-SA", + "locationOptions": [] + }, + { + "name": "Salinas", + "value": "NOAM-US-CA-SL", + "locationOptions": [] + }, + { + "name": "San Diego", + "value": "NOAM-US-CA-SD", + "locationOptions": [] + }, + { + "name": "San Francisco", + "value": "NOAM-US-CA-SF", + "locationOptions": [] + }, + { + "name": "San Jose", + "value": "NOAM-US-CA-SJ", + "locationOptions": [] + }, + { + "name": "Santa Barbara", + "value": "NOAM-US-CA-SB", + "locationOptions": [] + }, + { + "name": "Santa Clarita", + "value": "NOAM-US-CA-SC", + "locationOptions": [] + }, + { + "name": "Santa Rosa", + "value": "NOAM-US-CA-SR", + "locationOptions": [] + }, + { + "name": "Stockton", + "value": "NOAM-US-CA-ST", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "CL", + "value": "CL", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Washington DC", + "value": "NOAM-US-CL-DC", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "CO", + "value": "CO", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Denver", + "value": "NOAM-US-CO-DE", + "locationOptions": [] + }, + { + "name": "Pueblo", + "value": "NOAM-US-CO-PU", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "CT", + "value": "CT", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Bridgeport", + "value": "NOAM-US-CT-BR", + "locationOptions": [] + }, + { + "name": "Hartford", + "value": "NOAM-US-CT-HA", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "DE", + "value": "DE", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Wilmington", + "value": "NOAM-US-DE-WI", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "FL", + "value": "FL", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Cape Coral", + "value": "NOAM-US-FL-CC", + "locationOptions": [] + }, + { + "name": "Fort Lauderdale", + "value": "NOAM-US-FL-FL", + "locationOptions": [] + }, + { + "name": "Gainesville", + "value": "NOAM-US-FL-GA", + "locationOptions": [] + }, + { + "name": "Jacksonville", + "value": "NOAM-US-FL-JA", + "locationOptions": [] + }, + { + "name": "Lakeland", + "value": "NOAM-US-FL-LA", + "locationOptions": [] + }, + { + "name": "Miami", + "value": "NOAM-US-FL-MI", + "locationOptions": [] + }, + { + "name": "Orlando", + "value": "NOAM-US-FL-OR", + "locationOptions": [] + }, + { + "name": "Port St Lucie", + "value": "NOAM-US-FL-PS", + "locationOptions": [] + }, + { + "name": "Sarasota", + "value": "NOAM-US-FL-SA", + "locationOptions": [] + }, + { + "name": "St. Petersburg", + "value": "NOAM-US-FL-SP", + "locationOptions": [] + }, + { + "name": "Tallahassee", + "value": "NOAM-US-FL-TA", + "locationOptions": [] + }, + { + "name": "West Palm Beach", + "value": "NOAM-US-FL-WP", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "GA", + "value": "GA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Albany", + "value": "NOAM-US-GA-AL", + "locationOptions": [] + }, + { + "name": "Atlanta", + "value": "NOAM-US-GA-AT", + "locationOptions": [] + }, + { + "name": "Augusta", + "value": "NOAM-US-GA-AU", + "locationOptions": [] + }, + { + "name": "Macon", + "value": "NOAM-US-GA-MA", + "locationOptions": [] + }, + { + "name": "Savannah", + "value": "NOAM-US-GA-SA", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "HI", + "value": "HI", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Honolulu", + "value": "NOAM-US-HI-HO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "IA", + "value": "IA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Cedar Rapids", + "value": "NOAM-US-IA-CR", + "locationOptions": [] + }, + { + "name": "Davenport", + "value": "NOAM-US-IA-DA", + "locationOptions": [] + }, + { + "name": "Mason City", + "value": "NOAM-US-IA-MC", + "locationOptions": [] + }, + { + "name": "Sioux City", + "value": "NOAM-US-IA-SC", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "ID", + "value": "ID", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Boise", + "value": "NOAM-US-ID-BO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "IL", + "value": "IL", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Alton", + "value": "NOAM-US-IL-AL", + "locationOptions": [] + }, + { + "name": "Aurora", + "value": "NOAM-US-IL-AU", + "locationOptions": [] + }, + { + "name": "Big Rock", + "value": "NOAM-US-IL-BK", + "locationOptions": [] + }, + { + "name": "Champaign", + "value": "NOAM-US-IL-CA", + "locationOptions": [] + }, + { + "name": "Chicago", + "value": "NOAM-US-IL-CH", + "locationOptions": [] + }, + { + "name": "Rock Island", + "value": "NOAM-US-IL-RI", + "locationOptions": [] + }, + { + "name": "Rockford", + "value": "NOAM-US-IL-RO", + "locationOptions": [] + }, + { + "name": "Waukegan", + "value": "NOAM-US-IL-WK", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "IN", + "value": "IN", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Evansville", + "value": "NOAM-US-IN-EV", + "locationOptions": [] + }, + { + "name": "Fort Wayne", + "value": "NOAM-US-IN-FW", + "locationOptions": [] + }, + { + "name": "Gary", + "value": "NOAM-US-IN-GA", + "locationOptions": [] + }, + { + "name": "Indianapolis", + "value": "NOAM-US-IN-IN", + "locationOptions": [] + }, + { + "name": "South Bend", + "value": "NOAM-US-IN-SB", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "KS", + "value": "KS", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Kansas City", + "value": "NOAM-US-KS-KS", + "locationOptions": [] + }, + { + "name": "Topeka", + "value": "NOAM-US-KS-TO", + "locationOptions": [] + }, + { + "name": "Wichita", + "value": "NOAM-US-KS-WI", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "KY", + "value": "KY", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Lexington", + "value": "NOAM-US-KY-LE", + "locationOptions": [] + }, + { + "name": "Louisville", + "value": "NOAM-US-KY-LO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "LA", + "value": "LA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Baton Rouge", + "value": "NOAM-US-LA-BR", + "locationOptions": [] + }, + { + "name": "Lafayette", + "value": "NOAM-US-LA-LA", + "locationOptions": [] + }, + { + "name": "New Orleans", + "value": "NOAM-US-LA-NO", + "locationOptions": [] + }, + { + "name": "Shreveport", + "value": "NOAM-US-LA-SH", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MA", + "value": "MA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Lowell", + "value": "NOAM-US-MA-LO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MD", + "value": "MD", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Baltimore", + "value": "NOAM-US-MD-BA", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "ME", + "value": "ME", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Portland", + "value": "NOAM-US-ME-PO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MI", + "value": "MI", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Ann Arbor", + "value": "NOAM-US-MI-AA", + "locationOptions": [] + }, + { + "name": "Detroit", + "value": "NOAM-US-MI-DE", + "locationOptions": [] + }, + { + "name": "Flint", + "value": "NOAM-US-MI-FL", + "locationOptions": [] + }, + { + "name": "Grand Rapids", + "value": "NOAM-US-MI-GP", + "locationOptions": [] + }, + { + "name": "Grant", + "value": "NOAM-US-MI-GR", + "locationOptions": [] + }, + { + "name": "Lansing", + "value": "NOAM-US-MI-LA", + "locationOptions": [] + }, + { + "name": "Otsego", + "value": "NOAM-US-MI-OT", + "locationOptions": [] + }, + { + "name": "Saginaw", + "value": "NOAM-US-MI-SA", + "locationOptions": [] + }, + { + "name": "Sault Ste Marie", + "value": "NOAM-US-MI-SS", + "locationOptions": [] + }, + { + "name": "Troy", + "value": "NOAM-US-MI-TR", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MN", + "value": "MN", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Alexandria", + "value": "NOAM-US-MN-AL", + "locationOptions": [] + }, + { + "name": "Duluth", + "value": "NOAM-US-MN-DU", + "locationOptions": [] + }, + { + "name": "Minneapolis", + "value": "NOAM-US-MN-MI", + "locationOptions": [] + }, + { + "name": "Plymouth", + "value": "NOAM-US-MN-PL", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MO", + "value": "MO", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Columbia", + "value": "NOAM-US-MO-CO", + "locationOptions": [] + }, + { + "name": "Kansas City", + "value": "NOAM-US-MO-KS", + "locationOptions": [] + }, + { + "name": "Marshall", + "value": "NOAM-US-MO-MA", + "locationOptions": [] + }, + { + "name": "Springfield", + "value": "NOAM-US-MO-SP", + "locationOptions": [] + }, + { + "name": "St. Charles", + "value": "NOAM-US-MO-SC", + "locationOptions": [] + }, + { + "name": "St. Louis", + "value": "NOAM-US-MO-SL", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MS", + "value": "MS", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Biloxi", + "value": "NOAM-US-MS-BI", + "locationOptions": [] + }, + { + "name": "Jackson", + "value": "NOAM-US-MS-JA", + "locationOptions": [] + }, + { + "name": "Starkville", + "value": "NOAM-US-MS-ST", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MT", + "value": "MT", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Billings", + "value": "NOAM-US-MT-BI", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NC", + "value": "NC", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Asheville", + "value": "NOAM-US-NC-AS", + "locationOptions": [] + }, + { + "name": "Charlotte", + "value": "NOAM-US-NC-CH", + "locationOptions": [] + }, + { + "name": "Fayetteville", + "value": "NOAM-US-NC-FA", + "locationOptions": [] + }, + { + "name": "Greensboro", + "value": "NOAM-US-NC-GR", + "locationOptions": [] + }, + { + "name": "Raleigh", + "value": "NOAM-US-NC-RA", + "locationOptions": [] + }, + { + "name": "Rocky Mount", + "value": "NOAM-US-NC-RM", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "ND", + "value": "ND", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Fargo", + "value": "NOAM-US-ND-FA", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NE", + "value": "NE", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Kearney", + "value": "NOAM-US-NE-KE", + "locationOptions": [] + }, + { + "name": "Omaha", + "value": "NOAM-US-NE-OM", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NJ", + "value": "NJ", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Atlantic City", + "value": "NOAM-US-NJ-AC", + "locationOptions": [] + }, + { + "name": "Camden", + "value": "NOAM-US-NJ-CA", + "locationOptions": [] + }, + { + "name": "Edison", + "value": "NOAM-US-NJ-ED", + "locationOptions": [] + }, + { + "name": "Elizabeth", + "value": "NOAM-US-NJ-EL", + "locationOptions": [] + }, + { + "name": "Jersey City", + "value": "NOAM-US-NJ-JC", + "locationOptions": [] + }, + { + "name": "Newark", + "value": "NOAM-US-NJ-NE", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NM", + "value": "NM", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Albuquerque", + "value": "NOAM-US-NM-AL", + "locationOptions": [] + }, + { + "name": "Las Cruces", + "value": "NOAM-US-NM-LC", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NV", + "value": "NV", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Las Vegas", + "value": "NOAM-US-NV-LV", + "locationOptions": [] + }, + { + "name": "Reno", + "value": "NOAM-US-NV-RE", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NY", + "value": "NY", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Albany", + "value": "NOAM-US-NY-AL", + "locationOptions": [] + }, + { + "name": "Brentwood", + "value": "NOAM-US-NY-BR", + "locationOptions": [] + }, + { + "name": "Elmira", + "value": "NOAM-US-NY-EL", + "locationOptions": [] + }, + { + "name": "Hempstead", + "value": "NOAM-US-NY-HE", + "locationOptions": [] + }, + { + "name": "New York City", + "value": "NOAM-US-NY-NY", + "locationOptions": [] + }, + { + "name": "Niagara Falls", + "value": "NOAM-US-NY-NF", + "locationOptions": [] + }, + { + "name": "Rochester", + "value": "NOAM-US-NY-RO", + "locationOptions": [] + }, + { + "name": "Syracuse", + "value": "NOAM-US-NY-SY", + "locationOptions": [] + }, + { + "name": "Yonkers", + "value": "NOAM-US-NY-YO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "OH", + "value": "OH", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Akron", + "value": "NOAM-US-OH-AK", + "locationOptions": [] + }, + { + "name": "Cincinnati", + "value": "NOAM-US-OH-CI", + "locationOptions": [] + }, + { + "name": "Cleveland", + "value": "NOAM-US-OH-CL", + "locationOptions": [] + }, + { + "name": "Columbus", + "value": "NOAM-US-OH-CO", + "locationOptions": [] + }, + { + "name": "Dayton", + "value": "NOAM-US-OH-DA", + "locationOptions": [] + }, + { + "name": "Toledo", + "value": "NOAM-US-OH-TO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "OK", + "value": "OK", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Lawton", + "value": "NOAM-US-OK-LA", + "locationOptions": [] + }, + { + "name": "Oklahoma City", + "value": "NOAM-US-OK-OC", + "locationOptions": [] + }, + { + "name": "Tulsa", + "value": "NOAM-US-OK-TU", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "OR", + "value": "OR", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Portland", + "value": "NOAM-US-OR-PO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "PA", + "value": "PA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Erie", + "value": "NOAM-US-PA-ER", + "locationOptions": [] + }, + { + "name": "Lancaster", + "value": "NOAM-US-PA-LA", + "locationOptions": [] + }, + { + "name": "Philadelphia", + "value": "NOAM-US-PA-PI", + "locationOptions": [] + }, + { + "name": "Pittsburgh", + "value": "NOAM-US-PA-PT", + "locationOptions": [] + }, + { + "name": "Scranton", + "value": "NOAM-US-PA-SC", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "RI", + "value": "RI", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Providence", + "value": "NOAM-US-RI-PR", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "SC", + "value": "SC", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Charleston", + "value": "NOAM-US-SC-CH", + "locationOptions": [] + }, + { + "name": "Columbia", + "value": "NOAM-US-SC-CO", + "locationOptions": [] + }, + { + "name": "Greenville", + "value": "NOAM-US-SC-GR", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "SD", + "value": "SD", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Sioux Falls", + "value": "NOAM-US-SD-SF", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "TN", + "value": "TN", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Chattanooga", + "value": "NOAM-US-TN-CH", + "locationOptions": [] + }, + { + "name": "Clarksville", + "value": "NOAM-US-TN-CL", + "locationOptions": [] + }, + { + "name": "Jackson", + "value": "NOAM-US-TN-JA", + "locationOptions": [] + }, + { + "name": "Knoxville", + "value": "NOAM-US-TN-KN", + "locationOptions": [] + }, + { + "name": "Memphis", + "value": "NOAM-US-TN-ME", + "locationOptions": [] + }, + { + "name": "Nashville", + "value": "NOAM-US-TN-NA", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "TX", + "value": "TX", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Abilene", + "value": "NOAM-US-TX-AB", + "locationOptions": [] + }, + { + "name": "Austin", + "value": "NOAM-US-TX-AU", + "locationOptions": [] + }, + { + "name": "Bryan", + "value": "NOAM-US-TX-BR", + "locationOptions": [] + }, + { + "name": "Corpus Christi", + "value": "NOAM-US-TX-CC", + "locationOptions": [] + }, + { + "name": "Denton", + "value": "NOAM-US-TX-DE", + "locationOptions": [] + }, + { + "name": "El Paso", + "value": "NOAM-US-TX-EP", + "locationOptions": [] + }, + { + "name": "Fort Worth", + "value": "NOAM-US-TX-FW", + "locationOptions": [] + }, + { + "name": "Galveston", + "value": "NOAM-US-TX-GA", + "locationOptions": [] + }, + { + "name": "Houston", + "value": "NOAM-US-TX-HO", + "locationOptions": [] + }, + { + "name": "Huntsville", + "value": "NOAM-US-TX-HU", + "locationOptions": [] + }, + { + "name": "Laredo", + "value": "NOAM-US-TX-LA", + "locationOptions": [] + }, + { + "name": "Lubbock", + "value": "NOAM-US-TX-LU", + "locationOptions": [] + }, + { + "name": "Tyler", + "value": "NOAM-US-TX-TY", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "UT", + "value": "UT", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Salt Lake City", + "value": "NOAM-US-UT-SL", + "locationOptions": [] + }, + { + "name": "St. George", + "value": "NOAM-US-UT-SG", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "VA", + "value": "VA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Arlington", + "value": "NOAM-US-VA-AR", + "locationOptions": [] + }, + { + "name": "Danville", + "value": "NOAM-US-VA-DA", + "locationOptions": [] + }, + { + "name": "Lynchburg", + "value": "NOAM-US-VA-LY", + "locationOptions": [] + }, + { + "name": "Richmond", + "value": "NOAM-US-VA-RI", + "locationOptions": [] + }, + { + "name": "Roanoke", + "value": "NOAM-US-VA-RO", + "locationOptions": [] + }, + { + "name": "Virginia Beach", + "value": "NOAM-US-VA-VB", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "VT", + "value": "VT", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Brattleboro", + "value": "NOAM-US-VT-BR", + "locationOptions": [] + }, + { + "name": "Burlington", + "value": "NOAM-US-VT-BU", + "locationOptions": [] + }, + { + "name": "Newport", + "value": "NOAM-US-VT-NE", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "WI", + "value": "WI", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Eau Claire", + "value": "NOAM-US-WI-EC", + "locationOptions": [] + }, + { + "name": "Green Bay", + "value": "NOAM-US-WI-GB", + "locationOptions": [] + }, + { + "name": "Kenosha", + "value": "NOAM-US-WI-KE", + "locationOptions": [] + }, + { + "name": "Madison", + "value": "NOAM-US-WI-MA", + "locationOptions": [] + }, + { + "name": "Milwaukee", + "value": "NOAM-US-WI-MI", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "WY", + "value": "WY", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Laramie", + "value": "NOAM-US-WY-LA", + "locationOptions": [] + } + ] + } + ] + } + ] + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/areacodes?locationType=Selection\u0026phonePlanId=Sanitized\u0026api-version=2020-07-20-preview1", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "111", + "Content-Type": "application/json", + "Date": "Mon, 23 Nov 2020 18:13:54 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "dee3ce43e131caafbf0b6fbd4adea07d", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "locationOptions": [ + { + "labelId": "state", + "optionsValue": "AL" + }, + { + "labelId": "city", + "optionsValue": "NOAM-US-AL-BI" + } + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 23 Nov 2020 18:13:54 GMT", + "MS-CV": "YYo0DGg2UUSYSEK\u002BOS05WQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "04vu7XwAAAAC40CLLeNLcTJX7ahTFiO2TWVZSMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "188ms" + }, + "ResponseBody": { + "primaryAreaCodes": [ + "205" + ], + "secondaryAreaCodes": [], + "nextLink": null + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "1591586086" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/GetAllSupportedCountries.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/GetAllSupportedCountries.json new file mode 100644 index 0000000000000..125461852a1da --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/GetAllSupportedCountries.json @@ -0,0 +1,47 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Mon, 23 Nov 2020 18:16:28 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "035dd7e6d320cef0b9041c3c38a656a5", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 23 Nov 2020 18:16:28 GMT", + "MS-CV": "Xu4n/90WPUehGts1\u002BeSxQw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0fPy7XwAAAABQacQ3Pz\u002BoS4FRReNJ3AHeWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "451ms" + }, + "ResponseBody": { + "countries": [ + { + "localizedName": "Canada", + "countryCode": "CA" + }, + { + "localizedName": "United States", + "countryCode": "US" + } + ], + "nextLink": null + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "662632677" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/GetAllSupportedCountriesAsyncAsync.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/GetAllSupportedCountriesAsyncAsync.json new file mode 100644 index 0000000000000..311111bd1fc00 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/GetAllSupportedCountriesAsyncAsync.json @@ -0,0 +1,47 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Mon, 23 Nov 2020 18:13:54 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "28e9b728d3f2a2ee84f02e2e84f07370", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 23 Nov 2020 18:13:54 GMT", + "MS-CV": "YNSoFdKhzUSFw2C9CE\u002BNLw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "04vu7XwAAAABbY/AmEy92QKQ8TDY\u002Bc8JTWVZSMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "436ms" + }, + "ResponseBody": { + "countries": [ + { + "localizedName": "Canada", + "countryCode": "CA" + }, + { + "localizedName": "United States", + "countryCode": "US" + } + ], + "nextLink": null + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "51555886" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/GetPhonePlanLocationOptions.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/GetPhonePlanLocationOptions.json new file mode 100644 index 0000000000000..10dbf0bb4a1ab --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/GetPhonePlanLocationOptions.json @@ -0,0 +1,1637 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Mon, 23 Nov 2020 18:16:28 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "6e7b1d7dd158e4206e758242b4f7cabe", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 23 Nov 2020 18:16:28 GMT", + "MS-CV": "4wn3Uvp\u002BZUOYRYmxVa6EVg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0fPy7XwAAAAAuaoQFPB3gQJKzjjK0/bS9WVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "255ms" + }, + "ResponseBody": { + "phonePlanGroups": [ + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "Geographic", + "localizedName": "Azure- User - Geographic", + "localizedDescription": "These are numbers used by Azure resources." + }, + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "Geographic", + "localizedName": "Azure - Geographic", + "localizedDescription": "These are numbers used by Azure resources." + }, + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "TollFree", + "localizedName": "Azure - Toll Free", + "localizedDescription": "These are toll free numbers used by Azure resources." + } + ], + "nextLink": null + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/Sanitized/phoneplans?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Mon, 23 Nov 2020 18:16:29 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "8aea8835baedb0781dfed564c390bd59", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 23 Nov 2020 18:16:29 GMT", + "MS-CV": "PRvSF/BBVEae1rva12pD4A.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ffy7XwAAAABCwxehvJMbTI/XHyMaJ9beWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "248ms" + }, + "ResponseBody": { + "phonePlans": [ + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only PSTN For User - Geographic", + "locationType": "Selection", + "areaCodes": [], + "capabilities": [ + "Azure", + "OutboundCalling", + "UserAssignment", + "Geographic" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Inbound Only PSTN For User - Geographic", + "locationType": "Selection", + "areaCodes": [], + "capabilities": [ + "Azure", + "InboundCalling", + "UserAssignment", + "Geographic" + ], + "maximumSearchSize": 20 + } + ], + "nextLink": null + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/Sanitized/phoneplans/Sanitized/locationoptions?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Mon, 23 Nov 2020 18:16:29 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "d39d6750c560d25fb9337b24992ffec6", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 23 Nov 2020 18:16:29 GMT", + "MS-CV": "jT6VwIOv4E\u002BGfOyx4xFhDg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ffy7XwAAAABaMqzYOEzIR6pjY\u002Babj0iTWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "253ms" + }, + "ResponseBody": { + "locationOptions": { + "labelId": "state", + "labelName": "State", + "options": [ + { + "name": "AL", + "value": "AL", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Birmingham", + "value": "NOAM-US-AL-BI", + "locationOptions": [] + }, + { + "name": "Huntsville", + "value": "NOAM-US-AL-HN", + "locationOptions": [] + }, + { + "name": "Mobile", + "value": "NOAM-US-AL-MO", + "locationOptions": [] + }, + { + "name": "Montgomery", + "value": "NOAM-US-AL-MN", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "AR", + "value": "AR", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Fort Smith", + "value": "NOAM-US-AR-FS", + "locationOptions": [] + }, + { + "name": "Jonesboro", + "value": "NOAM-US-AR-JO", + "locationOptions": [] + }, + { + "name": "Little Rock", + "value": "NOAM-US-AR-LR", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "AZ", + "value": "AZ", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Phoenix", + "value": "NOAM-US-AZ-PH", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "CA", + "value": "CA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Burbank", + "value": "NOAM-US-CA-BU", + "locationOptions": [] + }, + { + "name": "Concord", + "value": "NOAM-US-CA-CO", + "locationOptions": [] + }, + { + "name": "Fresno", + "value": "NOAM-US-CA-FR", + "locationOptions": [] + }, + { + "name": "Irvine", + "value": "NOAM-US-CA-IR", + "locationOptions": [] + }, + { + "name": "Los Angeles", + "value": "NOAM-US-CA-LA", + "locationOptions": [] + }, + { + "name": "Riverside", + "value": "NOAM-US-CA-RI", + "locationOptions": [] + }, + { + "name": "Sacramento", + "value": "NOAM-US-CA-SA", + "locationOptions": [] + }, + { + "name": "Salinas", + "value": "NOAM-US-CA-SL", + "locationOptions": [] + }, + { + "name": "San Diego", + "value": "NOAM-US-CA-SD", + "locationOptions": [] + }, + { + "name": "San Francisco", + "value": "NOAM-US-CA-SF", + "locationOptions": [] + }, + { + "name": "San Jose", + "value": "NOAM-US-CA-SJ", + "locationOptions": [] + }, + { + "name": "Santa Barbara", + "value": "NOAM-US-CA-SB", + "locationOptions": [] + }, + { + "name": "Santa Clarita", + "value": "NOAM-US-CA-SC", + "locationOptions": [] + }, + { + "name": "Santa Rosa", + "value": "NOAM-US-CA-SR", + "locationOptions": [] + }, + { + "name": "Stockton", + "value": "NOAM-US-CA-ST", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "CL", + "value": "CL", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Washington DC", + "value": "NOAM-US-CL-DC", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "CO", + "value": "CO", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Denver", + "value": "NOAM-US-CO-DE", + "locationOptions": [] + }, + { + "name": "Pueblo", + "value": "NOAM-US-CO-PU", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "CT", + "value": "CT", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Bridgeport", + "value": "NOAM-US-CT-BR", + "locationOptions": [] + }, + { + "name": "Hartford", + "value": "NOAM-US-CT-HA", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "DE", + "value": "DE", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Wilmington", + "value": "NOAM-US-DE-WI", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "FL", + "value": "FL", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Cape Coral", + "value": "NOAM-US-FL-CC", + "locationOptions": [] + }, + { + "name": "Fort Lauderdale", + "value": "NOAM-US-FL-FL", + "locationOptions": [] + }, + { + "name": "Gainesville", + "value": "NOAM-US-FL-GA", + "locationOptions": [] + }, + { + "name": "Jacksonville", + "value": "NOAM-US-FL-JA", + "locationOptions": [] + }, + { + "name": "Lakeland", + "value": "NOAM-US-FL-LA", + "locationOptions": [] + }, + { + "name": "Miami", + "value": "NOAM-US-FL-MI", + "locationOptions": [] + }, + { + "name": "Orlando", + "value": "NOAM-US-FL-OR", + "locationOptions": [] + }, + { + "name": "Port St Lucie", + "value": "NOAM-US-FL-PS", + "locationOptions": [] + }, + { + "name": "Sarasota", + "value": "NOAM-US-FL-SA", + "locationOptions": [] + }, + { + "name": "St. Petersburg", + "value": "NOAM-US-FL-SP", + "locationOptions": [] + }, + { + "name": "Tallahassee", + "value": "NOAM-US-FL-TA", + "locationOptions": [] + }, + { + "name": "West Palm Beach", + "value": "NOAM-US-FL-WP", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "GA", + "value": "GA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Albany", + "value": "NOAM-US-GA-AL", + "locationOptions": [] + }, + { + "name": "Atlanta", + "value": "NOAM-US-GA-AT", + "locationOptions": [] + }, + { + "name": "Augusta", + "value": "NOAM-US-GA-AU", + "locationOptions": [] + }, + { + "name": "Macon", + "value": "NOAM-US-GA-MA", + "locationOptions": [] + }, + { + "name": "Savannah", + "value": "NOAM-US-GA-SA", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "HI", + "value": "HI", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Honolulu", + "value": "NOAM-US-HI-HO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "IA", + "value": "IA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Cedar Rapids", + "value": "NOAM-US-IA-CR", + "locationOptions": [] + }, + { + "name": "Davenport", + "value": "NOAM-US-IA-DA", + "locationOptions": [] + }, + { + "name": "Mason City", + "value": "NOAM-US-IA-MC", + "locationOptions": [] + }, + { + "name": "Sioux City", + "value": "NOAM-US-IA-SC", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "ID", + "value": "ID", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Boise", + "value": "NOAM-US-ID-BO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "IL", + "value": "IL", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Alton", + "value": "NOAM-US-IL-AL", + "locationOptions": [] + }, + { + "name": "Aurora", + "value": "NOAM-US-IL-AU", + "locationOptions": [] + }, + { + "name": "Big Rock", + "value": "NOAM-US-IL-BK", + "locationOptions": [] + }, + { + "name": "Champaign", + "value": "NOAM-US-IL-CA", + "locationOptions": [] + }, + { + "name": "Chicago", + "value": "NOAM-US-IL-CH", + "locationOptions": [] + }, + { + "name": "Rock Island", + "value": "NOAM-US-IL-RI", + "locationOptions": [] + }, + { + "name": "Rockford", + "value": "NOAM-US-IL-RO", + "locationOptions": [] + }, + { + "name": "Waukegan", + "value": "NOAM-US-IL-WK", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "IN", + "value": "IN", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Evansville", + "value": "NOAM-US-IN-EV", + "locationOptions": [] + }, + { + "name": "Fort Wayne", + "value": "NOAM-US-IN-FW", + "locationOptions": [] + }, + { + "name": "Gary", + "value": "NOAM-US-IN-GA", + "locationOptions": [] + }, + { + "name": "Indianapolis", + "value": "NOAM-US-IN-IN", + "locationOptions": [] + }, + { + "name": "South Bend", + "value": "NOAM-US-IN-SB", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "KS", + "value": "KS", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Kansas City", + "value": "NOAM-US-KS-KS", + "locationOptions": [] + }, + { + "name": "Topeka", + "value": "NOAM-US-KS-TO", + "locationOptions": [] + }, + { + "name": "Wichita", + "value": "NOAM-US-KS-WI", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "KY", + "value": "KY", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Lexington", + "value": "NOAM-US-KY-LE", + "locationOptions": [] + }, + { + "name": "Louisville", + "value": "NOAM-US-KY-LO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "LA", + "value": "LA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Baton Rouge", + "value": "NOAM-US-LA-BR", + "locationOptions": [] + }, + { + "name": "Lafayette", + "value": "NOAM-US-LA-LA", + "locationOptions": [] + }, + { + "name": "New Orleans", + "value": "NOAM-US-LA-NO", + "locationOptions": [] + }, + { + "name": "Shreveport", + "value": "NOAM-US-LA-SH", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MA", + "value": "MA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Lowell", + "value": "NOAM-US-MA-LO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MD", + "value": "MD", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Baltimore", + "value": "NOAM-US-MD-BA", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "ME", + "value": "ME", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Portland", + "value": "NOAM-US-ME-PO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MI", + "value": "MI", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Ann Arbor", + "value": "NOAM-US-MI-AA", + "locationOptions": [] + }, + { + "name": "Detroit", + "value": "NOAM-US-MI-DE", + "locationOptions": [] + }, + { + "name": "Flint", + "value": "NOAM-US-MI-FL", + "locationOptions": [] + }, + { + "name": "Grand Rapids", + "value": "NOAM-US-MI-GP", + "locationOptions": [] + }, + { + "name": "Grant", + "value": "NOAM-US-MI-GR", + "locationOptions": [] + }, + { + "name": "Lansing", + "value": "NOAM-US-MI-LA", + "locationOptions": [] + }, + { + "name": "Otsego", + "value": "NOAM-US-MI-OT", + "locationOptions": [] + }, + { + "name": "Saginaw", + "value": "NOAM-US-MI-SA", + "locationOptions": [] + }, + { + "name": "Sault Ste Marie", + "value": "NOAM-US-MI-SS", + "locationOptions": [] + }, + { + "name": "Troy", + "value": "NOAM-US-MI-TR", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MN", + "value": "MN", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Alexandria", + "value": "NOAM-US-MN-AL", + "locationOptions": [] + }, + { + "name": "Duluth", + "value": "NOAM-US-MN-DU", + "locationOptions": [] + }, + { + "name": "Minneapolis", + "value": "NOAM-US-MN-MI", + "locationOptions": [] + }, + { + "name": "Plymouth", + "value": "NOAM-US-MN-PL", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MO", + "value": "MO", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Columbia", + "value": "NOAM-US-MO-CO", + "locationOptions": [] + }, + { + "name": "Kansas City", + "value": "NOAM-US-MO-KS", + "locationOptions": [] + }, + { + "name": "Marshall", + "value": "NOAM-US-MO-MA", + "locationOptions": [] + }, + { + "name": "Springfield", + "value": "NOAM-US-MO-SP", + "locationOptions": [] + }, + { + "name": "St. Charles", + "value": "NOAM-US-MO-SC", + "locationOptions": [] + }, + { + "name": "St. Louis", + "value": "NOAM-US-MO-SL", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MS", + "value": "MS", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Biloxi", + "value": "NOAM-US-MS-BI", + "locationOptions": [] + }, + { + "name": "Jackson", + "value": "NOAM-US-MS-JA", + "locationOptions": [] + }, + { + "name": "Starkville", + "value": "NOAM-US-MS-ST", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MT", + "value": "MT", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Billings", + "value": "NOAM-US-MT-BI", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NC", + "value": "NC", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Asheville", + "value": "NOAM-US-NC-AS", + "locationOptions": [] + }, + { + "name": "Charlotte", + "value": "NOAM-US-NC-CH", + "locationOptions": [] + }, + { + "name": "Fayetteville", + "value": "NOAM-US-NC-FA", + "locationOptions": [] + }, + { + "name": "Greensboro", + "value": "NOAM-US-NC-GR", + "locationOptions": [] + }, + { + "name": "Raleigh", + "value": "NOAM-US-NC-RA", + "locationOptions": [] + }, + { + "name": "Rocky Mount", + "value": "NOAM-US-NC-RM", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "ND", + "value": "ND", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Fargo", + "value": "NOAM-US-ND-FA", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NE", + "value": "NE", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Kearney", + "value": "NOAM-US-NE-KE", + "locationOptions": [] + }, + { + "name": "Omaha", + "value": "NOAM-US-NE-OM", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NJ", + "value": "NJ", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Atlantic City", + "value": "NOAM-US-NJ-AC", + "locationOptions": [] + }, + { + "name": "Camden", + "value": "NOAM-US-NJ-CA", + "locationOptions": [] + }, + { + "name": "Edison", + "value": "NOAM-US-NJ-ED", + "locationOptions": [] + }, + { + "name": "Elizabeth", + "value": "NOAM-US-NJ-EL", + "locationOptions": [] + }, + { + "name": "Jersey City", + "value": "NOAM-US-NJ-JC", + "locationOptions": [] + }, + { + "name": "Newark", + "value": "NOAM-US-NJ-NE", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NM", + "value": "NM", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Albuquerque", + "value": "NOAM-US-NM-AL", + "locationOptions": [] + }, + { + "name": "Las Cruces", + "value": "NOAM-US-NM-LC", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NV", + "value": "NV", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Las Vegas", + "value": "NOAM-US-NV-LV", + "locationOptions": [] + }, + { + "name": "Reno", + "value": "NOAM-US-NV-RE", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NY", + "value": "NY", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Albany", + "value": "NOAM-US-NY-AL", + "locationOptions": [] + }, + { + "name": "Brentwood", + "value": "NOAM-US-NY-BR", + "locationOptions": [] + }, + { + "name": "Elmira", + "value": "NOAM-US-NY-EL", + "locationOptions": [] + }, + { + "name": "Hempstead", + "value": "NOAM-US-NY-HE", + "locationOptions": [] + }, + { + "name": "New York City", + "value": "NOAM-US-NY-NY", + "locationOptions": [] + }, + { + "name": "Niagara Falls", + "value": "NOAM-US-NY-NF", + "locationOptions": [] + }, + { + "name": "Rochester", + "value": "NOAM-US-NY-RO", + "locationOptions": [] + }, + { + "name": "Syracuse", + "value": "NOAM-US-NY-SY", + "locationOptions": [] + }, + { + "name": "Yonkers", + "value": "NOAM-US-NY-YO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "OH", + "value": "OH", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Akron", + "value": "NOAM-US-OH-AK", + "locationOptions": [] + }, + { + "name": "Cincinnati", + "value": "NOAM-US-OH-CI", + "locationOptions": [] + }, + { + "name": "Cleveland", + "value": "NOAM-US-OH-CL", + "locationOptions": [] + }, + { + "name": "Columbus", + "value": "NOAM-US-OH-CO", + "locationOptions": [] + }, + { + "name": "Dayton", + "value": "NOAM-US-OH-DA", + "locationOptions": [] + }, + { + "name": "Toledo", + "value": "NOAM-US-OH-TO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "OK", + "value": "OK", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Lawton", + "value": "NOAM-US-OK-LA", + "locationOptions": [] + }, + { + "name": "Oklahoma City", + "value": "NOAM-US-OK-OC", + "locationOptions": [] + }, + { + "name": "Tulsa", + "value": "NOAM-US-OK-TU", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "OR", + "value": "OR", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Portland", + "value": "NOAM-US-OR-PO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "PA", + "value": "PA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Erie", + "value": "NOAM-US-PA-ER", + "locationOptions": [] + }, + { + "name": "Lancaster", + "value": "NOAM-US-PA-LA", + "locationOptions": [] + }, + { + "name": "Philadelphia", + "value": "NOAM-US-PA-PI", + "locationOptions": [] + }, + { + "name": "Pittsburgh", + "value": "NOAM-US-PA-PT", + "locationOptions": [] + }, + { + "name": "Scranton", + "value": "NOAM-US-PA-SC", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "RI", + "value": "RI", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Providence", + "value": "NOAM-US-RI-PR", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "SC", + "value": "SC", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Charleston", + "value": "NOAM-US-SC-CH", + "locationOptions": [] + }, + { + "name": "Columbia", + "value": "NOAM-US-SC-CO", + "locationOptions": [] + }, + { + "name": "Greenville", + "value": "NOAM-US-SC-GR", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "SD", + "value": "SD", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Sioux Falls", + "value": "NOAM-US-SD-SF", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "TN", + "value": "TN", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Chattanooga", + "value": "NOAM-US-TN-CH", + "locationOptions": [] + }, + { + "name": "Clarksville", + "value": "NOAM-US-TN-CL", + "locationOptions": [] + }, + { + "name": "Jackson", + "value": "NOAM-US-TN-JA", + "locationOptions": [] + }, + { + "name": "Knoxville", + "value": "NOAM-US-TN-KN", + "locationOptions": [] + }, + { + "name": "Memphis", + "value": "NOAM-US-TN-ME", + "locationOptions": [] + }, + { + "name": "Nashville", + "value": "NOAM-US-TN-NA", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "TX", + "value": "TX", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Abilene", + "value": "NOAM-US-TX-AB", + "locationOptions": [] + }, + { + "name": "Austin", + "value": "NOAM-US-TX-AU", + "locationOptions": [] + }, + { + "name": "Bryan", + "value": "NOAM-US-TX-BR", + "locationOptions": [] + }, + { + "name": "Corpus Christi", + "value": "NOAM-US-TX-CC", + "locationOptions": [] + }, + { + "name": "Denton", + "value": "NOAM-US-TX-DE", + "locationOptions": [] + }, + { + "name": "El Paso", + "value": "NOAM-US-TX-EP", + "locationOptions": [] + }, + { + "name": "Fort Worth", + "value": "NOAM-US-TX-FW", + "locationOptions": [] + }, + { + "name": "Galveston", + "value": "NOAM-US-TX-GA", + "locationOptions": [] + }, + { + "name": "Houston", + "value": "NOAM-US-TX-HO", + "locationOptions": [] + }, + { + "name": "Huntsville", + "value": "NOAM-US-TX-HU", + "locationOptions": [] + }, + { + "name": "Laredo", + "value": "NOAM-US-TX-LA", + "locationOptions": [] + }, + { + "name": "Lubbock", + "value": "NOAM-US-TX-LU", + "locationOptions": [] + }, + { + "name": "Tyler", + "value": "NOAM-US-TX-TY", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "UT", + "value": "UT", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Salt Lake City", + "value": "NOAM-US-UT-SL", + "locationOptions": [] + }, + { + "name": "St. George", + "value": "NOAM-US-UT-SG", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "VA", + "value": "VA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Arlington", + "value": "NOAM-US-VA-AR", + "locationOptions": [] + }, + { + "name": "Danville", + "value": "NOAM-US-VA-DA", + "locationOptions": [] + }, + { + "name": "Lynchburg", + "value": "NOAM-US-VA-LY", + "locationOptions": [] + }, + { + "name": "Richmond", + "value": "NOAM-US-VA-RI", + "locationOptions": [] + }, + { + "name": "Roanoke", + "value": "NOAM-US-VA-RO", + "locationOptions": [] + }, + { + "name": "Virginia Beach", + "value": "NOAM-US-VA-VB", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "VT", + "value": "VT", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Brattleboro", + "value": "NOAM-US-VT-BR", + "locationOptions": [] + }, + { + "name": "Burlington", + "value": "NOAM-US-VT-BU", + "locationOptions": [] + }, + { + "name": "Newport", + "value": "NOAM-US-VT-NE", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "WI", + "value": "WI", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Eau Claire", + "value": "NOAM-US-WI-EC", + "locationOptions": [] + }, + { + "name": "Green Bay", + "value": "NOAM-US-WI-GB", + "locationOptions": [] + }, + { + "name": "Kenosha", + "value": "NOAM-US-WI-KE", + "locationOptions": [] + }, + { + "name": "Madison", + "value": "NOAM-US-WI-MA", + "locationOptions": [] + }, + { + "name": "Milwaukee", + "value": "NOAM-US-WI-MI", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "WY", + "value": "WY", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Laramie", + "value": "NOAM-US-WY-LA", + "locationOptions": [] + } + ] + } + ] + } + ] + } + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "805460015" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/GetPhonePlanLocationOptionsAsyncAsync.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/GetPhonePlanLocationOptionsAsyncAsync.json new file mode 100644 index 0000000000000..0433b774e9305 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/GetPhonePlanLocationOptionsAsyncAsync.json @@ -0,0 +1,1637 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Mon, 23 Nov 2020 18:13:55 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "0c196f3012c43caceb393b89df7e0f11", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 23 Nov 2020 18:13:55 GMT", + "MS-CV": "yGCldXl4P0GqVpq/pnd8lA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "04/u7XwAAAABDjngyHmRbRaW6Xldk0MvgWVZSMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "243ms" + }, + "ResponseBody": { + "phonePlanGroups": [ + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "Geographic", + "localizedName": "Azure- User - Geographic", + "localizedDescription": "These are numbers used by Azure resources." + }, + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "Geographic", + "localizedName": "Azure - Geographic", + "localizedDescription": "These are numbers used by Azure resources." + }, + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "TollFree", + "localizedName": "Azure - Toll Free", + "localizedDescription": "These are toll free numbers used by Azure resources." + } + ], + "nextLink": null + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/Sanitized/phoneplans?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Mon, 23 Nov 2020 18:13:55 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "d5180b4de8ec08b41972b89207399838", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 23 Nov 2020 18:13:55 GMT", + "MS-CV": "vbKpN\u002BaquUO9ls61eLu2\u002Bg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "04/u7XwAAAACYvzOjqTf9RKMy2hqXHO6sWVZSMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "234ms" + }, + "ResponseBody": { + "phonePlans": [ + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only PSTN For User - Geographic", + "locationType": "Selection", + "areaCodes": [], + "capabilities": [ + "Azure", + "OutboundCalling", + "UserAssignment", + "Geographic" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Inbound Only PSTN For User - Geographic", + "locationType": "Selection", + "areaCodes": [], + "capabilities": [ + "Azure", + "InboundCalling", + "UserAssignment", + "Geographic" + ], + "maximumSearchSize": 20 + } + ], + "nextLink": null + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/Sanitized/phoneplans/Sanitized/locationoptions?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Mon, 23 Nov 2020 18:13:55 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "428ff1dadf047cd2b138a52834c0a5c6", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 23 Nov 2020 18:13:55 GMT", + "MS-CV": "cqUQix3W20eOygEGyepKoA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "04/u7XwAAAABcgG9h3oApQpOpqRbU1TJ6WVZSMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "277ms" + }, + "ResponseBody": { + "locationOptions": { + "labelId": "state", + "labelName": "State", + "options": [ + { + "name": "AL", + "value": "AL", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Birmingham", + "value": "NOAM-US-AL-BI", + "locationOptions": [] + }, + { + "name": "Huntsville", + "value": "NOAM-US-AL-HN", + "locationOptions": [] + }, + { + "name": "Mobile", + "value": "NOAM-US-AL-MO", + "locationOptions": [] + }, + { + "name": "Montgomery", + "value": "NOAM-US-AL-MN", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "AR", + "value": "AR", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Fort Smith", + "value": "NOAM-US-AR-FS", + "locationOptions": [] + }, + { + "name": "Jonesboro", + "value": "NOAM-US-AR-JO", + "locationOptions": [] + }, + { + "name": "Little Rock", + "value": "NOAM-US-AR-LR", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "AZ", + "value": "AZ", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Phoenix", + "value": "NOAM-US-AZ-PH", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "CA", + "value": "CA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Burbank", + "value": "NOAM-US-CA-BU", + "locationOptions": [] + }, + { + "name": "Concord", + "value": "NOAM-US-CA-CO", + "locationOptions": [] + }, + { + "name": "Fresno", + "value": "NOAM-US-CA-FR", + "locationOptions": [] + }, + { + "name": "Irvine", + "value": "NOAM-US-CA-IR", + "locationOptions": [] + }, + { + "name": "Los Angeles", + "value": "NOAM-US-CA-LA", + "locationOptions": [] + }, + { + "name": "Riverside", + "value": "NOAM-US-CA-RI", + "locationOptions": [] + }, + { + "name": "Sacramento", + "value": "NOAM-US-CA-SA", + "locationOptions": [] + }, + { + "name": "Salinas", + "value": "NOAM-US-CA-SL", + "locationOptions": [] + }, + { + "name": "San Diego", + "value": "NOAM-US-CA-SD", + "locationOptions": [] + }, + { + "name": "San Francisco", + "value": "NOAM-US-CA-SF", + "locationOptions": [] + }, + { + "name": "San Jose", + "value": "NOAM-US-CA-SJ", + "locationOptions": [] + }, + { + "name": "Santa Barbara", + "value": "NOAM-US-CA-SB", + "locationOptions": [] + }, + { + "name": "Santa Clarita", + "value": "NOAM-US-CA-SC", + "locationOptions": [] + }, + { + "name": "Santa Rosa", + "value": "NOAM-US-CA-SR", + "locationOptions": [] + }, + { + "name": "Stockton", + "value": "NOAM-US-CA-ST", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "CL", + "value": "CL", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Washington DC", + "value": "NOAM-US-CL-DC", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "CO", + "value": "CO", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Denver", + "value": "NOAM-US-CO-DE", + "locationOptions": [] + }, + { + "name": "Pueblo", + "value": "NOAM-US-CO-PU", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "CT", + "value": "CT", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Bridgeport", + "value": "NOAM-US-CT-BR", + "locationOptions": [] + }, + { + "name": "Hartford", + "value": "NOAM-US-CT-HA", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "DE", + "value": "DE", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Wilmington", + "value": "NOAM-US-DE-WI", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "FL", + "value": "FL", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Cape Coral", + "value": "NOAM-US-FL-CC", + "locationOptions": [] + }, + { + "name": "Fort Lauderdale", + "value": "NOAM-US-FL-FL", + "locationOptions": [] + }, + { + "name": "Gainesville", + "value": "NOAM-US-FL-GA", + "locationOptions": [] + }, + { + "name": "Jacksonville", + "value": "NOAM-US-FL-JA", + "locationOptions": [] + }, + { + "name": "Lakeland", + "value": "NOAM-US-FL-LA", + "locationOptions": [] + }, + { + "name": "Miami", + "value": "NOAM-US-FL-MI", + "locationOptions": [] + }, + { + "name": "Orlando", + "value": "NOAM-US-FL-OR", + "locationOptions": [] + }, + { + "name": "Port St Lucie", + "value": "NOAM-US-FL-PS", + "locationOptions": [] + }, + { + "name": "Sarasota", + "value": "NOAM-US-FL-SA", + "locationOptions": [] + }, + { + "name": "St. Petersburg", + "value": "NOAM-US-FL-SP", + "locationOptions": [] + }, + { + "name": "Tallahassee", + "value": "NOAM-US-FL-TA", + "locationOptions": [] + }, + { + "name": "West Palm Beach", + "value": "NOAM-US-FL-WP", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "GA", + "value": "GA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Albany", + "value": "NOAM-US-GA-AL", + "locationOptions": [] + }, + { + "name": "Atlanta", + "value": "NOAM-US-GA-AT", + "locationOptions": [] + }, + { + "name": "Augusta", + "value": "NOAM-US-GA-AU", + "locationOptions": [] + }, + { + "name": "Macon", + "value": "NOAM-US-GA-MA", + "locationOptions": [] + }, + { + "name": "Savannah", + "value": "NOAM-US-GA-SA", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "HI", + "value": "HI", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Honolulu", + "value": "NOAM-US-HI-HO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "IA", + "value": "IA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Cedar Rapids", + "value": "NOAM-US-IA-CR", + "locationOptions": [] + }, + { + "name": "Davenport", + "value": "NOAM-US-IA-DA", + "locationOptions": [] + }, + { + "name": "Mason City", + "value": "NOAM-US-IA-MC", + "locationOptions": [] + }, + { + "name": "Sioux City", + "value": "NOAM-US-IA-SC", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "ID", + "value": "ID", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Boise", + "value": "NOAM-US-ID-BO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "IL", + "value": "IL", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Alton", + "value": "NOAM-US-IL-AL", + "locationOptions": [] + }, + { + "name": "Aurora", + "value": "NOAM-US-IL-AU", + "locationOptions": [] + }, + { + "name": "Big Rock", + "value": "NOAM-US-IL-BK", + "locationOptions": [] + }, + { + "name": "Champaign", + "value": "NOAM-US-IL-CA", + "locationOptions": [] + }, + { + "name": "Chicago", + "value": "NOAM-US-IL-CH", + "locationOptions": [] + }, + { + "name": "Rock Island", + "value": "NOAM-US-IL-RI", + "locationOptions": [] + }, + { + "name": "Rockford", + "value": "NOAM-US-IL-RO", + "locationOptions": [] + }, + { + "name": "Waukegan", + "value": "NOAM-US-IL-WK", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "IN", + "value": "IN", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Evansville", + "value": "NOAM-US-IN-EV", + "locationOptions": [] + }, + { + "name": "Fort Wayne", + "value": "NOAM-US-IN-FW", + "locationOptions": [] + }, + { + "name": "Gary", + "value": "NOAM-US-IN-GA", + "locationOptions": [] + }, + { + "name": "Indianapolis", + "value": "NOAM-US-IN-IN", + "locationOptions": [] + }, + { + "name": "South Bend", + "value": "NOAM-US-IN-SB", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "KS", + "value": "KS", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Kansas City", + "value": "NOAM-US-KS-KS", + "locationOptions": [] + }, + { + "name": "Topeka", + "value": "NOAM-US-KS-TO", + "locationOptions": [] + }, + { + "name": "Wichita", + "value": "NOAM-US-KS-WI", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "KY", + "value": "KY", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Lexington", + "value": "NOAM-US-KY-LE", + "locationOptions": [] + }, + { + "name": "Louisville", + "value": "NOAM-US-KY-LO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "LA", + "value": "LA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Baton Rouge", + "value": "NOAM-US-LA-BR", + "locationOptions": [] + }, + { + "name": "Lafayette", + "value": "NOAM-US-LA-LA", + "locationOptions": [] + }, + { + "name": "New Orleans", + "value": "NOAM-US-LA-NO", + "locationOptions": [] + }, + { + "name": "Shreveport", + "value": "NOAM-US-LA-SH", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MA", + "value": "MA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Lowell", + "value": "NOAM-US-MA-LO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MD", + "value": "MD", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Baltimore", + "value": "NOAM-US-MD-BA", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "ME", + "value": "ME", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Portland", + "value": "NOAM-US-ME-PO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MI", + "value": "MI", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Ann Arbor", + "value": "NOAM-US-MI-AA", + "locationOptions": [] + }, + { + "name": "Detroit", + "value": "NOAM-US-MI-DE", + "locationOptions": [] + }, + { + "name": "Flint", + "value": "NOAM-US-MI-FL", + "locationOptions": [] + }, + { + "name": "Grand Rapids", + "value": "NOAM-US-MI-GP", + "locationOptions": [] + }, + { + "name": "Grant", + "value": "NOAM-US-MI-GR", + "locationOptions": [] + }, + { + "name": "Lansing", + "value": "NOAM-US-MI-LA", + "locationOptions": [] + }, + { + "name": "Otsego", + "value": "NOAM-US-MI-OT", + "locationOptions": [] + }, + { + "name": "Saginaw", + "value": "NOAM-US-MI-SA", + "locationOptions": [] + }, + { + "name": "Sault Ste Marie", + "value": "NOAM-US-MI-SS", + "locationOptions": [] + }, + { + "name": "Troy", + "value": "NOAM-US-MI-TR", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MN", + "value": "MN", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Alexandria", + "value": "NOAM-US-MN-AL", + "locationOptions": [] + }, + { + "name": "Duluth", + "value": "NOAM-US-MN-DU", + "locationOptions": [] + }, + { + "name": "Minneapolis", + "value": "NOAM-US-MN-MI", + "locationOptions": [] + }, + { + "name": "Plymouth", + "value": "NOAM-US-MN-PL", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MO", + "value": "MO", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Columbia", + "value": "NOAM-US-MO-CO", + "locationOptions": [] + }, + { + "name": "Kansas City", + "value": "NOAM-US-MO-KS", + "locationOptions": [] + }, + { + "name": "Marshall", + "value": "NOAM-US-MO-MA", + "locationOptions": [] + }, + { + "name": "Springfield", + "value": "NOAM-US-MO-SP", + "locationOptions": [] + }, + { + "name": "St. Charles", + "value": "NOAM-US-MO-SC", + "locationOptions": [] + }, + { + "name": "St. Louis", + "value": "NOAM-US-MO-SL", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MS", + "value": "MS", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Biloxi", + "value": "NOAM-US-MS-BI", + "locationOptions": [] + }, + { + "name": "Jackson", + "value": "NOAM-US-MS-JA", + "locationOptions": [] + }, + { + "name": "Starkville", + "value": "NOAM-US-MS-ST", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "MT", + "value": "MT", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Billings", + "value": "NOAM-US-MT-BI", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NC", + "value": "NC", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Asheville", + "value": "NOAM-US-NC-AS", + "locationOptions": [] + }, + { + "name": "Charlotte", + "value": "NOAM-US-NC-CH", + "locationOptions": [] + }, + { + "name": "Fayetteville", + "value": "NOAM-US-NC-FA", + "locationOptions": [] + }, + { + "name": "Greensboro", + "value": "NOAM-US-NC-GR", + "locationOptions": [] + }, + { + "name": "Raleigh", + "value": "NOAM-US-NC-RA", + "locationOptions": [] + }, + { + "name": "Rocky Mount", + "value": "NOAM-US-NC-RM", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "ND", + "value": "ND", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Fargo", + "value": "NOAM-US-ND-FA", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NE", + "value": "NE", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Kearney", + "value": "NOAM-US-NE-KE", + "locationOptions": [] + }, + { + "name": "Omaha", + "value": "NOAM-US-NE-OM", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NJ", + "value": "NJ", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Atlantic City", + "value": "NOAM-US-NJ-AC", + "locationOptions": [] + }, + { + "name": "Camden", + "value": "NOAM-US-NJ-CA", + "locationOptions": [] + }, + { + "name": "Edison", + "value": "NOAM-US-NJ-ED", + "locationOptions": [] + }, + { + "name": "Elizabeth", + "value": "NOAM-US-NJ-EL", + "locationOptions": [] + }, + { + "name": "Jersey City", + "value": "NOAM-US-NJ-JC", + "locationOptions": [] + }, + { + "name": "Newark", + "value": "NOAM-US-NJ-NE", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NM", + "value": "NM", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Albuquerque", + "value": "NOAM-US-NM-AL", + "locationOptions": [] + }, + { + "name": "Las Cruces", + "value": "NOAM-US-NM-LC", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NV", + "value": "NV", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Las Vegas", + "value": "NOAM-US-NV-LV", + "locationOptions": [] + }, + { + "name": "Reno", + "value": "NOAM-US-NV-RE", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "NY", + "value": "NY", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Albany", + "value": "NOAM-US-NY-AL", + "locationOptions": [] + }, + { + "name": "Brentwood", + "value": "NOAM-US-NY-BR", + "locationOptions": [] + }, + { + "name": "Elmira", + "value": "NOAM-US-NY-EL", + "locationOptions": [] + }, + { + "name": "Hempstead", + "value": "NOAM-US-NY-HE", + "locationOptions": [] + }, + { + "name": "New York City", + "value": "NOAM-US-NY-NY", + "locationOptions": [] + }, + { + "name": "Niagara Falls", + "value": "NOAM-US-NY-NF", + "locationOptions": [] + }, + { + "name": "Rochester", + "value": "NOAM-US-NY-RO", + "locationOptions": [] + }, + { + "name": "Syracuse", + "value": "NOAM-US-NY-SY", + "locationOptions": [] + }, + { + "name": "Yonkers", + "value": "NOAM-US-NY-YO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "OH", + "value": "OH", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Akron", + "value": "NOAM-US-OH-AK", + "locationOptions": [] + }, + { + "name": "Cincinnati", + "value": "NOAM-US-OH-CI", + "locationOptions": [] + }, + { + "name": "Cleveland", + "value": "NOAM-US-OH-CL", + "locationOptions": [] + }, + { + "name": "Columbus", + "value": "NOAM-US-OH-CO", + "locationOptions": [] + }, + { + "name": "Dayton", + "value": "NOAM-US-OH-DA", + "locationOptions": [] + }, + { + "name": "Toledo", + "value": "NOAM-US-OH-TO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "OK", + "value": "OK", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Lawton", + "value": "NOAM-US-OK-LA", + "locationOptions": [] + }, + { + "name": "Oklahoma City", + "value": "NOAM-US-OK-OC", + "locationOptions": [] + }, + { + "name": "Tulsa", + "value": "NOAM-US-OK-TU", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "OR", + "value": "OR", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Portland", + "value": "NOAM-US-OR-PO", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "PA", + "value": "PA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Erie", + "value": "NOAM-US-PA-ER", + "locationOptions": [] + }, + { + "name": "Lancaster", + "value": "NOAM-US-PA-LA", + "locationOptions": [] + }, + { + "name": "Philadelphia", + "value": "NOAM-US-PA-PI", + "locationOptions": [] + }, + { + "name": "Pittsburgh", + "value": "NOAM-US-PA-PT", + "locationOptions": [] + }, + { + "name": "Scranton", + "value": "NOAM-US-PA-SC", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "RI", + "value": "RI", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Providence", + "value": "NOAM-US-RI-PR", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "SC", + "value": "SC", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Charleston", + "value": "NOAM-US-SC-CH", + "locationOptions": [] + }, + { + "name": "Columbia", + "value": "NOAM-US-SC-CO", + "locationOptions": [] + }, + { + "name": "Greenville", + "value": "NOAM-US-SC-GR", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "SD", + "value": "SD", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Sioux Falls", + "value": "NOAM-US-SD-SF", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "TN", + "value": "TN", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Chattanooga", + "value": "NOAM-US-TN-CH", + "locationOptions": [] + }, + { + "name": "Clarksville", + "value": "NOAM-US-TN-CL", + "locationOptions": [] + }, + { + "name": "Jackson", + "value": "NOAM-US-TN-JA", + "locationOptions": [] + }, + { + "name": "Knoxville", + "value": "NOAM-US-TN-KN", + "locationOptions": [] + }, + { + "name": "Memphis", + "value": "NOAM-US-TN-ME", + "locationOptions": [] + }, + { + "name": "Nashville", + "value": "NOAM-US-TN-NA", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "TX", + "value": "TX", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Abilene", + "value": "NOAM-US-TX-AB", + "locationOptions": [] + }, + { + "name": "Austin", + "value": "NOAM-US-TX-AU", + "locationOptions": [] + }, + { + "name": "Bryan", + "value": "NOAM-US-TX-BR", + "locationOptions": [] + }, + { + "name": "Corpus Christi", + "value": "NOAM-US-TX-CC", + "locationOptions": [] + }, + { + "name": "Denton", + "value": "NOAM-US-TX-DE", + "locationOptions": [] + }, + { + "name": "El Paso", + "value": "NOAM-US-TX-EP", + "locationOptions": [] + }, + { + "name": "Fort Worth", + "value": "NOAM-US-TX-FW", + "locationOptions": [] + }, + { + "name": "Galveston", + "value": "NOAM-US-TX-GA", + "locationOptions": [] + }, + { + "name": "Houston", + "value": "NOAM-US-TX-HO", + "locationOptions": [] + }, + { + "name": "Huntsville", + "value": "NOAM-US-TX-HU", + "locationOptions": [] + }, + { + "name": "Laredo", + "value": "NOAM-US-TX-LA", + "locationOptions": [] + }, + { + "name": "Lubbock", + "value": "NOAM-US-TX-LU", + "locationOptions": [] + }, + { + "name": "Tyler", + "value": "NOAM-US-TX-TY", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "UT", + "value": "UT", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Salt Lake City", + "value": "NOAM-US-UT-SL", + "locationOptions": [] + }, + { + "name": "St. George", + "value": "NOAM-US-UT-SG", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "VA", + "value": "VA", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Arlington", + "value": "NOAM-US-VA-AR", + "locationOptions": [] + }, + { + "name": "Danville", + "value": "NOAM-US-VA-DA", + "locationOptions": [] + }, + { + "name": "Lynchburg", + "value": "NOAM-US-VA-LY", + "locationOptions": [] + }, + { + "name": "Richmond", + "value": "NOAM-US-VA-RI", + "locationOptions": [] + }, + { + "name": "Roanoke", + "value": "NOAM-US-VA-RO", + "locationOptions": [] + }, + { + "name": "Virginia Beach", + "value": "NOAM-US-VA-VB", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "VT", + "value": "VT", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Brattleboro", + "value": "NOAM-US-VT-BR", + "locationOptions": [] + }, + { + "name": "Burlington", + "value": "NOAM-US-VT-BU", + "locationOptions": [] + }, + { + "name": "Newport", + "value": "NOAM-US-VT-NE", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "WI", + "value": "WI", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Eau Claire", + "value": "NOAM-US-WI-EC", + "locationOptions": [] + }, + { + "name": "Green Bay", + "value": "NOAM-US-WI-GB", + "locationOptions": [] + }, + { + "name": "Kenosha", + "value": "NOAM-US-WI-KE", + "locationOptions": [] + }, + { + "name": "Madison", + "value": "NOAM-US-WI-MA", + "locationOptions": [] + }, + { + "name": "Milwaukee", + "value": "NOAM-US-WI-MI", + "locationOptions": [] + } + ] + } + ] + }, + { + "name": "WY", + "value": "WY", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Laramie", + "value": "NOAM-US-WY-LA", + "locationOptions": [] + } + ] + } + ] + } + ] + } + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "972002085" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/PurchaseAndRelease.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/PurchaseAndRelease.json new file mode 100644 index 0000000000000..002970e47f186 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/PurchaseAndRelease.json @@ -0,0 +1,1743 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:50:11 GMT", + "Request-Id": "|b1964b04-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "15f81a50e021d5ba06758ae44d011507", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:11 GMT", + "MS-CV": "8wQwO5v03UivZrQmK7ynFQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0RJPFXwAAAAA\u002BQav4kCbRTb08AZxF/PUJWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "274ms" + }, + "ResponseBody": { + "phonePlanGroups": [ + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "Geographic", + "localizedName": "Azure- User - Geographic", + "localizedDescription": "These are numbers used by Azure resources." + }, + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "Geographic", + "localizedName": "Azure - Geographic", + "localizedDescription": "These are numbers used by Azure resources." + }, + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "TollFree", + "localizedName": "Azure - Toll Free", + "localizedDescription": "These are toll free numbers used by Azure resources." + } + ], + "nextLink": null + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/Sanitized/phoneplans?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:50:12 GMT", + "Request-Id": "|b1964b05-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "0956f6d0f783654d0d1d7d5131cfbf68", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:11 GMT", + "MS-CV": "IYA6B1D1H02iHx46HQsoJA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0RJPFXwAAAAC2RQJvgVjuSI/utz8UoCGYWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "251ms" + }, + "ResponseBody": { + "phonePlans": [ + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) \u0026 Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "OutboundCalling", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) \u0026 Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "InboundCalling", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only Sms - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only SMS (A2P) \u0026 Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "OutboundCalling", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only SMS (A2P) \u0026 Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "InboundCalling", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundCalling", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "InboundCalling", + "TollFree" + ], + "maximumSearchSize": 20 + } + ], + "nextLink": null + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches?api-version=2020-07-20-preview1", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "131", + "Content-Type": "application/json", + "Date": "Tue, 01 Dec 2020 00:50:12 GMT", + "Request-Id": "|b1964b06-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "096ce056e6a5ea056e02e4f02c7c63a7", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "displayName": "My reservation", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1 + }, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:13 GMT", + "MS-CV": "Lpf0IkRc\u002B061I5t8eFLcLA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0RJPFXwAAAACC/yPADWxKTqbRIPIMfUKrWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "1471ms" + }, + "ResponseBody": { + "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:50:16 GMT", + "Request-Id": "|b1964b07-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "f21e1f72d1d3593ccc9307036369a337", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:17 GMT", + "MS-CV": "Jzyj8e1P0EiMaZKbaIgSKg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0SJPFXwAAAAAvQPHskSnrSKO/j3xHDrjfWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "604ms" + }, + "ResponseBody": { + "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Pending", + "phoneNumbers": [] + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:50:19 GMT", + "Request-Id": "|b1964b08-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "6c8e21b50c95e961f16c9b81135c3891", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:19 GMT", + "MS-CV": "YmKNo1ernUO\u002BbdvXk/upuA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0S5PFXwAAAAAjeDdxcGkeSLB94E4mDgpfWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "266ms" + }, + "ResponseBody": { + "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "InProgress", + "phoneNumbers": [] + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:50:21 GMT", + "Request-Id": "|b1964b09-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "11ded5b9ccb08495a4133d11df018605", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:21 GMT", + "MS-CV": "NzGbsl1iR0\u002BNKbxjG887iQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0TZPFXwAAAABqC/WBxJb6R4QcBJ3Vs19yWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "498ms" + }, + "ResponseBody": { + "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Reserved", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:50:24 GMT", + "Request-Id": "|b1964b0a-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "0a3aac5ef7ed6612bd35016736ba456f", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:24 GMT", + "MS-CV": "eWpSpw4XSkiDqTB\u002B54iS4w.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0UJPFXwAAAABvjSChvicxQIuboklIafUnWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "274ms" + }, + "ResponseBody": { + "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Reserved", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized/purchase?api-version=2020-07-20-preview1", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:50:24 GMT", + "Request-Id": "|b1964b0b-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "8e49755b918be9868c09c781cf500aef", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Tue, 01 Dec 2020 00:50:25 GMT", + "MS-CV": "hHyScIIB1E6obEZ6KBP4rw.0", + "X-Azure-Ref": "0UJPFXwAAAADeQ8S//xhTTJN5w8YviUkrWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "814ms" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:50:27 GMT", + "Request-Id": "|b1964b0c-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "662296e52d22c2a3c278547bcb2d4eea", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:27 GMT", + "MS-CV": "qA1WexcYfkSaJtYLDbSr/Q.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0U5PFXwAAAABmsSHumkp9Rbp1Q74nKhCuWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "269ms" + }, + "ResponseBody": { + "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Completing", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:50:29 GMT", + "Request-Id": "|b1964b0d-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "69b6cdcdf7b7cd7a26517ee42f90966d", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:29 GMT", + "MS-CV": "15uwqXyookufVerypaPyCw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0VZPFXwAAAACYJ0irPeZ5TLpcs0OjsmBVWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "355ms" + }, + "ResponseBody": { + "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Completing", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:50:32 GMT", + "Request-Id": "|b1964b0e-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "a081112adf972d4dd286cc123d0b1d5e", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:32 GMT", + "MS-CV": "vhMqXHH0S0WRYqP7NMuC4Q.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0WJPFXwAAAABOv7DP9/2uRqEwsNBRhMmuWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "380ms" + }, + "ResponseBody": { + "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "PurchasePending", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:50:34 GMT", + "Request-Id": "|b1964b0f-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "01b4ddbaa099ed371b5540d0afbf9331", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:34 GMT", + "MS-CV": "fdbn3R\u002BUfkWPKkxQw\u002BGk5w.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0WpPFXwAAAAA47sA6ySKTTLV\u002Br0shxVcBWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "306ms" + }, + "ResponseBody": { + "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "PurchasePending", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:50:37 GMT", + "Request-Id": "|b1964b10-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "b950e6e1aeabed52808896312b67901b", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:37 GMT", + "MS-CV": "m135RTYVU0\u002BeqRaF2BhBpw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0XZPFXwAAAAAvTgGl9t2TRZK7zTnrKJQgWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "630ms" + }, + "ResponseBody": { + "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "PurchasePending", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:50:39 GMT", + "Request-Id": "|b1964b11-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "51291f3395dc8ad4d99484429f7d7e13", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:39 GMT", + "MS-CV": "/Cph2L6Rokm7eU2Q2xbQPw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0X5PFXwAAAADvbF4RLhobRKn1VTlVSEqPWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "592ms" + }, + "ResponseBody": { + "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "PurchasePending", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:50:42 GMT", + "Request-Id": "|b1964b12-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "56319bf364ba0cb38bc681100a06c2b4", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:42 GMT", + "MS-CV": "Avi4FZVr60eltX8AlnTT\u002BQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0YpPFXwAAAAC7PVOwI/rKR5Jmx9gNBzNgWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "594ms" + }, + "ResponseBody": { + "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "PurchasePending", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:50:45 GMT", + "Request-Id": "|b1964b13-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "8f9c25c442954c5512c6df172a0f4e02", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:45 GMT", + "MS-CV": "KxaloHoTMk6mDoOpFcgYAw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ZZPFXwAAAAD9qYk/5Q8ER4SZsWLh2y2LWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "365ms" + }, + "ResponseBody": { + "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "PurchasePending", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:50:47 GMT", + "Request-Id": "|b1964b14-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "903d830a3936cf606c1cc51513c37fd3", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:47 GMT", + "MS-CV": "60m3JN1Wh0yWMlLicLUkxg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0Z5PFXwAAAADREfes6ddwQYI1w0ulcKIZWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "267ms" + }, + "ResponseBody": { + "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "PurchasePending", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:50:49 GMT", + "Request-Id": "|b1964b15-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "7a7dcfd1efe0b17d45e444f4849be27b", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:49 GMT", + "MS-CV": "TCyWpDyd90CVkjKXKsQP/w.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0apPFXwAAAACh/kTFTzV8RKX54veilpnjWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "275ms" + }, + "ResponseBody": { + "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "PurchasePending", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:50:52 GMT", + "Request-Id": "|b1964b16-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "86067e7831c98b7ec4cd22787c3f394e", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:52 GMT", + "MS-CV": "LDm6Svp\u002BRUKvQtSr\u002Bus9DQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0bJPFXwAAAAA76TflPqPjRqR78Oq8pLykWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "269ms" + }, + "ResponseBody": { + "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "PurchasePending", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:50:54 GMT", + "Request-Id": "|b1964b17-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "5a450c46d4911b22068b4a51f46b4ad0", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:54 GMT", + "MS-CV": "l52tq93uRU\u002BaKdkhm1OtJQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0bpPFXwAAAAAQuKmpp91/RrXaTj0b\u002Bh2EWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "270ms" + }, + "ResponseBody": { + "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Success", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/phonenumbers?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:50:55 GMT", + "Request-Id": "|b1964b18-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "949c493af9bd9f0951f2b513cc043506", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:55 GMT", + "MS-CV": "DuhcIr3xT0aK7hP/CF/0Eg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0b5PFXwAAAACX6PFmkJDYTbztEhvVQFZyWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "597ms" + }, + "ResponseBody": { + "phoneNumbers": [ + { + "phoneNumber": "Sanitized", + "acquiredCapabilities": [ + "Azure", + "InboundCalling", + "UserAssignment", + "Geographic", + "OutboundCalling" + ], + "availableCapabilities": [ + "UserAssignment", + "Geographic", + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling" + ], + "assignmentStatus": "Unassigned", + "placeName": "Birmingham, United States", + "activationState": "Activated" + }, + { + "phoneNumber": "Sanitized", + "acquiredCapabilities": [ + "Azure", + "OutboundCalling", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "availableCapabilities": [ + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling", + "ThirdPartyAppAssignment", + "ConferenceAssignment", + "FirstPartyAppAssignment", + "TollFree", + "InboundA2PSms", + "OutboundA2PSms" + ], + "assignmentStatus": "Unassigned", + "placeName": "Toll-Free, NOAM Toll Free", + "activationState": "Activated" + }, + { + "phoneNumber": "Sanitized", + "acquiredCapabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundCalling", + "TollFree" + ], + "availableCapabilities": [ + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling", + "ThirdPartyAppAssignment", + "ConferenceAssignment", + "FirstPartyAppAssignment", + "TollFree", + "InboundA2PSms", + "OutboundA2PSms" + ], + "assignmentStatus": "ThirdPartyAppAssigned", + "placeName": "Toll-Free, United States", + "activationState": "Activated" + }, + { + "phoneNumber": "Sanitized", + "acquiredCapabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundCalling", + "TollFree" + ], + "availableCapabilities": [ + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling", + "ThirdPartyAppAssignment", + "ConferenceAssignment", + "FirstPartyAppAssignment", + "TollFree", + "InboundA2PSms", + "OutboundA2PSms" + ], + "assignmentStatus": "Unassigned", + "placeName": "Toll-Free, United States", + "activationState": "Activated" + } + ], + "nextLink": null + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/phonenumbers?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:50:55 GMT", + "Request-Id": "|b1964b19-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "78adf5ab8756a4e95cea803de72d9659", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:55 GMT", + "MS-CV": "wGGZiQPOekGQKHau5eZKFg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0b5PFXwAAAADKYQygScEIQYEz5jmOgrLcWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "391ms" + }, + "ResponseBody": { + "phoneNumbers": [ + { + "phoneNumber": "Sanitized", + "acquiredCapabilities": [ + "Azure", + "InboundCalling", + "UserAssignment", + "Geographic", + "OutboundCalling" + ], + "availableCapabilities": [ + "UserAssignment", + "Geographic", + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling" + ], + "assignmentStatus": "Unassigned", + "placeName": "Birmingham, United States", + "activationState": "Activated" + }, + { + "phoneNumber": "Sanitized", + "acquiredCapabilities": [ + "Azure", + "OutboundCalling", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "availableCapabilities": [ + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling", + "ThirdPartyAppAssignment", + "ConferenceAssignment", + "FirstPartyAppAssignment", + "TollFree", + "InboundA2PSms", + "OutboundA2PSms" + ], + "assignmentStatus": "Unassigned", + "placeName": "Toll-Free, NOAM Toll Free", + "activationState": "Activated" + }, + { + "phoneNumber": "Sanitized", + "acquiredCapabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundCalling", + "TollFree" + ], + "availableCapabilities": [ + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling", + "ThirdPartyAppAssignment", + "ConferenceAssignment", + "FirstPartyAppAssignment", + "TollFree", + "InboundA2PSms", + "OutboundA2PSms" + ], + "assignmentStatus": "ThirdPartyAppAssigned", + "placeName": "Toll-Free, United States", + "activationState": "Activated" + }, + { + "phoneNumber": "Sanitized", + "acquiredCapabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundCalling", + "TollFree" + ], + "availableCapabilities": [ + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling", + "ThirdPartyAppAssignment", + "ConferenceAssignment", + "FirstPartyAppAssignment", + "TollFree", + "InboundA2PSms", + "OutboundA2PSms" + ], + "assignmentStatus": "Unassigned", + "placeName": "Toll-Free, United States", + "activationState": "Activated" + } + ], + "nextLink": null + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases?api-version=2020-07-20-preview1", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "30", + "Content-Type": "application/json", + "Date": "Tue, 01 Dec 2020 00:50:56 GMT", + "Request-Id": "|b1964b1a-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "323e5282a4a34d9102a5089f1f0f4f01", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "phoneNumbers": [ + "Sanitized" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:56 GMT", + "MS-CV": "WawL0WcWakqFOhdoEHjuSw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0cJPFXwAAAAAcIG2ZYkVLS5UaJcsXnrYtWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "560ms" + }, + "ResponseBody": { + "releaseId": "dcfbf51b-aebf-427e-8a34-987216e74d40" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:50:58 GMT", + "Request-Id": "|b1964b1b-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "ffa54456d2beb27a5ff837d278ccb823", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:50:58 GMT", + "MS-CV": "tRcx09\u002BWX0CRCOkZtMkfJA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0cpPFXwAAAAByMUNkui1XSav34im2Jk0lWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "189ms" + }, + "ResponseBody": { + "releaseId": "dcfbf51b-aebf-427e-8a34-987216e74d40", + "createdAt": "2020-12-01T00:50:56.4260585\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "Pending" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:51:01 GMT", + "Request-Id": "|b1964b1c-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "79905c5c02c60663646075b07f4a854d", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:51:00 GMT", + "MS-CV": "UeV7joY0GkiZ68Sno4IfCQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0dZPFXwAAAAA1Idd4drG5Q4qPscUIXJ9PWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "189ms" + }, + "ResponseBody": { + "releaseId": "dcfbf51b-aebf-427e-8a34-987216e74d40", + "createdAt": "2020-12-01T00:50:56.4260585\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "Pending" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:51:03 GMT", + "Request-Id": "|b1964b1d-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "a2e77f9b9788b09ad78bd3aa6dbfd435", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:51:02 GMT", + "MS-CV": "VcPIBnjaqkmkb3nF3hCZXA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0d5PFXwAAAABh/8pzA40\u002BTq1PVLJl9wIKWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "202ms" + }, + "ResponseBody": { + "releaseId": "dcfbf51b-aebf-427e-8a34-987216e74d40", + "createdAt": "2020-12-01T00:50:56.4260585\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "Pending" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:51:05 GMT", + "Request-Id": "|b1964b1e-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "c243e4ecd57e543be19e9b5d5cc93315", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:51:05 GMT", + "MS-CV": "tkcZrH82L0eCVOcKJ1xHBw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0eZPFXwAAAAAaq/1cyipbQJ1yZ\u002BRl2Um6WVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "206ms" + }, + "ResponseBody": { + "releaseId": "dcfbf51b-aebf-427e-8a34-987216e74d40", + "createdAt": "2020-12-01T00:50:56.4260585\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "Pending" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:51:08 GMT", + "Request-Id": "|b1964b1f-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "f936ea7315e5c59bc1e0a23a2fb899a4", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:51:07 GMT", + "MS-CV": "fWGBKsxJDEuklFts\u002B8XpNg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0fJPFXwAAAABxkQMmBFVhS6CLD95Q2OQWWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "189ms" + }, + "ResponseBody": { + "releaseId": "dcfbf51b-aebf-427e-8a34-987216e74d40", + "createdAt": "2020-12-01T00:50:56.4260585\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "InProgress" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:51:10 GMT", + "Request-Id": "|b1964b20-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "9ac3408bc207c6cf4393c1e9fc3d530d", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:51:09 GMT", + "MS-CV": "NasuSvsWyEOCdJVQcMV5HQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0fpPFXwAAAABf9OPsW/ZvRa9z4/dObKASWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "183ms" + }, + "ResponseBody": { + "releaseId": "dcfbf51b-aebf-427e-8a34-987216e74d40", + "createdAt": "2020-12-01T00:50:56.4260585\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "InProgress" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:51:12 GMT", + "Request-Id": "|b1964b21-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "8336bd57db88d750497e019d32002428", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:51:11 GMT", + "MS-CV": "2mwEsRGyhkKop9bcYHLwWw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0gJPFXwAAAAB9uhVkzs39T4FBc\u002BGLZU3MWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "183ms" + }, + "ResponseBody": { + "releaseId": "dcfbf51b-aebf-427e-8a34-987216e74d40", + "createdAt": "2020-12-01T00:50:56.4260585\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "InProgress" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:51:14 GMT", + "Request-Id": "|b1964b22-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "1cd1f6049906b10d1b70b55254b2c983", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:51:14 GMT", + "MS-CV": "kS\u002BAYBX2n0ipyDPk\u002Bse0aA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0gpPFXwAAAACBIBlT7Dd7TooS49IprZMmWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "398ms" + }, + "ResponseBody": { + "releaseId": "dcfbf51b-aebf-427e-8a34-987216e74d40", + "createdAt": "2020-12-01T00:50:56.4260585\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "InProgress" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:51:17 GMT", + "Request-Id": "|b1964b23-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "71e3948d1681b01cefec5189c0319343", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:51:17 GMT", + "MS-CV": "Q1XzQsy6D0aDGVJZJhvxYg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0hZPFXwAAAABZ0ZQpNJ/KT7UIqh1R8IYQWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "182ms" + }, + "ResponseBody": { + "releaseId": "dcfbf51b-aebf-427e-8a34-987216e74d40", + "createdAt": "2020-12-01T00:50:56.4260585\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "InProgress" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:51:19 GMT", + "Request-Id": "|b1964b24-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "05e4986e376bbe07b085681725fe8397", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:51:20 GMT", + "MS-CV": "aBW8TXNVekCVNtLqZW\u002BYRw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0h5PFXwAAAABOLepuGZ\u002BlQpnupA2LMFZtWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "184ms" + }, + "ResponseBody": { + "releaseId": "dcfbf51b-aebf-427e-8a34-987216e74d40", + "createdAt": "2020-12-01T00:50:56.4260585\u002B00:00", + "status": "Complete", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "Success" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/phonenumbers?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:51:20 GMT", + "Request-Id": "|b1964b25-43682d54197ee275.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "9d107eb4b31deea6da212c194884f1e9", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:51:20 GMT", + "MS-CV": "czeShAHAZUSBefq/8uCy0g.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0iJPFXwAAAAAQNKP83PuySL4O\u002Bzwzxr4DWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "355ms" + }, + "ResponseBody": { + "phoneNumbers": [ + { + "phoneNumber": "Sanitized", + "acquiredCapabilities": [ + "Azure", + "InboundCalling", + "UserAssignment", + "Geographic", + "OutboundCalling" + ], + "availableCapabilities": [ + "UserAssignment", + "Geographic", + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling" + ], + "assignmentStatus": "Unassigned", + "placeName": "Birmingham, United States", + "activationState": "Activated" + }, + { + "phoneNumber": "Sanitized", + "acquiredCapabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundCalling", + "TollFree" + ], + "availableCapabilities": [ + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling", + "ThirdPartyAppAssignment", + "ConferenceAssignment", + "FirstPartyAppAssignment", + "TollFree", + "InboundA2PSms", + "OutboundA2PSms" + ], + "assignmentStatus": "ThirdPartyAppAssigned", + "placeName": "Toll-Free, United States", + "activationState": "Activated" + }, + { + "phoneNumber": "Sanitized", + "acquiredCapabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundCalling", + "TollFree" + ], + "availableCapabilities": [ + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling", + "ThirdPartyAppAssignment", + "ConferenceAssignment", + "FirstPartyAppAssignment", + "TollFree", + "InboundA2PSms", + "OutboundA2PSms" + ], + "assignmentStatus": "Unassigned", + "placeName": "Toll-Free, United States", + "activationState": "Activated" + } + ], + "nextLink": null + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "715976689" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/PurchaseAndReleaseAsyncAsync.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/PurchaseAndReleaseAsyncAsync.json new file mode 100644 index 0000000000000..7e465123cbce2 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/PurchaseAndReleaseAsyncAsync.json @@ -0,0 +1,2793 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:48:40 GMT", + "traceparent": "00-18263f741cd4c7498a1f29311fade117-5bcbf4b275a6db43-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "0461132b607677647a38a6084c7690ff", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:48:40 GMT", + "MS-CV": "cV2RyZYOs0\u002BNqsjYXxR9Ow.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "06JLFXwAAAABEWj/2ICeqRLgmYlo81nDnWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "687ms" + }, + "ResponseBody": { + "phonePlanGroups": [ + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "Geographic", + "localizedName": "Azure- User - Geographic", + "localizedDescription": "These are numbers used by Azure resources." + }, + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "Geographic", + "localizedName": "Azure - Geographic", + "localizedDescription": "These are numbers used by Azure resources." + }, + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "TollFree", + "localizedName": "Azure - Toll Free", + "localizedDescription": "These are toll free numbers used by Azure resources." + } + ], + "nextLink": null + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:48:41 GMT", + "traceparent": "00-0847642f48ace347ae300a05d4439d47-c911618ec0a75e41-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "500e3a920e822f68dab35871051fde8e", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:48:41 GMT", + "MS-CV": "oL7xnZsw2keSxsml0ml7zw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "06ZLFXwAAAAD7VMql7kY7R4rIxJnp2L6MWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "283ms" + }, + "ResponseBody": { + "phonePlanGroups": [ + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "Geographic", + "localizedName": "Azure- User - Geographic", + "localizedDescription": "These are numbers used by Azure resources." + }, + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "Geographic", + "localizedName": "Azure - Geographic", + "localizedDescription": "These are numbers used by Azure resources." + }, + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "TollFree", + "localizedName": "Azure - Toll Free", + "localizedDescription": "These are toll free numbers used by Azure resources." + } + ], + "nextLink": null + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/Sanitized/phoneplans?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:48:41 GMT", + "traceparent": "00-eb468edef0861f4eabc12e8be501a3d1-441653c55eb90548-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "68be73fe2950d18d11215e8604d9d54d", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:48:41 GMT", + "MS-CV": "7x4CfX9rg0eFRDqo6Lhi2w.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "06ZLFXwAAAAD9kdFTJRPcQYrc71plHXyMWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "250ms" + }, + "ResponseBody": { + "phonePlans": [ + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) \u0026 Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "OutboundCalling", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) \u0026 Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "InboundCalling", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only Sms - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only SMS (A2P) \u0026 Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "OutboundCalling", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only SMS (A2P) \u0026 Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "InboundCalling", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundCalling", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "InboundCalling", + "TollFree" + ], + "maximumSearchSize": 20 + } + ], + "nextLink": null + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/Sanitized/phoneplans?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:48:42 GMT", + "traceparent": "00-8fb7fb31420f8341a198e897d89586e6-2cf5bbe369adf54f-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "785031b383901d09ab3129c207f2715a", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:48:42 GMT", + "MS-CV": "zspYUfpttke1xF56yYrpfQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "06pLFXwAAAACi7A03/k/fSbL8agIazZAfWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "256ms" + }, + "ResponseBody": { + "phonePlans": [ + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) \u0026 Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "OutboundCalling", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) \u0026 Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "InboundCalling", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only Sms - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only SMS (A2P) \u0026 Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "OutboundCalling", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only SMS (A2P) \u0026 Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "InboundCalling", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundCalling", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "InboundCalling", + "TollFree" + ], + "maximumSearchSize": 20 + } + ], + "nextLink": null + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches?api-version=2020-07-20-preview1", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "131", + "Content-Type": "application/json", + "Date": "Tue, 01 Dec 2020 00:48:42 GMT", + "traceparent": "00-5fabd2cb98945d4fb27b4c4bfbee5f3f-ea21d02aa497454d-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "d909185928b769afad3d3e61afe22b01", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "displayName": "My reservation", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1 + }, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:48:43 GMT", + "MS-CV": "AJ0tDqB\u002BZUC2aZnoA31ieQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "06pLFXwAAAACw9m82qPgJSLsPrUoZE3QyWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "1336ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:48:44 GMT", + "traceparent": "00-570f77ed7fd0de4aa1afe898399390e0-a9e71421c4de7f48-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "d4be0bdd65ce7bfe69a1bd1e00cac91f", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:48:44 GMT", + "MS-CV": "JLwiGccNbEK5RUY3pWw57A.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "07JLFXwAAAAB/IyEV0TF/RqCVOZDjWp9sWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "288ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Pending", + "phoneNumbers": [] + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:48:45 GMT", + "traceparent": "00-aecb01bc6798a34383dcf1d2119a7b52-a4a8a330b2f95242-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "ec2c04affccf8b9582e7cb5344a86dc8", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:48:45 GMT", + "MS-CV": "HxswTGEEl0itbPGcKD9cgg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "07ZLFXwAAAAB9qcCM7MlaSav0JkBzh9OTWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "293ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Pending", + "phoneNumbers": [] + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:48:46 GMT", + "traceparent": "00-0bf435e5caa23a4b8539f59623d85711-2e031609823ceb41-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "fce427069d34f38b198e6f166a9068e2", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:48:46 GMT", + "MS-CV": "ijlPbjH91UuI0vNZ0a4p4g.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "07pLFXwAAAAB0CfPy/691Q4hs8ybH7di4WVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "262ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "InProgress", + "phoneNumbers": [] + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:48:48 GMT", + "traceparent": "00-7a407c5bb338804f8ab868c5fb5d58a9-7f58663491209848-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "abb11f733eb5e131753251e79aaa37c1", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:48:48 GMT", + "MS-CV": "oweRgRn1QkWKtcjuy2hhCg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "08JLFXwAAAAA6mnW8/e0WTIgRDrNyr67bWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "296ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "InProgress", + "phoneNumbers": [] + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:48:49 GMT", + "traceparent": "00-48d7ec8a3ba9a44a976e6ad52104abab-b696d90871c6b744-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "d818f433cde512ea7838d2418d7f20f2", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:48:49 GMT", + "MS-CV": "GooSmmdtvUS/0bj6d4pOBw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "08ZLFXwAAAABPnKDI1U4FT4fbtsY4PmWJWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "267ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Reserved", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:04:48.2880174\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:48:50 GMT", + "traceparent": "00-d802d2f603e157478c95d5e31f85aa3f-dfa2de706ff1fb41-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "24e0e87fc2f7c813f60386014ba4596f", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:48:49 GMT", + "MS-CV": "NFXz0ET8X0iRNWm/\u002BxZsrA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "08pLFXwAAAAB9KvMILJQkSKs9iBtKQdDEWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "297ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Reserved", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:04:48.2880174\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized/purchase?api-version=2020-07-20-preview1", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:48:50 GMT", + "traceparent": "00-651c28ac2d17094b88b06902b2fe54c7-17710015a6624445-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "76e3ad569077a5fc349e327c6cef54f6", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Tue, 01 Dec 2020 00:48:50 GMT", + "MS-CV": "2BkqHrnOKUe\u002B64Mlzrd4ig.0", + "X-Azure-Ref": "08pLFXwAAAADi/MzfOd4cSJOhF8vs9j8AWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "773ms" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:48:51 GMT", + "traceparent": "00-661eff0ba9d6114c959845c0f1687565-1bdaa11c58685d49-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "b1685f1112ca70cae150e1e247e9c6d4", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:48:51 GMT", + "MS-CV": "h7BsBBtzdk\u002BMkOEqUbBajw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "085LFXwAAAADE\u002BHoHohGUTarBJYNgKVLhWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "271ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Completing", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:04:48.2880174\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:48:52 GMT", + "traceparent": "00-3ed0284ca4e43c4e9b550f4c0eb15c35-d32741e8f5ccbf4a-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "dfea62dfaa9bee7aec3bef588f965b06", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:48:52 GMT", + "MS-CV": "cFU6CSaJF0uZhgUkKE5NOw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "09JLFXwAAAACteRe0fvlEQZjqYM5BIK4XWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "262ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Completing", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:04:48.2880174\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:48:54 GMT", + "traceparent": "00-38827e3ceec50b4c81216a49f4f9b80d-e41835acfc8f604c-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "ecef8fafa83c44a5e3729427ae1a5d4b", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:48:53 GMT", + "MS-CV": "Iqw0fM0BEEmE5DfrCTTJQQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "09pLFXwAAAABLeU2CHENGSq5PJQ0S\u002BccXWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "277ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Completing", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:04:48.2880174\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:48:55 GMT", + "traceparent": "00-7fda133883d7da46a8a114181264de87-a426fc17476f9548-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "099d5ed87404665ae579c58f2272e14a", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:48:55 GMT", + "MS-CV": "YltZZg92DEmyBdr9/G2vrA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "095LFXwAAAAD9l5LzsZonTrQArmEIxpHJWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "366ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Completing", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:04:48.2880174\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:48:56 GMT", + "traceparent": "00-eff50216e2722d408d3d7f45dcd176ee-0b7635b4554d5742-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "b733daf4daf93797bda6fc29165240d1", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:48:56 GMT", + "MS-CV": "uBAQ\u002B0wv/EyXvNPFdv\u002BcRQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0\u002BJLFXwAAAAAjDzqO1cnCTa4hxBVybF7PWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "330ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Completing", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:04:48.2880174\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:48:58 GMT", + "traceparent": "00-0df40b4a5dce594a9c8d89633f6aa48a-b8be57940cef9547-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "317fa4dd52f83a01358806c3e2162170", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:48:57 GMT", + "MS-CV": "JnjlQiS0YUipUezXOsDqsg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0\u002BpLFXwAAAABW97szUk1rSbjP7adPLoitWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "272ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Completing", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:04:48.2880174\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:48:59 GMT", + "traceparent": "00-38298d60a781e448afa4f4e3e74b224e-c4e6dd4ca9ee744b-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "d3334991a5e7fe51c6664b5e78305092", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:48:59 GMT", + "MS-CV": "bSD2klaoE0W9pPFihrz21g.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0\u002B5LFXwAAAABVyuIcPsb6S4liJOUdCB9nWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "277ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "PurchasePending", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:04:48.2880174\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:01 GMT", + "traceparent": "00-dee36419a720ac49bde1356323444c0e-e90f3a467e1dc842-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "7eb1f338b0f2a252d8f88270d3d454a7", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:00 GMT", + "MS-CV": "QjH2aeLx2UOktTe9fYV\u002BLw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0/ZLFXwAAAADe4zOQapt\u002BRLiYtOayVyHhWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "342ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "PurchasePending", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:04:48.2880174\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:02 GMT", + "traceparent": "00-5c204850686d89428c03623872c64f94-cb0bbdb17e5a7f40-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "cc988b846d1f37ea52816a9206a3c204", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:01 GMT", + "MS-CV": "dM/NNOu5RkWG\u002BOU3Iqvtlg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0/pLFXwAAAACVobbp2lT5RK0BNZdIgxsyWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "267ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "PurchasePending", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:04:48.2880174\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:03 GMT", + "traceparent": "00-9d02a93afd6c5841a960aceb853be28d-ff0e9f39f189054b-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "ef8a7437a364e17ef791faee23e02af1", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:03 GMT", + "MS-CV": "boP0zhwqOkGw21S4FpsMtg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0/5LFXwAAAADd6EKAq3HbT7\u002Bd\u002BsT6pvFMWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "266ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "PurchasePending", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:04:48.2880174\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:05 GMT", + "traceparent": "00-c780c546dd653b4bbfe481d33d2433be-4f112900fb1c7a48-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "ecdaa4128498cb72097a2b7045bf9b35", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:04 GMT", + "MS-CV": "LhBvUa7Pik63fhJvdhiGzw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0AZPFXwAAAAARzAbW1/bDT4cf5KCd\u002BHmRWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "265ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "PurchasePending", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:04:48.2880174\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:06 GMT", + "traceparent": "00-8b1bea397aca114faa51dfb3e8a4ffaa-cd19caf4d112cd48-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "5e387e36654ae0420db7d48e72fc1371", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:05 GMT", + "MS-CV": "OYyyp3ryG0mUgRXGhXKsFw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ApPFXwAAAABHRboCGRxRQI\u002BPnQ2aXOxZWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "268ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "PurchasePending", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:04:48.2880174\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:07 GMT", + "traceparent": "00-9dea1242656c88418e1cc200ab878957-4a6a44a2b0f15545-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "62807957d5c9b36b02bfe5ea780d9b38", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:08 GMT", + "MS-CV": "gWH/cfL0p0\u002B7UEiArzxXKA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0BJPFXwAAAABR/O8ZROBIQqUZ38L3QBZ5WVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "294ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "PurchasePending", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:04:48.2880174\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:09 GMT", + "traceparent": "00-285b7c8360148e41a57566ef5f42467e-f9c6de282c1dea46-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "a5b7c4f5cba7ada761f9dee1afe3580c", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:09 GMT", + "MS-CV": "l7gUvDttZEuDjjWIvhW2Fg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0BZPFXwAAAAB7zQdWyKMYQqHwAjzTdY6VWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "294ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "PurchasePending", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:04:48.2880174\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:10 GMT", + "traceparent": "00-df4120aafb479d42889d879d26485278-999e6d96c7864644-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "cc19b966383f606c12855c8b7f586800", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:11 GMT", + "MS-CV": "C4mXmJ3IW0u4Ku4E4kge9g.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0BpPFXwAAAACRghcqGIsbTKtC\u002BKdNXg7PWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "272ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "PurchasePending", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:04:48.2880174\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:12 GMT", + "traceparent": "00-e3ad84dc903b794889ac7d5a49d4d4e1-2dcd665f8b502644-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "ae999c1b6e448bc9d1d301cff78a041f", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:12 GMT", + "MS-CV": "hogaurRZKEGasRGOjtdsEg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0CJPFXwAAAADRfo/sHnqzTIWQXpVZHiETWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "276ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "PurchasePending", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:04:48.2880174\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:13 GMT", + "traceparent": "00-4be6058a9d76534bbb065366f564d630-f9c948f9c7f6984a-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "be83d966cff4bdf8585692226f1b2d08", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:13 GMT", + "MS-CV": "0\u002BpazvHcfUC4iMj/Ge46Hg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0CZPFXwAAAAAwIOi7z5l\u002BQ7pFU1VmUflVWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "272ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "PurchasePending", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:04:48.2880174\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:14 GMT", + "traceparent": "00-2f6f300a29f56b4ca3f1d375761b0d99-42323ac4d889594d-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "12c6de91aa4af7c7ef8efa6b379c6988", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:15 GMT", + "MS-CV": "HQfdQmOF50yhjMBbKc\u002Be1Q.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0CpPFXwAAAAA/KaYi\u002BgCJSbUv1gejlpW5WVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "277ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "PurchasePending", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:04:48.2880174\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:16 GMT", + "traceparent": "00-d80ba3f5658b74498abe925daaa2abeb-7597af3d2d868743-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "a6243d80a9d44b0ca3db55eedba71bb6", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:16 GMT", + "MS-CV": "NJi4lCTiS0es\u002BTvS4n5hJA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0DJPFXwAAAABh9kCxxCJgQ6ZZAJ/XNfw7WVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "636ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "PurchasePending", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:04:48.2880174\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:17 GMT", + "traceparent": "00-4795b76412f4fa48b1ddb7209975b728-750123c59f63bc42-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "183ef8a5f1c4bcd4118ccf65d58d86bc", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:18 GMT", + "MS-CV": "Vowp5XynCEKadBcVdayZ9w.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0DpPFXwAAAAARR4By9iBaTYG39oQ\u002BupD7WVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "264ms" + }, + "ResponseBody": { + "searchId": "a83f9c32-d87d-4e82-ac33-409fa0803bce", + "displayName": "My reservation", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "description": "reservation description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Success", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-01T01:04:48.2880174\u002B00:00" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/phonenumbers?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:18 GMT", + "traceparent": "00-529651c6776cbd479e2c46876e1e4eca-b770911a43180249-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "32a10aec87f6e734d27a6e6e54d91c48", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:18 GMT", + "MS-CV": "0pnf6TrRakKQ7D6GnqlzpA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0DpPFXwAAAAAKoZAjDlg0ToqgvmO9nFwwWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "419ms" + }, + "ResponseBody": { + "phoneNumbers": [ + { + "phoneNumber": "Sanitized", + "acquiredCapabilities": [ + "Azure", + "InboundCalling", + "UserAssignment", + "Geographic", + "OutboundCalling" + ], + "availableCapabilities": [ + "UserAssignment", + "Geographic", + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling" + ], + "assignmentStatus": "Unassigned", + "placeName": "Birmingham, United States", + "activationState": "Activated" + }, + { + "phoneNumber": "Sanitized", + "acquiredCapabilities": [ + "Azure", + "OutboundCalling", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "availableCapabilities": [ + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling", + "ThirdPartyAppAssignment", + "ConferenceAssignment", + "FirstPartyAppAssignment", + "TollFree", + "InboundA2PSms", + "OutboundA2PSms" + ], + "assignmentStatus": "Unassigned", + "placeName": "Toll-Free, NOAM Toll Free", + "activationState": "Activated" + }, + { + "phoneNumber": "Sanitized", + "acquiredCapabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundCalling", + "TollFree" + ], + "availableCapabilities": [ + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling", + "ThirdPartyAppAssignment", + "ConferenceAssignment", + "FirstPartyAppAssignment", + "TollFree", + "InboundA2PSms", + "OutboundA2PSms" + ], + "assignmentStatus": "ThirdPartyAppAssigned", + "placeName": "Toll-Free, United States", + "activationState": "Activated" + }, + { + "phoneNumber": "Sanitized", + "acquiredCapabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundCalling", + "TollFree" + ], + "availableCapabilities": [ + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling", + "ThirdPartyAppAssignment", + "ConferenceAssignment", + "FirstPartyAppAssignment", + "TollFree", + "InboundA2PSms", + "OutboundA2PSms" + ], + "assignmentStatus": "Unassigned", + "placeName": "Toll-Free, United States", + "activationState": "Activated" + } + ], + "nextLink": null + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/phonenumbers?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:18 GMT", + "traceparent": "00-2251462a3d2efd429550f762d2ce9657-6d60cf76b0aac140-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "3ec64472515d8fc368689448daa67616", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:19 GMT", + "MS-CV": "revY4VTwfkePayIi7/CX3w.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0DpPFXwAAAADpq6PXolyITq6evDiAm8L3WVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "490ms" + }, + "ResponseBody": { + "phoneNumbers": [ + { + "phoneNumber": "Sanitized", + "acquiredCapabilities": [ + "Azure", + "InboundCalling", + "UserAssignment", + "Geographic", + "OutboundCalling" + ], + "availableCapabilities": [ + "UserAssignment", + "Geographic", + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling" + ], + "assignmentStatus": "Unassigned", + "placeName": "Birmingham, United States", + "activationState": "Activated" + }, + { + "phoneNumber": "Sanitized", + "acquiredCapabilities": [ + "Azure", + "OutboundCalling", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "availableCapabilities": [ + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling", + "ThirdPartyAppAssignment", + "ConferenceAssignment", + "FirstPartyAppAssignment", + "TollFree", + "InboundA2PSms", + "OutboundA2PSms" + ], + "assignmentStatus": "Unassigned", + "placeName": "Toll-Free, NOAM Toll Free", + "activationState": "Activated" + }, + { + "phoneNumber": "Sanitized", + "acquiredCapabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundCalling", + "TollFree" + ], + "availableCapabilities": [ + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling", + "ThirdPartyAppAssignment", + "ConferenceAssignment", + "FirstPartyAppAssignment", + "TollFree", + "InboundA2PSms", + "OutboundA2PSms" + ], + "assignmentStatus": "ThirdPartyAppAssigned", + "placeName": "Toll-Free, United States", + "activationState": "Activated" + }, + { + "phoneNumber": "Sanitized", + "acquiredCapabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundCalling", + "TollFree" + ], + "availableCapabilities": [ + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling", + "ThirdPartyAppAssignment", + "ConferenceAssignment", + "FirstPartyAppAssignment", + "TollFree", + "InboundA2PSms", + "OutboundA2PSms" + ], + "assignmentStatus": "Unassigned", + "placeName": "Toll-Free, United States", + "activationState": "Activated" + } + ], + "nextLink": null + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases?api-version=2020-07-20-preview1", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "30", + "Content-Type": "application/json", + "Date": "Tue, 01 Dec 2020 00:49:19 GMT", + "traceparent": "00-06c533a27e3d6948965e670686d2b56b-5b1de83c5127e945-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "d0029955e9051dbfc357464982666737", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "phoneNumbers": [ + "Sanitized" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:20 GMT", + "MS-CV": "iKsi0QmLeUyVv8Fqg41hQw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0D5PFXwAAAABAFqXs5SJ3SoN6rOg0gfF3WVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "660ms" + }, + "ResponseBody": { + "releaseId": "a19e6453-7580-47cb-bc6f-dd90281ee2fb" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:20 GMT", + "traceparent": "00-8ea3340f9643634fa7161f7b452b7be3-80f0a6c30f56db4d-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "90f3866f47c69b5e4612c98ef2eb0d2c", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:20 GMT", + "MS-CV": "R9kidmMhIE6qSB22w55BtQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0EJPFXwAAAABZAWkFkaTiSZvDtJelC2HrWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "183ms" + }, + "ResponseBody": { + "releaseId": "a19e6453-7580-47cb-bc6f-dd90281ee2fb", + "createdAt": "2020-12-01T00:49:19.6537955\u002B00:00", + "status": "Pending", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "Pending" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:21 GMT", + "traceparent": "00-33ec4aa5941e424f82f66cd98d7a1f70-3b30e589cdf2c24f-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "bb1958034bd7884384a87a060a790c02", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:21 GMT", + "MS-CV": "UCgO6Zr/1kCwWeViccwxjw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0EZPFXwAAAACaDAbC5BJTRIWP9e22X2N3WVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "185ms" + }, + "ResponseBody": { + "releaseId": "a19e6453-7580-47cb-bc6f-dd90281ee2fb", + "createdAt": "2020-12-01T00:49:19.6537955\u002B00:00", + "status": "Pending", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "Pending" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:22 GMT", + "traceparent": "00-a348904d23a1284a80cbba04aa238666-66250be252252a43-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "53d85d00e6b20d4f3a668af21f302bd8", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:22 GMT", + "MS-CV": "jU9fAOwGrUezp9VLICqmDQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0EpPFXwAAAADfBTBa7mb5TJufD3R1xm/GWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "179ms" + }, + "ResponseBody": { + "releaseId": "a19e6453-7580-47cb-bc6f-dd90281ee2fb", + "createdAt": "2020-12-01T00:49:19.6537955\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "Pending" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:24 GMT", + "traceparent": "00-1b1c729d89f8b84693305e519d81dedb-dd7271e3d275bc4d-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "2a461a49ac4c2460426a0b1ecc5890cc", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:24 GMT", + "MS-CV": "XcnSWVP2JESXF/exUY3djA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0FJPFXwAAAADUPG4md0OXQYns\u002BtL\u002BMz2SWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "182ms" + }, + "ResponseBody": { + "releaseId": "a19e6453-7580-47cb-bc6f-dd90281ee2fb", + "createdAt": "2020-12-01T00:49:19.6537955\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "Pending" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:25 GMT", + "traceparent": "00-d6bce2d3e9555841bb7da9ca21dee651-f7f4ad296989bb47-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "958ec706ba131d79080b8170c1516854", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:25 GMT", + "MS-CV": "iauf6jLSmEW5M95cp/vGvw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0FZPFXwAAAAB\u002BVATROmg8R6CCCSwdE/NnWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "189ms" + }, + "ResponseBody": { + "releaseId": "a19e6453-7580-47cb-bc6f-dd90281ee2fb", + "createdAt": "2020-12-01T00:49:19.6537955\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "Pending" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:26 GMT", + "traceparent": "00-0300ac6018b3b84b908ab2a51aeba25f-608fc4bf9de99944-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "f0bda27de13354b5fcb41047da3141e1", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:26 GMT", + "MS-CV": "c7GAPl93HE2IwQ6PAoPUew.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0FpPFXwAAAAC2H4bZoIwWSbM/kgntgungWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "180ms" + }, + "ResponseBody": { + "releaseId": "a19e6453-7580-47cb-bc6f-dd90281ee2fb", + "createdAt": "2020-12-01T00:49:19.6537955\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "Pending" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:27 GMT", + "traceparent": "00-da392472815c0e4da8d0685f95d267f8-ec3038ccbe3f5a4d-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "58ecbdd595a28fc5a02922412bef63f1", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:27 GMT", + "MS-CV": "vFIzXK22rkuUz1YtrCaWNw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0F5PFXwAAAABCVPoXWUJ9TbyDrXUEwERVWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "192ms" + }, + "ResponseBody": { + "releaseId": "a19e6453-7580-47cb-bc6f-dd90281ee2fb", + "createdAt": "2020-12-01T00:49:19.6537955\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "Pending" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:29 GMT", + "traceparent": "00-6f68f48500f9f64db9ef29181cc52b97-b612398794ead045-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "29a0b702a09b24991139985ea93143d6", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:29 GMT", + "MS-CV": "evdWADC5qkuiFk/2YYWiPw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0GZPFXwAAAABRWaSzeS6yS4Yz6w8M3AtcWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "182ms" + }, + "ResponseBody": { + "releaseId": "a19e6453-7580-47cb-bc6f-dd90281ee2fb", + "createdAt": "2020-12-01T00:49:19.6537955\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "Pending" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:30 GMT", + "traceparent": "00-d3a0be55e78072499e1e30cca888d7b3-956a77464a293848-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "049b9fc90f64e8b1dd2d4f0abf74290c", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:30 GMT", + "MS-CV": "9GQBiz91jEaS3AlNzV2YoQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0GpPFXwAAAABs6zGrQtdhQK2Q\u002BOZGj4SQWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "184ms" + }, + "ResponseBody": { + "releaseId": "a19e6453-7580-47cb-bc6f-dd90281ee2fb", + "createdAt": "2020-12-01T00:49:19.6537955\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "Pending" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:31 GMT", + "traceparent": "00-b29bba70b3b1694787b3016a4e955b77-298f19433ba3bd4b-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "22451f511791354623c74768fc66e66e", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:31 GMT", + "MS-CV": "4Au4iorzSE6EGDRe13ciJA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0G5PFXwAAAADezZmHwssRR48VtfW8f8guWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "203ms" + }, + "ResponseBody": { + "releaseId": "a19e6453-7580-47cb-bc6f-dd90281ee2fb", + "createdAt": "2020-12-01T00:49:19.6537955\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "InProgress" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:33 GMT", + "traceparent": "00-7c2779430de4714ea77a15acf6c0101f-542c607bb9a4de45-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "8c774ce55f54f28c06b84c6d508f659c", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:33 GMT", + "MS-CV": "ITLVUPh9ZkK1hIOxk\u002B8qCg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0HZPFXwAAAACSX4He4CMAR7rnjBDH/QNMWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "961ms" + }, + "ResponseBody": { + "releaseId": "a19e6453-7580-47cb-bc6f-dd90281ee2fb", + "createdAt": "2020-12-01T00:49:19.6537955\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "InProgress" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:35 GMT", + "traceparent": "00-d880c3b234d56e4caba6d05ebe37c1de-773e172dffc30848-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "8a0d8b1021ecb2455866e09dc848eb77", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:35 GMT", + "MS-CV": "9OqXI/AqSEuL3HpsQ20bqQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0H5PFXwAAAAAKggT7/8oqRIBu9kgQdpIqWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "184ms" + }, + "ResponseBody": { + "releaseId": "a19e6453-7580-47cb-bc6f-dd90281ee2fb", + "createdAt": "2020-12-01T00:49:19.6537955\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "InProgress" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:36 GMT", + "traceparent": "00-0fa29dccea435a42a7f4e91e4a3e6f12-f78bffd00e79ac40-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "7224e0479cfdf1b892531bd8cbd8e494", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:36 GMT", + "MS-CV": "0C\u002Bhv0KZX0yVQCOa7wwIbg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0IJPFXwAAAACK92GJALchR7RKTH9TfxOWWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "193ms" + }, + "ResponseBody": { + "releaseId": "a19e6453-7580-47cb-bc6f-dd90281ee2fb", + "createdAt": "2020-12-01T00:49:19.6537955\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "InProgress" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:37 GMT", + "traceparent": "00-6048c19ef7355f41b512b4e17346a036-ce40faed81b84642-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "7058ab625c58c48206c533ee7eef29be", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:37 GMT", + "MS-CV": "hiq\u002BkIocTUS5rfhoe5FtRg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0IZPFXwAAAAB1famQCVUdSKmXEL8jW3Y2WVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "247ms" + }, + "ResponseBody": { + "releaseId": "a19e6453-7580-47cb-bc6f-dd90281ee2fb", + "createdAt": "2020-12-01T00:49:19.6537955\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "InProgress" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:39 GMT", + "traceparent": "00-45639d884a43994c8ea09fcc33e4cad6-c8dcfd50b9e0b24a-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "7026d5cdf26a739fd31bf798056ce77f", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:38 GMT", + "MS-CV": "7Whe5Mu14E\u002BXewr5sAjMsQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0I5PFXwAAAACopjtLpZ8tSraZ6lAAcoAvWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "180ms" + }, + "ResponseBody": { + "releaseId": "a19e6453-7580-47cb-bc6f-dd90281ee2fb", + "createdAt": "2020-12-01T00:49:19.6537955\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "InProgress" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:40 GMT", + "traceparent": "00-a14a582232c64840beba0162af112807-43aa190379aa2541-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "1d3b4b817af0eb1e5d5f6c3869ca73a2", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:40 GMT", + "MS-CV": "kzg8Aebg6UuZz/GS\u002Bp5SFQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0JJPFXwAAAABcc2K0jYQ5SIjUFn\u002B3nL8TWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "183ms" + }, + "ResponseBody": { + "releaseId": "a19e6453-7580-47cb-bc6f-dd90281ee2fb", + "createdAt": "2020-12-01T00:49:19.6537955\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "InProgress" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:41 GMT", + "traceparent": "00-e7a5813fc05f9947b7bbd055cb5adf0b-f47cf853e56aad4f-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "f60b5d2973b26f2a0be49d3c64eabf9a", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:41 GMT", + "MS-CV": "kszHXJteKUuxtLUJHimtCQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0JZPFXwAAAAAcGnw9AZJvSYyMKCYA0BhLWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "186ms" + }, + "ResponseBody": { + "releaseId": "a19e6453-7580-47cb-bc6f-dd90281ee2fb", + "createdAt": "2020-12-01T00:49:19.6537955\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "InProgress" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:42 GMT", + "traceparent": "00-3dbe670aec93384da7125bbeabca640b-6019e7e80794d245-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "326cb3dd0cb452ceb63a120a86670a09", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:42 GMT", + "MS-CV": "K\u002BLWmZsI90OBN0vvz/r5Nw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0JpPFXwAAAAATmtUkKJK0Tall7a7M7nW7WVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "238ms" + }, + "ResponseBody": { + "releaseId": "a19e6453-7580-47cb-bc6f-dd90281ee2fb", + "createdAt": "2020-12-01T00:49:19.6537955\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "InProgress" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:44 GMT", + "traceparent": "00-9f4c231c1cfe35489b3e264c9865b1c0-431db84706d6b941-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "a76e55a8f1610dcd21cb110bdde28773", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:44 GMT", + "MS-CV": "3rbO0VUiBUmPfs6iIt75jw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0KJPFXwAAAABgDldDcIlRT5QwLZpEoIowWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "244ms" + }, + "ResponseBody": { + "releaseId": "a19e6453-7580-47cb-bc6f-dd90281ee2fb", + "createdAt": "2020-12-01T00:49:19.6537955\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "InProgress" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:45 GMT", + "traceparent": "00-5aa6b7986ffd054dafba812bbf66a6c8-4bf7b6e7473ba345-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "b55ad1a0405d1ced8fb83f77611fe9a4", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:45 GMT", + "MS-CV": "bzPb/Ij0mUyTX01kNHmrnA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0KZPFXwAAAAAF4RACgoMJTqv\u002BDUCDbki4WVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "188ms" + }, + "ResponseBody": { + "releaseId": "a19e6453-7580-47cb-bc6f-dd90281ee2fb", + "createdAt": "2020-12-01T00:49:19.6537955\u002B00:00", + "status": "InProgress", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "InProgress" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/releases/Sanitized?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:46 GMT", + "traceparent": "00-ac60a38039175747af43ad8e07a4eb9d-01c6cebbe5d97644-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "0f9393da177bec38e65e11e9fbc274d4", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:46 GMT", + "MS-CV": "xnXlg81hfkOrWgDTm1DGqQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0KpPFXwAAAABk09Ht2afOQb6P5qd/bXM9WVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "274ms" + }, + "ResponseBody": { + "releaseId": "a19e6453-7580-47cb-bc6f-dd90281ee2fb", + "createdAt": "2020-12-01T00:49:19.6537955\u002B00:00", + "status": "Complete", + "phoneNumberReleaseStatusDetails": { + "Sanitized": { + "status": "Success" + } + } + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/phonenumbers?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 01 Dec 2020 00:49:47 GMT", + "traceparent": "00-9eb03b928859884d96028fbe0bed4fea-7ed52aeee92a914a-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "(.NET 5.0.0; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "b4699fb3540d68ab675118a8b155ac01", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 01 Dec 2020 00:49:47 GMT", + "MS-CV": "ogeFlMwnDU6cHuL9e26A6Q.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0K5PFXwAAAACtykWdbrh5R4I50QY9X9dFWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "408ms" + }, + "ResponseBody": { + "phoneNumbers": [ + { + "phoneNumber": "Sanitized", + "acquiredCapabilities": [ + "Azure", + "InboundCalling", + "UserAssignment", + "Geographic", + "OutboundCalling" + ], + "availableCapabilities": [ + "UserAssignment", + "Geographic", + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling" + ], + "assignmentStatus": "Unassigned", + "placeName": "Birmingham, United States", + "activationState": "Activated" + }, + { + "phoneNumber": "Sanitized", + "acquiredCapabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundCalling", + "TollFree" + ], + "availableCapabilities": [ + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling", + "ThirdPartyAppAssignment", + "ConferenceAssignment", + "FirstPartyAppAssignment", + "TollFree", + "InboundA2PSms", + "OutboundA2PSms" + ], + "assignmentStatus": "ThirdPartyAppAssigned", + "placeName": "Toll-Free, United States", + "activationState": "Activated" + }, + { + "phoneNumber": "Sanitized", + "acquiredCapabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundCalling", + "TollFree" + ], + "availableCapabilities": [ + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling", + "ThirdPartyAppAssignment", + "ConferenceAssignment", + "FirstPartyAppAssignment", + "TollFree", + "InboundA2PSms", + "OutboundA2PSms" + ], + "assignmentStatus": "Unassigned", + "placeName": "Toll-Free, United States", + "activationState": "Activated" + } + ], + "nextLink": null + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "2023484593" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/TollFreePlanAreaCodes.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/TollFreePlanAreaCodes.json new file mode 100644 index 0000000000000..f448ad1928223 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/TollFreePlanAreaCodes.json @@ -0,0 +1,215 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Mon, 23 Nov 2020 18:16:29 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "ab48c5d45a660e8d9a9bf63dfb4147fc", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 23 Nov 2020 18:16:29 GMT", + "MS-CV": "pafpio6Dqkyi4NYn96HDyg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ffy7XwAAAACOJl3OleDfQJEOGb1dG2XzWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "263ms" + }, + "ResponseBody": { + "phonePlanGroups": [ + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "Geographic", + "localizedName": "Azure- User - Geographic", + "localizedDescription": "These are numbers used by Azure resources." + }, + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "Geographic", + "localizedName": "Azure - Geographic", + "localizedDescription": "These are numbers used by Azure resources." + }, + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "TollFree", + "localizedName": "Azure - Toll Free", + "localizedDescription": "These are toll free numbers used by Azure resources." + } + ], + "nextLink": null + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/Sanitized/phoneplans?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Mon, 23 Nov 2020 18:16:29 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "28d615065d5a20a7dabd9eb33bbed83e", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 23 Nov 2020 18:16:30 GMT", + "MS-CV": "5cgTeZcjDUaV\u002BjdOp6FMiA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0fvy7XwAAAAARGnEJZ5gwSJfORnG7kWb4WVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "304ms" + }, + "ResponseBody": { + "phonePlans": [ + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) \u0026 Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "OutboundCalling", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) \u0026 Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "InboundCalling", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only Sms - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only SMS (A2P) \u0026 Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "OutboundCalling", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only SMS (A2P) \u0026 Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "InboundCalling", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundCalling", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "InboundCalling", + "TollFree" + ], + "maximumSearchSize": 20 + } + ], + "nextLink": null + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "1217693232" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/TollFreePlanAreaCodesAsyncAsync.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/TollFreePlanAreaCodesAsyncAsync.json new file mode 100644 index 0000000000000..b8dcde6c4395e --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/TollFreePlanAreaCodesAsyncAsync.json @@ -0,0 +1,215 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Mon, 23 Nov 2020 18:13:55 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "429d2c8024dab51c00e6ea9f6e89d892", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 23 Nov 2020 18:13:56 GMT", + "MS-CV": "pR0xBR2WHU21h62bK4vnvg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "04/u7XwAAAAA7lj0sRQjTRrfAsQ3vrNRCWVZSMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "249ms" + }, + "ResponseBody": { + "phonePlanGroups": [ + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "Geographic", + "localizedName": "Azure- User - Geographic", + "localizedDescription": "These are numbers used by Azure resources." + }, + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "Geographic", + "localizedName": "Azure - Geographic", + "localizedDescription": "These are numbers used by Azure resources." + }, + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "TollFree", + "localizedName": "Azure - Toll Free", + "localizedDescription": "These are toll free numbers used by Azure resources." + } + ], + "nextLink": null + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/Sanitized/phoneplans?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Mon, 23 Nov 2020 18:13:56 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "7bd0f60afccb07cb0d294030034188a1", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 23 Nov 2020 18:13:56 GMT", + "MS-CV": "DaTVdNWJJkupZN6KBpI77A.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "05Pu7XwAAAAB9QIq/SYf3SKxwqKFXgRkDWVZSMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "429ms" + }, + "ResponseBody": { + "phonePlans": [ + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) \u0026 Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "OutboundCalling", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) \u0026 Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "InboundCalling", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only Sms - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only SMS (A2P) \u0026 Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "OutboundCalling", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only SMS (A2P) \u0026 Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "InboundCalling", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundCalling", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "InboundCalling", + "TollFree" + ], + "maximumSearchSize": 20 + } + ], + "nextLink": null + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "1274970044" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/samples/Sample2_PhoneNumberAdministrationClient.cs b/sdk/communication/Azure.Communication.Administration/tests/samples/Sample2_PhoneNumberAdministrationClient.cs new file mode 100644 index 0000000000000..3facdedb6726e --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/samples/Sample2_PhoneNumberAdministrationClient.cs @@ -0,0 +1,470 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using Azure.Communication.Administration.Models; +using Azure.Communication.Administration.Tests; +using Azure.Core.TestFramework; +using NUnit.Framework; + +namespace Azure.Communication.Administration.Samples +{ + /// + /// Basic Azure Communication Administration samples. + /// + public class Sample2_PhoneNumberAdministrationClient : PhoneNumberAdministrationClientLiveTestBase + { + public Sample2_PhoneNumberAdministrationClient(bool isAsync) : base(isAsync) + { + } + + [Test] + [AsyncOnly] + public async Task PurchaseAndReleaseAsync() + { + if (!IncludePhoneNumberLiveTests) + Assert.Ignore("Include phone number live tests flag is off."); + + const string locale = "en-US"; + var connectionString = TestEnvironment.ConnectionString; + var client = CreateClient(false); + + const string countryCode = "US"; + + #region Snippet:GetPhonePlanGroupsAsync + var phonePlanGroups = client.GetPhonePlanGroupsAsync(countryCode, locale); + + await foreach (var phonePlanGroup in phonePlanGroups) + { + Console.WriteLine($"Plan group: {phonePlanGroup.LocalizedName}, type: {phonePlanGroup.PhoneNumberType}"); + } + #endregion Snippet:GetPhonePlanGroupsAsync + + var phonePlanGroupsList = await phonePlanGroups.ToEnumerableAsync(); + string phonePlanGroupId = phonePlanGroupsList.First(group => group.PhoneNumberType == PhoneNumberType.TollFree).PhonePlanGroupId; + + #region Snippet:GetPhonePlansAsync + var phonePlans = client.GetPhonePlansAsync(countryCode, phonePlanGroupId, locale); + await foreach (var phonePlan in phonePlans) + { + Console.WriteLine($"Plan: {phonePlan.LocalizedName}, {phonePlan.LocationType}"); + } + #endregion Snippet:GetPhonePlansAsync + + var firstphonePlan = (await phonePlans.ToEnumerableAsync()).First(); + var areaCode = firstphonePlan.AreaCodes.First(); + var phonePlanId = firstphonePlan.PhonePlanId; + + #region Snippet:ReservePhoneNumbersAsync + var reservationName = "My reservation"; + var reservationDescription = "reservation description"; + var reservationOptions = new CreateReservationOptions(reservationName, reservationDescription, new[] { phonePlanId }, areaCode); + reservationOptions.Quantity = 1; + + var reserveOperation = await client.StartReservationAsync(reservationOptions); + await reserveOperation.WaitForCompletionAsync(); + #endregion Snippet:ReservePhoneNumbersAsync + + reserveOperation = new PhoneNumberReservationOperation(client, reserveOperation.Id); + + #region Snippet:PersistReservePhoneNumbersOperationAsync + var reservationId = reserveOperation.Id; + + // persist reservationId and then continue with a new operation + + //@@var reserveOperation = new PhoneNumberReservationOperation(client, reservationId); + await reserveOperation.WaitForCompletionAsync(); + #endregion Snippet:PersistReservePhoneNumbersOperationAsync + + #region Snippet:StartPurchaseReservationAsync + var purchaseOperation = await client.StartPurchaseReservationAsync(reservationId); + await purchaseOperation.WaitForCompletionAsync(); + #endregion Snippet:StartPurchaseReservationAsync + + #region Snippet:ListAcquiredPhoneNumbersAsync + var acquiredPhoneNumbers = client.GetAllPhoneNumbersAsync(locale); + + await foreach (var phoneNumber in acquiredPhoneNumbers) + { + Console.WriteLine($"Phone number: {phoneNumber.PhoneNumber}, activation state: {phoneNumber.ActivationState}"); + } + #endregion Snippet:ListAcquiredPhoneNumbersAsync + + var acquiredPhoneNumber = reserveOperation.Value.PhoneNumbers.Single(); + acquiredPhoneNumbers = client.GetAllPhoneNumbersAsync(locale); + var beforeReleaseNumberCount = (await acquiredPhoneNumbers.ToEnumerableAsync()).Count; + + #region Snippet:ReleasePhoneNumbersAsync + //@@var acquiredPhoneNumber = ""; + var releaseOperation = client.StartReleasePhoneNumber(new PhoneNumber(acquiredPhoneNumber)); + await releaseOperation.WaitForCompletionAsync(); + #endregion Snippet:ReleasePhoneNumbersAsync + + acquiredPhoneNumbers = client.GetAllPhoneNumbersAsync(locale); + var afterReleaseNumberCount = (await acquiredPhoneNumbers.ToEnumerableAsync()).Count; + Assert.AreEqual(1, beforeReleaseNumberCount - afterReleaseNumberCount); + } + + [Test] + [SyncOnly] + public void PurchaseAndRelease() + { + if (!IncludePhoneNumberLiveTests) + Assert.Ignore("Include phone number live tests flag is off."); + + const string locale = "en-US"; + var connectionString = TestEnvironment.ConnectionString; + + #region Snippet:CreatePhoneNumberAdministrationClient + // Get a connection string to our Azure Communication resource. + //@@var connectionString = ""; + var client = new PhoneNumberAdministrationClient(connectionString); + #endregion Snippet:CreatePhoneNumberAdministrationClient + + client = CreateClient(false); + + const string countryCode = "US"; + + #region Snippet:GetPhonePlanGroups + var phonePlanGroups = client.GetPhonePlanGroups(countryCode, locale); + + foreach (var phonePlanGroup in phonePlanGroups) + { + Console.WriteLine($"Plan group: {phonePlanGroup.LocalizedName}, type: {phonePlanGroup.PhoneNumberType}"); + } + #endregion Snippet:GetPhonePlanGroups + + var tollFreePhonePlanGroup = phonePlanGroups.First(group => group.PhoneNumberType == PhoneNumberType.TollFree); + var phonePlanGroupId = tollFreePhonePlanGroup.PhonePlanGroupId; + + #region Snippet:GetPhonePlans + var phonePlans = client.GetPhonePlans(countryCode, phonePlanGroupId, locale); + foreach (var phonePlan in phonePlans) + { + Console.WriteLine($"Plan: {phonePlan.LocalizedName}, {phonePlan.LocationType}"); + } + #endregion Snippet:GetPhonePlans + + var tollFreePhonePlan = phonePlans.First(); + var phonePlanId = tollFreePhonePlan.PhonePlanId; + var areaCode = tollFreePhonePlan.AreaCodes.First(); + + #region Snippet:ReservePhoneNumbers + var reservationName = "My reservation"; + var reservationDescription = "reservation description"; + var reservationOptions = new CreateReservationOptions(reservationName, reservationDescription, new[] { phonePlanId }, areaCode); + reservationOptions.Quantity = 1; + + var reserveOperation = client.StartReservation(reservationOptions); + + while (!reserveOperation.HasCompleted) + { + Thread.Sleep(2000); + + reserveOperation.UpdateStatus(); + } + + #endregion Snippet:ReservePhoneNumbers + + reserveOperation = new PhoneNumberReservationOperation(client, reserveOperation.Id); + + #region Snippet:PersistReservePhoneNumbersOperation + var reservationId = reserveOperation.Id; + + // persist reservationId and then continue with a new operation + + //@@var reserveOperation = new PhoneNumberReservationOperation(client, reservationId); + + while (!reserveOperation.HasCompleted) + { + Thread.Sleep(2000); + + reserveOperation.UpdateStatus(); + } + #endregion Snippet:PersistReservePhoneNumbersOperation + + #region Snippet:StartPurchaseReservation + var purchaseOperation = client.StartPurchaseReservation(reservationId); + + while (!purchaseOperation.HasCompleted) + { + Thread.Sleep(2000); + + purchaseOperation.UpdateStatus(); + } + #endregion Snippet:StartPurchaseReservation + + #region Snippet:ListAcquiredPhoneNumbers + var acquiredPhoneNumbers = client.GetAllPhoneNumbers(locale); + + foreach (var phoneNumber in acquiredPhoneNumbers) + { + Console.WriteLine($"Phone number: {phoneNumber.PhoneNumber}, activation state: {phoneNumber.ActivationState}"); + } + #endregion Snippet:ListAcquiredPhoneNumbers + + var acquiredPhoneNumber = reserveOperation.Value.PhoneNumbers.Single(); + acquiredPhoneNumbers = client.GetAllPhoneNumbers(locale); + var beforeReleaseNumberCount = acquiredPhoneNumbers.Count(); + + #region Snippet:ReleasePhoneNumbers + //@@var acquiredPhoneNumber = ""; + var releaseOperation = client.StartReleasePhoneNumber(new PhoneNumber(acquiredPhoneNumber)); + + while (!releaseOperation.HasCompleted) + { + Thread.Sleep(2000); + + releaseOperation.UpdateStatus(); + } + #endregion Snippet:ReleasePhoneNumbers + + acquiredPhoneNumbers = client.GetAllPhoneNumbers(locale); + var afterReleaseNumberCount = acquiredPhoneNumbers.Count(); + Assert.AreEqual(1, beforeReleaseNumberCount - afterReleaseNumberCount); + } + + [Test] + [SyncOnly] + public void GetAllSupportedCountries() + { + var client = CreateClient(false); + const string locale = "en-US"; + + #region Snippet:GetAllSupportedCountries + var supportedCountries = client.GetAllSupportedCountries(locale); + foreach (var country in supportedCountries) + { + Console.WriteLine($"Supported country code: {country.CountryCode}, name: {country.LocalizedName}"); + } + #endregion Snippet:GetAllSupportedCountries + } + + [Test] + [AsyncOnly] + public async Task GetAllSupportedCountriesAsync() + { + var client = CreateClient(false); + const string locale = "en-US"; + + #region Snippet:GetAllSupportedCountriesAsync + var supportedCountries = client.GetAllSupportedCountriesAsync(locale); + await foreach (var country in supportedCountries) + { + Console.WriteLine($"Supported country code: {country.CountryCode}, name: {country.LocalizedName}"); + } + #endregion Snippet:GetAllSupportedCountriesAsync + } + + [Test] + [SyncOnly] + public void GetPhonePlanLocationOptions() + { + var client = CreateClient(false); + const string locale = "en-US"; + const string countryCode = "US"; + + var phonePlanGroups = client.GetPhonePlanGroups(countryCode, locale); + var geographicPhonePlanGroup = phonePlanGroups.First(group => group.PhoneNumberType == PhoneNumberType.Geographic); + + var phonePlans = client.GetPhonePlans(countryCode, geographicPhonePlanGroup.PhonePlanGroupId, locale); + var phonePlanId = phonePlans.First().PhonePlanId; + + #region Snippet:GetPhonePlanLocationOptions + + var locationOptionsResponse = client.GetPhonePlanLocationOptions(countryCode, geographicPhonePlanGroup.PhonePlanGroupId, phonePlanId); + + void PrintLocationOption(LocationOptions locationOptions) + { + Console.WriteLine($"LabelId: {locationOptions.LabelId}, LabelName: {locationOptions.LabelName}"); + + foreach (var locationOption in locationOptions.Options) + { + Console.WriteLine($"Name: {locationOption.Name}, Value: {locationOption.Value}"); + + foreach (var subLocationOption in locationOption.LocationOptions) + PrintLocationOption(subLocationOption); + } + } + PrintLocationOption(locationOptionsResponse.Value.LocationOptions); + + #endregion Snippet:GetPhonePlanLocationOptions + } + + [Test] + [AsyncOnly] + public async Task GetPhonePlanLocationOptionsAsync() + { + var client = CreateClient(false); + const string locale = "en-US"; + const string countryCode = "US"; + + var phonePlanGroups = client.GetPhonePlanGroups(countryCode, locale); + var geographicPhonePlanGroup = phonePlanGroups.First(group => group.PhoneNumberType == PhoneNumberType.Geographic); + + var phonePlans = client.GetPhonePlans(countryCode, geographicPhonePlanGroup.PhonePlanGroupId, locale); + var phonePlanId = phonePlans.First().PhonePlanId; + var geographicPhonePlanGroupId = geographicPhonePlanGroup.PhonePlanGroupId; + + #region Snippet:GetPhonePlanLocationOptionsAsync + + var locationOptionsResponse = await client.GetPhonePlanLocationOptionsAsync(countryCode, geographicPhonePlanGroupId, phonePlanId); + + void PrintLocationOption(LocationOptions locationOptions) + { + Console.WriteLine($"LabelId: {locationOptions.LabelId}, LabelName: {locationOptions.LabelName}"); + + foreach (var locationOption in locationOptions.Options) + { + Console.WriteLine($"Name: {locationOption.Name}, Value: {locationOption.Value}"); + + foreach (var subLocationOption in locationOption.LocationOptions) + PrintLocationOption(subLocationOption); + } + } + PrintLocationOption(locationOptionsResponse.Value.LocationOptions); + + #endregion Snippet:GetPhonePlanLocationOptionsAsync + } + + [Test] + [SyncOnly] + public void GeographicalAreaCodes() + { + var client = CreateClient(false); + const string locale = "en-US"; + const string countryCode = "US"; + + var phonePlanGroups = client.GetPhonePlanGroups(countryCode, locale); + var geographicPhonePlanGroup = phonePlanGroups.First(group => group.PhoneNumberType == PhoneNumberType.Geographic); + + var phonePlans = client.GetPhonePlans(countryCode, geographicPhonePlanGroup.PhonePlanGroupId, locale); + var geographicPhonePlan = phonePlans.First(); + var geographicPhonePlanGroupId = geographicPhonePlanGroup.PhonePlanGroupId; + var geographicPhonePlanId = geographicPhonePlan.PhonePlanId; + + #region Snippet:GeographicalAreaCodes + var locationOptionsResponse = client.GetPhonePlanLocationOptions(countryCode, geographicPhonePlanGroupId, geographicPhonePlanId); + var state = locationOptionsResponse.Value.LocationOptions.Options.First(); + + var locationOptionsQueries = new List + { + new LocationOptionsQuery + { + LabelId = "state", + OptionsValue = state.Value + }, + new LocationOptionsQuery + { + LabelId = "city", + OptionsValue = state.LocationOptions.First().Options.First().Value + } + }; + + var areaCodes = client.GetAllAreaCodes(geographicPhonePlan.LocationType.ToString(), countryCode, geographicPhonePlan.PhonePlanId, locationOptionsQueries); + + foreach (var areaCode in areaCodes.Value.PrimaryAreaCodes) + { + Console.WriteLine($"Primary area code: {areaCode}"); + } + #endregion Snippet:GeographicalAreaCodes + } + + [Test] + [AsyncOnly] + public async Task GeographicalAreaCodesAsync() + { + var client = CreateClient(false); + const string locale = "en-US"; + const string countryCode = "US"; + + var phonePlanGroups = client.GetPhonePlanGroups(countryCode, locale); + var geographicPhonePlanGroup = phonePlanGroups.First(group => group.PhoneNumberType == PhoneNumberType.Geographic); + + var phonePlans = client.GetPhonePlans(countryCode, geographicPhonePlanGroup.PhonePlanGroupId, locale); + var geographicPhonePlan = phonePlans.First(); + var geographicPhonePlanGroupId = geographicPhonePlanGroup.PhonePlanGroupId; + var geographicPhonePlanId = geographicPhonePlan.PhonePlanId; + + #region Snippet:GeographicalAreaCodesAsync + var locationOptionsResponse = await client.GetPhonePlanLocationOptionsAsync(countryCode, geographicPhonePlanGroupId, geographicPhonePlanId); + var state = locationOptionsResponse.Value.LocationOptions.Options.First(); + + var locationOptionsQueries = new List + { + new LocationOptionsQuery + { + LabelId = "state", + OptionsValue = state.Value + }, + new LocationOptionsQuery + { + LabelId = "city", + OptionsValue = state.LocationOptions.First().Options.First().Value + } + }; + + var areaCodes = await client.GetAllAreaCodesAsync(geographicPhonePlan.LocationType.ToString(), countryCode, geographicPhonePlan.PhonePlanId, locationOptionsQueries); + + foreach (var areaCode in areaCodes.Value.PrimaryAreaCodes) + { + Console.WriteLine($"Primary area code: {areaCode}"); + } + #endregion Snippet:GeographicalAreaCodesAsync + } + + [Test] + [SyncOnly] + public void TollFreePlanAreaCodes() + { + var client = CreateClient(false); + const string locale = "en-US"; + const string countryCode = "US"; + + var phonePlanGroups = client.GetPhonePlanGroups(countryCode, locale); + var tollFreePhonePlanGroup = phonePlanGroups.First(group => group.PhoneNumberType == PhoneNumberType.TollFree); + var tollFreePhonePlanGroupId = tollFreePhonePlanGroup.PhonePlanGroupId; + #region Snippet:TollFreePlanAreaCodes + + var phonePlans = client.GetPhonePlans(countryCode, tollFreePhonePlanGroupId, locale); + var tollFreePhonePlan = phonePlans.First(); + + foreach (var areaCode in tollFreePhonePlan.AreaCodes) + { + Console.WriteLine($"Area code: {areaCode}"); + } + + #endregion Snippet:TollFreePlanAreaCodes + } + + [Test] + [AsyncOnly] + public async Task TollFreePlanAreaCodesAsync() + { + var client = CreateClient(false); + const string locale = "en-US"; + const string countryCode = "US"; + + var phonePlanGroups = client.GetPhonePlanGroups(countryCode, locale); + var tollFreePhonePlanGroup = phonePlanGroups.First(group => group.PhoneNumberType == PhoneNumberType.TollFree); + + #region Snippet:TollFreePlanAreaCodesAsync + + var phonePlans = client.GetPhonePlansAsync(countryCode, tollFreePhonePlanGroup.PhonePlanGroupId, locale); + var tollFreePhonePlan = (await phonePlans.ToEnumerableAsync()).First(); + + foreach (var areaCode in tollFreePhonePlan.AreaCodes) + { + Console.WriteLine($"Area code: {areaCode}"); + } + + #endregion Snippet:TollFreePlanAreaCodesAsync + } + } +} diff --git a/sdk/communication/tests.yml b/sdk/communication/tests.yml index c02820db4bb1c..f0842ba60a3b5 100644 --- a/sdk/communication/tests.yml +++ b/sdk/communication/tests.yml @@ -10,4 +10,5 @@ extends: AZURE_PHONE_NUMBER: $(communication-livetest-phone-number) AZURE_TENANT_ID: $(aad-azure-sdk-test-tenant-id) AZURE_CLIENT_SECRET: $(aad-azure-sdk-test-client-secret) - AZURE_CLIENT_ID: $(aad-azure-sdk-test-client-id) \ No newline at end of file + AZURE_CLIENT_ID: $(aad-azure-sdk-test-client-id) + INCLUDE_PHONENUMBER_LIVE_TESTS: False \ No newline at end of file