diff --git a/sdk/communication/Azure.Communication.Administration/tests/Infrastructure/PhoneNumberAdministrationClientLiveTestBase.cs b/sdk/communication/Azure.Communication.Administration/tests/Infrastructure/PhoneNumberAdministrationClientLiveTestBase.cs new file mode 100644 index 000000000000..7bed4c4defd6 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/Infrastructure/PhoneNumberAdministrationClientLiveTestBase.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Communication.Pipeline; +using Azure.Core.TestFramework; + +namespace Azure.Communication.Administration.Tests +{ + public class PhoneNumberAdministrationClientLiveTestBase : RecordedTestBase + { + public PhoneNumberAdministrationClientLiveTestBase(bool isAsync) : base(isAsync) + => Sanitizer = new CommunicationRecordedTestSanitizer(); + + /// + /// Creates a with the connectionstring via environment + /// variables and instruments it to make use of the Azure Core Test Framework functionalities. + /// + /// The instrumented . + protected PhoneNumberAdministrationClient CreateClient(bool isInstrumented = true) + { + var client = new PhoneNumberAdministrationClient( + TestEnvironment.ConnectionString, + InstrumentClientOptions(new PhoneNumberAdministrationClientOptions())); + + return isInstrumented ? InstrumentClient(client) : client; + } + } +} diff --git a/sdk/communication/Azure.Communication.Administration/tests/Infrastructure/PhoneNumberAdministrationClientTestEnvironment.cs b/sdk/communication/Azure.Communication.Administration/tests/Infrastructure/PhoneNumberAdministrationClientTestEnvironment.cs new file mode 100644 index 000000000000..6e7eb5a143d2 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/Infrastructure/PhoneNumberAdministrationClientTestEnvironment.cs @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core.TestFramework; + +namespace Azure.Communication.Administration.Tests +{ + public class PhoneNumberAdministrationClientTestEnvironment : TestEnvironment + { + public PhoneNumberAdministrationClientTestEnvironment() : base("communication") + { + } + + private const string ConnectionStringEnvironmentVariableName = "COMMUNICATION_CONNECTION_STRING"; + + public string ConnectionString => GetRecordedVariable(ConnectionStringEnvironmentVariableName); + } +} diff --git a/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs b/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs new file mode 100644 index 000000000000..dda0de9f98c4 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs @@ -0,0 +1,223 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net.WebSockets; +using System.Text; +using System.Text.RegularExpressions; +using System.Threading.Tasks; +using Azure.Communication.Administration.Models; +using Azure.Core.TestFramework; +using NUnit.Framework; + +namespace Azure.Communication.Administration.Tests +{ + /// + /// The suite of tests for the class. + /// + /// + /// These tests have a dependency on live Azure services and may incur costs for the associated + /// Azure subscription. + /// + public class PhoneNumberAdministrationClientLiveTests : PhoneNumberAdministrationClientLiveTestBase + { + /// + /// Initializes a new instance of the class. + /// + /// A flag used by the Azure Core Test Framework to differentiate between tests for asynchronous and synchronous methods. + public PhoneNumberAdministrationClientLiveTests(bool isAsync) : base(isAsync) + { + } + + [Test] + [TestCase(null, TestName = "GetAllSupportedCountries")] + [TestCase("en-US", TestName = "GetAllSupportedCountriesEnUsLocale")] + public async Task GetAllSupportedCountries(string? locale) + { + var client = CreateClient(); + + var countries = client.GetAllSupportedCountriesAsync(locale); + + await foreach (var country in countries) + { + Assert.IsFalse(string.IsNullOrEmpty(country.CountryCode)); + Assert.IsFalse(string.IsNullOrEmpty(country.LocalizedName)); + } + } + + [Test] + public async Task GetAllPhoneNumbers() + { + var client = CreateClient(); + + var numbersPagable = client.GetAllPhoneNumbersAsync(); + var numbers = await numbersPagable.ToEnumerableAsync(); + + Assert.IsNotNull(numbers); + Assert.IsNotEmpty(numbers); + } + + [Test] + [TestCase(null, null)] + [TestCase("en-US", null)] + [TestCase("en-US", false)] + [TestCase("en-US", true)] + public async Task GetPlanGroups(string? locale, bool? includeRateInformation) + { + var client = CreateClient(); + var countryCode = "US"; + + var pageablePhonePlanGroups = client.GetPhonePlanGroupsAsync(countryCode, locale, includeRateInformation); + + var phonePlanGroups = await pageablePhonePlanGroups.ToEnumerableAsync(); + + Assert.IsNotNull(phonePlanGroups); + Assert.AreEqual(3, phonePlanGroups.Count); + + var firstGroup = phonePlanGroups.First(group => group.PhoneNumberType == PhoneNumberType.Geographic); + + Assert.IsNotNull(firstGroup.LocalizedName); + Assert.IsNotNull(firstGroup.LocalizedDescription); + + if (includeRateInformation == true) + { + Assert.IsNotNull(firstGroup.RateInformation); + } + else + { + Assert.IsNull(firstGroup.RateInformation); + } + } + + [Test] + [TestCase(null)] + [TestCase("en-US")] + public async Task GetPhonePlans(string? locale) + { + var client = CreateClient(); + var countryCode = "US"; + + var pageablePhonePlanGroups = client.GetPhonePlanGroupsAsync(countryCode, locale); + var phonePlanGroups = await pageablePhonePlanGroups.ToEnumerableAsync().ConfigureAwait(false); + + var pageablePhonePlans = client.GetPhonePlansAsync(countryCode, phonePlanGroups.First().PhonePlanGroupId, locale); + var phonePlans = await pageablePhonePlans.ToEnumerableAsync(); + + Assert.IsNotNull(phonePlans); + Assert.IsNotEmpty(phonePlans); + } + + [Test] + [TestCase(null)] + [TestCase("en-US")] + public async Task GetAreaCodesForPlan(string? locale) + { + var client = CreateClient(); + var countryCode = "US"; + + var pageablePhonePlanGroups = client.GetPhonePlanGroupsAsync(countryCode, locale); + var phonePlanGroups = await pageablePhonePlanGroups.ToEnumerableAsync().ConfigureAwait(false); + + string phonePlanGroupId = phonePlanGroups.First(group => group.PhoneNumberType == PhoneNumberType.Geographic).PhonePlanGroupId; + var pageablePhonePlans = client.GetPhonePlansAsync(countryCode, phonePlanGroupId, locale); + var phonePlans = await pageablePhonePlans.ToEnumerableAsync(); + var phonePlanId = phonePlans.First().PhonePlanId; + + var locationOptionsResponse = await client.GetPhonePlanLocationOptionsAsync(countryCode, phonePlanGroupId, phonePlanId).ConfigureAwait(false); + + var locationOptions = new List + { + new LocationOptionsQuery + { + LabelId = "state", + OptionsValue = "NY" + }, + new LocationOptionsQuery + { + LabelId = "city", + OptionsValue = "NOAM-US-NY-NY" + } + }; + + var areaCodes = await client.GetAllAreaCodesAsync("selection", countryCode, phonePlanId, locationOptions); + + Assert.IsNotNull(areaCodes.Value.PrimaryAreaCodes); + Assert.IsNotEmpty(areaCodes.Value.PrimaryAreaCodes); + } + + [Test] + [TestCase(null)] + [TestCase("en-US")] + [AsyncOnly] + public async Task CreateReservationErrorState(string? locale) + { + var client = CreateClient(); + var countryCode = "US"; + + var pageablePhonePlanGroups = client.GetPhonePlanGroupsAsync(countryCode, locale); + var phonePlanGroups = await pageablePhonePlanGroups.ToEnumerableAsync().ConfigureAwait(false); + + string phonePlanGroupId = phonePlanGroups.First(group => group.PhoneNumberType == PhoneNumberType.TollFree).PhonePlanGroupId; + var pageablePhonePlans = client.GetPhonePlansAsync(countryCode, phonePlanGroupId, locale); + var phonePlan = (await pageablePhonePlans.ToEnumerableAsync()).First(); + var tollFreeAreaCode = phonePlan.AreaCodes.First(); + + string geographicPhonePlanGroupId = phonePlanGroups.First(group => group.PhoneNumberType == PhoneNumberType.Geographic).PhonePlanGroupId; + var geographicPhonePlanId = (await client.GetPhonePlansAsync(countryCode, geographicPhonePlanGroupId, locale).ToEnumerableAsync()).First().PhonePlanId; + + var reservationOptions = new CreateReservationOptions("My reservation", "my description", new[] { geographicPhonePlanId }, tollFreeAreaCode); + reservationOptions.Quantity = 1; + var reservationOperation = await client.StartReservationAsync(reservationOptions); + + try + { + await reservationOperation.WaitForCompletionAsync().ConfigureAwait(false); + } + catch (Exception ex) + { + Assert.AreEqual("Reservation has failed.", ex.Message); + return; + } + + Assert.Fail("WaitForCompletionAsync should have thrown an exception."); + } + + [Test] + [TestCase(null)] + [TestCase("en-US")] + [AsyncOnly] + public async Task CreateReservation(string? locale) + { + var client = CreateClient(); + var countryCode = "US"; + + var pageablePhonePlanGroups = client.GetPhonePlanGroupsAsync(countryCode, locale); + var phonePlanGroups = await pageablePhonePlanGroups.ToEnumerableAsync().ConfigureAwait(false); + + string phonePlanGroupId = phonePlanGroups.First(group => group.PhoneNumberType == PhoneNumberType.TollFree).PhonePlanGroupId; + var pageablePhonePlans = client.GetPhonePlansAsync(countryCode, phonePlanGroupId, locale); + var phonePlan = (await pageablePhonePlans.ToEnumerableAsync()).First(); + var areaCode = phonePlan.AreaCodes.First(); + + var reservationOptions = new CreateReservationOptions("My reservation", "my description", new[] { phonePlan.PhonePlanId }, areaCode); + reservationOptions.Quantity = 1; + var reservationOperation = await client.StartReservationAsync(reservationOptions); + + await reservationOperation.WaitForCompletionAsync().ConfigureAwait(false); + + Assert.IsNotNull(reservationOperation); + Assert.IsTrue(reservationOperation.HasCompleted); + Assert.IsTrue(reservationOperation.HasValue); + + var reservation = reservationOperation.Value; + Assert.IsNotNull(reservation); + + Assert.AreEqual(ReservationStatus.Reserved, reservation.Status); + Assert.AreEqual(areaCode, reservation.AreaCode); + Assert.IsNull(reservation.ErrorCode); + Assert.AreEqual(1, reservation.PhoneNumbers?.Count); + } + } +} diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/CreateReservation(%en-US%)Async.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/CreateReservation(%en-US%)Async.json new file mode 100644 index 000000000000..66daf60d533f --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/CreateReservation(%en-US%)Async.json @@ -0,0 +1,442 @@ +{ + "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": "Sat, 21 Nov 2020 03:49:38 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3daaf8d84376b37abfdec1d89857d9d3", + "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": "Sat, 21 Nov 2020 03:49:38 GMT", + "MS-CV": "eX0fuRHkQUu0UckkDG4b7g.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0Uo64XwAAAAB0vEAzkHL\u002BTqnMwRqKhm/LWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "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": "Sat, 21 Nov 2020 03:49:38 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "292911b7b4b2798f789ad81617e4607f", + "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": "Sat, 21 Nov 2020 03:49:39 GMT", + "MS-CV": "iZiC/gLks02sfLaKPM9KBg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0U464XwAAAACHzoCZmcXiS7urfmefLSWaWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "256ms" + }, + "ResponseBody": { + "phonePlans": [ + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) \u0026 Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "844", + "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": [ + "844", + "833" + ], + "capabilities": [ + "Azure", + "InboundCalling", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only Sms - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "844", + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only SMS (A2P) \u0026 Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "844", + "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": [ + "844", + "833" + ], + "capabilities": [ + "Azure", + "InboundCalling", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "844", + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "844", + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundCalling", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "844", + "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": "122", + "Content-Type": "application/json", + "Date": "Sat, 21 Nov 2020 03:49:39 GMT", + "traceparent": "00-761922427fbe5d478deb12b309ebc71a-6d2e918862dc1143-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "c464601850b89a2f06d91538823d2805", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "displayName": "My reservation", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "844", + "quantity": 1 + }, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 21 Nov 2020 03:49:39 GMT", + "MS-CV": "D3vbxtAAVESD538zLrqOwA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0U464XwAAAAC7V1MU2XZGQb9p5RXFsOk6WVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "815ms" + }, + "ResponseBody": { + "searchId": "b6c5cbe1-8f58-47ac-abbf-da5e64b4ba79" + } + }, + { + "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": "Sat, 21 Nov 2020 03:49:40 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "855dd6a1f54c24bd6830c4db6b639bdb", + "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": "Sat, 21 Nov 2020 03:49:40 GMT", + "MS-CV": "nBFqebjdl0WqP3ad\u002B7XNPQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0VI64XwAAAAB0hq7JKC4KQrFKfoE\u002BwOrxWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "427ms" + }, + "ResponseBody": { + "searchId": "b6c5cbe1-8f58-47ac-abbf-da5e64b4ba79", + "displayName": "My reservation", + "createdAt": "2020-11-21T03:49:39.6031717\u002B00:00", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "844", + "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": "Sat, 21 Nov 2020 03:49:42 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "37bf427d14f2661ae28f22d89e57f73b", + "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": "Sat, 21 Nov 2020 03:49:43 GMT", + "MS-CV": "XK/Aqzjgv0mrXRx7vicSPw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0Vo64XwAAAAAm1YDuq169Q61jlePD07R8WVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "710ms" + }, + "ResponseBody": { + "searchId": "b6c5cbe1-8f58-47ac-abbf-da5e64b4ba79", + "displayName": "My reservation", + "createdAt": "2020-11-21T03:49:39.6031717\u002B00:00", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "844", + "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": "Sat, 21 Nov 2020 03:49:44 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "4175d371db862332a3405c878c532ea2", + "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": "Sat, 21 Nov 2020 03:49:44 GMT", + "MS-CV": "GzLkLnYfm0mTD3vila2sog.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0WI64XwAAAABLZZFZWHfETYcAXpTzmgkVWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "573ms" + }, + "ResponseBody": { + "searchId": "b6c5cbe1-8f58-47ac-abbf-da5e64b4ba79", + "displayName": "My reservation", + "createdAt": "2020-11-21T03:49:39.6031717\u002B00:00", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "844", + "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": "Sat, 21 Nov 2020 03:49:46 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "40ba3a3ef17d8c13bbf6a2bcd2e48511", + "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": "Sat, 21 Nov 2020 03:49:46 GMT", + "MS-CV": "\u002BBFxDSRei0iAGJlHOzvFsg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0Wo64XwAAAACsCU7VWuWLQpn\u002B/ZAHHNTKWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "276ms" + }, + "ResponseBody": { + "searchId": "b6c5cbe1-8f58-47ac-abbf-da5e64b4ba79", + "displayName": "My reservation", + "createdAt": "2020-11-21T03:49:39.6031717\u002B00:00", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "844", + "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": "Sat, 21 Nov 2020 03:49:47 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "9869893959eea2540f9c94b1b893da8e", + "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": "Sat, 21 Nov 2020 03:49:47 GMT", + "MS-CV": "SUuhRWYgvEucKsvEek8xzg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0W464XwAAAADlqvzSDPVES5N8WLsi68niWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "271ms" + }, + "ResponseBody": { + "searchId": "b6c5cbe1-8f58-47ac-abbf-da5e64b4ba79", + "displayName": "My reservation", + "createdAt": "2020-11-21T03:49:39.6031717\u002B00:00", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "844", + "quantity": 1, + "locationOptions": [], + "status": "Reserved", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-11-21T04:05:46.9503096\u002B00:00" + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "1100497228" + } +} diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/CreateReservation(null)Async.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/CreateReservation(null)Async.json new file mode 100644 index 000000000000..ef3276821256 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/CreateReservation(null)Async.json @@ -0,0 +1,442 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Sat, 21 Nov 2020 03:49:28 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "7ce7f6aa6608ab1c26bf09ed608afed3", + "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": "Sat, 21 Nov 2020 03:49:29 GMT", + "MS-CV": "D9IdoihcH0C4FszrBkMXNg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0SI64XwAAAACF4pS\u002BplSdS4CF9aDrViaoWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "250ms" + }, + "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?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Sat, 21 Nov 2020 03:49:29 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "13f8df2ecd03b6e3e3841da98e053448", + "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": "Sat, 21 Nov 2020 03:49:29 GMT", + "MS-CV": "eo34\u002BP3LLE2Q\u002B4S93r6cHQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0SY64XwAAAABjTrbgC4x4QLSYuo0EdMRxWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "251ms" + }, + "ResponseBody": { + "phonePlans": [ + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) \u0026 Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "844", + "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": [ + "844", + "833" + ], + "capabilities": [ + "Azure", + "InboundCalling", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only Sms - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "844", + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only SMS (A2P) \u0026 Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "844", + "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": [ + "844", + "833" + ], + "capabilities": [ + "Azure", + "InboundCalling", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "844", + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "844", + "833" + ], + "capabilities": [ + "Azure", + "ThirdPartyAppAssignment", + "OutboundCalling", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "844", + "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": "122", + "Content-Type": "application/json", + "Date": "Sat, 21 Nov 2020 03:49:29 GMT", + "traceparent": "00-563ae9220c95a24bbff9d067b6aacb9b-deccca7a5e6b3849-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "ce39aba6c5b17e7962860ade01df401e", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "displayName": "My reservation", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "844", + "quantity": 1 + }, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 21 Nov 2020 03:49:31 GMT", + "MS-CV": "mK\u002BTGJw5IkenpPFzF3vSmg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0SY64XwAAAADJrUi7UiaBQ7OsC2FfdGrYWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "1205ms" + }, + "ResponseBody": { + "searchId": "012f4990-7f68-4fe2-acf1-648a53de5aea" + } + }, + { + "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": "Sat, 21 Nov 2020 03:49:31 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "64def57c3520dc5e1331998448721d20", + "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": "Sat, 21 Nov 2020 03:49:31 GMT", + "MS-CV": "kqTxRPJ/U061UKruatas9Q.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0S464XwAAAAAqzKy6EwFoR41GSIjmK7\u002BHWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "269ms" + }, + "ResponseBody": { + "searchId": "012f4990-7f68-4fe2-acf1-648a53de5aea", + "displayName": "My reservation", + "createdAt": "2020-11-21T03:49:30.1971823\u002B00:00", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "844", + "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": "Sat, 21 Nov 2020 03:49:32 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "b547c08b2f5168226579b17cc304b504", + "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": "Sat, 21 Nov 2020 03:49:33 GMT", + "MS-CV": "0lOyN4/3sUq1q4AKYdSKLw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0TY64XwAAAACEOLHyC/qySrDv4iF4fUggWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "272ms" + }, + "ResponseBody": { + "searchId": "012f4990-7f68-4fe2-acf1-648a53de5aea", + "displayName": "My reservation", + "createdAt": "2020-11-21T03:49:30.1971823\u002B00:00", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "844", + "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": "Sat, 21 Nov 2020 03:49:34 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "982dff43cf2771284d5cba7f2cf536ef", + "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": "Sat, 21 Nov 2020 03:49:34 GMT", + "MS-CV": "DIyjurcGMk6iF7n2h7sRHQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0To64XwAAAABVUbHy\u002BRzBTKvLpCjwQ7HxWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "289ms" + }, + "ResponseBody": { + "searchId": "012f4990-7f68-4fe2-acf1-648a53de5aea", + "displayName": "My reservation", + "createdAt": "2020-11-21T03:49:30.1971823\u002B00:00", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "844", + "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": "Sat, 21 Nov 2020 03:49:36 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "4052ea688b984ccdd375fea684e1190e", + "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": "Sat, 21 Nov 2020 03:49:36 GMT", + "MS-CV": "UE2hWlB8iE2opEmiukQcTw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0UI64XwAAAAAwURyRrgxQS5jFHIVHlckZWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "274ms" + }, + "ResponseBody": { + "searchId": "012f4990-7f68-4fe2-acf1-648a53de5aea", + "displayName": "My reservation", + "createdAt": "2020-11-21T03:49:30.1971823\u002B00:00", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "844", + "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": "Sat, 21 Nov 2020 03:49:38 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "4940947c8545bcf998d568f475a23c70", + "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": "Sat, 21 Nov 2020 03:49:38 GMT", + "MS-CV": "D1VamYiCgkKg7pVlo6wMLg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0Uo64XwAAAAC2a48wh/7pSqlERO0emi3GWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "481ms" + }, + "ResponseBody": { + "searchId": "012f4990-7f68-4fe2-acf1-648a53de5aea", + "displayName": "My reservation", + "createdAt": "2020-11-21T03:49:30.1971823\u002B00:00", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "844", + "quantity": 1, + "locationOptions": [], + "status": "Reserved", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-11-21T04:05:36.6355465\u002B00:00" + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "301917519" + } +} diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/CreateReservationErrorState(%en-US%)Async.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/CreateReservationErrorState(%en-US%)Async.json new file mode 100644 index 000000000000..910bddf1e77b --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/CreateReservationErrorState(%en-US%)Async.json @@ -0,0 +1,513 @@ +{ + "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, 24 Nov 2020 22:43:09 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201124.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "87deaf6c861fb6141b3d7636a89ee73b", + "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, 24 Nov 2020 22:43:09 GMT", + "MS-CV": "CPU4LU43skSmpQi1vvFqBw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0fYy9XwAAAADwTK4jsNmwTo09qt/o2cCpWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "520ms" + }, + "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, 24 Nov 2020 22:43:10 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201124.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "c83d961ee12cb941a7641b10c064970a", + "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, 24 Nov 2020 22:43:10 GMT", + "MS-CV": "QPFpTWj5hkinhRXxr1Chsw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0fYy9XwAAAAAPqs\u002BC\u002Bvz7Q7Ldifq5oyRGWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "343ms" + }, + "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, 24 Nov 2020 22:43:10 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201124.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "8e5b98d1d04514c49602677701a1bc16", + "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, 24 Nov 2020 22:43:10 GMT", + "MS-CV": "rtGUN/wY/0W/eai1DYbe8w.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0foy9XwAAAADO3WUoIAUQR6FmuHjB1raZWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "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/searches?api-version=2020-07-20-preview1", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "122", + "Content-Type": "application/json", + "Date": "Tue, 24 Nov 2020 22:43:10 GMT", + "traceparent": "00-cc621bffc50d9048b7ce38da90b206a9-57662ec895a87742-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201124.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "4b4f99aa9be58b726d24e0ba6b03f5b6", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "displayName": "My reservation", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1 + }, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 24 Nov 2020 22:43:11 GMT", + "MS-CV": "ZDPCnVODbEGX9hQxE84dhw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0foy9XwAAAAAx7QPvn8mzT6qRdev8Y4ubWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "784ms" + }, + "ResponseBody": { + "searchId": "63f1adc9-6308-468a-bf3d-d1cadd7067de" + } + }, + { + "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, 24 Nov 2020 22:43:11 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201124.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "10646ca559434df6d128322a79cab705", + "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, 24 Nov 2020 22:43:11 GMT", + "MS-CV": "5uGVJlC550eXDPFMLQ0d1A.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0f4y9XwAAAACMPOy8XHWOSoNxMlM6h58iWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "273ms" + }, + "ResponseBody": { + "searchId": "63f1adc9-6308-468a-bf3d-d1cadd7067de", + "displayName": "My reservation", + "createdAt": "2020-11-24T22:43:10.798213\u002B00:00", + "description": "my 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, 24 Nov 2020 22:43:13 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201124.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "276504a84b15362425d02021f009a992", + "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, 24 Nov 2020 22:43:12 GMT", + "MS-CV": "bKhX8NtD9U\u002BDnrqwLFzOPQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0gIy9XwAAAADoCG9kWEfzSqSDAuxfWJKzWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "292ms" + }, + "ResponseBody": { + "searchId": "63f1adc9-6308-468a-bf3d-d1cadd7067de", + "displayName": "My reservation", + "createdAt": "2020-11-24T22:43:10.798213\u002B00:00", + "description": "my 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, 24 Nov 2020 22:43:14 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201124.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "95d1b10cab3c51d2a30179bd684711a3", + "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, 24 Nov 2020 22:43:14 GMT", + "MS-CV": "Y8ohFUYL60G91I9hkqmJ9A.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0goy9XwAAAABLmGDFelGWS5fjqqBSss4FWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "340ms" + }, + "ResponseBody": { + "searchId": "63f1adc9-6308-468a-bf3d-d1cadd7067de", + "displayName": "My reservation", + "createdAt": "2020-11-24T22:43:10.798213\u002B00:00", + "description": "my 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, 24 Nov 2020 22:43:15 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201124.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "6612da6ccd9e59a0482eea7338d45dc7", + "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, 24 Nov 2020 22:43:15 GMT", + "MS-CV": "PzFoXkQHikeBm6unvs7y4Q.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0g4y9XwAAAACBtkuWJrPUTLZngVkRPC3XWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "277ms" + }, + "ResponseBody": { + "searchId": "63f1adc9-6308-468a-bf3d-d1cadd7067de", + "displayName": "My reservation", + "createdAt": "2020-11-24T22:43:10.798213\u002B00:00", + "description": "my 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, 24 Nov 2020 22:43:17 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201124.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "c81ea07f22f8fcc931138414d166cddd", + "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, 24 Nov 2020 22:43:16 GMT", + "MS-CV": "6gESaRTvG0Kwe7YmvCvXtQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0hIy9XwAAAABXghGpyc51TI2Qx5NyTvslWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "347ms" + }, + "ResponseBody": { + "searchId": "63f1adc9-6308-468a-bf3d-d1cadd7067de", + "displayName": "My reservation", + "createdAt": "2020-11-24T22:43:10.798213\u002B00:00", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Error", + "phoneNumbers": [], + "errorCode": 1000 + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "725671667" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/CreateReservationErrorState(null)Async.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/CreateReservationErrorState(null)Async.json new file mode 100644 index 000000000000..15e3b366ae3c --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/CreateReservationErrorState(null)Async.json @@ -0,0 +1,633 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 24 Nov 2020 22:42:51 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201124.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "9e93c3d8a5cbfbf3fee52ae69b7fc4f5", + "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, 24 Nov 2020 22:42:52 GMT", + "MS-CV": "kjXKhh34nU6dC45D/XXIdg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0a4y9XwAAAADrsuyQQKomRJTt\u002BxQYmLryWVZSMzBFREdFMDQyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "910ms" + }, + "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?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 24 Nov 2020 22:42:52 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201124.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "6e4215e47f4056a68f10c9947ef77cc9", + "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, 24 Nov 2020 22:42:52 GMT", + "MS-CV": "t/9yRZg3DUqg2LhD2CgC4w.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0bIy9XwAAAADXE2QiHzruT7iINuzWDFwjWVZSMzBFREdFMDQyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "298ms" + }, + "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?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Tue, 24 Nov 2020 22:42:53 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201124.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "936e264cbd31c33e96de98a05ce9b667", + "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, 24 Nov 2020 22:42:53 GMT", + "MS-CV": "2RAw5qJSE0G5rWVoVkxWUQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0bIy9XwAAAAAlqP/q2l6gQ64P1zn235/SWVZSMzBFREdFMDQyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "249ms" + }, + "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/searches?api-version=2020-07-20-preview1", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "122", + "Content-Type": "application/json", + "Date": "Tue, 24 Nov 2020 22:42:53 GMT", + "traceparent": "00-ab25fd08c97c904f8227bde12af18f21-4a80bbb66c06e141-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201124.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "95ac8732b90759d01d3c0ebbdc5e7d06", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "displayName": "My reservation", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1 + }, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 24 Nov 2020 22:42:54 GMT", + "MS-CV": "wFHKeU6Y3UiS4vdZUGOW1g.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0bYy9XwAAAADEx1EHXoDETZ/5zRtozOsEWVZSMzBFREdFMDQyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "1187ms" + }, + "ResponseBody": { + "searchId": "e09e3766-4cda-45de-a1b0-8077705b764b" + } + }, + { + "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, 24 Nov 2020 22:42:54 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201124.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "75996068311127c3d77ed761e605faa6", + "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, 24 Nov 2020 22:42:54 GMT", + "MS-CV": "kRSxqkCR20W3RXtWddxsxw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0boy9XwAAAABBR89EFHaXSIs/VNw9N/y\u002BWVZSMzBFREdFMDQyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "267ms" + }, + "ResponseBody": { + "searchId": "e09e3766-4cda-45de-a1b0-8077705b764b", + "displayName": "My reservation", + "createdAt": "2020-11-24T22:42:53.5062009\u002B00:00", + "description": "my 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, 24 Nov 2020 22:42:56 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201124.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "f661625ae64a93c2551475f5ae82e737", + "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, 24 Nov 2020 22:42:56 GMT", + "MS-CV": "mpl3\u002BNH4PkynZZHkGKOwSg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0b4y9XwAAAAA9dsCSsyffSZRP\u002BYYerngLWVZSMzBFREdFMDQyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "269ms" + }, + "ResponseBody": { + "searchId": "e09e3766-4cda-45de-a1b0-8077705b764b", + "displayName": "My reservation", + "createdAt": "2020-11-24T22:42:53.5062009\u002B00:00", + "description": "my 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, 24 Nov 2020 22:42:57 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201124.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "fb379261414f0156c385be88e16e7318", + "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, 24 Nov 2020 22:42:57 GMT", + "MS-CV": "7wpYXsHQHkCXwg0GMz9SHA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0cYy9XwAAAAAQw8a2pTS/RbSsUJ/EJBwXWVZSMzBFREdFMDQyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "266ms" + }, + "ResponseBody": { + "searchId": "e09e3766-4cda-45de-a1b0-8077705b764b", + "displayName": "My reservation", + "createdAt": "2020-11-24T22:42:53.5062009\u002B00:00", + "description": "my 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, 24 Nov 2020 22:42:58 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201124.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "7961684286fc82bb9e061ffcbbce7854", + "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, 24 Nov 2020 22:42:58 GMT", + "MS-CV": "MDTLFj5W10yc\u002B/F2xay5sQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0coy9XwAAAABp\u002BBcpRGOGQqgwEHnzeJmgWVZSMzBFREdFMDQyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "261ms" + }, + "ResponseBody": { + "searchId": "e09e3766-4cda-45de-a1b0-8077705b764b", + "displayName": "My reservation", + "createdAt": "2020-11-24T22:42:53.5062009\u002B00:00", + "description": "my 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, 24 Nov 2020 22:43:00 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201124.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "53ff9f97fecd19560c6033c52839b1e6", + "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, 24 Nov 2020 22:42:59 GMT", + "MS-CV": "YSDBWfHw6UCcDMZ7GUu5VQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0c4y9XwAAAAAWFBXi4Op1SJFoGKj5iigjWVZSMzBFREdFMDQyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "298ms" + }, + "ResponseBody": { + "searchId": "e09e3766-4cda-45de-a1b0-8077705b764b", + "displayName": "My reservation", + "createdAt": "2020-11-24T22:42:53.5062009\u002B00:00", + "description": "my 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, 24 Nov 2020 22:43:01 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201124.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "45b25da16e20db3ad7b55d48215946f4", + "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, 24 Nov 2020 22:43:01 GMT", + "MS-CV": "VrnX\u002BM5BX0qDj00135f9nw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0dYy9XwAAAACmTHOl8LjtQY0dRmOD6i1SWVZSMzBFREdFMDQyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "335ms" + }, + "ResponseBody": { + "searchId": "e09e3766-4cda-45de-a1b0-8077705b764b", + "displayName": "My reservation", + "createdAt": "2020-11-24T22:42:53.5062009\u002B00:00", + "description": "my 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, 24 Nov 2020 22:43:02 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201124.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "42f1690d1f6f434b11486d9c52f65a65", + "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, 24 Nov 2020 22:43:02 GMT", + "MS-CV": "8O2s1mhOXkK5jMWDlh4o9A.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0doy9XwAAAAA9Xx2xX7FATb\u002BLErXGBXsBWVZSMzBFREdFMDQyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "265ms" + }, + "ResponseBody": { + "searchId": "e09e3766-4cda-45de-a1b0-8077705b764b", + "displayName": "My reservation", + "createdAt": "2020-11-24T22:42:53.5062009\u002B00:00", + "description": "my 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, 24 Nov 2020 22:43:04 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201124.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "5d5b3855321b283464237c17a10ef7b2", + "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, 24 Nov 2020 22:43:03 GMT", + "MS-CV": "4UwzdUMvpEeMh4RkGDsfuA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0eIy9XwAAAAC1mqz2jnhzT7PB3B7QvrSUWVZSMzBFREdFMDQyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "281ms" + }, + "ResponseBody": { + "searchId": "e09e3766-4cda-45de-a1b0-8077705b764b", + "displayName": "My reservation", + "createdAt": "2020-11-24T22:42:53.5062009\u002B00:00", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Error", + "phoneNumbers": [], + "errorCode": 1000 + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "1268666862" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllPhoneNumbers.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllPhoneNumbers.json new file mode 100644 index 000000000000..bae6e943e68f --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllPhoneNumbers.json @@ -0,0 +1,106 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/phonenumbers?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Sat, 21 Nov 2020 03:49:12 GMT", + "traceparent": "00-7766485877d3914c84451c02a78b8d48-405560a140485448-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "754ae8679bb8b814455328db7a3b2294", + "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": "Sat, 21 Nov 2020 03:49:14 GMT", + "MS-CV": "ZpUIyIloQku73ueUrqvw/w.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0OY64XwAAAACp\u002BZ2FI2UoR65KoZdrDm5cWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "1327ms" + }, + "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": "1736725081" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllPhoneNumbersAsync.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllPhoneNumbersAsync.json new file mode 100644 index 000000000000..9db13eae2c85 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllPhoneNumbersAsync.json @@ -0,0 +1,105 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/phonenumbers?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Sat, 21 Nov 2020 03:49:27 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "d1a7fb1f13bb8f936be0e578cf161573", + "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": "Sat, 21 Nov 2020 03:49:28 GMT", + "MS-CV": "ESknZ9n5TEGmoHN/bhXbLw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0R464XwAAAADtJ6oJDALMT7/7vtuTnU5jWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "523ms" + }, + "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": "1419959097" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllSupportedCountries.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllSupportedCountries.json new file mode 100644 index 000000000000..65090f350bb6 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllSupportedCountries.json @@ -0,0 +1,45 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Sat, 21 Nov 2020 03:49:15 GMT", + "traceparent": "00-7cfafe6988e0ad44953d0e4ffc1cede8-ba2dbf7417336948-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "68b4fb6609e23b39665a310a6202e2aa", + "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": "Sat, 21 Nov 2020 03:49:14 GMT", + "MS-CV": "Nnl9BUoktkG9tzjXEq1z5Q.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0O464XwAAAAAxauJNRCfdTZL6yAEpq\u002Bi6WVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "488ms" + }, + "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": "1074755107" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllSupportedCountriesAsync.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllSupportedCountriesAsync.json new file mode 100644 index 000000000000..a2a83d10dbeb --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllSupportedCountriesAsync.json @@ -0,0 +1,44 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Sat, 21 Nov 2020 03:50:04 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "5cdab42778cdd864c0eb7ad9b720026f", + "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": "Sat, 21 Nov 2020 03:50:04 GMT", + "MS-CV": "NRdPoBGjxUK7sAHqsXHWgw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0bI64XwAAAAAW5kEU1zK3SpT0CATdPcAdWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "471ms" + }, + "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": "508083956" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllSupportedCountriesEnUsLocale.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllSupportedCountriesEnUsLocale.json new file mode 100644 index 000000000000..3726a11c2dce --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllSupportedCountriesEnUsLocale.json @@ -0,0 +1,45 @@ +{ + "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": "Sat, 21 Nov 2020 03:49:16 GMT", + "traceparent": "00-f2902af0fa3c0943ab5631b1f2b8342a-239aabf15d7f2b46-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "1352de371f41de03d8dda3ff7c26b51e", + "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": "Sat, 21 Nov 2020 03:49:15 GMT", + "MS-CV": "jCoAHM6it0SzdYjBRq\u002B4GQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0PI64XwAAAACMy8Ttaaz3Q5Z7FYBjcKB5WVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "475ms" + }, + "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": "1135784546" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllSupportedCountriesEnUsLocaleAsync.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllSupportedCountriesEnUsLocaleAsync.json new file mode 100644 index 000000000000..7240e826085e --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllSupportedCountriesEnUsLocaleAsync.json @@ -0,0 +1,44 @@ +{ + "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": "Sat, 21 Nov 2020 03:50:05 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "30a249b25a094000dc678e62d175ece1", + "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": "Sat, 21 Nov 2020 03:50:05 GMT", + "MS-CV": "UI06EKN7hEm5uJcpXH/tfQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0bY64XwAAAABNdCre/q5YTbHyBPrW9RTMWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "484ms" + }, + "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": "815011431" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAreaCodesForPlan(%en-US%).json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAreaCodesForPlan(%en-US%).json new file mode 100644 index 000000000000..75045ca8a546 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAreaCodesForPlan(%en-US%).json @@ -0,0 +1,1665 @@ +{ + "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": "Sat, 21 Nov 2020 03:49:18 GMT", + "traceparent": "00-cff47c17c244c04f928fc98a44e70bac-8261f0e591c67f41-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "84755cc788cb85c3b2f2aaebd701d7e0", + "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": "Sat, 21 Nov 2020 03:49:18 GMT", + "MS-CV": "ko\u002BjfhweX06Cr5etjATT4Q.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0Po64XwAAAADkFfVAewuNSZXAG4X6Fdo7WVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "253ms" + }, + "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": "Sat, 21 Nov 2020 03:49:19 GMT", + "traceparent": "00-d8917a1e5f57e04aa8424a7ee6c51978-6fc475bf42316a4b-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "28a3056398fe9e37afde779cac21ab5f", + "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": "Sat, 21 Nov 2020 03:49:18 GMT", + "MS-CV": "eCVKQ7uU/Eun\u002BqebWwqIOQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0P464XwAAAABTtRjsKmeOR6vbXBQsUvP3WVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "245ms" + }, + "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": "Sat, 21 Nov 2020 03:49:19 GMT", + "traceparent": "00-21b27c977ace274185f3841951788af3-5d7ed378a3f1594c-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "4f8c4709aeea20ba2a066836e0611f18", + "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": "Sat, 21 Nov 2020 03:49:19 GMT", + "MS-CV": "SvOdIwukp0\u002Bli7TIoofurA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0QI64XwAAAACyU9ELhw52QqXYjxQoZKoEWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "249ms" + }, + "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": "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": "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": "Sat, 21 Nov 2020 03:49:20 GMT", + "traceparent": "00-8d00a9c9525449458f2e04972a34f656-d8fc2970da396448-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "17bf8b2268b62f7325d7d4ed1027d891", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "locationOptions": [ + { + "labelId": "state", + "optionsValue": "NY" + }, + { + "labelId": "city", + "optionsValue": "NOAM-US-NY-NY" + } + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 21 Nov 2020 03:49:19 GMT", + "MS-CV": "VH9n885YhkKK9kgJBbO4QA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0QI64XwAAAADO5E70PXMWS5FksXcpLrYOWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "184ms" + }, + "ResponseBody": { + "primaryAreaCodes": [ + "332" + ], + "secondaryAreaCodes": [], + "nextLink": null + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "2034220363" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAreaCodesForPlan(%en-US%)Async.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAreaCodesForPlan(%en-US%)Async.json new file mode 100644 index 000000000000..ce61f50dabb1 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAreaCodesForPlan(%en-US%)Async.json @@ -0,0 +1,1663 @@ +{ + "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": "Sat, 21 Nov 2020 03:50:08 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "b0831f93bb036bee0a0e792284605ab4", + "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": "Sat, 21 Nov 2020 03:50:08 GMT", + "MS-CV": "rgFevf6SFUyEiXUofOLkxw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0cI64XwAAAACfzWcDV8haSruhd07JYFx5WVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "250ms" + }, + "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": "Sat, 21 Nov 2020 03:50:08 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "32050bf7a4a86116dd2cfe527b2aed00", + "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": "Sat, 21 Nov 2020 03:50:09 GMT", + "MS-CV": "d3GLmlQX\u002BkqpkTS4tgk0aw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0cI64XwAAAAC5\u002BV2YoVyQTYiAcxmg6soVWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "251ms" + }, + "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": "Sat, 21 Nov 2020 03:50:09 GMT", + "traceparent": "00-1b981f3247b51d488632de36ea0919f9-e8b4954ad3d0074f-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "58e7437d55f31114a220d6864c4b5387", + "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": "Sat, 21 Nov 2020 03:50:09 GMT", + "MS-CV": "FVhQZTKQiUeVW0h5hv32ng.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0cY64XwAAAAAIG7ikPOelQbHRRNqSCpyNWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "249ms" + }, + "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": "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": "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": "Sat, 21 Nov 2020 03:50:09 GMT", + "traceparent": "00-e2342e136125514d843d9378cb58e2bc-fe9cbd5b591cb140-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "5cb29f8e4600efe40822d3d7bd9befdf", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "locationOptions": [ + { + "labelId": "state", + "optionsValue": "NY" + }, + { + "labelId": "city", + "optionsValue": "NOAM-US-NY-NY" + } + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 21 Nov 2020 03:50:10 GMT", + "MS-CV": "133hT\u002B8\u002BGEGOwJfZKO/Tvg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0cY64XwAAAABr217OyHarSbvPizVxeWxkWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "187ms" + }, + "ResponseBody": { + "primaryAreaCodes": [ + "332" + ], + "secondaryAreaCodes": [], + "nextLink": null + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "641757262" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAreaCodesForPlan(null).json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAreaCodesForPlan(null).json new file mode 100644 index 000000000000..dfe56742cda1 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAreaCodesForPlan(null).json @@ -0,0 +1,1665 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Sat, 21 Nov 2020 03:49:16 GMT", + "traceparent": "00-36298587b94ec847926432612145a6a3-3e195169d4c72f49-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "40884fd956f2b49a3d4c2bc800fe9708", + "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": "Sat, 21 Nov 2020 03:49:16 GMT", + "MS-CV": "HcJJ2SNEqUKhlNhHnWxodg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0PY64XwAAAADI\u002BJAkUwuIToi2NqG6eW6YWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "296ms" + }, + "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?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Sat, 21 Nov 2020 03:49:17 GMT", + "traceparent": "00-8fcc54d70d326b46bf8c23e911ab0077-164fe2cbc0340449-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "9b3fefc3a51b6d9464bd67c53398142a", + "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": "Sat, 21 Nov 2020 03:49:16 GMT", + "MS-CV": "st/vjcK/V0iNdVCteCdTDA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0PY64XwAAAACiP8ugTUD1QIAkv1hqc5I1WVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "299ms" + }, + "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": "Sat, 21 Nov 2020 03:49:17 GMT", + "traceparent": "00-feb8257198952f438d6919d708c36d9d-610b91e95713a544-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "24eab2145e3289c19e780cca1a21b11e", + "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": "Sat, 21 Nov 2020 03:49:17 GMT", + "MS-CV": "kPLl3tE\u002BSUC0tJvcu5p1CA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0PY64XwAAAADhxc0CMJvxQZAS4QcvSO1BWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "248ms" + }, + "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": "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": "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": "Sat, 21 Nov 2020 03:49:18 GMT", + "traceparent": "00-112f4b48159711469d4fa3af9dbd96b5-413fee45071c864b-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "cd5d0fbf3e7b342cba1adb34eed480a4", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "locationOptions": [ + { + "labelId": "state", + "optionsValue": "NY" + }, + { + "labelId": "city", + "optionsValue": "NOAM-US-NY-NY" + } + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 21 Nov 2020 03:49:17 GMT", + "MS-CV": "CTJ7CQya4UaZbr2iQc/wDQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0Po64XwAAAAD366HYLlCYTqhyiFbyBNkXWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "184ms" + }, + "ResponseBody": { + "primaryAreaCodes": [ + "332" + ], + "secondaryAreaCodes": [], + "nextLink": null + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "1546943954" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAreaCodesForPlan(null)Async.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAreaCodesForPlan(null)Async.json new file mode 100644 index 000000000000..d182fe302410 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAreaCodesForPlan(null)Async.json @@ -0,0 +1,1663 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Sat, 21 Nov 2020 03:50:06 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "e87533b3abc4541214b18329c39d2211", + "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": "Sat, 21 Nov 2020 03:50:05 GMT", + "MS-CV": "hzEZsUsIw0K0R\u002BXDE2eDmg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0bo64XwAAAAAzV0lxpTlaTb/HIj6HswG/WVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "256ms" + }, + "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?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Sat, 21 Nov 2020 03:50:07 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "6f4694ad5457c680e828eddec07946c0", + "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": "Sat, 21 Nov 2020 03:50:07 GMT", + "MS-CV": "UynZJ\u002BwH/UWJz/Bk\u002Bu38jQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0b464XwAAAAAP0ovlNvxpSJ0xAtDZvvm/WVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "249ms" + }, + "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": "Sat, 21 Nov 2020 03:50:07 GMT", + "traceparent": "00-2b7a47cdaf206945af5ff8efa0eb203d-0c0e806f0783c94c-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "5a0ce7cf48429ff598dcd6c889ee5358", + "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": "Sat, 21 Nov 2020 03:50:08 GMT", + "MS-CV": "6yZ/UjhLw0\u002BpvJ0VaDOqRQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0b464XwAAAADbjl/u/nxYQqT5OEzxAB7AWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "245ms" + }, + "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": "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": "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": "Sat, 21 Nov 2020 03:50:08 GMT", + "traceparent": "00-2fa2428e9b1d224e80e774c82b962c62-41379bb370242a46-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "486408555f805e2bb2af009bbe33939a", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "locationOptions": [ + { + "labelId": "state", + "optionsValue": "NY" + }, + { + "labelId": "city", + "optionsValue": "NOAM-US-NY-NY" + } + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 21 Nov 2020 03:50:08 GMT", + "MS-CV": "9bjEvYCyIUOvAnGOM8GbTw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0cI64XwAAAABEu3IFnX/ESJMFQkzJ0hqTWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "189ms" + }, + "ResponseBody": { + "primaryAreaCodes": [ + "332" + ], + "secondaryAreaCodes": [], + "nextLink": null + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "2032726734" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPhonePlans(%en-US%).json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPhonePlans(%en-US%).json new file mode 100644 index 000000000000..315da6c3ec40 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPhonePlans(%en-US%).json @@ -0,0 +1,110 @@ +{ + "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": "Sat, 21 Nov 2020 03:49:22 GMT", + "traceparent": "00-5a8c0c690b5d064d8f0f46029553b942-f62f8907c907b049-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "616510a462ba67ae5073127e5b88837c", + "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": "Sat, 21 Nov 2020 03:49:21 GMT", + "MS-CV": "22a8zkDdyk\u002BeZ7opNUEi1Q.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0Qo64XwAAAAAYGcuo37f4Qr33SOqXmbpyWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "259ms" + }, + "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": "Sat, 21 Nov 2020 03:49:23 GMT", + "traceparent": "00-9dbb699ee6fd5345b7493fa006846146-eb8bbbbf353b494d-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "1641a4177d67de1a4c3dd693d419fa40", + "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": "Sat, 21 Nov 2020 03:49:22 GMT", + "MS-CV": "2iWonbHT10GhKStYqnaXlA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0Q464XwAAAACSdIjm7KUYRKxuyKW11QUgWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "252ms" + }, + "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 + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "1863365519" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPhonePlans(%en-US%)Async.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPhonePlans(%en-US%)Async.json new file mode 100644 index 000000000000..b5840e543763 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPhonePlans(%en-US%)Async.json @@ -0,0 +1,108 @@ +{ + "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": "Sat, 21 Nov 2020 03:50:11 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "59ce4b6a02979cbbff64c2c420cf4a3b", + "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": "Sat, 21 Nov 2020 03:50:11 GMT", + "MS-CV": "znEqe1E5z0uozc9gbd1wgA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0c464XwAAAAB94WSxToYaS5nPyV25Q0lPWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "244ms" + }, + "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": "Sat, 21 Nov 2020 03:50:11 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "d9daa191e8060dbdfaa37c32e101460c", + "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": "Sat, 21 Nov 2020 03:50:11 GMT", + "MS-CV": "nkWlLhbGVUOKgbMR1f0Vdw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0c464XwAAAABGLxQmeieuSaTJJXBkMVnMWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "258ms" + }, + "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 + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "1728370529" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPhonePlans(null).json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPhonePlans(null).json new file mode 100644 index 000000000000..f9ec0ca8a1ae --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPhonePlans(null).json @@ -0,0 +1,110 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Sat, 21 Nov 2020 03:49:20 GMT", + "traceparent": "00-b4530c654a5c604fa8c3f2b208033cf0-82704bad8a5d4c45-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "05696a5a50b365020f8c828c1a16c0f2", + "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": "Sat, 21 Nov 2020 03:49:20 GMT", + "MS-CV": "2aQ6ddIy3kKdKEqMcQC41g.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0QI64XwAAAAAzMv4yq05FToGIZnvPBwkRWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "649ms" + }, + "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?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Sat, 21 Nov 2020 03:49:21 GMT", + "traceparent": "00-134f202826192240829c3b1e3a7a58c9-a4b3c0c688524a47-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "7e31e22295b6387c7d21cd7520d2023d", + "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": "Sat, 21 Nov 2020 03:49:21 GMT", + "MS-CV": "9S97spYzpEaQDUOihZj4Hg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0QY64XwAAAACFs82dgxurTICYxr4x\u002B3/FWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "250ms" + }, + "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 + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "1249678682" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPhonePlans(null)Async.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPhonePlans(null)Async.json new file mode 100644 index 000000000000..f994e1d2a6e4 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPhonePlans(null)Async.json @@ -0,0 +1,108 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Sat, 21 Nov 2020 03:50:10 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "54079ccd269666fb3403e1ee00cc6a8e", + "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": "Sat, 21 Nov 2020 03:50:10 GMT", + "MS-CV": "IedYdqCKB0CWlwPYQc0UZw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0co64XwAAAAAjL/Vvc\u002BwwSa0c2IeP3NrBWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "250ms" + }, + "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?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Sat, 21 Nov 2020 03:50:10 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "af2bb6f2ca2d7704be4f28f8125d6d0f", + "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": "Sat, 21 Nov 2020 03:50:10 GMT", + "MS-CV": "cWjH3Q6anEiNh7Hm6KJ/nA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0co64XwAAAADC3kcaeGYFTqaW6WYJ7ocVWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "247ms" + }, + "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 + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "627743509" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(%en-US%,False).json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(%en-US%,False).json new file mode 100644 index 000000000000..d44d0bdff89d --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(%en-US%,False).json @@ -0,0 +1,55 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?locale=en-US\u0026includeRateInformation=false\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Sat, 21 Nov 2020 03:49:24 GMT", + "traceparent": "00-3c9db7b06150c846812813916b992c6c-819eaabbf6246348-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "b1074c2b661108cc800ff480343a9366", + "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": "Sat, 21 Nov 2020 03:49:24 GMT", + "MS-CV": "04K5uKor2k2YpDP5OqWnDw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0RI64XwAAAACkoiSMiiwYTISnckH4GSV1WVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "247ms" + }, + "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 + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "1310708121" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(%en-US%,False)Async.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(%en-US%,False)Async.json new file mode 100644 index 000000000000..09b5e2c3a3d8 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(%en-US%,False)Async.json @@ -0,0 +1,54 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?locale=en-US\u0026includeRateInformation=false\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Sat, 21 Nov 2020 03:50:13 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "20dc374a12d6b397f6c1b9bce29282de", + "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": "Sat, 21 Nov 2020 03:50:13 GMT", + "MS-CV": "9wYoAltKX0OGBnMLt\u002ByeIw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0dY64XwAAAAB2gA70BQCERIY\u002BuZuWPYutWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "253ms" + }, + "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 + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "337401057" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(%en-US%,True).json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(%en-US%,True).json new file mode 100644 index 000000000000..770f18c83c39 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(%en-US%,True).json @@ -0,0 +1,70 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?locale=en-US\u0026includeRateInformation=true\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Sat, 21 Nov 2020 03:49:25 GMT", + "traceparent": "00-2acb280ce9fd7e41b72eeffe4dffb793-1e4e82e316df164e-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "6eeea0a97420258c8b12dbbd03e92622", + "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": "Sat, 21 Nov 2020 03:49:27 GMT", + "MS-CV": "cbzDv1BeDkeqDR/RUoERxA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0RY64XwAAAACOrXiGx1zTRJRMRXyhO4u1WVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "2246ms" + }, + "ResponseBody": { + "phonePlanGroups": [ + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "Geographic", + "localizedName": "Azure- User - Geographic", + "localizedDescription": "These are numbers used by Azure resources.", + "rateInformation": { + "monthlyRate": 1.0, + "currencyType": "USD", + "rateErrorMessage": null + } + }, + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "Geographic", + "localizedName": "Azure - Geographic", + "localizedDescription": "These are numbers used by Azure resources.", + "rateInformation": { + "monthlyRate": 1.0, + "currencyType": "USD", + "rateErrorMessage": null + } + }, + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "TollFree", + "localizedName": "Azure - Toll Free", + "localizedDescription": "These are toll free numbers used by Azure resources.", + "rateInformation": { + "monthlyRate": 2.0, + "currencyType": "USD", + "rateErrorMessage": null + } + } + ], + "nextLink": null + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "1954657508" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(%en-US%,True)Async.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(%en-US%,True)Async.json new file mode 100644 index 000000000000..3340173afe24 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(%en-US%,True)Async.json @@ -0,0 +1,69 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?locale=en-US\u0026includeRateInformation=true\u0026api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Sat, 21 Nov 2020 03:50:13 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "68b09269e1c7cb96b723b35537e6d0cf", + "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": "Sat, 21 Nov 2020 03:50:15 GMT", + "MS-CV": "Pzlf13sRkE2TXVfEnDWckw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0dY64XwAAAAB585EJ1okTRJD\u002B725QjHEpWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "1779ms" + }, + "ResponseBody": { + "phonePlanGroups": [ + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "Geographic", + "localizedName": "Azure- User - Geographic", + "localizedDescription": "These are numbers used by Azure resources.", + "rateInformation": { + "monthlyRate": 1.0, + "currencyType": "USD", + "rateErrorMessage": null + } + }, + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "Geographic", + "localizedName": "Azure - Geographic", + "localizedDescription": "These are numbers used by Azure resources.", + "rateInformation": { + "monthlyRate": 1.0, + "currencyType": "USD", + "rateErrorMessage": null + } + }, + { + "phonePlanGroupId": "Sanitized", + "phoneNumberType": "TollFree", + "localizedName": "Azure - Toll Free", + "localizedDescription": "These are toll free numbers used by Azure resources.", + "rateInformation": { + "monthlyRate": 2.0, + "currencyType": "USD", + "rateErrorMessage": null + } + } + ], + "nextLink": null + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "794078690" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(%en-US%,null).json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(%en-US%,null).json new file mode 100644 index 000000000000..bd7912eda628 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(%en-US%,null).json @@ -0,0 +1,55 @@ +{ + "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": "Sat, 21 Nov 2020 03:49:24 GMT", + "traceparent": "00-c98eb2515b58be409be49b324c66767c-39f2aa74ceb59847-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "adfa196010acb46ddc43efecdfdeb219", + "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": "Sat, 21 Nov 2020 03:49:24 GMT", + "MS-CV": "wuNVYpotcU\u002Bpx69CzCYwcw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0RI64XwAAAABXgZ\u002BKMGjgTrelgJs91rLBWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "245ms" + }, + "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 + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "1273186525" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(%en-US%,null)Async.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(%en-US%,null)Async.json new file mode 100644 index 000000000000..1f522153051a --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(%en-US%,null)Async.json @@ -0,0 +1,54 @@ +{ + "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": "Sat, 21 Nov 2020 03:50:12 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "405f74265e1c7b071f504354c58cc85a", + "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": "Sat, 21 Nov 2020 03:50:12 GMT", + "MS-CV": "9ELqO8BeKEer3WiheQsPDQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0dI64XwAAAACZgc18dSJBS7RbaPmYmOgrWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "251ms" + }, + "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 + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "1070407389" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(null,null).json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(null,null).json new file mode 100644 index 000000000000..b56f5980dda7 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(null,null).json @@ -0,0 +1,55 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Sat, 21 Nov 2020 03:49:23 GMT", + "traceparent": "00-b6d9c4e24cd02348b1b837363f7012f5-715bb60a837b7d4c-00", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "ffcf27462482bbff32e56f23453cd0bc", + "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": "Sat, 21 Nov 2020 03:49:24 GMT", + "MS-CV": "h1MG8AvZgESnQ8vLQ2\u002Bl5A.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0Q464XwAAAABhWqP0\u002BsJoQ4uUZtExUMiaWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "254ms" + }, + "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 + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "1774308574" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(null,null)Async.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(null,null)Async.json new file mode 100644 index 000000000000..6c1566075b8d --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetPlanGroups(null,null)Async.json @@ -0,0 +1,54 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Sat, 21 Nov 2020 03:50:12 GMT", + "User-Agent": "azsdk-net-Communication.Administration/1.0.0-alpha.20201120.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "60e8b001ad62437848f2cdecbe870dd5", + "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": "Sat, 21 Nov 2020 03:50:12 GMT", + "MS-CV": "\u002BPFR2vtGB0mzjt/0kzABdA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0dI64XwAAAAD7HXFviwexTZnTK1zQ\u002BetBWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "264ms" + }, + "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 + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "1803413721" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Common/tests/CommunicationRecordedTestSanitizer.cs b/sdk/communication/Azure.Communication.Common/tests/CommunicationRecordedTestSanitizer.cs index 7110d9077701..28b521acd38c 100644 --- a/sdk/communication/Azure.Communication.Common/tests/CommunicationRecordedTestSanitizer.cs +++ b/sdk/communication/Azure.Communication.Common/tests/CommunicationRecordedTestSanitizer.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. + using System.Collections.Generic; +using System.Net.NetworkInformation; using System.Text.RegularExpressions; using Azure.Core; using Azure.Core.TestFramework; @@ -9,14 +11,20 @@ namespace Azure.Communication.Pipeline { public class CommunicationRecordedTestSanitizer : RecordedTestSanitizer { - private static readonly Regex s_azureResourceRegEx = new Regex(@"[^/]+?(?=(.communication.azure))", RegexOptions.Compiled); - private static readonly Regex s_identityInRouteRegEx = new Regex(@"(?<=identities/)([^/]+)", RegexOptions.Compiled); + private static readonly Regex _azureResourceRegEx = new Regex(@"[^/]+?(?=(.communication.azure))", RegexOptions.Compiled); + private static readonly Regex _identityInRouteRegEx = new Regex(@"(?<=identities/)([^/]+)", RegexOptions.Compiled); + private static readonly Regex _phoneNumberRegEx = new Regex(@"[\\+]?[0-9]{11,15}", RegexOptions.Compiled); + private static readonly Regex _guidRegEx = new Regex(@"(\{){0,1}[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}(\}){0,1}", RegexOptions.Compiled); + internal const string ConnectionStringEnvironmentVariableName = "COMMUNICATION_CONNECTION_STRING"; public CommunicationRecordedTestSanitizer() : base() { JsonPathSanitizers.Add("$..token"); JsonPathSanitizers.Add("$..id"); + JsonPathSanitizers.Add("$..phonePlanId"); + JsonPathSanitizers.Add("$..phonePlanGroupId"); + JsonPathSanitizers.Add("$..phonePlanIds[:]"); } public override void SanitizeHeaders(IDictionary headers) @@ -31,6 +39,14 @@ public override void SanitizeHeaders(IDictionary headers) } } + public override string SanitizeTextBody(string contentType, string body) + { + body = base.SanitizeTextBody(contentType, body); + body = _phoneNumberRegEx.Replace(body, SanitizeValue); + + return body; + } + public override string SanitizeVariable(string variableName, string environmentVariableValue) => variableName switch { @@ -38,7 +54,7 @@ public override string SanitizeVariable(string variableName, string environmentV _ => base.SanitizeVariable(variableName, environmentVariableValue) }; - private static string SanitizeAzureResource(string uri) => s_azureResourceRegEx.Replace(uri, SanitizeValue).ToLower(); + private static string SanitizeAzureResource(string uri) => _azureResourceRegEx.Replace(uri, SanitizeValue.ToLower()); internal static string SanitizeConnectionString(string connectionString) { @@ -54,6 +70,9 @@ internal static string SanitizeConnectionString(string connectionString) } public override string SanitizeUri(string uri) - => SanitizeAzureResource(s_identityInRouteRegEx.Replace(uri, SanitizeValue).ToLower()); + { + uri = SanitizeAzureResource(_identityInRouteRegEx.Replace(uri, SanitizeValue.ToLower())); + return _guidRegEx.Replace(uri, SanitizeValue); + } } }