From 79b322e2ccb03c259ea70e400709496aff93e070 Mon Sep 17 00:00:00 2001 From: Pavel Prystinka Date: Tue, 24 Nov 2020 09:36:14 -0800 Subject: [PATCH 1/9] Use NextLink for paging --- .../src/PhoneNumberAdministrationClient.cs | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/sdk/communication/Azure.Communication.Administration/src/PhoneNumberAdministrationClient.cs b/sdk/communication/Azure.Communication.Administration/src/PhoneNumberAdministrationClient.cs index ef55493e35010..476e03a8aaca9 100644 --- a/sdk/communication/Azure.Communication.Administration/src/PhoneNumberAdministrationClient.cs +++ b/sdk/communication/Azure.Communication.Administration/src/PhoneNumberAdministrationClient.cs @@ -68,7 +68,7 @@ public virtual AsyncPageable GetAllPhoneNumbersAsync(string return PageResponseEnumerator.CreateAsyncEnumerable(async s => { Response response = await RestClient.GetAllPhoneNumbersAsync(locale, skip: null, take: null, cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.PhoneNumbers, continuationToken: null!, response.GetRawResponse()); + return Page.FromValues(response.Value.PhoneNumbers, response.Value.NextLink, response.GetRawResponse()); }); } catch (Exception ex) @@ -90,7 +90,7 @@ public virtual Pageable GetAllPhoneNumbers(string? locale = try { Response response = RestClient.GetAllPhoneNumbers(locale, skip: null, take: null, cancellationToken); - return PageResponseEnumerator.CreateEnumerable(s => Page.FromValues(response.Value.PhoneNumbers, continuationToken: null!, response.GetRawResponse())); + return PageResponseEnumerator.CreateEnumerable(s => Page.FromValues(response.Value.PhoneNumbers, response.Value.NextLink, response.GetRawResponse())); } catch (Exception ex) { @@ -232,7 +232,7 @@ public virtual AsyncPageable GetAllSupportedCountriesAsync(s return PageResponseEnumerator.CreateAsyncEnumerable(async s => { Response response = await RestClient.GetAllSupportedCountriesAsync(locale, skip: null, take: null, cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Countries, continuationToken: null!, response.GetRawResponse()); + return Page.FromValues(response.Value.Countries, response.Value.NextLink, response.GetRawResponse()); }); } catch (Exception ex) @@ -253,7 +253,7 @@ public virtual Pageable GetAllSupportedCountries(string? loc try { Response response = RestClient.GetAllSupportedCountries(locale, skip: null, take: null, cancellationToken); - return PageResponseEnumerator.CreateEnumerable(s => Page.FromValues(response.Value.Countries, continuationToken: null!, response.GetRawResponse())); + return PageResponseEnumerator.CreateEnumerable(s => Page.FromValues(response.Value.Countries, response.Value.NextLink, response.GetRawResponse())); } catch (Exception ex) { @@ -393,7 +393,7 @@ public virtual AsyncPageable GetPhonePlanGroupsAsync(string coun return PageResponseEnumerator.CreateAsyncEnumerable(async s => { Response response = await RestClient.GetPhonePlanGroupsAsync(countryCode, locale, includeRateInformation, skip: null, take: null, cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.PhonePlanGroupsValue, continuationToken: null!, response.GetRawResponse()); + return Page.FromValues(response.Value.PhonePlanGroupsValue, response.Value.NextLink, response.GetRawResponse()); }); } catch (Exception ex) @@ -416,7 +416,7 @@ public virtual Pageable GetPhonePlanGroups(string countryCode, s try { Response response = RestClient.GetPhonePlanGroups(countryCode, locale, includeRateInformation, skip: null, take: null, cancellationToken); - return PageResponseEnumerator.CreateEnumerable(s => Page.FromValues(response.Value.PhonePlanGroupsValue, continuationToken: null!, response.GetRawResponse())); + return PageResponseEnumerator.CreateEnumerable(s => Page.FromValues(response.Value.PhonePlanGroupsValue, response.Value.NextLink, response.GetRawResponse())); } catch (Exception ex) { @@ -440,7 +440,7 @@ public virtual AsyncPageable GetPhonePlansAsync(string countryCode, s return PageResponseEnumerator.CreateAsyncEnumerable(async s => { Response response = await RestClient.GetPhonePlansAsync(countryCode, phonePlanGroupId, locale, skip: null, take: null, cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.PhonePlans, continuationToken: null!, response.GetRawResponse()); + return Page.FromValues(response.Value.PhonePlans, response.Value.NextLink, response.GetRawResponse()); }); } catch (Exception ex) @@ -463,7 +463,7 @@ public virtual Pageable GetPhonePlans(string countryCode, string phon try { Response response = RestClient.GetPhonePlans(countryCode, phonePlanGroupId, locale, skip: null, take: null, cancellationToken); - return PageResponseEnumerator.CreateEnumerable(s => Page.FromValues(response.Value.PhonePlans, continuationToken: null!, response.GetRawResponse())); + return PageResponseEnumerator.CreateEnumerable(s => Page.FromValues(response.Value.PhonePlans, response.Value.NextLink, response.GetRawResponse())); } catch (Exception ex) { @@ -614,7 +614,7 @@ public virtual AsyncPageable GetAllReleasesAsync(Cancellation return PageResponseEnumerator.CreateAsyncEnumerable(async s => { Response response = await RestClient.GetAllReleasesAsync(skip: null, take: null, cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Entities, continuationToken: null!, response.GetRawResponse()); + return Page.FromValues(response.Value.Entities, response.Value.NextLink, response.GetRawResponse()); }); } catch (Exception ex) @@ -634,7 +634,7 @@ public virtual Pageable GetAllReleases(CancellationToken canc try { Response response = RestClient.GetAllReleases(skip: null, take: null, cancellationToken); - return PageResponseEnumerator.CreateEnumerable(s => Page.FromValues(response.Value.Entities, continuationToken: null!, response.GetRawResponse())); + return PageResponseEnumerator.CreateEnumerable(s => Page.FromValues(response.Value.Entities, response.Value.NextLink, response.GetRawResponse())); } catch (Exception ex) { @@ -741,7 +741,7 @@ public virtual AsyncPageable GetAllReservationsAsync(Cancella return PageResponseEnumerator.CreateAsyncEnumerable(async s => { Response response = await RestClient.GetAllSearchesAsync(skip: null, take: null, cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Entities, continuationToken: null!, response.GetRawResponse()); + return Page.FromValues(response.Value.Entities, response.Value.NextLink, response.GetRawResponse()); }); } catch (Exception ex) @@ -761,7 +761,7 @@ public virtual Pageable GetAllReservations(CancellationToken try { Response response = RestClient.GetAllSearches(skip: null, take: null, cancellationToken); - return PageResponseEnumerator.CreateEnumerable(s => Page.FromValues(response.Value.Entities, continuationToken: null!, response.GetRawResponse())); + return PageResponseEnumerator.CreateEnumerable(s => Page.FromValues(response.Value.Entities, response.Value.NextLink, response.GetRawResponse())); } catch (Exception ex) { From b8f6abb95f2a436d24d1cd67eca4998086cd36a8 Mon Sep 17 00:00:00 2001 From: Pavel Prystinka Date: Wed, 25 Nov 2020 09:42:07 -0800 Subject: [PATCH 2/9] update change log --- .../Azure.Communication.Administration/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/communication/Azure.Communication.Administration/CHANGELOG.md b/sdk/communication/Azure.Communication.Administration/CHANGELOG.md index e6e324e9f1623..6396d6db163d8 100644 --- a/sdk/communication/Azure.Communication.Administration/CHANGELOG.md +++ b/sdk/communication/Azure.Communication.Administration/CHANGELOG.md @@ -3,6 +3,7 @@ ## 1.0.0-beta.3 (Unreleased) ### Added - Support for mocking all client methods that use models with internal constructors +- Fixed issue with paging results not pulling next pages ## 1.0.0-beta.2 (2020-10-06) Added phone number administration. For more information, please see the [README][read_me] and [documentation][documentation]. From ae7d46f287e2372c87ba7ee93334cd2b88549109 Mon Sep 17 00:00:00 2001 From: Pavel Prystinka Date: Wed, 25 Nov 2020 09:49:31 -0800 Subject: [PATCH 3/9] update change log --- .../Azure.Communication.Administration/CHANGELOG.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/communication/Azure.Communication.Administration/CHANGELOG.md b/sdk/communication/Azure.Communication.Administration/CHANGELOG.md index 6396d6db163d8..217c158928d90 100644 --- a/sdk/communication/Azure.Communication.Administration/CHANGELOG.md +++ b/sdk/communication/Azure.Communication.Administration/CHANGELOG.md @@ -3,7 +3,9 @@ ## 1.0.0-beta.3 (Unreleased) ### Added - Support for mocking all client methods that use models with internal constructors -- Fixed issue with paging results not pulling next pages + +### Fixed +- Issue with paging results not pulling next pages ## 1.0.0-beta.2 (2020-10-06) Added phone number administration. For more information, please see the [README][read_me] and [documentation][documentation]. From 101a251acfb3f76926fb88735083c63394fd9516 Mon Sep 17 00:00:00 2001 From: Pavel Prystinka Date: Wed, 25 Nov 2020 17:19:51 -0800 Subject: [PATCH 4/9] Use NextLink for paging --- .../CHANGELOG.md | 5 +- .../src/PhoneNumberAdministrationClient.cs | 101 +++++++++++++----- ...honeNumberAdministrationClientLiveTests.cs | 13 ++- 3 files changed, 92 insertions(+), 27 deletions(-) diff --git a/sdk/communication/Azure.Communication.Administration/CHANGELOG.md b/sdk/communication/Azure.Communication.Administration/CHANGELOG.md index 984001986570b..17eb14e5edaf0 100644 --- a/sdk/communication/Azure.Communication.Administration/CHANGELOG.md +++ b/sdk/communication/Azure.Communication.Administration/CHANGELOG.md @@ -2,6 +2,9 @@ ## 1.0.0-beta.4 (Unreleased) +### Fixed +- Issue with paging results not pulling next pages + ## 1.0.0-beta.3 (2020-11-16) @@ -40,8 +43,6 @@ - Replaced `ReleasePhoneNumbersAsync` with `StartReleasePhoneNumbersAsync` which returns a poller for the long-running operation. - Replaced `ReleasePhoneNumbers` with `StartReleasePhoneNumbers` which is a long-running operation. -### Fixed -- Issue with paging results not pulling next pages ## 1.0.0-beta.2 (2020-10-06) Added phone number administration. For more information, please see the [README][read_me] and [documentation][documentation]. diff --git a/sdk/communication/Azure.Communication.Administration/src/PhoneNumberAdministrationClient.cs b/sdk/communication/Azure.Communication.Administration/src/PhoneNumberAdministrationClient.cs index 476e03a8aaca9..2cbdf928b6a57 100644 --- a/sdk/communication/Azure.Communication.Administration/src/PhoneNumberAdministrationClient.cs +++ b/sdk/communication/Azure.Communication.Administration/src/PhoneNumberAdministrationClient.cs @@ -65,9 +65,12 @@ public virtual AsyncPageable GetAllPhoneNumbersAsync(string try { - return PageResponseEnumerator.CreateAsyncEnumerable(async s => + return PageResponseEnumerator.CreateAsyncEnumerable(async nextLink => { - Response response = await RestClient.GetAllPhoneNumbersAsync(locale, skip: null, take: null, cancellationToken).ConfigureAwait(false); + Response response = string.IsNullOrEmpty(nextLink) + ? await RestClient.GetAllPhoneNumbersAsync(locale, skip: null, take: null, cancellationToken).ConfigureAwait(false) + : await RestClient.GetAllPhoneNumbersNextPageAsync(nextLink, locale, skip: null, take: null, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.PhoneNumbers, response.Value.NextLink, response.GetRawResponse()); }); } @@ -89,8 +92,14 @@ public virtual Pageable GetAllPhoneNumbers(string? locale = try { - Response response = RestClient.GetAllPhoneNumbers(locale, skip: null, take: null, cancellationToken); - return PageResponseEnumerator.CreateEnumerable(s => Page.FromValues(response.Value.PhoneNumbers, response.Value.NextLink, response.GetRawResponse())); + return PageResponseEnumerator.CreateEnumerable(nextLink => + { + Response response = string.IsNullOrEmpty(nextLink) + ? RestClient.GetAllPhoneNumbers(locale, skip: null, take: null, cancellationToken) + : RestClient.GetAllPhoneNumbersNextPage(nextLink, locale, skip: null, take: null, cancellationToken); + + return Page.FromValues(response.Value.PhoneNumbers, response.Value.NextLink, response.GetRawResponse()); + }); } catch (Exception ex) { @@ -229,9 +238,12 @@ public virtual AsyncPageable GetAllSupportedCountriesAsync(s scope.Start(); try { - return PageResponseEnumerator.CreateAsyncEnumerable(async s => + return PageResponseEnumerator.CreateAsyncEnumerable(async nextLink => { - Response response = await RestClient.GetAllSupportedCountriesAsync(locale, skip: null, take: null, cancellationToken).ConfigureAwait(false); + Response response = string.IsNullOrEmpty(nextLink) + ? await RestClient.GetAllSupportedCountriesAsync(locale, skip: null, take: null, cancellationToken).ConfigureAwait(false) + : await RestClient.GetAllSupportedCountriesNextPageAsync(nextLink, locale, skip: null, take: null, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Countries, response.Value.NextLink, response.GetRawResponse()); }); } @@ -252,8 +264,14 @@ public virtual Pageable GetAllSupportedCountries(string? loc scope.Start(); try { - Response response = RestClient.GetAllSupportedCountries(locale, skip: null, take: null, cancellationToken); - return PageResponseEnumerator.CreateEnumerable(s => Page.FromValues(response.Value.Countries, response.Value.NextLink, response.GetRawResponse())); + return PageResponseEnumerator.CreateEnumerable(nextLink => + { + Response response = string.IsNullOrEmpty(nextLink) + ? RestClient.GetAllSupportedCountries(locale, skip: null, take: null, cancellationToken) + : RestClient.GetAllSupportedCountriesNextPage(nextLink, locale, skip: null, take: null, cancellationToken); + + return Page.FromValues(response.Value.Countries, response.Value.NextLink, response.GetRawResponse()); + }); } catch (Exception ex) { @@ -390,9 +408,12 @@ public virtual AsyncPageable GetPhonePlanGroupsAsync(string coun scope.Start(); try { - return PageResponseEnumerator.CreateAsyncEnumerable(async s => + return PageResponseEnumerator.CreateAsyncEnumerable(async nextLink => { - Response response = await RestClient.GetPhonePlanGroupsAsync(countryCode, locale, includeRateInformation, skip: null, take: null, cancellationToken).ConfigureAwait(false); + Response response = string.IsNullOrEmpty(nextLink) + ? await RestClient.GetPhonePlanGroupsAsync(countryCode, locale, includeRateInformation, skip: null, take: null, cancellationToken).ConfigureAwait(false) + : await RestClient.GetPhonePlanGroupsNextPageAsync(nextLink, countryCode, locale, includeRateInformation, skip: null, take: null, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.PhonePlanGroupsValue, response.Value.NextLink, response.GetRawResponse()); }); } @@ -415,8 +436,14 @@ public virtual Pageable GetPhonePlanGroups(string countryCode, s scope.Start(); try { - Response response = RestClient.GetPhonePlanGroups(countryCode, locale, includeRateInformation, skip: null, take: null, cancellationToken); - return PageResponseEnumerator.CreateEnumerable(s => Page.FromValues(response.Value.PhonePlanGroupsValue, response.Value.NextLink, response.GetRawResponse())); + return PageResponseEnumerator.CreateEnumerable(nextLink => + { + Response response = string.IsNullOrEmpty(nextLink) + ? RestClient.GetPhonePlanGroups(countryCode, locale, includeRateInformation, skip: null, take: null, cancellationToken) + : RestClient.GetPhonePlanGroupsNextPage(nextLink, countryCode, locale, includeRateInformation, skip: null, take: null, cancellationToken); + + return Page.FromValues(response.Value.PhonePlanGroupsValue, response.Value.NextLink, response.GetRawResponse()); + }); } catch (Exception ex) { @@ -437,9 +464,12 @@ public virtual AsyncPageable GetPhonePlansAsync(string countryCode, s scope.Start(); try { - return PageResponseEnumerator.CreateAsyncEnumerable(async s => + return PageResponseEnumerator.CreateAsyncEnumerable(async nextLink => { - Response response = await RestClient.GetPhonePlansAsync(countryCode, phonePlanGroupId, locale, skip: null, take: null, cancellationToken).ConfigureAwait(false); + Response response = string.IsNullOrEmpty(nextLink) + ? await RestClient.GetPhonePlansAsync(countryCode, phonePlanGroupId, locale, skip: null, take: null, cancellationToken).ConfigureAwait(false) + : await RestClient.GetPhonePlansNextPageAsync(nextLink, countryCode, phonePlanGroupId, locale, skip: null, take: null, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.PhonePlans, response.Value.NextLink, response.GetRawResponse()); }); } @@ -462,8 +492,14 @@ public virtual Pageable GetPhonePlans(string countryCode, string phon scope.Start(); try { - Response response = RestClient.GetPhonePlans(countryCode, phonePlanGroupId, locale, skip: null, take: null, cancellationToken); - return PageResponseEnumerator.CreateEnumerable(s => Page.FromValues(response.Value.PhonePlans, response.Value.NextLink, response.GetRawResponse())); + return PageResponseEnumerator.CreateEnumerable(nextLink => + { + Response response = string.IsNullOrEmpty(nextLink) + ? RestClient.GetPhonePlans(countryCode, phonePlanGroupId, locale, skip: null, take: null, cancellationToken) + : RestClient.GetPhonePlansNextPage(nextLink, countryCode, phonePlanGroupId, locale, skip: null, take: null, cancellationToken); + + return Page.FromValues(response.Value.PhonePlans, response.Value.NextLink, response.GetRawResponse()); + }); } catch (Exception ex) { @@ -611,9 +647,11 @@ public virtual AsyncPageable GetAllReleasesAsync(Cancellation scope.Start(); try { - return PageResponseEnumerator.CreateAsyncEnumerable(async s => + return PageResponseEnumerator.CreateAsyncEnumerable(async nextLink => { - Response response = await RestClient.GetAllReleasesAsync(skip: null, take: null, cancellationToken).ConfigureAwait(false); + Response response = string.IsNullOrEmpty(nextLink) + ? await RestClient.GetAllReleasesAsync(skip: null, take: null, cancellationToken).ConfigureAwait(false) + : await RestClient.GetAllReleasesNextPageAsync(nextLink, skip: null, take: null, cancellationToken).ConfigureAwait(false); return Page.FromValues(response.Value.Entities, response.Value.NextLink, response.GetRawResponse()); }); } @@ -633,8 +671,14 @@ public virtual Pageable GetAllReleases(CancellationToken canc scope.Start(); try { - Response response = RestClient.GetAllReleases(skip: null, take: null, cancellationToken); - return PageResponseEnumerator.CreateEnumerable(s => Page.FromValues(response.Value.Entities, response.Value.NextLink, response.GetRawResponse())); + return PageResponseEnumerator.CreateEnumerable(nextLink => + { + Response response = string.IsNullOrEmpty(nextLink) + ? RestClient.GetAllReleases(skip: null, take: null, cancellationToken) + : RestClient.GetAllReleasesNextPage(nextLink, skip: null, take: null, cancellationToken); + + return Page.FromValues(response.Value.Entities, response.Value.NextLink, response.GetRawResponse()); + }); } catch (Exception ex) { @@ -738,9 +782,12 @@ public virtual AsyncPageable GetAllReservationsAsync(Cancella scope.Start(); try { - return PageResponseEnumerator.CreateAsyncEnumerable(async s => + return PageResponseEnumerator.CreateAsyncEnumerable(async nextLink => { - Response response = await RestClient.GetAllSearchesAsync(skip: null, take: null, cancellationToken).ConfigureAwait(false); + Response response = string.IsNullOrEmpty(nextLink) + ? await RestClient.GetAllSearchesAsync(skip: null, take: null, cancellationToken).ConfigureAwait(false) + : await RestClient.GetAllSearchesNextPageAsync(nextLink, skip: null, take: null, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Entities, response.Value.NextLink, response.GetRawResponse()); }); } @@ -760,8 +807,14 @@ public virtual Pageable GetAllReservations(CancellationToken scope.Start(); try { - Response response = RestClient.GetAllSearches(skip: null, take: null, cancellationToken); - return PageResponseEnumerator.CreateEnumerable(s => Page.FromValues(response.Value.Entities, response.Value.NextLink, response.GetRawResponse())); + return PageResponseEnumerator.CreateEnumerable(nextLink => + { + Response response = string.IsNullOrEmpty(nextLink) + ? RestClient.GetAllSearches(skip: null, take: null, cancellationToken) + : RestClient.GetAllSearchesNextPage(nextLink, skip: null, take: null, cancellationToken); + + return Page.FromValues(response.Value.Entities, response.Value.NextLink, response.GetRawResponse()); + }); } catch (Exception ex) { diff --git a/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs b/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs index dda0de9f98c47..eb19ced1c01b4 100644 --- a/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs +++ b/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs @@ -56,7 +56,18 @@ public async Task GetAllPhoneNumbers() var numbers = await numbersPagable.ToEnumerableAsync(); Assert.IsNotNull(numbers); - Assert.IsNotEmpty(numbers); + } + + [Test] + public async Task GetAllReservations() + { + var client = CreateClient(); + + var reservationsPagable = client.GetAllReservationsAsync(); + var reservations = await reservationsPagable.ToEnumerableAsync(); + + Assert.IsNotNull(reservations); + } [Test] From 41314666526b70b3f8c40e2a77cb375769df6399 Mon Sep 17 00:00:00 2001 From: Pavel Prystinka Date: Wed, 2 Dec 2020 16:44:05 -0800 Subject: [PATCH 5/9] fix tests --- ...honeNumberAdministrationClientLiveTests.cs | 3 +- ...umberAdministrationClientLiveTests.cs.orig | 243 +++++ .../GetAllReservations.json | 840 ++++++++++++++++ .../GetAllReservationsAsync.json | 839 ++++++++++++++++ .../PurchaseAndRelease.json | 918 ++++++++++-------- 5 files changed, 2443 insertions(+), 400 deletions(-) create mode 100644 sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs.orig create mode 100644 sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllReservations.json create mode 100644 sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllReservationsAsync.json diff --git a/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs b/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs index 0384b88b88974..d6adb84b5b2dc 100644 --- a/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs +++ b/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs @@ -66,8 +66,7 @@ public async Task GetAllReservations() var reservationsPagable = client.GetAllReservationsAsync(); var reservations = await reservationsPagable.ToEnumerableAsync(); - Assert.IsNotEmpty(numbers); - + Assert.IsNotEmpty(reservations); } [Test] diff --git a/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs.orig b/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs.orig new file mode 100644 index 0000000000000..11f7b96518482 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs.orig @@ -0,0 +1,243 @@ +// 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); +<<<<<<< HEAD + } + + [Test] + public async Task GetAllReservations() + { + var client = CreateClient(); + + var reservationsPagable = client.GetAllReservationsAsync(); + var reservations = await reservationsPagable.ToEnumerableAsync(); + + Assert.IsNotNull(reservations); + +======= +>>>>>>> master + } + + [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(); + const string countryCode = "US"; + + var pageablePhonePlanGroups = client.GetPhonePlanGroupsAsync(countryCode, locale, includeRateInformation); + + var phonePlanGroups = await pageablePhonePlanGroups.ToEnumerableAsync(); + + Assert.IsNotNull(phonePlanGroups); + Assert.IsNotEmpty(phonePlanGroups); + + 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(); + const string 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(); + const string 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) + { + if (!IncludePhoneNumberLiveTests) + Assert.Ignore("Include phone number live tests flag is off."); + + var client = CreateClient(); + const string 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) + { + if (!IncludePhoneNumberLiveTests) + Assert.Ignore("Include phone number live tests flag is off."); + + var client = CreateClient(); + const string 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/GetAllReservations.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllReservations.json new file mode 100644 index 0000000000000..d21a874180895 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllReservations.json @@ -0,0 +1,840 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Thu, 03 Dec 2020 00:32:02 GMT", + "Request-Id": "|9c71c2b1-400ed5b6231051f8.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "efda758c9b9b98f310099ae7bff2634c", + "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": "Thu, 03 Dec 2020 00:32:03 GMT", + "MS-CV": "XQEUF2NG3EqYrlrfoz8Lkw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0AzLIXwAAAAC4XsZNTp6ZS7oXYPpdY7N8WVZSMzBFREdFMDMxMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "756ms" + }, + "ResponseBody": { + "entities": [ + { + "id": "Sanitized", + "createdAt": "2020-12-03T00:07:44.0097537\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-28T00:20:13.5204421\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-27T23:59:07.4537938\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-27T23:45:03.532276\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-27T23:43:00.822146\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-27T23:40:17.915008\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T22:23:26.0417376\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T22:18:23.6663422\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T21:31:54.5724942\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T20:28:10.0047864\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T20:27:58.3517626\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T20:27:37.1056995\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T20:11:14.3969472\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T20:10:43.7238434\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T20:10:31.1549196\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T20:09:40.6184418\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T20:09:28.9847826\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T20:08:12.9062166\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T20:07:50.1146343\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T20:07:37.6784433\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T19:13:32.7490866\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-25T19:52:13.7703404\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-25T19:07:32.7694233\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-25T19:05:12.0987124\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-25T19:04:09.3492988\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-25T19:03:15.3517729\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-25T18:58:18.3912427\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-25T18:56:52.1110148\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-25T18:54:36.9374171\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-25T18:51:16.4637738\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-24T22:43:10.798213\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-24T22:42:53.5062009\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-24T22:42:06.9712203\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-24T18:32:00.4458507\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-24T18:23:12.6210125\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-24T17:48:47.1454435\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-23T22:15:10.79994\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-23T22:11:32.1671461\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-23T22:08:38.6944708\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-23T18:15:26.8148085\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-23T18:11:24.3508956\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-23T18:08:00.25568\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-23T18:04:09.7690713\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-23T16:54:16.382654\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:49:57.5312735\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:49:49.2036786\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:49:39.6031717\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:49:30.1971823\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:48:50.867594\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:48:40.3605889\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:48:30.7398481\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:48:18.6215732\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:42:56.0727888\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:42:46.2544261\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:42:35.1673119\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:42:23.8873193\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:41:49.9029295\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:41:40.8170962\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:41:30.4511749\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:41:18.2469511\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:35:04.1324121\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:34:49.0011269\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:34:38.4255959\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:34:27.4995345\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:29:35.3407584\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:29:26.5114624\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:29:16.8568667\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:29:05.2978094\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:14:06.4641567\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:13:12.6865001\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-19T19:00:56.5779299\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-19T18:58:08.2213052\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-10T18:33:59.8957796\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-04T21:12:40.442796\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-03T18:43:25.5122041\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-30T17:05:25.1234287\u002B00:00", + "displayName": "search one", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-30T16:48:40.1420331\u002B00:00", + "displayName": "search one", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-30T16:48:19.0226776\u002B00:00", + "displayName": "search one", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-28T05:59:15.9051317\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-27T19:17:07.6818224\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-27T17:30:49.7787057\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-27T17:26:52.040194\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-27T17:11:45.5532425\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-27T07:11:46.7728484\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-27T07:09:01.147321\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Cancelled" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-26T17:53:43.5612498\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-20T18:03:57.1380371\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-20T18:03:44.5564062\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-20T17:55:04.0382658\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-20T17:53:42.9058498\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-20T17:53:39.4143177\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-19T17:17:33.7627997\u002B00:00", + "displayName": "testsearch20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-19T17:15:51.4942765\u002B00:00", + "displayName": "testsearch20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-19T17:14:31.1679871\u002B00:00", + "displayName": "testsearch20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-19T17:13:46.8606366\u002B00:00", + "displayName": "testsearch20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-19T17:12:28.8784651\u002B00:00", + "displayName": "testsearch20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-19T17:11:39.8097882\u002B00:00", + "displayName": "testsearch20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-19T17:08:52.058767\u002B00:00", + "displayName": "testsearch20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + } + ], + "nextLink": null + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "1140872635" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllReservationsAsync.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllReservationsAsync.json new file mode 100644 index 0000000000000..92915221af861 --- /dev/null +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllReservationsAsync.json @@ -0,0 +1,839 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Thu, 03 Dec 2020 00:32:56 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "bd4cfca3df36d1e6327be1471a6ffb27", + "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": "Thu, 03 Dec 2020 00:32:56 GMT", + "MS-CV": "YeSk8Q7ZaE2eV3sA2s3vFQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ODLIXwAAAAAI06t5MwrGS4Dtakw7bgpLWVZSMzBFREdFMDMyMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "798ms" + }, + "ResponseBody": { + "entities": [ + { + "id": "Sanitized", + "createdAt": "2020-12-03T00:07:44.0097537\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-12-01T00:48:42.8995901\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-28T00:20:13.5204421\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-27T23:59:07.4537938\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-27T23:45:03.532276\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-27T23:43:00.822146\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-27T23:40:17.915008\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T22:23:26.0417376\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T22:18:23.6663422\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T21:31:54.5724942\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T20:28:10.0047864\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T20:27:58.3517626\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T20:27:37.1056995\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T20:11:14.3969472\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T20:10:43.7238434\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T20:10:31.1549196\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T20:09:40.6184418\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T20:09:28.9847826\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T20:08:12.9062166\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T20:07:50.1146343\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T20:07:37.6784433\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-26T19:13:32.7490866\u002B00:00", + "displayName": "mysearch202009311", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-25T19:52:13.7703404\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-25T19:07:32.7694233\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-25T19:05:12.0987124\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-25T19:04:09.3492988\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-25T19:03:15.3517729\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-25T18:58:18.3912427\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-25T18:56:52.1110148\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-25T18:54:36.9374171\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-25T18:51:16.4637738\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-24T22:43:10.798213\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-24T22:42:53.5062009\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-24T22:42:06.9712203\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-24T18:32:00.4458507\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-24T18:23:12.6210125\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-24T17:48:47.1454435\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-23T22:15:10.79994\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-23T22:11:32.1671461\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-23T22:08:38.6944708\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-23T18:15:26.8148085\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-23T18:11:24.3508956\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-23T18:08:00.25568\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-23T18:04:09.7690713\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-23T16:54:16.382654\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:49:57.5312735\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:49:49.2036786\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:49:39.6031717\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:49:30.1971823\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:48:50.867594\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:48:40.3605889\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:48:30.7398481\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:48:18.6215732\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:42:56.0727888\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:42:46.2544261\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:42:35.1673119\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:42:23.8873193\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:41:49.9029295\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:41:40.8170962\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:41:30.4511749\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:41:18.2469511\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:35:04.1324121\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:34:49.0011269\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:34:38.4255959\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:34:27.4995345\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:29:35.3407584\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:29:26.5114624\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:29:16.8568667\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:29:05.2978094\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:14:06.4641567\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-21T03:13:12.6865001\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-19T19:00:56.5779299\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-19T18:58:08.2213052\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-10T18:33:59.8957796\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-04T21:12:40.442796\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-11-03T18:43:25.5122041\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-30T17:05:25.1234287\u002B00:00", + "displayName": "search one", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-30T16:48:40.1420331\u002B00:00", + "displayName": "search one", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-30T16:48:19.0226776\u002B00:00", + "displayName": "search one", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-28T05:59:15.9051317\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Expired" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-27T19:17:07.6818224\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-27T17:30:49.7787057\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-27T17:26:52.040194\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-27T17:11:45.5532425\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-27T07:11:46.7728484\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-27T07:09:01.147321\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Cancelled" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-26T17:53:43.5612498\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Success" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-20T18:03:57.1380371\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-20T18:03:44.5564062\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-20T17:55:04.0382658\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-20T17:53:42.9058498\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-20T17:53:39.4143177\u002B00:00", + "displayName": "testreservation20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-19T17:17:33.7627997\u002B00:00", + "displayName": "testsearch20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-19T17:15:51.4942765\u002B00:00", + "displayName": "testsearch20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-19T17:14:31.1679871\u002B00:00", + "displayName": "testsearch20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-19T17:13:46.8606366\u002B00:00", + "displayName": "testsearch20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-19T17:12:28.8784651\u002B00:00", + "displayName": "testsearch20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-19T17:11:39.8097882\u002B00:00", + "displayName": "testsearch20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + }, + { + "id": "Sanitized", + "createdAt": "2020-10-19T17:08:52.058767\u002B00:00", + "displayName": "testsearch20200014", + "quantity": 1, + "quantityObtained": 0, + "status": "Error" + } + ], + "nextLink": null + } + } + ], + "Variables": { + "COMMUNICATION_CONNECTION_STRING": "endpoint=https://sanitized.communication.azure.com/;accesskey=Kg==;", + "RandomSeed": "486063139" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/PurchaseAndRelease.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/PurchaseAndRelease.json index 002970e47f186..912349dc1b3d0 100644 --- a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/PurchaseAndRelease.json +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/Sample2_PhoneNumberAdministrationClient/PurchaseAndRelease.json @@ -6,10 +6,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:50:11 GMT", - "Request-Id": "|b1964b04-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:07:37 GMT", + "Request-Id": "|6f8de629-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "15f81a50e021d5ba06758ae44d011507", @@ -20,11 +20,11 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:11 GMT", - "MS-CV": "8wQwO5v03UivZrQmK7ynFQ.0", + "Date": "Thu, 03 Dec 2020 00:07:39 GMT", + "MS-CV": "nsiOnmnZ\u002BkGUtq1hcITshQ.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0RJPFXwAAAAA\u002BQav4kCbRTb08AZxF/PUJWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "274ms" + "X-Azure-Ref": "0SizIXwAAAABpuYPlHJFJRovgAQgo/WxhWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "2126ms" }, "ResponseBody": { "phonePlanGroups": [ @@ -51,15 +51,15 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/Sanitized/phoneplans?locale=en-US\u0026api-version=2020-07-20-preview1", + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?locale=en-US\u0026api-version=2020-07-20-preview1", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:50:12 GMT", - "Request-Id": "|b1964b05-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:07:41 GMT", + "Request-Id": "|6f8de62a-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "0956f6d0f783654d0d1d7d5131cfbf68", @@ -70,11 +70,212 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:11 GMT", - "MS-CV": "IYA6B1D1H02iHx46HQsoJA.0", + "Date": "Thu, 03 Dec 2020 00:07:41 GMT", + "MS-CV": "npxWLfBvD0OObrkGdkHwVA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0TCzIXwAAAAC734XtPcsTTYh3IuUn4D9xWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "2128ms" + }, + "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": "Thu, 03 Dec 2020 00:07:43 GMT", + "Request-Id": "|6f8de62b-4803f071835a7fd8.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "096ce056e6a5ea056e02e4f02c7c63a7", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Dec 2020 00:07:42 GMT", + "MS-CV": "CTpVk\u002BO6UEGFyjlUhOBX4w.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0RJPFXwAAAAC2RQJvgVjuSI/utz8UoCGYWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "251ms" + "X-Azure-Ref": "0TizIXwAAAACaYwVKKXtLQbRdnsOTdlEfWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "322ms" + }, + "ResponseBody": { + "phonePlans": [ + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) \u0026 Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "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": [ + "InboundCalling", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only Sms - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only SMS (A2P) \u0026 Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "OutboundCalling", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only SMS (A2P) \u0026 Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "InboundCalling", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "ThirdPartyAppAssignment", + "OutboundCalling", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "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": "Thu, 03 Dec 2020 00:07:43 GMT", + "Request-Id": "|6f8de62c-4803f071835a7fd8.", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "f21e1f72d1d3593ccc9307036369a337", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Dec 2020 00:07:42 GMT", + "MS-CV": "T0gPHHHtP0e\u002ByoFOziLmaA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0TyzIXwAAAAAbygLV3K9FQbqI9XwaM2z2WVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "242ms" }, "ResponseBody": { "phonePlans": [ @@ -86,7 +287,6 @@ "833" ], "capabilities": [ - "Azure", "OutboundCalling", "ThirdPartyAppAssignment", "InboundA2PSms", @@ -103,7 +303,6 @@ "833" ], "capabilities": [ - "Azure", "InboundCalling", "ThirdPartyAppAssignment", "InboundA2PSms", @@ -120,7 +319,6 @@ "833" ], "capabilities": [ - "Azure", "ThirdPartyAppAssignment", "OutboundA2PSms", "TollFree" @@ -135,7 +333,6 @@ "833" ], "capabilities": [ - "Azure", "OutboundCalling", "ThirdPartyAppAssignment", "OutboundA2PSms", @@ -151,7 +348,6 @@ "833" ], "capabilities": [ - "Azure", "InboundCalling", "ThirdPartyAppAssignment", "OutboundA2PSms", @@ -167,7 +363,6 @@ "833" ], "capabilities": [ - "Azure", "ThirdPartyAppAssignment", "InboundA2PSms", "OutboundA2PSms", @@ -183,7 +378,6 @@ "833" ], "capabilities": [ - "Azure", "ThirdPartyAppAssignment", "OutboundCalling", "TollFree" @@ -198,7 +392,6 @@ "833" ], "capabilities": [ - "Azure", "ThirdPartyAppAssignment", "InboundCalling", "TollFree" @@ -217,13 +410,13 @@ "Authorization": "Sanitized", "Content-Length": "131", "Content-Type": "application/json", - "Date": "Tue, 01 Dec 2020 00:50:12 GMT", - "Request-Id": "|b1964b06-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:07:44 GMT", + "Request-Id": "|6f8de62d-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], - "x-ms-client-request-id": "096ce056e6a5ea056e02e4f02c7c63a7", + "x-ms-client-request-id": "6c8e21b50c95e961f16c9b81135c3891", "x-ms-content-sha256": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -239,14 +432,14 @@ "StatusCode": 201, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:13 GMT", - "MS-CV": "Lpf0IkRc\u002B061I5t8eFLcLA.0", + "Date": "Thu, 03 Dec 2020 00:07:44 GMT", + "MS-CV": "YcrSH5qP5USzJLWxX6HLXA.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0RJPFXwAAAACC/yPADWxKTqbRIPIMfUKrWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "1471ms" + "X-Azure-Ref": "0TyzIXwAAAADEN/sMUzi9TILIZ\u002B\u002BaxDZ5WVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "1152ms" }, "ResponseBody": { - "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227" + "searchId": "278d02bf-f03f-4b74-b0e2-dbb52f7eec6b" } }, { @@ -255,13 +448,13 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:50:16 GMT", - "Request-Id": "|b1964b07-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:07:47 GMT", + "Request-Id": "|6f8de62e-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], - "x-ms-client-request-id": "f21e1f72d1d3593ccc9307036369a337", + "x-ms-client-request-id": "11ded5b9ccb08495a4133d11df018605", "x-ms-content-sha256": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -269,16 +462,16 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:17 GMT", - "MS-CV": "Jzyj8e1P0EiMaZKbaIgSKg.0", + "Date": "Thu, 03 Dec 2020 00:07:46 GMT", + "MS-CV": "tO/W7EhZ30i0XrmeBBF91g.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0SJPFXwAAAAAvQPHskSnrSKO/j3xHDrjfWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "604ms" + "X-Azure-Ref": "0UizIXwAAAABZ9U/xFEQESIqma4lvJ5vmWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "300ms" }, "ResponseBody": { - "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "searchId": "278d02bf-f03f-4b74-b0e2-dbb52f7eec6b", "displayName": "My reservation", - "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "createdAt": "2020-12-03T00:07:44.0097537\u002B00:00", "description": "reservation description", "phonePlanIds": [ "Sanitized" @@ -287,7 +480,8 @@ "quantity": 1, "locationOptions": [], "status": "Pending", - "phoneNumbers": [] + "phoneNumbers": [], + "error": "NoError" } }, { @@ -296,13 +490,13 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:50:19 GMT", - "Request-Id": "|b1964b08-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:07:49 GMT", + "Request-Id": "|6f8de62f-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], - "x-ms-client-request-id": "6c8e21b50c95e961f16c9b81135c3891", + "x-ms-client-request-id": "0a3aac5ef7ed6612bd35016736ba456f", "x-ms-content-sha256": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -310,16 +504,16 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:19 GMT", - "MS-CV": "YmKNo1ernUO\u002BbdvXk/upuA.0", + "Date": "Thu, 03 Dec 2020 00:07:48 GMT", + "MS-CV": "xgEicVPaO0qkox7mm0uv\u002BQ.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0S5PFXwAAAAAjeDdxcGkeSLB94E4mDgpfWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "266ms" + "X-Azure-Ref": "0VSzIXwAAAAB4sFfvYJfjQ5rNAfQ3bXkEWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "379ms" }, "ResponseBody": { - "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "searchId": "278d02bf-f03f-4b74-b0e2-dbb52f7eec6b", "displayName": "My reservation", - "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "createdAt": "2020-12-03T00:07:44.0097537\u002B00:00", "description": "reservation description", "phonePlanIds": [ "Sanitized" @@ -328,7 +522,8 @@ "quantity": 1, "locationOptions": [], "status": "InProgress", - "phoneNumbers": [] + "phoneNumbers": [], + "error": "NoError" } }, { @@ -337,13 +532,13 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:50:21 GMT", - "Request-Id": "|b1964b09-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:07:52 GMT", + "Request-Id": "|6f8de630-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], - "x-ms-client-request-id": "11ded5b9ccb08495a4133d11df018605", + "x-ms-client-request-id": "8e49755b918be9868c09c781cf500aef", "x-ms-content-sha256": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -351,16 +546,16 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:21 GMT", - "MS-CV": "NzGbsl1iR0\u002BNKbxjG887iQ.0", + "Date": "Thu, 03 Dec 2020 00:07:51 GMT", + "MS-CV": "betI4XzFeESZ5a3eSgnEXQ.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0TZPFXwAAAABqC/WBxJb6R4QcBJ3Vs19yWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "498ms" + "X-Azure-Ref": "0VyzIXwAAAABexjfwbLG4To8ONVkIH5ozWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "324ms" }, "ResponseBody": { - "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "searchId": "278d02bf-f03f-4b74-b0e2-dbb52f7eec6b", "displayName": "My reservation", - "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "createdAt": "2020-12-03T00:07:44.0097537\u002B00:00", "description": "reservation description", "phonePlanIds": [ "Sanitized" @@ -372,7 +567,8 @@ "phoneNumbers": [ "Sanitized" ], - "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + "reservationExpiryDate": "2020-12-03T00:23:50.4088229\u002B00:00", + "error": "NoError" } }, { @@ -381,13 +577,13 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:50:24 GMT", - "Request-Id": "|b1964b0a-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:07:54 GMT", + "Request-Id": "|6f8de631-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], - "x-ms-client-request-id": "0a3aac5ef7ed6612bd35016736ba456f", + "x-ms-client-request-id": "662296e52d22c2a3c278547bcb2d4eea", "x-ms-content-sha256": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -395,16 +591,16 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:24 GMT", - "MS-CV": "eWpSpw4XSkiDqTB\u002B54iS4w.0", + "Date": "Thu, 03 Dec 2020 00:07:53 GMT", + "MS-CV": "X13kPHNbfkSpG2xqHO36Ww.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0UJPFXwAAAABvjSChvicxQIuboklIafUnWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "274ms" + "X-Azure-Ref": "0WizIXwAAAABS6Om7VaUzR4UlWwBx6QmbWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "465ms" }, "ResponseBody": { - "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "searchId": "278d02bf-f03f-4b74-b0e2-dbb52f7eec6b", "displayName": "My reservation", - "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "createdAt": "2020-12-03T00:07:44.0097537\u002B00:00", "description": "reservation description", "phonePlanIds": [ "Sanitized" @@ -416,7 +612,8 @@ "phoneNumbers": [ "Sanitized" ], - "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + "reservationExpiryDate": "2020-12-03T00:23:50.4088229\u002B00:00", + "error": "NoError" } }, { @@ -425,13 +622,13 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:50:24 GMT", - "Request-Id": "|b1964b0b-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:07:55 GMT", + "Request-Id": "|6f8de632-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], - "x-ms-client-request-id": "8e49755b918be9868c09c781cf500aef", + "x-ms-client-request-id": "69b6cdcdf7b7cd7a26517ee42f90966d", "x-ms-content-sha256": "Sanitized", "x-ms-return-client-request-id": "true" }, @@ -439,10 +636,10 @@ "StatusCode": 202, "ResponseHeaders": { "Content-Length": "0", - "Date": "Tue, 01 Dec 2020 00:50:25 GMT", - "MS-CV": "hHyScIIB1E6obEZ6KBP4rw.0", - "X-Azure-Ref": "0UJPFXwAAAADeQ8S//xhTTJN5w8YviUkrWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "814ms" + "Date": "Thu, 03 Dec 2020 00:07:55 GMT", + "MS-CV": "snLaA3KO0UaFp7VxBPB6Bw.0", + "X-Azure-Ref": "0WyzIXwAAAABMwjWHmkOnToFhg9hIN8Y\u002BWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "736ms" }, "ResponseBody": [] }, @@ -452,98 +649,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:50:27 GMT", - "Request-Id": "|b1964b0c-43682d54197ee275.", - "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "662296e52d22c2a3c278547bcb2d4eea", - "x-ms-content-sha256": "Sanitized", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:27 GMT", - "MS-CV": "qA1WexcYfkSaJtYLDbSr/Q.0", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0U5PFXwAAAABmsSHumkp9Rbp1Q74nKhCuWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "269ms" - }, - "ResponseBody": { - "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", - "displayName": "My reservation", - "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", - "description": "reservation description", - "phonePlanIds": [ - "Sanitized" - ], - "areaCode": "833", - "quantity": 1, - "locationOptions": [], - "status": "Completing", - "phoneNumbers": [ - "Sanitized" - ], - "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" - } - }, - { - "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:50:29 GMT", - "Request-Id": "|b1964b0d-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:07:58 GMT", + "Request-Id": "|6f8de633-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "69b6cdcdf7b7cd7a26517ee42f90966d", - "x-ms-content-sha256": "Sanitized", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:29 GMT", - "MS-CV": "15uwqXyookufVerypaPyCw.0", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0VZPFXwAAAACYJ0irPeZ5TLpcs0OjsmBVWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "355ms" - }, - "ResponseBody": { - "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", - "displayName": "My reservation", - "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", - "description": "reservation description", - "phonePlanIds": [ - "Sanitized" - ], - "areaCode": "833", - "quantity": 1, - "locationOptions": [], - "status": "Completing", - "phoneNumbers": [ - "Sanitized" - ], - "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" - } - }, - { - "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches/Sanitized?api-version=2020-07-20-preview1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:50:32 GMT", - "Request-Id": "|b1964b0e-43682d54197ee275.", - "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "a081112adf972d4dd286cc123d0b1d5e", @@ -554,16 +663,16 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:32 GMT", - "MS-CV": "vhMqXHH0S0WRYqP7NMuC4Q.0", + "Date": "Thu, 03 Dec 2020 00:07:58 GMT", + "MS-CV": "kB/arANLuEOz2ByESWIfBQ.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0WJPFXwAAAABOv7DP9/2uRqEwsNBRhMmuWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "380ms" + "X-Azure-Ref": "0XSzIXwAAAABmOdRsdC6HQp1bWHLtN145WVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "352ms" }, "ResponseBody": { - "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "searchId": "278d02bf-f03f-4b74-b0e2-dbb52f7eec6b", "displayName": "My reservation", - "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "createdAt": "2020-12-03T00:07:44.0097537\u002B00:00", "description": "reservation description", "phonePlanIds": [ "Sanitized" @@ -571,11 +680,12 @@ "areaCode": "833", "quantity": 1, "locationOptions": [], - "status": "PurchasePending", + "status": "Completing", "phoneNumbers": [ "Sanitized" ], - "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + "reservationExpiryDate": "2020-12-03T00:23:50.4088229\u002B00:00", + "error": "NoError" } }, { @@ -584,10 +694,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:50:34 GMT", - "Request-Id": "|b1964b0f-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:00 GMT", + "Request-Id": "|6f8de634-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "01b4ddbaa099ed371b5540d0afbf9331", @@ -598,16 +708,16 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:34 GMT", - "MS-CV": "fdbn3R\u002BUfkWPKkxQw\u002BGk5w.0", + "Date": "Thu, 03 Dec 2020 00:08:00 GMT", + "MS-CV": "fYiD7frwfUmUMYExMIYmww.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0WpPFXwAAAAA47sA6ySKTTLV\u002Br0shxVcBWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "306ms" + "X-Azure-Ref": "0YCzIXwAAAACOOwWc2OUNS7Mcgx8/gvMuWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "303ms" }, "ResponseBody": { - "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "searchId": "278d02bf-f03f-4b74-b0e2-dbb52f7eec6b", "displayName": "My reservation", - "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "createdAt": "2020-12-03T00:07:44.0097537\u002B00:00", "description": "reservation description", "phonePlanIds": [ "Sanitized" @@ -615,11 +725,12 @@ "areaCode": "833", "quantity": 1, "locationOptions": [], - "status": "PurchasePending", + "status": "Completing", "phoneNumbers": [ "Sanitized" ], - "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + "reservationExpiryDate": "2020-12-03T00:23:50.4088229\u002B00:00", + "error": "NoError" } }, { @@ -628,10 +739,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:50:37 GMT", - "Request-Id": "|b1964b10-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:03 GMT", + "Request-Id": "|6f8de635-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "b950e6e1aeabed52808896312b67901b", @@ -642,16 +753,16 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:37 GMT", - "MS-CV": "m135RTYVU0\u002BeqRaF2BhBpw.0", + "Date": "Thu, 03 Dec 2020 00:08:03 GMT", + "MS-CV": "rU14R0DpAkaS1/jNaUJefQ.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0XZPFXwAAAAAvTgGl9t2TRZK7zTnrKJQgWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "630ms" + "X-Azure-Ref": "0YizIXwAAAADafnzUX6NxTLp3OU9riHIxWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "857ms" }, "ResponseBody": { - "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "searchId": "278d02bf-f03f-4b74-b0e2-dbb52f7eec6b", "displayName": "My reservation", - "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "createdAt": "2020-12-03T00:07:44.0097537\u002B00:00", "description": "reservation description", "phonePlanIds": [ "Sanitized" @@ -663,7 +774,8 @@ "phoneNumbers": [ "Sanitized" ], - "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + "reservationExpiryDate": "2020-12-03T00:23:50.4088229\u002B00:00", + "error": "NoError" } }, { @@ -672,10 +784,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:50:39 GMT", - "Request-Id": "|b1964b11-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:06 GMT", + "Request-Id": "|6f8de636-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "51291f3395dc8ad4d99484429f7d7e13", @@ -686,16 +798,16 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:39 GMT", - "MS-CV": "/Cph2L6Rokm7eU2Q2xbQPw.0", + "Date": "Thu, 03 Dec 2020 00:08:06 GMT", + "MS-CV": "H8PZWRMDUkS9yNYguxlHqA.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0X5PFXwAAAADvbF4RLhobRKn1VTlVSEqPWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "592ms" + "X-Azure-Ref": "0ZSzIXwAAAAAOMEKVQJW6TaGXikDqgEmHWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "380ms" }, "ResponseBody": { - "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "searchId": "278d02bf-f03f-4b74-b0e2-dbb52f7eec6b", "displayName": "My reservation", - "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "createdAt": "2020-12-03T00:07:44.0097537\u002B00:00", "description": "reservation description", "phonePlanIds": [ "Sanitized" @@ -707,7 +819,8 @@ "phoneNumbers": [ "Sanitized" ], - "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + "reservationExpiryDate": "2020-12-03T00:23:50.4088229\u002B00:00", + "error": "NoError" } }, { @@ -716,10 +829,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:50:42 GMT", - "Request-Id": "|b1964b12-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:08 GMT", + "Request-Id": "|6f8de637-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "56319bf364ba0cb38bc681100a06c2b4", @@ -730,16 +843,16 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:42 GMT", - "MS-CV": "Avi4FZVr60eltX8AlnTT\u002BQ.0", + "Date": "Thu, 03 Dec 2020 00:08:08 GMT", + "MS-CV": "5YbgeURjXEKQtiGfnWILYg.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0YpPFXwAAAAC7PVOwI/rKR5Jmx9gNBzNgWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "594ms" + "X-Azure-Ref": "0aCzIXwAAAACZdw4Ew7mPSZvi\u002B4R7FKlFWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "307ms" }, "ResponseBody": { - "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "searchId": "278d02bf-f03f-4b74-b0e2-dbb52f7eec6b", "displayName": "My reservation", - "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "createdAt": "2020-12-03T00:07:44.0097537\u002B00:00", "description": "reservation description", "phonePlanIds": [ "Sanitized" @@ -751,7 +864,8 @@ "phoneNumbers": [ "Sanitized" ], - "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + "reservationExpiryDate": "2020-12-03T00:23:50.4088229\u002B00:00", + "error": "NoError" } }, { @@ -760,10 +874,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:50:45 GMT", - "Request-Id": "|b1964b13-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:11 GMT", + "Request-Id": "|6f8de638-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "8f9c25c442954c5512c6df172a0f4e02", @@ -774,16 +888,16 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:45 GMT", - "MS-CV": "KxaloHoTMk6mDoOpFcgYAw.0", + "Date": "Thu, 03 Dec 2020 00:08:10 GMT", + "MS-CV": "wCzgvzamQ0KFVD8CPQyYVg.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0ZZPFXwAAAAD9qYk/5Q8ER4SZsWLh2y2LWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "365ms" + "X-Azure-Ref": "0aizIXwAAAAA731Qo3BiOToDut6ECbFXKWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "354ms" }, "ResponseBody": { - "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "searchId": "278d02bf-f03f-4b74-b0e2-dbb52f7eec6b", "displayName": "My reservation", - "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "createdAt": "2020-12-03T00:07:44.0097537\u002B00:00", "description": "reservation description", "phonePlanIds": [ "Sanitized" @@ -795,7 +909,8 @@ "phoneNumbers": [ "Sanitized" ], - "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + "reservationExpiryDate": "2020-12-03T00:23:50.4088229\u002B00:00", + "error": "NoError" } }, { @@ -804,10 +919,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:50:47 GMT", - "Request-Id": "|b1964b14-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:13 GMT", + "Request-Id": "|6f8de639-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "903d830a3936cf606c1cc51513c37fd3", @@ -818,16 +933,16 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:47 GMT", - "MS-CV": "60m3JN1Wh0yWMlLicLUkxg.0", + "Date": "Thu, 03 Dec 2020 00:08:13 GMT", + "MS-CV": "\u002BxiBwwN9IUWkMf4QJSVe3w.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0Z5PFXwAAAADREfes6ddwQYI1w0ulcKIZWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "267ms" + "X-Azure-Ref": "0bSzIXwAAAAB32UQpYvvaTYUlJVy\u002BJLIjWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "299ms" }, "ResponseBody": { - "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "searchId": "278d02bf-f03f-4b74-b0e2-dbb52f7eec6b", "displayName": "My reservation", - "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "createdAt": "2020-12-03T00:07:44.0097537\u002B00:00", "description": "reservation description", "phonePlanIds": [ "Sanitized" @@ -839,7 +954,8 @@ "phoneNumbers": [ "Sanitized" ], - "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + "reservationExpiryDate": "2020-12-03T00:23:50.4088229\u002B00:00", + "error": "NoError" } }, { @@ -848,10 +964,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:50:49 GMT", - "Request-Id": "|b1964b15-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:16 GMT", + "Request-Id": "|6f8de63a-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "7a7dcfd1efe0b17d45e444f4849be27b", @@ -862,16 +978,16 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:49 GMT", - "MS-CV": "TCyWpDyd90CVkjKXKsQP/w.0", + "Date": "Thu, 03 Dec 2020 00:08:15 GMT", + "MS-CV": "fEYf3u0vP06BUanbE72EzQ.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0apPFXwAAAACh/kTFTzV8RKX54veilpnjWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "275ms" + "X-Azure-Ref": "0byzIXwAAAACixeMHFuWoTJLwU0AtSyLOWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "299ms" }, "ResponseBody": { - "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "searchId": "278d02bf-f03f-4b74-b0e2-dbb52f7eec6b", "displayName": "My reservation", - "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "createdAt": "2020-12-03T00:07:44.0097537\u002B00:00", "description": "reservation description", "phonePlanIds": [ "Sanitized" @@ -883,7 +999,8 @@ "phoneNumbers": [ "Sanitized" ], - "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + "reservationExpiryDate": "2020-12-03T00:23:50.4088229\u002B00:00", + "error": "NoError" } }, { @@ -892,10 +1009,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:50:52 GMT", - "Request-Id": "|b1964b16-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:18 GMT", + "Request-Id": "|6f8de63b-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "86067e7831c98b7ec4cd22787c3f394e", @@ -906,16 +1023,16 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:52 GMT", - "MS-CV": "LDm6Svp\u002BRUKvQtSr\u002Bus9DQ.0", + "Date": "Thu, 03 Dec 2020 00:08:18 GMT", + "MS-CV": "t/F6yFlkK023HSmzBAjJ/w.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0bJPFXwAAAAA76TflPqPjRqR78Oq8pLykWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "269ms" + "X-Azure-Ref": "0cizIXwAAAADtEhDmPR3pR6bNWngrXZcLWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "1001ms" }, "ResponseBody": { - "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "searchId": "278d02bf-f03f-4b74-b0e2-dbb52f7eec6b", "displayName": "My reservation", - "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "createdAt": "2020-12-03T00:07:44.0097537\u002B00:00", "description": "reservation description", "phonePlanIds": [ "Sanitized" @@ -927,7 +1044,8 @@ "phoneNumbers": [ "Sanitized" ], - "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + "reservationExpiryDate": "2020-12-03T00:23:50.4088229\u002B00:00", + "error": "NoError" } }, { @@ -936,10 +1054,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:50:54 GMT", - "Request-Id": "|b1964b17-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:21 GMT", + "Request-Id": "|6f8de63c-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "5a450c46d4911b22068b4a51f46b4ad0", @@ -950,16 +1068,16 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:54 GMT", - "MS-CV": "l52tq93uRU\u002BaKdkhm1OtJQ.0", + "Date": "Thu, 03 Dec 2020 00:08:21 GMT", + "MS-CV": "BeBtdn5rrEewuXBqf4K4AQ.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0bpPFXwAAAAAQuKmpp91/RrXaTj0b\u002Bh2EWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "270ms" + "X-Azure-Ref": "0dSzIXwAAAADd95BL5tIjTI2Q3x/LCWpoWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "366ms" }, "ResponseBody": { - "searchId": "3ec2fc26-20bb-4a22-9a22-0d6d2493e227", + "searchId": "278d02bf-f03f-4b74-b0e2-dbb52f7eec6b", "displayName": "My reservation", - "createdAt": "2020-12-01T00:50:13.1601214\u002B00:00", + "createdAt": "2020-12-03T00:07:44.0097537\u002B00:00", "description": "reservation description", "phonePlanIds": [ "Sanitized" @@ -971,7 +1089,8 @@ "phoneNumbers": [ "Sanitized" ], - "reservationExpiryDate": "2020-12-01T01:06:19.0234271\u002B00:00" + "reservationExpiryDate": "2020-12-03T00:23:50.4088229\u002B00:00", + "error": "NoError" } }, { @@ -980,10 +1099,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:50:55 GMT", - "Request-Id": "|b1964b18-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:22 GMT", + "Request-Id": "|6f8de63d-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "949c493af9bd9f0951f2b513cc043506", @@ -994,11 +1113,11 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:55 GMT", - "MS-CV": "DuhcIr3xT0aK7hP/CF/0Eg.0", + "Date": "Thu, 03 Dec 2020 00:08:22 GMT", + "MS-CV": "Fe2V4cz8802sJ78ACV/8Zg.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0b5PFXwAAAACX6PFmkJDYTbztEhvVQFZyWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "597ms" + "X-Azure-Ref": "0dSzIXwAAAADHH6cy\u002BreuQoaHUjHA\u002BKbsWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "549ms" }, "ResponseBody": { "phoneNumbers": [ @@ -1055,7 +1174,8 @@ "Azure", "ThirdPartyAppAssignment", "OutboundCalling", - "TollFree" + "TollFree", + "InboundCalling" ], "availableCapabilities": [ "Azure", @@ -1107,10 +1227,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:50:55 GMT", - "Request-Id": "|b1964b19-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:22 GMT", + "Request-Id": "|6f8de63e-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "78adf5ab8756a4e95cea803de72d9659", @@ -1121,11 +1241,11 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:55 GMT", - "MS-CV": "wGGZiQPOekGQKHau5eZKFg.0", + "Date": "Thu, 03 Dec 2020 00:08:22 GMT", + "MS-CV": "XaoGvDwoR0ioz0UmpQrltA.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0b5PFXwAAAADKYQygScEIQYEz5jmOgrLcWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "391ms" + "X-Azure-Ref": "0dizIXwAAAADI69EztaFgRIx6GChNdWVJWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "503ms" }, "ResponseBody": { "phoneNumbers": [ @@ -1182,7 +1302,8 @@ "Azure", "ThirdPartyAppAssignment", "OutboundCalling", - "TollFree" + "TollFree", + "InboundCalling" ], "availableCapabilities": [ "Azure", @@ -1236,10 +1357,10 @@ "Authorization": "Sanitized", "Content-Length": "30", "Content-Type": "application/json", - "Date": "Tue, 01 Dec 2020 00:50:56 GMT", - "Request-Id": "|b1964b1a-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:23 GMT", + "Request-Id": "|6f8de63f-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "323e5282a4a34d9102a5089f1f0f4f01", @@ -1254,14 +1375,14 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:56 GMT", - "MS-CV": "WawL0WcWakqFOhdoEHjuSw.0", + "Date": "Thu, 03 Dec 2020 00:08:23 GMT", + "MS-CV": "QYzOz/8jz0KMlnbhiWhz1Q.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0cJPFXwAAAAAcIG2ZYkVLS5UaJcsXnrYtWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "560ms" + "X-Azure-Ref": "0dyzIXwAAAABDrYEKIgOFTJ6rlADmIh/3WVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "883ms" }, "ResponseBody": { - "releaseId": "dcfbf51b-aebf-427e-8a34-987216e74d40" + "releaseId": "60b6088f-3f5f-41e3-af50-0b3d65be29c4" } }, { @@ -1270,10 +1391,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:50:58 GMT", - "Request-Id": "|b1964b1b-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:26 GMT", + "Request-Id": "|6f8de640-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "ffa54456d2beb27a5ff837d278ccb823", @@ -1284,16 +1405,16 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:50:58 GMT", - "MS-CV": "tRcx09\u002BWX0CRCOkZtMkfJA.0", + "Date": "Thu, 03 Dec 2020 00:08:25 GMT", + "MS-CV": "c61t6/nMd0\u002BCpzql1sRjFw.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0cpPFXwAAAAByMUNkui1XSav34im2Jk0lWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "189ms" + "X-Azure-Ref": "0eizIXwAAAAAU8tn5hY9PS5Comlj41FStWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "259ms" }, "ResponseBody": { - "releaseId": "dcfbf51b-aebf-427e-8a34-987216e74d40", - "createdAt": "2020-12-01T00:50:56.4260585\u002B00:00", - "status": "InProgress", + "releaseId": "60b6088f-3f5f-41e3-af50-0b3d65be29c4", + "createdAt": "2020-12-03T00:08:23.3390865\u002B00:00", + "status": "Pending", "phoneNumberReleaseStatusDetails": { "Sanitized": { "status": "Pending" @@ -1307,10 +1428,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:51:01 GMT", - "Request-Id": "|b1964b1c-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:28 GMT", + "Request-Id": "|6f8de641-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "79905c5c02c60663646075b07f4a854d", @@ -1321,15 +1442,15 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:51:00 GMT", - "MS-CV": "UeV7joY0GkiZ68Sno4IfCQ.0", + "Date": "Thu, 03 Dec 2020 00:08:28 GMT", + "MS-CV": "GYP6p3bPMUucWIBQA6siVA.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0dZPFXwAAAAA1Idd4drG5Q4qPscUIXJ9PWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "189ms" + "X-Azure-Ref": "0fCzIXwAAAAB7yLet\u002Bl4\u002BRaYJI88j4DVrWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "239ms" }, "ResponseBody": { - "releaseId": "dcfbf51b-aebf-427e-8a34-987216e74d40", - "createdAt": "2020-12-01T00:50:56.4260585\u002B00:00", + "releaseId": "60b6088f-3f5f-41e3-af50-0b3d65be29c4", + "createdAt": "2020-12-03T00:08:23.3390865\u002B00:00", "status": "InProgress", "phoneNumberReleaseStatusDetails": { "Sanitized": { @@ -1344,10 +1465,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:51:03 GMT", - "Request-Id": "|b1964b1d-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:31 GMT", + "Request-Id": "|6f8de642-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "a2e77f9b9788b09ad78bd3aa6dbfd435", @@ -1358,15 +1479,15 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:51:02 GMT", - "MS-CV": "VcPIBnjaqkmkb3nF3hCZXA.0", + "Date": "Thu, 03 Dec 2020 00:08:31 GMT", + "MS-CV": "N1AZCFn43UG0Ttji2cKoSw.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0d5PFXwAAAABh/8pzA40\u002BTq1PVLJl9wIKWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "202ms" + "X-Azure-Ref": "0fizIXwAAAAB768jIcr\u002BjRbiXiYZe\u002Bx1uWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "1174ms" }, "ResponseBody": { - "releaseId": "dcfbf51b-aebf-427e-8a34-987216e74d40", - "createdAt": "2020-12-01T00:50:56.4260585\u002B00:00", + "releaseId": "60b6088f-3f5f-41e3-af50-0b3d65be29c4", + "createdAt": "2020-12-03T00:08:23.3390865\u002B00:00", "status": "InProgress", "phoneNumberReleaseStatusDetails": { "Sanitized": { @@ -1381,10 +1502,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:51:05 GMT", - "Request-Id": "|b1964b1e-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:34 GMT", + "Request-Id": "|6f8de643-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "c243e4ecd57e543be19e9b5d5cc93315", @@ -1395,15 +1516,15 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:51:05 GMT", - "MS-CV": "tkcZrH82L0eCVOcKJ1xHBw.0", + "Date": "Thu, 03 Dec 2020 00:08:34 GMT", + "MS-CV": "ifFMypJLGkOYQ7QYGeYIGg.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0eZPFXwAAAAAaq/1cyipbQJ1yZ\u002BRl2Um6WVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "206ms" + "X-Azure-Ref": "0gizIXwAAAADNXSa37thlSKXNgkI98s0qWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "570ms" }, "ResponseBody": { - "releaseId": "dcfbf51b-aebf-427e-8a34-987216e74d40", - "createdAt": "2020-12-01T00:50:56.4260585\u002B00:00", + "releaseId": "60b6088f-3f5f-41e3-af50-0b3d65be29c4", + "createdAt": "2020-12-03T00:08:23.3390865\u002B00:00", "status": "InProgress", "phoneNumberReleaseStatusDetails": { "Sanitized": { @@ -1418,10 +1539,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:51:08 GMT", - "Request-Id": "|b1964b1f-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:37 GMT", + "Request-Id": "|6f8de644-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "f936ea7315e5c59bc1e0a23a2fb899a4", @@ -1432,19 +1553,19 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:51:07 GMT", - "MS-CV": "fWGBKsxJDEuklFts\u002B8XpNg.0", + "Date": "Thu, 03 Dec 2020 00:08:38 GMT", + "MS-CV": "ijLlFPb6BUuyjy3qI3BgdA.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0fJPFXwAAAABxkQMmBFVhS6CLD95Q2OQWWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "189ms" + "X-Azure-Ref": "0hCzIXwAAAABQZ\u002BFeqAjTRpa9s07NLwBHWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "1793ms" }, "ResponseBody": { - "releaseId": "dcfbf51b-aebf-427e-8a34-987216e74d40", - "createdAt": "2020-12-01T00:50:56.4260585\u002B00:00", + "releaseId": "60b6088f-3f5f-41e3-af50-0b3d65be29c4", + "createdAt": "2020-12-03T00:08:23.3390865\u002B00:00", "status": "InProgress", "phoneNumberReleaseStatusDetails": { "Sanitized": { - "status": "InProgress" + "status": "Pending" } } } @@ -1455,10 +1576,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:51:10 GMT", - "Request-Id": "|b1964b20-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:41 GMT", + "Request-Id": "|6f8de645-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "9ac3408bc207c6cf4393c1e9fc3d530d", @@ -1469,15 +1590,15 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:51:09 GMT", - "MS-CV": "NasuSvsWyEOCdJVQcMV5HQ.0", + "Date": "Thu, 03 Dec 2020 00:08:40 GMT", + "MS-CV": "faKPqAa2h0OZKfNcBk61UQ.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0fpPFXwAAAABf9OPsW/ZvRa9z4/dObKASWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "183ms" + "X-Azure-Ref": "0iCzIXwAAAAAzK5OsmLcdQ6CuAtLzvuHUWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "218ms" }, "ResponseBody": { - "releaseId": "dcfbf51b-aebf-427e-8a34-987216e74d40", - "createdAt": "2020-12-01T00:50:56.4260585\u002B00:00", + "releaseId": "60b6088f-3f5f-41e3-af50-0b3d65be29c4", + "createdAt": "2020-12-03T00:08:23.3390865\u002B00:00", "status": "InProgress", "phoneNumberReleaseStatusDetails": { "Sanitized": { @@ -1492,10 +1613,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:51:12 GMT", - "Request-Id": "|b1964b21-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:43 GMT", + "Request-Id": "|6f8de646-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "8336bd57db88d750497e019d32002428", @@ -1506,15 +1627,15 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:51:11 GMT", - "MS-CV": "2mwEsRGyhkKop9bcYHLwWw.0", + "Date": "Thu, 03 Dec 2020 00:08:42 GMT", + "MS-CV": "7P3uAzUNyEC\u002BYyOkXZBZuA.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0gJPFXwAAAAB9uhVkzs39T4FBc\u002BGLZU3MWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "183ms" + "X-Azure-Ref": "0iyzIXwAAAACFU8LbU3e1RJ11s0UDa2Q2WVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "257ms" }, "ResponseBody": { - "releaseId": "dcfbf51b-aebf-427e-8a34-987216e74d40", - "createdAt": "2020-12-01T00:50:56.4260585\u002B00:00", + "releaseId": "60b6088f-3f5f-41e3-af50-0b3d65be29c4", + "createdAt": "2020-12-03T00:08:23.3390865\u002B00:00", "status": "InProgress", "phoneNumberReleaseStatusDetails": { "Sanitized": { @@ -1529,10 +1650,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:51:14 GMT", - "Request-Id": "|b1964b22-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:46 GMT", + "Request-Id": "|6f8de647-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "1cd1f6049906b10d1b70b55254b2c983", @@ -1543,15 +1664,15 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:51:14 GMT", - "MS-CV": "kS\u002BAYBX2n0ipyDPk\u002Bse0aA.0", + "Date": "Thu, 03 Dec 2020 00:08:45 GMT", + "MS-CV": "GObzr27V30m\u002B9TAyW9bUkg.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0gpPFXwAAAACBIBlT7Dd7TooS49IprZMmWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "398ms" + "X-Azure-Ref": "0jSzIXwAAAAD1ZidbB7iASrw5dpa5/0VNWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "191ms" }, "ResponseBody": { - "releaseId": "dcfbf51b-aebf-427e-8a34-987216e74d40", - "createdAt": "2020-12-01T00:50:56.4260585\u002B00:00", + "releaseId": "60b6088f-3f5f-41e3-af50-0b3d65be29c4", + "createdAt": "2020-12-03T00:08:23.3390865\u002B00:00", "status": "InProgress", "phoneNumberReleaseStatusDetails": { "Sanitized": { @@ -1566,10 +1687,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:51:17 GMT", - "Request-Id": "|b1964b23-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:48 GMT", + "Request-Id": "|6f8de648-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "71e3948d1681b01cefec5189c0319343", @@ -1580,15 +1701,15 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:51:17 GMT", - "MS-CV": "Q1XzQsy6D0aDGVJZJhvxYg.0", + "Date": "Thu, 03 Dec 2020 00:08:47 GMT", + "MS-CV": "7SvgMMWx4U6PKZdK9Ic56w.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0hZPFXwAAAABZ0ZQpNJ/KT7UIqh1R8IYQWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "182ms" + "X-Azure-Ref": "0kCzIXwAAAABke7XaDkmYSK6\u002Ba17TpUhzWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "227ms" }, "ResponseBody": { - "releaseId": "dcfbf51b-aebf-427e-8a34-987216e74d40", - "createdAt": "2020-12-01T00:50:56.4260585\u002B00:00", + "releaseId": "60b6088f-3f5f-41e3-af50-0b3d65be29c4", + "createdAt": "2020-12-03T00:08:23.3390865\u002B00:00", "status": "InProgress", "phoneNumberReleaseStatusDetails": { "Sanitized": { @@ -1603,10 +1724,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:51:19 GMT", - "Request-Id": "|b1964b24-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:50 GMT", + "Request-Id": "|6f8de649-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "05e4986e376bbe07b085681725fe8397", @@ -1617,15 +1738,15 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:51:20 GMT", - "MS-CV": "aBW8TXNVekCVNtLqZW\u002BYRw.0", + "Date": "Thu, 03 Dec 2020 00:08:49 GMT", + "MS-CV": "szYYB7TVaEuJcNdMxDHY2Q.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0h5PFXwAAAABOLepuGZ\u002BlQpnupA2LMFZtWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "184ms" + "X-Azure-Ref": "0kizIXwAAAABx4meE\u002BQFmRrDbbgr/FYUPWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "197ms" }, "ResponseBody": { - "releaseId": "dcfbf51b-aebf-427e-8a34-987216e74d40", - "createdAt": "2020-12-01T00:50:56.4260585\u002B00:00", + "releaseId": "60b6088f-3f5f-41e3-af50-0b3d65be29c4", + "createdAt": "2020-12-03T00:08:23.3390865\u002B00:00", "status": "Complete", "phoneNumberReleaseStatusDetails": { "Sanitized": { @@ -1640,10 +1761,10 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Date": "Tue, 01 Dec 2020 00:51:20 GMT", - "Request-Id": "|b1964b25-43682d54197ee275.", + "Date": "Thu, 03 Dec 2020 00:08:51 GMT", + "Request-Id": "|6f8de64a-4803f071835a7fd8.", "User-Agent": [ - "azsdk-net-Communication.Administration/1.0.0-alpha.20201130.1", + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "9d107eb4b31deea6da212c194884f1e9", @@ -1654,11 +1775,11 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 01 Dec 2020 00:51:20 GMT", - "MS-CV": "czeShAHAZUSBefq/8uCy0g.0", + "Date": "Thu, 03 Dec 2020 00:08:50 GMT", + "MS-CV": "oLPjD0MaSk\u002BKoSDEhbwAkA.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0iJPFXwAAAAAQNKP83PuySL4O\u002Bzwzxr4DWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "355ms" + "X-Azure-Ref": "0kizIXwAAAADNrAAI0g6hRbnXgB6FXUucWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "431ms" }, "ResponseBody": { "phoneNumbers": [ @@ -1689,7 +1810,8 @@ "Azure", "ThirdPartyAppAssignment", "OutboundCalling", - "TollFree" + "TollFree", + "InboundCalling" ], "availableCapabilities": [ "Azure", From 7f7b42400d90507aa1d5cbf1c34acc512065c938 Mon Sep 17 00:00:00 2001 From: Pavel Prystinka Date: Wed, 2 Dec 2020 17:46:02 -0800 Subject: [PATCH 6/9] remove .orig file --- ...umberAdministrationClientLiveTests.cs.orig | 243 ------------------ 1 file changed, 243 deletions(-) delete mode 100644 sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs.orig diff --git a/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs.orig b/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs.orig deleted file mode 100644 index 11f7b96518482..0000000000000 --- a/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs.orig +++ /dev/null @@ -1,243 +0,0 @@ -// 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); -<<<<<<< HEAD - } - - [Test] - public async Task GetAllReservations() - { - var client = CreateClient(); - - var reservationsPagable = client.GetAllReservationsAsync(); - var reservations = await reservationsPagable.ToEnumerableAsync(); - - Assert.IsNotNull(reservations); - -======= ->>>>>>> master - } - - [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(); - const string countryCode = "US"; - - var pageablePhonePlanGroups = client.GetPhonePlanGroupsAsync(countryCode, locale, includeRateInformation); - - var phonePlanGroups = await pageablePhonePlanGroups.ToEnumerableAsync(); - - Assert.IsNotNull(phonePlanGroups); - Assert.IsNotEmpty(phonePlanGroups); - - 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(); - const string 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(); - const string 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) - { - if (!IncludePhoneNumberLiveTests) - Assert.Ignore("Include phone number live tests flag is off."); - - var client = CreateClient(); - const string 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) - { - if (!IncludePhoneNumberLiveTests) - Assert.Ignore("Include phone number live tests flag is off."); - - var client = CreateClient(); - const string 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); - } - } -} From 0fff2cb37024392d27e6a14737d565d15b960853 Mon Sep 17 00:00:00 2001 From: Pavel Prystinka Date: Thu, 3 Dec 2020 09:25:43 -0800 Subject: [PATCH 7/9] change test to expect not null for get all reservations --- .../PhoneNumberAdministrationClientLiveTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs b/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs index d6adb84b5b2dc..dcf51bb772b60 100644 --- a/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs +++ b/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs @@ -66,7 +66,7 @@ public async Task GetAllReservations() var reservationsPagable = client.GetAllReservationsAsync(); var reservations = await reservationsPagable.ToEnumerableAsync(); - Assert.IsNotEmpty(reservations); + Assert.IsNotNull(reservations); } [Test] From ee20b85a35d1e2849d4eaf10e80c49420d6615cf Mon Sep 17 00:00:00 2001 From: Pavel Prystinka Date: Thu, 3 Dec 2020 10:00:18 -0800 Subject: [PATCH 8/9] create a reservation so test can check at lease one reservation is returned by GetAllReservationsAsync --- ...honeNumberAdministrationClientLiveTests.cs | 21 +- .../GetAllReservations.json | 451 ++++++++++++++++- .../GetAllReservationsAsync.json | 475 +++++++++++++++++- 3 files changed, 909 insertions(+), 38 deletions(-) diff --git a/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs b/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs index dcf51bb772b60..3be81b40531e7 100644 --- a/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs +++ b/sdk/communication/Azure.Communication.Administration/tests/PhoneNumberAdministrationClient/PhoneNumberAdministrationClientLiveTests.cs @@ -61,12 +61,31 @@ public async Task GetAllPhoneNumbers() [Test] public async Task GetAllReservations() { + // Arrange var client = CreateClient(); + const string locale = "en-US"; + const string 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); + + // Act var reservationsPagable = client.GetAllReservationsAsync(); var reservations = await reservationsPagable.ToEnumerableAsync(); - Assert.IsNotNull(reservations); + Assert.IsNotEmpty(reservations); } [Test] diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllReservations.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllReservations.json index d21a874180895..7d9a08c2898f2 100644 --- a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllReservations.json +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllReservations.json @@ -1,13 +1,12 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches?api-version=2020-07-20-preview1", + "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": "Thu, 03 Dec 2020 00:32:02 GMT", - "Request-Id": "|9c71c2b1-400ed5b6231051f8.", + "Date": "Thu, 03 Dec 2020 17:56:07 GMT", "User-Agent": [ "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" @@ -20,14 +19,436 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Dec 2020 00:32:03 GMT", - "MS-CV": "XQEUF2NG3EqYrlrfoz8Lkw.0", + "Date": "Thu, 03 Dec 2020 17:56:07 GMT", + "MS-CV": "qHSPR7pdH0CrPCalV0Edyw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0tybJXwAAAAAWT37StQRVS5CQ8FJXxvnVWVZSMzBFREdFMDMxMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "572ms" + }, + "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": "Thu, 03 Dec 2020 17:56:08 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "a8ffd6f6d3f4c025622dae1920803bd1", + "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": "Thu, 03 Dec 2020 17:56:08 GMT", + "MS-CV": "QjAuzGU1w0uDu8aqU6jW6A.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0uCbJXwAAAACIxtlFdSXZR7NZFx\u002B3dbAyWVZSMzBFREdFMDMxMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "284ms" + }, + "ResponseBody": { + "phonePlans": [ + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) \u0026 Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "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": [ + "InboundCalling", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only Sms - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only SMS (A2P) \u0026 Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "OutboundCalling", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only SMS (A2P) \u0026 Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "InboundCalling", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "ThirdPartyAppAssignment", + "OutboundCalling", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "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": "Thu, 03 Dec 2020 17:56:08 GMT", + "traceparent": "00-fc3fd82f2ce7cd4f96226ea684bd28b2-c7529c6dcd7e4f42-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "2082b735011dea2aebb83611590bc969", + "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": "Thu, 03 Dec 2020 17:56:08 GMT", + "MS-CV": "1exyr5y3GUi8rKYtLtZyug.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0uCbJXwAAAAAHoaiA3prcSK8o3PAG3\u002BDRWVZSMzBFREdFMDMxMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "792ms" + }, + "ResponseBody": { + "searchId": "0342fa1f-b640-4003-9b1e-e50b16d79358" + } + }, + { + "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": "Thu, 03 Dec 2020 17:56:09 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "84fae31da0a3b9264f198c6eedd97790", + "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": "Thu, 03 Dec 2020 17:56:09 GMT", + "MS-CV": "RJV6yHuRDUCufOJZP2g\u002BvQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0uSbJXwAAAACTVG4hf1krQazp7xEHiOwzWVZSMzBFREdFMDMxMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "351ms" + }, + "ResponseBody": { + "searchId": "0342fa1f-b640-4003-9b1e-e50b16d79358", + "displayName": "My reservation", + "createdAt": "2020-12-03T17:56:08.5988208\u002B00:00", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Pending", + "phoneNumbers": [], + "error": "NoError" + } + }, + { + "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": "Thu, 03 Dec 2020 17:56:10 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "08b2c9ce4270f52eab15bc3c9c136656", + "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": "Thu, 03 Dec 2020 17:56:10 GMT", + "MS-CV": "9Fy0SRlE/0eo88EPvHFhcw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0uibJXwAAAACq/Q89TgvGRZ1nAG6E5TxZWVZSMzBFREdFMDMxMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "276ms" + }, + "ResponseBody": { + "searchId": "0342fa1f-b640-4003-9b1e-e50b16d79358", + "displayName": "My reservation", + "createdAt": "2020-12-03T17:56:08.5988208\u002B00:00", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Pending", + "phoneNumbers": [], + "error": "NoError" + } + }, + { + "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": "Thu, 03 Dec 2020 17:56:12 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "3cfb4563b685952e90c8d10474bcfd12", + "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": "Thu, 03 Dec 2020 17:56:12 GMT", + "MS-CV": "yfxOrPW6bUO/OC4cXIGj9Q.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0uybJXwAAAACfPCJs21X/QI8pVOzbwA0AWVZSMzBFREdFMDMxMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "441ms" + }, + "ResponseBody": { + "searchId": "0342fa1f-b640-4003-9b1e-e50b16d79358", + "displayName": "My reservation", + "createdAt": "2020-12-03T17:56:08.5988208\u002B00:00", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Pending", + "phoneNumbers": [], + "error": "NoError" + } + }, + { + "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": "Thu, 03 Dec 2020 17:56:13 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "9043a640c159daf8b405d88de3e91c3c", + "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": "Thu, 03 Dec 2020 17:56:14 GMT", + "MS-CV": "XR\u002BK6fvGXESqFgWtdHM2wQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0vSbJXwAAAABapyvHABd\u002BQaQlSOqkbADtWVZSMzBFREdFMDMxMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "1336ms" + }, + "ResponseBody": { + "searchId": "0342fa1f-b640-4003-9b1e-e50b16d79358", + "displayName": "My reservation", + "createdAt": "2020-12-03T17:56:08.5988208\u002B00:00", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Reserved", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-03T18:12:14.1597779\u002B00:00", + "error": "NoError" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Thu, 03 Dec 2020 17:56:15 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "a70a35b23bde180a9a1d77a7712a80ef", + "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": "Thu, 03 Dec 2020 17:56:14 GMT", + "MS-CV": "AYrhIn2ai0iy\u002BuNlazOfFw.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0AzLIXwAAAAC4XsZNTp6ZS7oXYPpdY7N8WVZSMzBFREdFMDMxMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "756ms" + "X-Azure-Ref": "0vibJXwAAAAD4Br06BW7fSKRRbFxZpUr0WVZSMzBFREdFMDMxMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "409ms" }, "ResponseBody": { "entities": [ + { + "id": "Sanitized", + "createdAt": "2020-12-03T17:56:08.5988208\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Reserved" + }, + { + "id": "Sanitized", + "createdAt": "2020-12-03T17:52:59.6872815\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Reserved" + }, { "id": "Sanitized", "createdAt": "2020-12-03T00:07:44.0097537\u002B00:00", @@ -811,22 +1232,6 @@ "quantity": 1, "quantityObtained": 0, "status": "Error" - }, - { - "id": "Sanitized", - "createdAt": "2020-10-19T17:11:39.8097882\u002B00:00", - "displayName": "testsearch20200014", - "quantity": 1, - "quantityObtained": 0, - "status": "Error" - }, - { - "id": "Sanitized", - "createdAt": "2020-10-19T17:08:52.058767\u002B00:00", - "displayName": "testsearch20200014", - "quantity": 1, - "quantityObtained": 0, - "status": "Error" } ], "nextLink": null diff --git a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllReservationsAsync.json b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllReservationsAsync.json index 92915221af861..70918fde8953c 100644 --- a/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllReservationsAsync.json +++ b/sdk/communication/Azure.Communication.Administration/tests/SessionRecords/PhoneNumberAdministrationClientLiveTests/GetAllReservationsAsync.json @@ -1,12 +1,12 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches?api-version=2020-07-20-preview1", + "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": "Thu, 03 Dec 2020 00:32:56 GMT", + "Date": "Thu, 03 Dec 2020 17:52:58 GMT", "User-Agent": [ "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" @@ -19,14 +19,469 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Dec 2020 00:32:56 GMT", - "MS-CV": "YeSk8Q7ZaE2eV3sA2s3vFQ.0", + "Date": "Thu, 03 Dec 2020 17:52:58 GMT", + "MS-CV": "iRj61/jb606myqva01tigw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0\u002BiXJXwAAAABWvUIWeXlYSZmUaOmgaiY6WVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "566ms" + }, + "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": "Thu, 03 Dec 2020 17:52:59 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "0a655044447ac3ffbace3ec9b3a21081", + "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": "Thu, 03 Dec 2020 17:52:59 GMT", + "MS-CV": "FUd0k6zwvUiTsBKStDY7UA.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0\u002ByXJXwAAAADHgSsh9/p0S6iOPTORgPVkWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "284ms" + }, + "ResponseBody": { + "phonePlans": [ + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) \u0026 Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "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": [ + "InboundCalling", + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only Sms - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only SMS (A2P) \u0026 Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "OutboundCalling", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only SMS (A2P) \u0026 Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "InboundCalling", + "ThirdPartyAppAssignment", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "2-way SMS (A2P) - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "ThirdPartyAppAssignment", + "InboundA2PSms", + "OutboundA2PSms", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Outbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "ThirdPartyAppAssignment", + "OutboundCalling", + "TollFree" + ], + "maximumSearchSize": 20 + }, + { + "phonePlanId": "Sanitized", + "localizedName": "Inbound Only PSTN - Toll Free", + "locationType": "NotRequired", + "areaCodes": [ + "833" + ], + "capabilities": [ + "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": "Thu, 03 Dec 2020 17:52:59 GMT", + "traceparent": "00-51719565c91f2e4093a7078d5e48d6c6-a52d4f11ae56ea46-00", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "d0db98e5a0f5585a3cc19b71857afda8", + "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": "Thu, 03 Dec 2020 17:53:00 GMT", + "MS-CV": "N6kE/7v3ZEWClZGQztDzGw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0\u002ByXJXwAAAABhgHIp3IpTSrkWZpgm1HbUWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "886ms" + }, + "ResponseBody": { + "searchId": "351b9b8a-7885-4a6c-8748-e332c416bcbf" + } + }, + { + "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": "Thu, 03 Dec 2020 17:53:00 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "a3a8fc45dfd05fa1fc880267a11d1d8f", + "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": "Thu, 03 Dec 2020 17:53:00 GMT", + "MS-CV": "9Bmfh\u002BLvkk2ZJWbV56PrQQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0/CXJXwAAAAC0508XlWuFS7P1gluyxh1KWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "283ms" + }, + "ResponseBody": { + "searchId": "351b9b8a-7885-4a6c-8748-e332c416bcbf", + "displayName": "My reservation", + "createdAt": "2020-12-03T17:52:59.6872815\u002B00:00", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Pending", + "phoneNumbers": [], + "error": "NoError" + } + }, + { + "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": "Thu, 03 Dec 2020 17:53:02 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "8161606b2b94a331f50cceb9a88e3e3f", + "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": "Thu, 03 Dec 2020 17:53:01 GMT", + "MS-CV": "f2N7EdvGvE2hTiO4dIDPKg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0/SXJXwAAAABwtN0rD2mvQ7HZ9QY0j1wWWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "265ms" + }, + "ResponseBody": { + "searchId": "351b9b8a-7885-4a6c-8748-e332c416bcbf", + "displayName": "My reservation", + "createdAt": "2020-12-03T17:52:59.6872815\u002B00:00", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Pending", + "phoneNumbers": [], + "error": "NoError" + } + }, + { + "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": "Thu, 03 Dec 2020 17:53:03 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "b68495d16cfa05b0f77bd36d9df3b71f", + "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": "Thu, 03 Dec 2020 17:53:03 GMT", + "MS-CV": "GQHB6RykVEOyWcQNSrzYQQ.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0/yXJXwAAAABM8sdcPoQXSbhWKSjkfedgWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "436ms" + }, + "ResponseBody": { + "searchId": "351b9b8a-7885-4a6c-8748-e332c416bcbf", + "displayName": "My reservation", + "createdAt": "2020-12-03T17:52:59.6872815\u002B00:00", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Pending", + "phoneNumbers": [], + "error": "NoError" + } + }, + { + "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": "Thu, 03 Dec 2020 17:53:04 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "25060ba37b181a14cb04adc311e8b66e", + "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": "Thu, 03 Dec 2020 17:53:04 GMT", + "MS-CV": "28RVoCpFT0aMz1OUQErueg.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ACbJXwAAAAD7MNtqBShmRa3Uc5\u002Bm/ivpWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "269ms" + }, + "ResponseBody": { + "searchId": "351b9b8a-7885-4a6c-8748-e332c416bcbf", + "displayName": "My reservation", + "createdAt": "2020-12-03T17:52:59.6872815\u002B00:00", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "InProgress", + "phoneNumbers": [], + "error": "NoError" + } + }, + { + "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": "Thu, 03 Dec 2020 17:53:06 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "0c96c34a6698fe95af5b8a1857c40602", + "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": "Thu, 03 Dec 2020 17:53:06 GMT", + "MS-CV": "YY6GhSBAPkS6NNm6sKRJqw.0", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ASbJXwAAAADlsoy8UQOFQLdLyjxoAGsNWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "278ms" + }, + "ResponseBody": { + "searchId": "351b9b8a-7885-4a6c-8748-e332c416bcbf", + "displayName": "My reservation", + "createdAt": "2020-12-03T17:52:59.6872815\u002B00:00", + "description": "my description", + "phonePlanIds": [ + "Sanitized" + ], + "areaCode": "833", + "quantity": 1, + "locationOptions": [], + "status": "Reserved", + "phoneNumbers": [ + "Sanitized" + ], + "reservationExpiryDate": "2020-12-03T18:09:05.3431668\u002B00:00", + "error": "NoError" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/administration/phonenumbers/searches?api-version=2020-07-20-preview1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Thu, 03 Dec 2020 17:53:06 GMT", + "User-Agent": [ + "azsdk-net-Communication.Administration/1.0.0-alpha.20201202.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "9d15ae5519875527816aebf6bfedf40e", + "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": "Thu, 03 Dec 2020 17:53:06 GMT", + "MS-CV": "Km53e6K\u002B3ECxbpPv6V2x\u002BA.0", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0ODLIXwAAAAAI06t5MwrGS4Dtakw7bgpLWVZSMzBFREdFMDMyMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "798ms" + "X-Azure-Ref": "0AibJXwAAAACZ7Kuhs5nHRJFMjw/4AbqAWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "381ms" }, "ResponseBody": { "entities": [ + { + "id": "Sanitized", + "createdAt": "2020-12-03T17:52:59.6872815\u002B00:00", + "displayName": "My reservation", + "quantity": 1, + "quantityObtained": 1, + "status": "Reserved" + }, { "id": "Sanitized", "createdAt": "2020-12-03T00:07:44.0097537\u002B00:00", @@ -818,14 +1273,6 @@ "quantity": 1, "quantityObtained": 0, "status": "Error" - }, - { - "id": "Sanitized", - "createdAt": "2020-10-19T17:08:52.058767\u002B00:00", - "displayName": "testsearch20200014", - "quantity": 1, - "quantityObtained": 0, - "status": "Error" } ], "nextLink": null From ee4ac2c7c0989dc8206c9aa2076a692ffe3e2c75 Mon Sep 17 00:00:00 2001 From: Pavel Prystinka Date: Thu, 3 Dec 2020 10:37:22 -0800 Subject: [PATCH 9/9] user 'nextLink is null' instead of string.IsNullOrEmpty --- .../src/PhoneNumberAdministrationClient.cs | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/sdk/communication/Azure.Communication.Administration/src/PhoneNumberAdministrationClient.cs b/sdk/communication/Azure.Communication.Administration/src/PhoneNumberAdministrationClient.cs index 34e369f055f27..8b2f6937d0253 100644 --- a/sdk/communication/Azure.Communication.Administration/src/PhoneNumberAdministrationClient.cs +++ b/sdk/communication/Azure.Communication.Administration/src/PhoneNumberAdministrationClient.cs @@ -67,7 +67,7 @@ public virtual AsyncPageable GetAllPhoneNumbersAsync(string { return PageResponseEnumerator.CreateAsyncEnumerable(async nextLink => { - Response response = string.IsNullOrEmpty(nextLink) + Response response = nextLink is null ? await RestClient.GetAllPhoneNumbersAsync(locale, skip: null, take: null, cancellationToken).ConfigureAwait(false) : await RestClient.GetAllPhoneNumbersNextPageAsync(nextLink, locale, skip: null, take: null, cancellationToken).ConfigureAwait(false); @@ -94,7 +94,7 @@ public virtual Pageable GetAllPhoneNumbers(string? locale = { return PageResponseEnumerator.CreateEnumerable(nextLink => { - Response response = string.IsNullOrEmpty(nextLink) + Response response = nextLink is null ? RestClient.GetAllPhoneNumbers(locale, skip: null, take: null, cancellationToken) : RestClient.GetAllPhoneNumbersNextPage(nextLink, locale, skip: null, take: null, cancellationToken); @@ -240,7 +240,7 @@ public virtual AsyncPageable GetAllSupportedCountriesAsync(s { return PageResponseEnumerator.CreateAsyncEnumerable(async nextLink => { - Response response = string.IsNullOrEmpty(nextLink) + Response response = nextLink is null ? await RestClient.GetAllSupportedCountriesAsync(locale, skip: null, take: null, cancellationToken).ConfigureAwait(false) : await RestClient.GetAllSupportedCountriesNextPageAsync(nextLink, locale, skip: null, take: null, cancellationToken).ConfigureAwait(false); @@ -266,7 +266,7 @@ public virtual Pageable GetAllSupportedCountries(string? loc { return PageResponseEnumerator.CreateEnumerable(nextLink => { - Response response = string.IsNullOrEmpty(nextLink) + Response response = nextLink is null ? RestClient.GetAllSupportedCountries(locale, skip: null, take: null, cancellationToken) : RestClient.GetAllSupportedCountriesNextPage(nextLink, locale, skip: null, take: null, cancellationToken); @@ -410,7 +410,7 @@ public virtual AsyncPageable GetPhonePlanGroupsAsync(string coun { return PageResponseEnumerator.CreateAsyncEnumerable(async nextLink => { - Response response = string.IsNullOrEmpty(nextLink) + Response response = nextLink is null ? await RestClient.GetPhonePlanGroupsAsync(countryCode, locale, includeRateInformation, skip: null, take: null, cancellationToken).ConfigureAwait(false) : await RestClient.GetPhonePlanGroupsNextPageAsync(nextLink, countryCode, locale, includeRateInformation, skip: null, take: null, cancellationToken).ConfigureAwait(false); @@ -438,7 +438,7 @@ public virtual Pageable GetPhonePlanGroups(string countryCode, s { return PageResponseEnumerator.CreateEnumerable(nextLink => { - Response response = string.IsNullOrEmpty(nextLink) + Response response = nextLink is null ? RestClient.GetPhonePlanGroups(countryCode, locale, includeRateInformation, skip: null, take: null, cancellationToken) : RestClient.GetPhonePlanGroupsNextPage(nextLink, countryCode, locale, includeRateInformation, skip: null, take: null, cancellationToken); @@ -466,7 +466,7 @@ public virtual AsyncPageable GetPhonePlansAsync(string countryCode, s { return PageResponseEnumerator.CreateAsyncEnumerable(async nextLink => { - Response response = string.IsNullOrEmpty(nextLink) + Response response = nextLink is null ? await RestClient.GetPhonePlansAsync(countryCode, phonePlanGroupId, locale, skip: null, take: null, cancellationToken).ConfigureAwait(false) : await RestClient.GetPhonePlansNextPageAsync(nextLink, countryCode, phonePlanGroupId, locale, skip: null, take: null, cancellationToken).ConfigureAwait(false); @@ -494,7 +494,7 @@ public virtual Pageable GetPhonePlans(string countryCode, string phon { return PageResponseEnumerator.CreateEnumerable(nextLink => { - Response response = string.IsNullOrEmpty(nextLink) + Response response = nextLink is null ? RestClient.GetPhonePlans(countryCode, phonePlanGroupId, locale, skip: null, take: null, cancellationToken) : RestClient.GetPhonePlansNextPage(nextLink, countryCode, phonePlanGroupId, locale, skip: null, take: null, cancellationToken); @@ -687,7 +687,7 @@ public virtual AsyncPageable GetAllReleasesAsync(Cancellation { return PageResponseEnumerator.CreateAsyncEnumerable(async nextLink => { - Response response = string.IsNullOrEmpty(nextLink) + Response response = nextLink is null ? await RestClient.GetAllReleasesAsync(skip: null, take: null, cancellationToken).ConfigureAwait(false) : await RestClient.GetAllReleasesNextPageAsync(nextLink, skip: null, take: null, cancellationToken).ConfigureAwait(false); return Page.FromValues(response.Value.Entities, response.Value.NextLink, response.GetRawResponse()); @@ -711,7 +711,7 @@ public virtual Pageable GetAllReleases(CancellationToken canc { return PageResponseEnumerator.CreateEnumerable(nextLink => { - Response response = string.IsNullOrEmpty(nextLink) + Response response = nextLink is null ? RestClient.GetAllReleases(skip: null, take: null, cancellationToken) : RestClient.GetAllReleasesNextPage(nextLink, skip: null, take: null, cancellationToken); @@ -822,7 +822,7 @@ public virtual AsyncPageable GetAllReservationsAsync(Cancella { return PageResponseEnumerator.CreateAsyncEnumerable(async nextLink => { - Response response = string.IsNullOrEmpty(nextLink) + Response response = nextLink is null ? await RestClient.GetAllSearchesAsync(skip: null, take: null, cancellationToken).ConfigureAwait(false) : await RestClient.GetAllSearchesNextPageAsync(nextLink, skip: null, take: null, cancellationToken).ConfigureAwait(false); @@ -847,7 +847,7 @@ public virtual Pageable GetAllReservations(CancellationToken { return PageResponseEnumerator.CreateEnumerable(nextLink => { - Response response = string.IsNullOrEmpty(nextLink) + Response response = nextLink is null ? RestClient.GetAllSearches(skip: null, take: null, cancellationToken) : RestClient.GetAllSearchesNextPage(nextLink, skip: null, take: null, cancellationToken);