From 0ee3a0c43d3d893173d904d74f798c14a55d98c3 Mon Sep 17 00:00:00 2001 From: Paola Vicencio Date: Fri, 6 Nov 2020 00:36:06 -0600 Subject: [PATCH 1/8] Renaming from PhoneNumberSearch to PhoneNumberReservation --- .../PhoneNumberAsyncClient.java | 72 +++++++++---------- .../administration/PhoneNumberClient.java | 28 ++++---- .../PhoneNumberAdministrationsImpl.java | 20 +++--- .../implementation/package-info.java | 4 +- ...earch.java => PhoneNumberReservation.java} | 68 +++++++++--------- .../administration/models/package-info.java | 2 +- ...PhoneNumberAsyncClientIntegrationTest.java | 28 ++++---- .../PhoneNumberClientIntegrationTest.java | 10 +-- .../swagger/README.md | 31 +++++++- 9 files changed, 146 insertions(+), 117 deletions(-) rename sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/{PhoneNumberSearch.java => PhoneNumberReservation.java} (77%) diff --git a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberAsyncClient.java b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberAsyncClient.java index 347523d578a24..9f9dd78771b8b 100644 --- a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberAsyncClient.java +++ b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberAsyncClient.java @@ -25,7 +25,7 @@ import com.azure.communication.administration.models.ReleaseStatus; import com.azure.communication.administration.models.UpdateNumberCapabilitiesResponse; import com.azure.communication.administration.models.NumberConfiguration; -import com.azure.communication.administration.models.PhoneNumberSearch; +import com.azure.communication.administration.models.PhoneNumberReservation; import com.azure.communication.administration.models.SearchStatus; import com.azure.communication.administration.models.UpdateNumberCapabilitiesRequest; import com.azure.communication.administration.models.UpdatePhoneNumberCapabilitiesResponse; @@ -602,10 +602,10 @@ PagedFlux listAllReleases(Context context) { * Gets a search by ID. * * @param searchId ID of the search - * @return A {@link Mono} containing a {@link PhoneNumberSearch} representing the search. + * @return A {@link Mono} containing a {@link PhoneNumberReservation} representing the search. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getSearchById(String searchId) { + public Mono getSearchById(String searchId) { return getSearchByIdWithResponse(searchId).flatMap(FluxUtil::toMono); } @@ -614,14 +614,14 @@ public Mono getSearchById(String searchId) { * * @param searchId ID of the search * @return A {@link Mono} containing a {@link Response} whose {@link Response#getValue()} value returns - * a {@link PhoneNumberSearch} representing the search. + * a {@link PhoneNumberReservation} representing the search. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getSearchByIdWithResponse(String searchId) { + public Mono> getSearchByIdWithResponse(String searchId) { return getSearchByIdWithResponse(searchId, null); } - Mono> getSearchByIdWithResponse(String searchId, Context context) { + Mono> getSearchByIdWithResponse(String searchId, Context context) { Objects.requireNonNull(searchId, "'searchId' cannot be null."); try { @@ -765,17 +765,17 @@ private Mono> purchaseSearchWithResponse(String searchId, Context } /** - * Initiates a search and returns a {@link PhoneNumberSearch} usable by other functions - * This function returns a Long Running Operation poller that allows you to + * Initiates a search and returns a {@link PhoneNumberReservation} usable by other functions + * This function returns a Long Running Operation poller that allows you to * wait indefinitely until the operation is complete. - * + * * @param options A {@link CreateSearchOptions} with the search options - * @param pollInterval The time our long running operation will keep on polling + * @param pollInterval The time our long running operation will keep on polling * until it gets a result from the server * @return A {@link PollerFlux} object with the search result */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PollerFlux beginCreateSearch( + public PollerFlux beginCreateSearch( CreateSearchOptions options, Duration pollInterval) { Objects.requireNonNull(options, "'options' cannot be null."); @@ -783,33 +783,33 @@ public PollerFlux beginCreateSearch( pollInterval = defaultPollInterval; } - return new PollerFlux(pollInterval, + return new PollerFlux(pollInterval, createSearchActivationOperation(options), createSearchPollOperation(), cancelSearchOperation(), createSearchFetchResultOperation()); } - private Function, Mono> + private Function, Mono> createSearchActivationOperation(CreateSearchOptions options) { return (pollingContext) -> { - Mono response = createSearch(options).flatMap(createSearchResponse -> { + Mono response = createSearch(options).flatMap(createSearchResponse -> { String searchId = createSearchResponse.getSearchId(); - Mono phoneNumberSearch = getSearchById(searchId); + Mono phoneNumberSearch = getSearchById(searchId); return phoneNumberSearch; }); return response; }; } - private Function, Mono>> + private Function, Mono>> createSearchPollOperation() { return pollingContext -> - getSearchById(pollingContext.getLatestResponse().getValue().getSearchId()) + getSearchById(pollingContext.getLatestResponse().getValue().getReservationId()) .flatMap(getSearchResponse -> { SearchStatus status = getSearchResponse.getStatus(); - if (status.equals(SearchStatus.EXPIRED) - || status.equals(SearchStatus.CANCELLED) + if (status.equals(SearchStatus.EXPIRED) + || status.equals(SearchStatus.CANCELLED) || status.equals(SearchStatus.RESERVED)) { return Mono.just(new PollResponse<>( LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, getSearchResponse)); @@ -822,17 +822,17 @@ public PollerFlux beginCreateSearch( }); } - private BiFunction, - PollResponse, Mono> + private BiFunction, + PollResponse, Mono> cancelSearchOperation() { return (pollingContext, firstResponse) -> { - cancelSearch(pollingContext.getLatestResponse().getValue().getSearchId()); + cancelSearch(pollingContext.getLatestResponse().getValue().getReservationId()); return Mono.just(pollingContext.getLatestResponse().getValue()); }; } - private Function, - Mono> createSearchFetchResultOperation() { + private Function, + Mono> createSearchFetchResultOperation() { return pollingContext -> { return Mono.just(pollingContext.getLatestResponse().getValue()); }; @@ -840,11 +840,11 @@ Mono> createSearchFetchResultOperation() { /** * Initiates a purchase process and polls until a terminal state is reached - * This function returns a Long Running Operation poller that allows you to + * This function returns a Long Running Operation poller that allows you to * wait indefinitely until the operation is complete. * * @param searchId ID of the search - * @param pollInterval The time our long running operation will keep on polling + * @param pollInterval The time our long running operation will keep on polling * until it gets a result from the server * @return A {@link PollerFlux} object. */ @@ -852,7 +852,7 @@ Mono> createSearchFetchResultOperation() { @ServiceMethod(returns = ReturnType.COLLECTION) public PollerFlux beginPurchaseSearch(String searchId, Duration pollInterval) { Objects.requireNonNull(searchId, "'searchId' can not be null."); - + if (pollInterval == null) { pollInterval = defaultPollInterval; } @@ -864,7 +864,7 @@ public PollerFlux beginPurchaseSearch(String searchId, Duration poll purchaseSearchFetchResultOperation()); } - private Function, + private Function, Mono> purchaseSearchActivationOperation(String searchId) { return (pollingContext) -> { return purchaseSearch(searchId); @@ -880,7 +880,7 @@ Mono> purchaseSearchActivationOperation(String searchId) { return Mono.just(new PollResponse<>( LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, null)); } - if (statusResponse.equals(SearchStatus.ERROR) + if (statusResponse.equals(SearchStatus.ERROR) || statusResponse.equals(SearchStatus.EXPIRED)) { return Mono.just(new PollResponse<>( LongRunningOperationStatus.FAILED, null)); @@ -899,16 +899,16 @@ Mono> purchaseSearchFetchResultOperation() { /** * Releases the given phone numbers. - * This function returns a Long Running Operation poller that allows you to + * This function returns a Long Running Operation poller that allows you to * wait indefinitely until the operation is complete. - * + * * @param phoneNumbers A list of {@link PhoneNumber} with the desired numbers to release - * @param pollInterval The time our long running operation will keep on polling + * @param pollInterval The time our long running operation will keep on polling * until it gets a result from the server * @return A {@link PollerFlux} object with the release entity */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PollerFlux + public PollerFlux beginReleasePhoneNumbers(List phoneNumbers, Duration pollInterval) { Objects.requireNonNull(phoneNumbers, "'phoneNumbers' cannot be null."); @@ -924,7 +924,7 @@ Mono> purchaseSearchFetchResultOperation() { releaseNumbersFetchResultOperation()); } - private Function, Mono> + private Function, Mono> releaseNumbersActivationOperation(List phoneNumbers) { return (pollingContext) -> { Mono response = releasePhoneNumbers(phoneNumbers) @@ -937,13 +937,13 @@ Mono> purchaseSearchFetchResultOperation() { }; } - private Function, Mono>> + private Function, Mono>> releaseNumbersPollOperation() { return pollingContext -> getReleaseById(pollingContext.getLatestResponse().getValue().getReleaseId()) .flatMap(getReleaseResponse -> { ReleaseStatus status = getReleaseResponse.getStatus(); - if (status.equals(ReleaseStatus.COMPLETE) + if (status.equals(ReleaseStatus.COMPLETE) || status.equals(ReleaseStatus.EXPIRED)) { return Mono.just(new PollResponse<>( LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, getReleaseResponse)); diff --git a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberClient.java b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberClient.java index 9f628180517d1..fe4638fc06448 100644 --- a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberClient.java +++ b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberClient.java @@ -17,7 +17,7 @@ import com.azure.communication.administration.models.PhonePlanGroup; import com.azure.communication.administration.models.PstnConfiguration; import com.azure.communication.administration.models.UpdateNumberCapabilitiesResponse; -import com.azure.communication.administration.models.PhoneNumberSearch; +import com.azure.communication.administration.models.PhoneNumberReservation; import com.azure.communication.administration.models.UpdatePhoneNumberCapabilitiesResponse; import com.azure.communication.common.PhoneNumber; import com.azure.core.annotation.ReturnType; @@ -391,10 +391,10 @@ public PagedIterable listAllReleases(Context context) { * Gets a search by ID. * * @param searchId ID of the search - * @return A {@link PhoneNumberSearch} representing the search. + * @return A {@link PhoneNumberReservation} representing the search. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PhoneNumberSearch getSearchById(String searchId) { + public PhoneNumberReservation getSearchById(String searchId) { return phoneNumberAsyncClient.getSearchById(searchId).block(); } @@ -404,10 +404,10 @@ public PhoneNumberSearch getSearchById(String searchId) { * @param searchId ID of the search * @param context A {@link Context} representing the request context. * @return A {@link Response} whose {@link Response#getValue()} value returns - * a {@link PhoneNumberSearch} representing the search. + * a {@link PhoneNumberReservation} representing the search. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getSearchByIdWithResponse(String searchId, Context context) { + public Response getSearchByIdWithResponse(String searchId, Context context) { return phoneNumberAsyncClient.getSearchByIdWithResponse(searchId, context).block(); } @@ -479,16 +479,16 @@ public Response cancelSearchWithResponse(String searchId, Context context) } /** - * Initiates a search and returns a {@link PhoneNumberSearch} usable by other functions + * Initiates a search and returns a {@link PhoneNumberReservation} usable by other functions * This function returns a Long Running Operation poller. - * + * * @param options A {@link CreateSearchOptions} with the search options - * @param pollInterval The time our long running operation will keep on polling + * @param pollInterval The time our long running operation will keep on polling * until it gets a result from the server * @return A {@link SyncPoller} object with the search result */ @ServiceMethod(returns = ReturnType.COLLECTION) - public SyncPoller beginCreateSearch( + public SyncPoller beginCreateSearch( CreateSearchOptions options, Duration pollInterval) { return phoneNumberAsyncClient.beginCreateSearch(options, pollInterval).getSyncPoller(); } @@ -496,9 +496,9 @@ public SyncPoller beginCreateSearch( /** * Initiates a purchase process and polls until a terminal state is reached * This function returns a Long Running Operation poller - * - * @param searchId ID of the search - * @param pollInterval The time our long running operation will keep on polling + * + * @param searchId ID of the search + * @param pollInterval The time our long running operation will keep on polling * until it gets a result from the server * @return A {@link SyncPoller} object with the search result */ @@ -511,9 +511,9 @@ public SyncPoller beginPurchaseSearch( /** * Releases the given phone numbers. * This function returns a Long Running Operation poller - * + * * @param phoneNumbers A list of {@link PhoneNumber} with the desired numbers to release - * @param pollInterval The time our long running operation will keep on polling + * @param pollInterval The time our long running operation will keep on polling * until it gets a result from the server * @return A {@link SyncPoller} object with the search result */ diff --git a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/implementation/PhoneNumberAdministrationsImpl.java b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/implementation/PhoneNumberAdministrationsImpl.java index a91d000567148..76c4fd0e52cc5 100644 --- a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/implementation/PhoneNumberAdministrationsImpl.java +++ b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/implementation/PhoneNumberAdministrationsImpl.java @@ -20,7 +20,7 @@ import com.azure.communication.administration.models.PhoneNumberEntities; import com.azure.communication.administration.models.PhoneNumberEntity; import com.azure.communication.administration.models.PhoneNumberRelease; -import com.azure.communication.administration.models.PhoneNumberSearch; +import com.azure.communication.administration.models.PhoneNumberReservation; import com.azure.communication.administration.models.PhonePlan; import com.azure.communication.administration.models.PhonePlanGroup; import com.azure.communication.administration.models.PhonePlanGroups; @@ -227,7 +227,7 @@ Mono> getAllReleases( @Get("/administration/phonenumbers/searches/{searchId}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ErrorResponseException.class) - Mono> getSearchById( + Mono> getSearchById( @HostParam("endpoint") String endpoint, @PathParam("searchId") String searchId, @QueryParam("api-version") String apiVersion, @@ -2038,7 +2038,7 @@ public PagedIterable getAllReleases(Integer skip, Integer tak * @return search by search id. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getSearchByIdWithResponseAsync(String searchId) { + public Mono> getSearchByIdWithResponseAsync(String searchId) { return FluxUtil.withContext( context -> service.getSearchById( @@ -2056,7 +2056,7 @@ public Mono> getSearchByIdWithResponseAsync(String s * @return search by search id. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getSearchByIdWithResponseAsync(String searchId, Context context) { + public Mono> getSearchByIdWithResponseAsync(String searchId, Context context) { return service.getSearchById(this.client.getEndpoint(), searchId, this.client.getApiVersion(), context); } @@ -2070,10 +2070,10 @@ public Mono> getSearchByIdWithResponseAsync(String s * @return search by search id. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getSearchByIdAsync(String searchId) { + public Mono getSearchByIdAsync(String searchId) { return getSearchByIdWithResponseAsync(searchId) .flatMap( - (Response res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -2093,10 +2093,10 @@ public Mono getSearchByIdAsync(String searchId) { * @return search by search id. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getSearchByIdAsync(String searchId, Context context) { + public Mono getSearchByIdAsync(String searchId, Context context) { return getSearchByIdWithResponseAsync(searchId, context) .flatMap( - (Response res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -2115,7 +2115,7 @@ public Mono getSearchByIdAsync(String searchId, Context conte * @return search by search id. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PhoneNumberSearch getSearchById(String searchId) { + public PhoneNumberReservation getSearchById(String searchId) { return getSearchByIdAsync(searchId).block(); } @@ -2130,7 +2130,7 @@ public PhoneNumberSearch getSearchById(String searchId) { * @return search by search id. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PhoneNumberSearch getSearchById(String searchId, Context context) { + public PhoneNumberReservation getSearchById(String searchId, Context context) { return getSearchByIdAsync(searchId, context).block(); } diff --git a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/implementation/package-info.java b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/implementation/package-info.java index 6121c5b28d0ad..c2fa4c4afd1f9 100644 --- a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/implementation/package-info.java +++ b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/implementation/package-info.java @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the implementations and inner classes for CommunicationIdentityClient. Azure Communication - * Identity Service. + * Package containing the implementations and inner classes for PhoneNumberAdminClient. Phone Number Administration + * Service. */ package com.azure.communication.administration.implementation; diff --git a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/PhoneNumberSearch.java b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/PhoneNumberReservation.java similarity index 77% rename from sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/PhoneNumberSearch.java rename to sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/PhoneNumberReservation.java index 98906c63700b4..2f0e5bf045e1c 100644 --- a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/PhoneNumberSearch.java +++ b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/PhoneNumberReservation.java @@ -9,14 +9,14 @@ import java.time.OffsetDateTime; import java.util.List; -/** The PhoneNumberSearch model. */ +/** The PhoneNumberReservation model. */ @Fluent -public final class PhoneNumberSearch { +public final class PhoneNumberReservation { /* * The id of the search. */ @JsonProperty(value = "searchId") - private String searchId; + private String reservationId; /* * The name of the search. @@ -86,22 +86,22 @@ public final class PhoneNumberSearch { private Integer errorCode; /** - * Get the searchId property: The id of the search. + * Get the reservationId property: The id of the search. * - * @return the searchId value. + * @return the reservationId value. */ - public String getSearchId() { - return this.searchId; + public String getReservationId() { + return this.reservationId; } /** - * Set the searchId property: The id of the search. + * Set the reservationId property: The id of the search. * - * @param searchId the searchId value to set. - * @return the PhoneNumberSearch object itself. + * @param reservationId the reservationId value to set. + * @return the PhoneNumberReservation object itself. */ - public PhoneNumberSearch setSearchId(String searchId) { - this.searchId = searchId; + public PhoneNumberReservation setReservationId(String reservationId) { + this.reservationId = reservationId; return this; } @@ -118,9 +118,9 @@ public String getDisplayName() { * Set the displayName property: The name of the search. * * @param displayName the displayName value to set. - * @return the PhoneNumberSearch object itself. + * @return the PhoneNumberReservation object itself. */ - public PhoneNumberSearch setDisplayName(String displayName) { + public PhoneNumberReservation setDisplayName(String displayName) { this.displayName = displayName; return this; } @@ -138,9 +138,9 @@ public OffsetDateTime getCreatedAt() { * Set the createdAt property: The creation time of the search. * * @param createdAt the createdAt value to set. - * @return the PhoneNumberSearch object itself. + * @return the PhoneNumberReservation object itself. */ - public PhoneNumberSearch setCreatedAt(OffsetDateTime createdAt) { + public PhoneNumberReservation setCreatedAt(OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } @@ -158,9 +158,9 @@ public String getDescription() { * Set the description property: The description of the search. * * @param description the description value to set. - * @return the PhoneNumberSearch object itself. + * @return the PhoneNumberReservation object itself. */ - public PhoneNumberSearch setDescription(String description) { + public PhoneNumberReservation setDescription(String description) { this.description = description; return this; } @@ -178,9 +178,9 @@ public List getPhonePlanIds() { * Set the phonePlanIds property: The phone plan ids of the search. * * @param phonePlanIds the phonePlanIds value to set. - * @return the PhoneNumberSearch object itself. + * @return the PhoneNumberReservation object itself. */ - public PhoneNumberSearch setPhonePlanIds(List phonePlanIds) { + public PhoneNumberReservation setPhonePlanIds(List phonePlanIds) { this.phonePlanIds = phonePlanIds; return this; } @@ -198,9 +198,9 @@ public String getAreaCode() { * Set the areaCode property: The area code of the search. * * @param areaCode the areaCode value to set. - * @return the PhoneNumberSearch object itself. + * @return the PhoneNumberReservation object itself. */ - public PhoneNumberSearch setAreaCode(String areaCode) { + public PhoneNumberReservation setAreaCode(String areaCode) { this.areaCode = areaCode; return this; } @@ -218,9 +218,9 @@ public Integer getQuantity() { * Set the quantity property: The quantity of phone numbers in the search. * * @param quantity the quantity value to set. - * @return the PhoneNumberSearch object itself. + * @return the PhoneNumberReservation object itself. */ - public PhoneNumberSearch setQuantity(Integer quantity) { + public PhoneNumberReservation setQuantity(Integer quantity) { this.quantity = quantity; return this; } @@ -238,9 +238,9 @@ public List getLocationOptions() { * Set the locationOptions property: The location options of the search. * * @param locationOptions the locationOptions value to set. - * @return the PhoneNumberSearch object itself. + * @return the PhoneNumberReservation object itself. */ - public PhoneNumberSearch setLocationOptions(List locationOptions) { + public PhoneNumberReservation setLocationOptions(List locationOptions) { this.locationOptions = locationOptions; return this; } @@ -258,9 +258,9 @@ public SearchStatus getStatus() { * Set the status property: The status of the search. * * @param status the status value to set. - * @return the PhoneNumberSearch object itself. + * @return the PhoneNumberReservation object itself. */ - public PhoneNumberSearch setStatus(SearchStatus status) { + public PhoneNumberReservation setStatus(SearchStatus status) { this.status = status; return this; } @@ -280,9 +280,9 @@ public List getPhoneNumbers() { * success. * * @param phoneNumbers the phoneNumbers value to set. - * @return the PhoneNumberSearch object itself. + * @return the PhoneNumberReservation object itself. */ - public PhoneNumberSearch setPhoneNumbers(List phoneNumbers) { + public PhoneNumberReservation setPhoneNumbers(List phoneNumbers) { this.phoneNumbers = phoneNumbers; return this; } @@ -300,9 +300,9 @@ public OffsetDateTime getReservationExpiryDate() { * Set the reservationExpiryDate property: The date that search expires and the numbers become available. * * @param reservationExpiryDate the reservationExpiryDate value to set. - * @return the PhoneNumberSearch object itself. + * @return the PhoneNumberReservation object itself. */ - public PhoneNumberSearch setReservationExpiryDate(OffsetDateTime reservationExpiryDate) { + public PhoneNumberReservation setReservationExpiryDate(OffsetDateTime reservationExpiryDate) { this.reservationExpiryDate = reservationExpiryDate; return this; } @@ -320,9 +320,9 @@ public Integer getErrorCode() { * Set the errorCode property: The error code of the search. * * @param errorCode the errorCode value to set. - * @return the PhoneNumberSearch object itself. + * @return the PhoneNumberReservation object itself. */ - public PhoneNumberSearch setErrorCode(Integer errorCode) { + public PhoneNumberReservation setErrorCode(Integer errorCode) { this.errorCode = errorCode; return this; } diff --git a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/package-info.java b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/package-info.java index 5e6fd4249e668..bfc652ce5081f 100644 --- a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/package-info.java +++ b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/package-info.java @@ -2,5 +2,5 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -/** Package containing the data models for CommunicationIdentityClient. Azure Communication Identity Service. */ +/** Package containing the data models for PhoneNumberAdminClient. Phone Number Administration Service. */ package com.azure.communication.administration.models; diff --git a/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberAsyncClientIntegrationTest.java b/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberAsyncClientIntegrationTest.java index daa3df16d6408..0b074e8910a34 100644 --- a/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberAsyncClientIntegrationTest.java +++ b/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberAsyncClientIntegrationTest.java @@ -14,7 +14,7 @@ import com.azure.communication.administration.models.PhoneNumberCountry; import com.azure.communication.administration.models.PhoneNumberEntity; import com.azure.communication.administration.models.PhoneNumberRelease; -import com.azure.communication.administration.models.PhoneNumberSearch; +import com.azure.communication.administration.models.PhoneNumberReservation; import com.azure.communication.administration.models.PhonePlan; import com.azure.communication.administration.models.PhonePlanGroup; import com.azure.communication.administration.models.PstnConfiguration; @@ -51,7 +51,7 @@ named = "SKIP_PHONENUMBER_INTEGRATION_TESTS", matches = "(?i)(true)") public class PhoneNumberAsyncClientIntegrationTest extends PhoneNumberIntegrationTestBase { - + @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") public void createAsyncPhoneNumberClientWithConnectionString(HttpClient httpClient) { @@ -66,7 +66,7 @@ public void createAsyncPhoneNumberClientWithConnectionString(HttpClient httpClie }) .verifyComplete(); } - + @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") public void listAllPhoneNumbers(HttpClient httpClient) { @@ -325,11 +325,11 @@ public void createSearchWithResponse(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") public void getSearchById(HttpClient httpClient) { - Mono mono = this.getClient(httpClient).getSearchById(SEARCH_ID); + Mono mono = this.getClient(httpClient).getSearchById(SEARCH_ID); StepVerifier.create(mono) .assertNext(item -> { - assertEquals(SEARCH_ID, item.getSearchId()); + assertEquals(SEARCH_ID, item.getReservationId()); }) .verifyComplete(); } @@ -337,12 +337,12 @@ public void getSearchById(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") public void getSearchByIdWithResponse(HttpClient httpClient) { - Mono> mono = this.getClient(httpClient).getSearchByIdWithResponse(SEARCH_ID, Context.NONE); + Mono> mono = this.getClient(httpClient).getSearchByIdWithResponse(SEARCH_ID, Context.NONE); StepVerifier.create(mono) .assertNext(item -> { assertEquals(200, item.getStatusCode()); - assertEquals(SEARCH_ID, item.getValue().getSearchId()); + assertEquals(SEARCH_ID, item.getValue().getReservationId()); }) .verifyComplete(); } @@ -467,15 +467,15 @@ public void beginCreateSearch(HttpClient httpClient) { Duration duration = Duration.ofSeconds(1); PhoneNumberAsyncClient client = this.getClient(httpClient); - PollerFlux poller = + PollerFlux poller = client.beginCreateSearch(createSearchOptions, duration); - Mono> asyncRes = poller.last(); + Mono> asyncRes = poller.last(); StepVerifier.create(asyncRes) .assertNext(item -> { assertEquals(item.getValue().getPhoneNumbers().size(), 2); - assertNotNull(item.getValue().getSearchId()); + assertNotNull(item.getValue().getReservationId()); }) - .verifyComplete(); + .verifyComplete(); } @ParameterizedTest @@ -484,10 +484,10 @@ public void beginPurchaseSearch(HttpClient httpClient) { Duration pollInterval = Duration.ofSeconds(1); PhoneNumberAsyncClient client = this.getClient(httpClient); PollerFlux poller = - client.beginPurchaseSearch(SEARCH_ID, pollInterval); + client.beginPurchaseSearch(SEARCH_ID, pollInterval); poller.takeUntil(apr -> apr.getStatus() == LongRunningOperationStatus.SUCCESSFULLY_COMPLETED) .blockLast(); - Mono testResult = client.getSearchById(SEARCH_ID); + Mono testResult = client.getSearchById(SEARCH_ID); StepVerifier.create(testResult) .assertNext(item -> { assertEquals(SearchStatus.SUCCESS, item.getStatus()); @@ -509,7 +509,7 @@ public void beginReleasePhoneNumbers(HttpClient httpClient) { .assertNext(item -> { assertEquals(ReleaseStatus.COMPLETE, item.getValue().getStatus()); }) - .verifyComplete(); + .verifyComplete(); } private PhoneNumberAsyncClient getClient(HttpClient httpClient) { diff --git a/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberClientIntegrationTest.java b/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberClientIntegrationTest.java index df3da0d5c609f..806b80a8ff397 100644 --- a/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberClientIntegrationTest.java +++ b/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberClientIntegrationTest.java @@ -13,7 +13,7 @@ import com.azure.communication.administration.models.NumberUpdateCapabilities; import com.azure.communication.administration.models.PhoneNumberCountry; import com.azure.communication.administration.models.PhoneNumberEntity; -import com.azure.communication.administration.models.PhoneNumberSearch; +import com.azure.communication.administration.models.PhoneNumberReservation; import com.azure.communication.administration.models.PhonePlan; import com.azure.communication.administration.models.PhonePlanGroup; import com.azure.communication.administration.models.PstnConfiguration; @@ -239,18 +239,18 @@ public void createSearchWithResponse(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") public void getSearchById(HttpClient httpClient) { - PhoneNumberSearch search = this.getClient(httpClient).getSearchById(SEARCH_ID); + PhoneNumberReservation search = this.getClient(httpClient).getSearchById(SEARCH_ID); - assertEquals(SEARCH_ID, search.getSearchId()); + assertEquals(SEARCH_ID, search.getReservationId()); } @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") public void getSearchByIdWithResponse(HttpClient httpClient) { - Response response = this.getClient(httpClient).getSearchByIdWithResponse(SEARCH_ID, Context.NONE); + Response response = this.getClient(httpClient).getSearchByIdWithResponse(SEARCH_ID, Context.NONE); assertEquals(200, response.getStatusCode()); - assertEquals(SEARCH_ID, response.getValue().getSearchId()); + assertEquals(SEARCH_ID, response.getValue().getReservationId()); } @ParameterizedTest diff --git a/sdk/communication/azure-communication-administration/swagger/README.md b/sdk/communication/azure-communication-administration/swagger/README.md index 6b1474fc902b7..162fc44e74d8e 100644 --- a/sdk/communication/azure-communication-administration/swagger/README.md +++ b/sdk/communication/azure-communication-administration/swagger/README.md @@ -44,6 +44,35 @@ These settings apply only when `--tag=phonenumber` is specified on the command l input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/257f060be8b60d8468584682aa2d71b1faa5f82c/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/communicationservicesadministration.json override-client-name: PhoneNumberAdminClient ``` +### Rename searchId to reservationId + + + +``` yaml + +directive: + + - from: swagger-document + + where: $.definitions.PhoneNumberSearch.properties.searchId + + transform: > + + $["x-ms-client-name"] = "reservationId"; + +``` +### Rename PhoneNumberSearch to PhoneNumberReservation + +``` yaml +directive: + - rename-model: + + from: PhoneNumberSearch + + to: PhoneNumberReservation + +``` + ### Code generation settings @@ -56,4 +85,4 @@ generate-client-as-impl: true custom-types-subpackage: models sync-methods: all context-client-method-parameter: true -``` \ No newline at end of file +``` From ebafcf2ba11501cba1601e1db36ea53270f7b74e Mon Sep 17 00:00:00 2001 From: Paola Vicencio Date: Fri, 6 Nov 2020 00:44:19 -0600 Subject: [PATCH 2/8] Renaming from PhoneNumberSearch to PhoneNumberReservation --- .../administration/ReadmeSamples.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/sdk/communication/azure-communication-administration/src/samples/java/com/azure/communication/administration/ReadmeSamples.java b/sdk/communication/azure-communication-administration/src/samples/java/com/azure/communication/administration/ReadmeSamples.java index 7a570b0ef840e..8632ec70de989 100644 --- a/sdk/communication/azure-communication-administration/src/samples/java/com/azure/communication/administration/ReadmeSamples.java +++ b/sdk/communication/azure-communication-administration/src/samples/java/com/azure/communication/administration/ReadmeSamples.java @@ -16,7 +16,7 @@ import com.azure.communication.administration.models.LocationOptionsQuery; import com.azure.communication.administration.models.PhoneNumberCountry; import com.azure.communication.administration.models.PhoneNumberRelease; -import com.azure.communication.administration.models.PhoneNumberSearch; +import com.azure.communication.administration.models.PhoneNumberReservation; import com.azure.communication.administration.models.PhonePlan; import com.azure.communication.administration.models.PhonePlanGroup; import com.azure.communication.administration.models.PstnConfiguration; @@ -297,9 +297,9 @@ public AreaCodes getAreaCodes() { /** * Sample code to create a phone number search * - * @return PhoneNumberSearch for the phone plan + * @return PhoneNumberReservation for the phone plan */ - public PhoneNumberSearch createPhoneNumberSearch() { + public PhoneNumberReservation createPhoneNumberReservation() { String phonePlanId = "PHONE_PLAN_ID"; List phonePlanIds = new ArrayList<>(); @@ -316,7 +316,7 @@ public PhoneNumberSearch createPhoneNumberSearch() { CreateSearchResponse createSearchResponse = phoneNumberClient.createSearch(createSearchOptions); System.out.println("SearchId: " + createSearchResponse.getSearchId()); - PhoneNumberSearch phoneNumberSearch = phoneNumberClient.getSearchById(createSearchResponse.getSearchId()); + PhoneNumberReservation phoneNumberSearch = phoneNumberClient.getSearchById(createSearchResponse.getSearchId()); for (String phoneNumber : phoneNumberSearch.getPhoneNumbers()) { @@ -354,16 +354,16 @@ public void beginCreateSearch() { .setDisplayName("NAME_FOR_SEARCH") .setPhonePlanIds(phonePlanIds) .setQuantity(2); - + Duration duration = Duration.ofSeconds(1); PhoneNumberClient phoneNumberClient = createPhoneNumberClient(); - SyncPoller res = + SyncPoller res = phoneNumberClient.beginCreateSearch(createSearchOptions, duration); res.waitForCompletion(); - PhoneNumberSearch result = res.getFinalResult(); + PhoneNumberReservation result = res.getFinalResult(); - System.out.println("Search Id: " + result.getSearchId()); + System.out.println("Search Id: " + result.getReservationId()); for (String phoneNumber: result.getPhoneNumbers()) { System.out.println("Phone Number: " + phoneNumber); } @@ -377,7 +377,7 @@ public void beginPurchaseSearch() { String phoneNumberSearchId = "SEARCH_ID_TO_PURCHASE"; PhoneNumberClient phoneNumberClient = createPhoneNumberClient(); - SyncPoller res = + SyncPoller res = phoneNumberClient.beginPurchaseSearch(phoneNumberSearchId, duration); res.waitForCompletion(); } @@ -392,7 +392,7 @@ public void beginReleasePhoneNumbers() { phoneNumbers.add(phoneNumber); PhoneNumberClient phoneNumberClient = createPhoneNumberClient(); - SyncPoller res = + SyncPoller res = phoneNumberClient.beginReleasePhoneNumbers(phoneNumbers, duration); res.waitForCompletion(); PhoneNumberRelease result = res.getFinalResult(); From 083e60e0cf1e2eef746157515cf339a6d1e0cb52 Mon Sep 17 00:00:00 2001 From: Paola Vicencio Date: Fri, 6 Nov 2020 01:24:39 -0600 Subject: [PATCH 3/8] Renaming from PhoneNumberSearch to PhoneNumberReservation --- .../azure-communication-administration/README.md | 6 +++--- .../azure/communication/administration/ReadmeSamples.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/communication/azure-communication-administration/README.md b/sdk/communication/azure-communication-administration/README.md index fd60ffff5594f..9ca8145c73f9a 100644 --- a/sdk/communication/azure-communication-administration/README.md +++ b/sdk/communication/azure-communication-administration/README.md @@ -271,12 +271,12 @@ createSearchOptions Duration duration = Duration.ofSeconds(1); PhoneNumberClient phoneNumberClient = createPhoneNumberClient(); -SyncPoller res = +SyncPoller res = phoneNumberClient.beginCreateSearch(createSearchOptions, duration); res.waitForCompletion(); -PhoneNumberSearch result = res.getFinalResult(); +PhoneNumberReservation result = res.getFinalResult(); -System.out.println("Search Id: " + result.getSearchId()); +System.out.println("Search Id: " + result.getReservationId()); for (String phoneNumber: result.getPhoneNumbers()) { System.out.println("Phone Number: " + phoneNumber); } diff --git a/sdk/communication/azure-communication-administration/src/samples/java/com/azure/communication/administration/ReadmeSamples.java b/sdk/communication/azure-communication-administration/src/samples/java/com/azure/communication/administration/ReadmeSamples.java index 8632ec70de989..e5019cb2b4acd 100644 --- a/sdk/communication/azure-communication-administration/src/samples/java/com/azure/communication/administration/ReadmeSamples.java +++ b/sdk/communication/azure-communication-administration/src/samples/java/com/azure/communication/administration/ReadmeSamples.java @@ -363,7 +363,7 @@ public void beginCreateSearch() { res.waitForCompletion(); PhoneNumberReservation result = res.getFinalResult(); - System.out.println("Search Id: " + result.getReservationId()); + System.out.println("Reservation Id: " + result.getReservationId()); for (String phoneNumber: result.getPhoneNumbers()) { System.out.println("Phone Number: " + phoneNumber); } From eaf8c471b85c2ce2992d9f1e3cb661668799136f Mon Sep 17 00:00:00 2001 From: Paola Vicencio Date: Fri, 6 Nov 2020 11:27:21 -0600 Subject: [PATCH 4/8] upadating readme samples --- .../azure-communication-administration/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/communication/azure-communication-administration/README.md b/sdk/communication/azure-communication-administration/README.md index 9ca8145c73f9a..78e3e5adf017a 100644 --- a/sdk/communication/azure-communication-administration/README.md +++ b/sdk/communication/azure-communication-administration/README.md @@ -271,12 +271,12 @@ createSearchOptions Duration duration = Duration.ofSeconds(1); PhoneNumberClient phoneNumberClient = createPhoneNumberClient(); -SyncPoller res = +SyncPoller res = phoneNumberClient.beginCreateSearch(createSearchOptions, duration); res.waitForCompletion(); PhoneNumberReservation result = res.getFinalResult(); -System.out.println("Search Id: " + result.getReservationId()); +System.out.println("Reservation Id: " + result.getReservationId()); for (String phoneNumber: result.getPhoneNumbers()) { System.out.println("Phone Number: " + phoneNumber); } @@ -289,7 +289,7 @@ Duration duration = Duration.ofSeconds(1); String phoneNumberSearchId = "SEARCH_ID_TO_PURCHASE"; PhoneNumberClient phoneNumberClient = createPhoneNumberClient(); -SyncPoller res = +SyncPoller res = phoneNumberClient.beginPurchaseSearch(phoneNumberSearchId, duration); res.waitForCompletion(); ``` @@ -303,7 +303,7 @@ List phoneNumbers = new ArrayList<>(); phoneNumbers.add(phoneNumber); PhoneNumberClient phoneNumberClient = createPhoneNumberClient(); -SyncPoller res = +SyncPoller res = phoneNumberClient.beginReleasePhoneNumbers(phoneNumbers, duration); res.waitForCompletion(); PhoneNumberRelease result = res.getFinalResult(); From 017c08b9502011378f8772b1b353ba39fafac847 Mon Sep 17 00:00:00 2001 From: Paola Vicencio Date: Tue, 10 Nov 2020 16:11:42 -0600 Subject: [PATCH 5/8] Renaming the model CreateSearchReponse and CreateSearchOptions --- .../README.md | 16 +- .../PhoneNumberAsyncClient.java | 212 +++++++++--------- .../administration/PhoneNumberClient.java | 101 ++++----- .../administration/ReservationStatus.java | 67 ++++++ .../PhoneNumberAdministrationsImpl.java | 26 +-- ...ons.java => CreateReservationOptions.java} | 28 +-- .../models/CreateReservationResponse.java | 38 ++++ .../models/CreateSearchResponse.java | 38 ---- .../administration/ReadmeSamples.java | 50 ++--- ...PhoneNumberAsyncClientIntegrationTest.java | 79 ++++--- .../PhoneNumberClientIntegrationTest.java | 44 ++-- .../PhoneNumberIntegrationTestBase.java | 20 +- .../swagger/README.md | 48 +++- 13 files changed, 434 insertions(+), 333 deletions(-) create mode 100644 sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/ReservationStatus.java rename sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/{CreateSearchOptions.java => CreateReservationOptions.java} (81%) create mode 100644 sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/CreateReservationResponse.java delete mode 100644 sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/CreateSearchResponse.java diff --git a/sdk/communication/azure-communication-administration/README.md b/sdk/communication/azure-communication-administration/README.md index 78e3e5adf017a..0dfe67cdedc4b 100644 --- a/sdk/communication/azure-communication-administration/README.md +++ b/sdk/communication/azure-communication-administration/README.md @@ -260,11 +260,11 @@ String phonePlanId = "PHONE_PLAN_ID"; List phonePlanIds = new ArrayList<>(); phonePlanIds.add(phonePlanId); -CreateSearchOptions createSearchOptions = new CreateSearchOptions(); -createSearchOptions - .setAreaCode("AREA_CODE_FOR_SEARCH") - .setDescription("DESCRIPTION_FOR_SEARCH") - .setDisplayName("NAME_FOR_SEARCH") +CreateReservationOptions createReservationOptions = new CreateReservationOptions(); +createReservationOptions + .setAreaCode("AREA_CODE_FOR_RESERVATION") + .setDescription("DESCRIPTION_FOR_RESERVATION") + .setDisplayName("NAME_FOR_RESERVATION") .setPhonePlanIds(phonePlanIds) .setQuantity(2); @@ -272,7 +272,7 @@ Duration duration = Duration.ofSeconds(1); PhoneNumberClient phoneNumberClient = createPhoneNumberClient(); SyncPoller res = - phoneNumberClient.beginCreateSearch(createSearchOptions, duration); + phoneNumberClient.beginCreateReservation(createReservationOptions, duration); res.waitForCompletion(); PhoneNumberReservation result = res.getFinalResult(); @@ -286,11 +286,11 @@ for (String phoneNumber: result.getPhoneNumbers()) { ```java Duration duration = Duration.ofSeconds(1); -String phoneNumberSearchId = "SEARCH_ID_TO_PURCHASE"; +String phoneNumberReservationId = "RESERVATION_ID_TO_PURCHASE"; PhoneNumberClient phoneNumberClient = createPhoneNumberClient(); SyncPoller res = - phoneNumberClient.beginPurchaseSearch(phoneNumberSearchId, duration); + phoneNumberClient.beginPurchaseReservation(phoneNumberReservationId, duration); res.waitForCompletion(); ``` diff --git a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberAsyncClient.java b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberAsyncClient.java index 9f9dd78771b8b..808c59e01f0c7 100644 --- a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberAsyncClient.java +++ b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberAsyncClient.java @@ -6,8 +6,8 @@ import com.azure.communication.administration.implementation.PhoneNumberAdministrationsImpl; import com.azure.communication.administration.models.AcquiredPhoneNumber; import com.azure.communication.administration.models.AreaCodes; -import com.azure.communication.administration.models.CreateSearchOptions; -import com.azure.communication.administration.models.CreateSearchResponse; +import com.azure.communication.administration.models.CreateReservationOptions; +import com.azure.communication.administration.models.CreateReservationResponse; import com.azure.communication.administration.models.LocationOptionsQueries; import com.azure.communication.administration.models.LocationOptionsQuery; import com.azure.communication.administration.models.LocationOptionsResponse; @@ -26,7 +26,6 @@ import com.azure.communication.administration.models.UpdateNumberCapabilitiesResponse; import com.azure.communication.administration.models.NumberConfiguration; import com.azure.communication.administration.models.PhoneNumberReservation; -import com.azure.communication.administration.models.SearchStatus; import com.azure.communication.administration.models.UpdateNumberCapabilitiesRequest; import com.azure.communication.administration.models.UpdatePhoneNumberCapabilitiesResponse; import com.azure.communication.common.PhoneNumber; @@ -599,36 +598,36 @@ PagedFlux listAllReleases(Context context) { } /** - * Gets a search by ID. + * Gets a reservation by ID. * - * @param searchId ID of the search - * @return A {@link Mono} containing a {@link PhoneNumberReservation} representing the search. + * @param reservationId ID of the reservation + * @return A {@link Mono} containing a {@link PhoneNumberReservation} representing the reservation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getSearchById(String searchId) { - return getSearchByIdWithResponse(searchId).flatMap(FluxUtil::toMono); + public Mono getReservationById(String reservationId) { + return getReservationByIdWithResponse(reservationId).flatMap(FluxUtil::toMono); } /** - * Gets a search by ID. + * Gets a reservation by ID. * - * @param searchId ID of the search + * @param reservationId ID of the reservation * @return A {@link Mono} containing a {@link Response} whose {@link Response#getValue()} value returns - * a {@link PhoneNumberReservation} representing the search. + * a {@link PhoneNumberReservation} representing the reservation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getSearchByIdWithResponse(String searchId) { - return getSearchByIdWithResponse(searchId, null); + public Mono> getReservationByIdWithResponse(String reservationId) { + return getReservationByIdWithResponse(reservationId, null); } - Mono> getSearchByIdWithResponse(String searchId, Context context) { - Objects.requireNonNull(searchId, "'searchId' cannot be null."); + Mono> getReservationByIdWithResponse(String reservationId, Context context) { + Objects.requireNonNull(reservationId, "'ReservationId' cannot be null."); try { if (context == null) { - return phoneNumberAdministrations.getSearchByIdWithResponseAsync(searchId); + return phoneNumberAdministrations.getSearchByIdWithResponseAsync(reservationId); } else { - return phoneNumberAdministrations.getSearchByIdWithResponseAsync(searchId, context); + return phoneNumberAdministrations.getSearchByIdWithResponseAsync(reservationId, context); } } catch (RuntimeException ex) { return monoError(logger, ex); @@ -636,36 +635,38 @@ Mono> getSearchByIdWithResponse(String searchId } /** - * Create a phone number search. + * Create a phone number reservation. * - * @param searchOptions A {@link CreateSearchOptions} with the search options - * @return A {@link Mono} containing a {@link CreateSearchResponse} representing the search. + * @param reservationOptions A {@link CreateReservationOptions} with the reservation options + * @return A {@link Mono} containing a {@link CreateReservationResponse} representing the reservation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createSearch(CreateSearchOptions searchOptions) { - return createSearchWithResponse(searchOptions).flatMap(FluxUtil::toMono); + public Mono createReservation(CreateReservationOptions reservationOptions) { + return createReservationWithResponse(reservationOptions).flatMap(FluxUtil::toMono); } /** - * Create a phone number search. + * Create a phone number reservation. * - * @param searchOptions A {@link CreateSearchOptions} with the search options + * @param reservationOptions A {@link CreateReservationOptions} with the reservation options * @return A {@link Mono} containing a {@link Response} whose {@link Response#getValue()} value returns - * a {@link CreateSearchResponse} representing the search. + * a {@link CreateReservationResponse} representing the reservation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createSearchWithResponse(CreateSearchOptions searchOptions) { - return createSearchWithResponse(searchOptions, null); + public Mono> createReservationWithResponse( + CreateReservationOptions reservationOptions) { + return createReservationWithResponse(reservationOptions, null); } - Mono> createSearchWithResponse(CreateSearchOptions searchOptions, Context context) { - Objects.requireNonNull(searchOptions, "'searchOptions' cannot be null."); + Mono> createReservationWithResponse( + CreateReservationOptions reservationOptions, Context context) { + Objects.requireNonNull(reservationOptions, "'reservationOptions' cannot be null."); try { if (context == null) { - return phoneNumberAdministrations.createSearchWithResponseAsync(searchOptions); + return phoneNumberAdministrations.createSearchWithResponseAsync(reservationOptions); } else { - return phoneNumberAdministrations.createSearchWithResponseAsync(searchOptions, context); + return phoneNumberAdministrations.createSearchWithResponseAsync(reservationOptions, context); } } catch (RuntimeException ex) { return monoError(logger, ex); @@ -673,16 +674,16 @@ Mono> createSearchWithResponse(CreateSearchOption } /** - * Gets the list of all searches + * Gets the list of all reservations * - * @return A {@link PagedFlux} of {@link PhoneNumberEntity} instances representing searches. + * @return A {@link PagedFlux} of {@link PhoneNumberEntity} instances representing reservations. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAllSearches() { - return listAllSearches(null); + public PagedFlux listAllReservations() { + return listAllReservations(null); } - PagedFlux listAllSearches(Context context) { + PagedFlux listAllReservations(Context context) { try { if (context == null) { return phoneNumberAdministrations.getAllSearchesAsync(null, null); @@ -695,35 +696,35 @@ PagedFlux listAllSearches(Context context) { } /** - * Cancels the search. This means existing numbers in the search will be made available. + * Cancels the reservation. This means existing numbers in the reservation will be made available. * - * @param searchId ID of the search + * @param reservationId ID of the reservation * @return A {@link Mono} for the asynchronous return */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono cancelSearch(String searchId) { - return cancelSearchWithResponse(searchId).flatMap(FluxUtil::toMono); + public Mono cancelReservation(String reservationId) { + return cancelReservationWithResponse(reservationId).flatMap(FluxUtil::toMono); } /** - * Cancels the search. This means existing numbers in the search will be made available. + * Cancels the reservation. This means existing numbers in the reservation will be made available. * - * @param searchId ID of the search + * @param reservationId ID of the reservation * @return A {@link Mono} containing a {@link Response} for the operation */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> cancelSearchWithResponse(String searchId) { - return cancelSearchWithResponse(searchId, null); + public Mono> cancelReservationWithResponse(String reservationId) { + return cancelReservationWithResponse(reservationId, null); } - Mono> cancelSearchWithResponse(String searchId, Context context) { - Objects.requireNonNull(searchId, "'searchId' cannot be null."); + Mono> cancelReservationWithResponse(String reservationId, Context context) { + Objects.requireNonNull(reservationId, "'ReservationId' cannot be null."); try { if (context == null) { - return phoneNumberAdministrations.cancelSearchWithResponseAsync(searchId); + return phoneNumberAdministrations.cancelSearchWithResponseAsync(reservationId); } else { - return phoneNumberAdministrations.cancelSearchWithResponseAsync(searchId, context); + return phoneNumberAdministrations.cancelSearchWithResponseAsync(reservationId, context); } } catch (RuntimeException ex) { return monoError(logger, ex); @@ -731,33 +732,33 @@ Mono> cancelSearchWithResponse(String searchId, Context context) } /** - * Purchases the phone number search. + * Purchases the phone number reservation. * - * @param searchId ID of the search + * @param reservationId ID of the reservation * @return A {@link Mono} for the asynchronous return */ - private Mono purchaseSearch(String searchId) { - return purchaseSearchWithResponse(searchId).flatMap(FluxUtil::toMono); + private Mono purchaseReservation(String reservationId) { + return purchaseReservationWithResponse(reservationId).flatMap(FluxUtil::toMono); } /** - * Purchases the phone number search. + * Purchases the phone number reservation. * - * @param searchId ID of the search + * @param reservationId ID of the reservation * @return A {@link Mono} containing a {@link Response} for the operation */ - private Mono> purchaseSearchWithResponse(String searchId) { - return purchaseSearchWithResponse(searchId, null); + private Mono> purchaseReservationWithResponse(String reservationId) { + return purchaseReservationWithResponse(reservationId, null); } - private Mono> purchaseSearchWithResponse(String searchId, Context context) { - Objects.requireNonNull(searchId, "'searchId' cannot be null."); + private Mono> purchaseReservationWithResponse(String reservationId, Context context) { + Objects.requireNonNull(reservationId, "'reservationId' cannot be null."); try { if (context == null) { - return phoneNumberAdministrations.purchaseSearchWithResponseAsync(searchId); + return phoneNumberAdministrations.purchaseSearchWithResponseAsync(reservationId); } else { - return phoneNumberAdministrations.purchaseSearchWithResponseAsync(searchId, context); + return phoneNumberAdministrations.purchaseSearchWithResponseAsync(reservationId, context); } } catch (RuntimeException ex) { return monoError(logger, ex); @@ -765,18 +766,18 @@ private Mono> purchaseSearchWithResponse(String searchId, Context } /** - * Initiates a search and returns a {@link PhoneNumberReservation} usable by other functions + * Initiates a reservation and returns a {@link PhoneNumberReservation} usable by other functions * This function returns a Long Running Operation poller that allows you to * wait indefinitely until the operation is complete. * - * @param options A {@link CreateSearchOptions} with the search options + * @param options A {@link CreateReservationOptions} with the reservation options * @param pollInterval The time our long running operation will keep on polling * until it gets a result from the server - * @return A {@link PollerFlux} object with the search result + * @return A {@link PollerFlux} object with the reservation result */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PollerFlux beginCreateSearch( - CreateSearchOptions options, Duration pollInterval) { + public PollerFlux beginCreateReservation( + CreateReservationOptions options, Duration pollInterval) { Objects.requireNonNull(options, "'options' cannot be null."); if (pollInterval == null) { @@ -784,55 +785,57 @@ public PollerFlux beginCreateSea } return new PollerFlux(pollInterval, - createSearchActivationOperation(options), - createSearchPollOperation(), - cancelSearchOperation(), - createSearchFetchResultOperation()); + createReservationActivationOperation(options), + createReservationPollOperation(), + cancelReservationOperation(), + createReservationFetchResultOperation()); } private Function, Mono> - createSearchActivationOperation(CreateSearchOptions options) { + createReservationActivationOperation(CreateReservationOptions options) { return (pollingContext) -> { - Mono response = createSearch(options).flatMap(createSearchResponse -> { - String searchId = createSearchResponse.getSearchId(); - Mono phoneNumberSearch = getSearchById(searchId); - return phoneNumberSearch; + Mono response = createReservation(options).flatMap(createReservationResponse -> { + String reservationId = createReservationResponse.getReservationId(); + Mono phoneNumberReservation = getReservationById(reservationId); + return phoneNumberReservation; }); return response; }; } private Function, Mono>> - createSearchPollOperation() { + createReservationPollOperation() { return pollingContext -> - getSearchById(pollingContext.getLatestResponse().getValue().getReservationId()) - .flatMap(getSearchResponse -> { - SearchStatus status = getSearchResponse.getStatus(); - if (status.equals(SearchStatus.EXPIRED) - || status.equals(SearchStatus.CANCELLED) - || status.equals(SearchStatus.RESERVED)) { + getReservationById(pollingContext.getLatestResponse().getValue().getReservationId()) + .flatMap(getReservationResponse -> { + ReservationStatus status = + ReservationStatus.fromString(getReservationResponse.getStatus().toString()); + if (status.equals(ReservationStatus.EXPIRED) + || status.equals(ReservationStatus.CANCELLED) + || status.equals(ReservationStatus.RESERVED)) { return Mono.just(new PollResponse<>( - LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, getSearchResponse)); + LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, getReservationResponse)); } - if (status.equals(SearchStatus.ERROR)) { + if (status.equals(ReservationStatus.ERROR)) { return Mono.just(new PollResponse<>( - LongRunningOperationStatus.FAILED, getSearchResponse)); + LongRunningOperationStatus.FAILED, getReservationResponse)); } - return Mono.just(new PollResponse<>(LongRunningOperationStatus.IN_PROGRESS, getSearchResponse)); + return Mono.just(new PollResponse<>(LongRunningOperationStatus.IN_PROGRESS, + getReservationResponse)); }); } private BiFunction, PollResponse, Mono> - cancelSearchOperation() { + cancelReservationOperation() { return (pollingContext, firstResponse) -> { - cancelSearch(pollingContext.getLatestResponse().getValue().getReservationId()); + cancelReservation(pollingContext.getLatestResponse().getValue().getReservationId()); return Mono.just(pollingContext.getLatestResponse().getValue()); }; } private Function, - Mono> createSearchFetchResultOperation() { + Mono> createReservationFetchResultOperation() { return pollingContext -> { return Mono.just(pollingContext.getLatestResponse().getValue()); }; @@ -843,45 +846,46 @@ Mono> createSearchFetchResultOperation() { * This function returns a Long Running Operation poller that allows you to * wait indefinitely until the operation is complete. * - * @param searchId ID of the search + * @param reservationId ID of the reservation * @param pollInterval The time our long running operation will keep on polling * until it gets a result from the server * @return A {@link PollerFlux} object. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PollerFlux beginPurchaseSearch(String searchId, Duration pollInterval) { - Objects.requireNonNull(searchId, "'searchId' can not be null."); + public PollerFlux beginPurchaseReservation(String reservationId, Duration pollInterval) { + Objects.requireNonNull(reservationId, "'ReservationId' can not be null."); if (pollInterval == null) { pollInterval = defaultPollInterval; } return new PollerFlux(pollInterval, - purchaseSearchActivationOperation(searchId), - purchaseSearchPollOperation(searchId), + purchaseReservationActivationOperation(reservationId), + purchaseReservationPollOperation(reservationId), (activationResponse, pollingContext) -> Mono.error(new RuntimeException("Cancellation is not supported")), - purchaseSearchFetchResultOperation()); + purchaseReservationFetchResultOperation()); } private Function, - Mono> purchaseSearchActivationOperation(String searchId) { + Mono> purchaseReservationActivationOperation(String reservationId) { return (pollingContext) -> { - return purchaseSearch(searchId); + return purchaseReservation(reservationId); }; } private Function, Mono>> - purchaseSearchPollOperation(String searchId) { - return (pollingContext) -> getSearchById(searchId) - .flatMap(getSearchResponse -> { - SearchStatus statusResponse = getSearchResponse.getStatus(); - if (statusResponse.equals(SearchStatus.SUCCESS)) { + purchaseReservationPollOperation(String reservationId) { + return (pollingContext) -> getReservationById(reservationId) + .flatMap(getReservationResponse -> { + ReservationStatus statusResponse = + ReservationStatus.fromString(getReservationResponse.getStatus().toString()); + if (statusResponse.equals(ReservationStatus.SUCCESS)) { return Mono.just(new PollResponse<>( LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, null)); } - if (statusResponse.equals(SearchStatus.ERROR) - || statusResponse.equals(SearchStatus.EXPIRED)) { + if (statusResponse.equals(ReservationStatus.ERROR) + || statusResponse.equals(ReservationStatus.EXPIRED)) { return Mono.just(new PollResponse<>( LongRunningOperationStatus.FAILED, null)); } @@ -890,7 +894,7 @@ Mono> purchaseSearchActivationOperation(String searchId) { } private Function, - Mono> purchaseSearchFetchResultOperation() { + Mono> purchaseReservationFetchResultOperation() { return pollingContext -> { return Mono.empty(); }; diff --git a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberClient.java b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberClient.java index fe4638fc06448..183002f4f36af 100644 --- a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberClient.java +++ b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberClient.java @@ -4,8 +4,8 @@ import com.azure.communication.administration.models.AcquiredPhoneNumber; import com.azure.communication.administration.models.AreaCodes; -import com.azure.communication.administration.models.CreateSearchOptions; -import com.azure.communication.administration.models.CreateSearchResponse; +import com.azure.communication.administration.models.CreateReservationOptions; +import com.azure.communication.administration.models.CreateReservationResponse; import com.azure.communication.administration.models.LocationOptionsQuery; import com.azure.communication.administration.models.LocationOptionsResponse; import com.azure.communication.administration.models.NumberConfigurationResponse; @@ -388,124 +388,125 @@ public PagedIterable listAllReleases(Context context) { } /** - * Gets a search by ID. + * Gets a reservation by ID. * - * @param searchId ID of the search - * @return A {@link PhoneNumberReservation} representing the search. + * @param reservationId ID of the reservation + * @return A {@link PhoneNumberReservation} representing the reservation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PhoneNumberReservation getSearchById(String searchId) { - return phoneNumberAsyncClient.getSearchById(searchId).block(); + public PhoneNumberReservation getReservationById(String reservationId) { + return phoneNumberAsyncClient.getReservationById(reservationId).block(); } /** - * Gets a search by ID. + * Gets a reservation by ID. * - * @param searchId ID of the search + * @param reservationId ID of the reservation * @param context A {@link Context} representing the request context. * @return A {@link Response} whose {@link Response#getValue()} value returns - * a {@link PhoneNumberReservation} representing the search. + * a {@link PhoneNumberReservation} representing the reservation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getSearchByIdWithResponse(String searchId, Context context) { - return phoneNumberAsyncClient.getSearchByIdWithResponse(searchId, context).block(); + public Response getReservationByIdWithResponse(String reservationId, Context context) { + return phoneNumberAsyncClient.getReservationByIdWithResponse(reservationId, context).block(); } /** - * Create a phone number search. + * Create a phone number reservation. * - * @param searchOptions A {@link CreateSearchOptions} with the search options - * @return A {@link CreateSearchResponse} representing the search. + * @param reservationOptions A {@link CreateReservationOptions} with the reservation options + * @return A {@link CreateReservationResponse} representing the reservation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CreateSearchResponse createSearch(CreateSearchOptions searchOptions) { - return phoneNumberAsyncClient.createSearch(searchOptions).block(); + public CreateReservationResponse createReservation(CreateReservationOptions reservationOptions) { + return phoneNumberAsyncClient.createReservation(reservationOptions).block(); } /** - * Create a phone number search. + * Create a phone number reservation. * - * @param searchOptions A {@link CreateSearchOptions} with the search options + * @param reservationOptions A {@link CreateReservationOptions} with the reservation options * @param context A {@link Context} representing the request context. * @return A {@link Response} whose {@link Response#getValue()} value returns - * a {@link CreateSearchResponse} representing the search. + * a {@link CreateReservationResponse} representing the reservation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createSearchWithResponse(CreateSearchOptions searchOptions, Context context) { - return phoneNumberAsyncClient.createSearchWithResponse(searchOptions, context).block(); + public Response createReservationWithResponse( + CreateReservationOptions reservationOptions, Context context) { + return phoneNumberAsyncClient.createReservationWithResponse(reservationOptions, context).block(); } /** - * Gets the list of all searches + * Gets the list of all reservationes * - * @return A {@link PagedIterable} of {@link PhoneNumberEntity} instances representing searches. + * @return A {@link PagedIterable} of {@link PhoneNumberEntity} instances representing reservationes. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listAllSearches() { - return new PagedIterable<>(phoneNumberAsyncClient.listAllSearches()); + public PagedIterable listAllReservations() { + return new PagedIterable<>(phoneNumberAsyncClient.listAllReservations()); } /** - * Gets the list of all searches + * Gets the list of all reservationes * * @param context A {@link Context} representing the request context. - * @return A {@link PagedIterable} of {@link PhoneNumberEntity} instances representing searches. + * @return A {@link PagedIterable} of {@link PhoneNumberEntity} instances representing reservationes. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listAllSearches(Context context) { - return new PagedIterable<>(phoneNumberAsyncClient.listAllSearches(context)); + public PagedIterable listAllReservations(Context context) { + return new PagedIterable<>(phoneNumberAsyncClient.listAllReservations(context)); } /** - * Cancels the search. This means existing numbers in the search will be made available. + * Cancels the reservation. This means existing numbers in the reservation will be made available. * - * @param searchId ID of the search + * @param reservationId ID of the reservation */ @ServiceMethod(returns = ReturnType.SINGLE) - public void cancelSearch(String searchId) { - phoneNumberAsyncClient.cancelSearch(searchId).block(); + public void cancelReservation(String reservationId) { + phoneNumberAsyncClient.cancelReservation(reservationId).block(); } /** - * Cancels the search. This means existing numbers in the search will be made available. + * Cancels the reservation. This means existing numbers in the reservation will be made available. * - * @param searchId ID of the search + * @param reservationId ID of the reservation * @param context A {@link Context} representing the request context. * @return A {@link Response} for the operation */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response cancelSearchWithResponse(String searchId, Context context) { - return phoneNumberAsyncClient.cancelSearchWithResponse(searchId, context).block(); + public Response cancelReservationWithResponse(String reservationId, Context context) { + return phoneNumberAsyncClient.cancelReservationWithResponse(reservationId, context).block(); } /** - * Initiates a search and returns a {@link PhoneNumberReservation} usable by other functions + * Initiates a reservation and returns a {@link PhoneNumberReservation} usable by other functions * This function returns a Long Running Operation poller. * - * @param options A {@link CreateSearchOptions} with the search options + * @param options A {@link CreateReservationOptions} with the reservation options * @param pollInterval The time our long running operation will keep on polling * until it gets a result from the server - * @return A {@link SyncPoller} object with the search result + * @return A {@link SyncPoller} object with the reservation result */ @ServiceMethod(returns = ReturnType.COLLECTION) - public SyncPoller beginCreateSearch( - CreateSearchOptions options, Duration pollInterval) { - return phoneNumberAsyncClient.beginCreateSearch(options, pollInterval).getSyncPoller(); + public SyncPoller beginCreateReservation( + CreateReservationOptions options, Duration pollInterval) { + return phoneNumberAsyncClient.beginCreateReservation(options, pollInterval).getSyncPoller(); } /** * Initiates a purchase process and polls until a terminal state is reached * This function returns a Long Running Operation poller * - * @param searchId ID of the search + * @param reservationId ID of the reservation * @param pollInterval The time our long running operation will keep on polling * until it gets a result from the server - * @return A {@link SyncPoller} object with the search result + * @return A {@link SyncPoller} object with the reservation result */ @ServiceMethod(returns = ReturnType.COLLECTION) - public SyncPoller beginPurchaseSearch( - String searchId, Duration pollInterval) { - return phoneNumberAsyncClient.beginPurchaseSearch(searchId, pollInterval).getSyncPoller(); + public SyncPoller beginPurchaseReservation( + String reservationId, Duration pollInterval) { + return phoneNumberAsyncClient.beginPurchaseReservation(reservationId, pollInterval).getSyncPoller(); } /** @@ -515,7 +516,7 @@ public SyncPoller beginPurchaseSearch( * @param phoneNumbers A list of {@link PhoneNumber} with the desired numbers to release * @param pollInterval The time our long running operation will keep on polling * until it gets a result from the server - * @return A {@link SyncPoller} object with the search result + * @return A {@link SyncPoller} object with the reservation result */ @ServiceMethod(returns = ReturnType.COLLECTION) public SyncPoller beginReleasePhoneNumbers( diff --git a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/ReservationStatus.java b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/ReservationStatus.java new file mode 100644 index 0000000000000..335d7cba2d37c --- /dev/null +++ b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/ReservationStatus.java @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.communication.administration; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for ReservationStatus. */ +public final class ReservationStatus extends ExpandableStringEnum { + /** Static value Pending for ReservationStatus. */ + public static final ReservationStatus PENDING = fromString("Pending"); + + /** Static value InProgress for ReservationStatus. */ + public static final ReservationStatus IN_PROGRESS = fromString("InProgress"); + + /** Static value Reserved for ReservationStatus. */ + public static final ReservationStatus RESERVED = fromString("Reserved"); + + /** Static value Expired for ReservationStatus. */ + public static final ReservationStatus EXPIRED = fromString("Expired"); + + /** Static value Expiring for ReservationStatus. */ + public static final ReservationStatus EXPIRING = fromString("Expiring"); + + /** Static value Completing for ReservationStatus. */ + public static final ReservationStatus COMPLETING = fromString("Completing"); + + /** Static value Refreshing for ReservationStatus. */ + public static final ReservationStatus REFRESHING = fromString("Refreshing"); + + /** Static value Success for ReservationStatus. */ + public static final ReservationStatus SUCCESS = fromString("Success"); + + /** Static value Manual for ReservationStatus. */ + public static final ReservationStatus MANUAL = fromString("Manual"); + + /** Static value Cancelled for ReservationStatus. */ + public static final ReservationStatus CANCELLED = fromString("Cancelled"); + + /** Static value Cancelling for ReservationStatus. */ + public static final ReservationStatus CANCELLING = fromString("Cancelling"); + + /** Static value Error for ReservationStatus. */ + public static final ReservationStatus ERROR = fromString("Error"); + + /** Static value PurchasePending for ReservationStatus. */ + public static final ReservationStatus PURCHASE_PENDING = fromString("PurchasePending"); + + /** + * Creates or finds a ReservationStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding ReservationStatus. + */ + @JsonCreator + public static ReservationStatus fromString(String name) { + return fromString(name, ReservationStatus.class); + } + + /** @return known ReservationStatus values. */ + public static Collection values() { + return values(ReservationStatus.class); + } +} diff --git a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/implementation/PhoneNumberAdministrationsImpl.java b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/implementation/PhoneNumberAdministrationsImpl.java index 76c4fd0e52cc5..501ebdc461648 100644 --- a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/implementation/PhoneNumberAdministrationsImpl.java +++ b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/implementation/PhoneNumberAdministrationsImpl.java @@ -7,8 +7,8 @@ import com.azure.communication.administration.models.AcquiredPhoneNumber; import com.azure.communication.administration.models.AcquiredPhoneNumbers; import com.azure.communication.administration.models.AreaCodes; -import com.azure.communication.administration.models.CreateSearchOptions; -import com.azure.communication.administration.models.CreateSearchResponse; +import com.azure.communication.administration.models.CreateReservationOptions; +import com.azure.communication.administration.models.CreateReservationResponse; import com.azure.communication.administration.models.ErrorResponseException; import com.azure.communication.administration.models.LocationOptionsQueries; import com.azure.communication.administration.models.LocationOptionsResponse; @@ -236,10 +236,10 @@ Mono> getSearchById( @Post("/administration/phonenumbers/searches") @ExpectedResponses({201}) @UnexpectedResponseExceptionType(ErrorResponseException.class) - Mono> createSearch( + Mono> createSearch( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") CreateSearchOptions body, + @BodyParam("application/json") CreateReservationOptions body, Context context); @Get("/administration/phonenumbers/searches") @@ -2144,7 +2144,7 @@ public PhoneNumberReservation getSearchById(String searchId, Context context) { * @return represents a search creation response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createSearchWithResponseAsync(CreateSearchOptions body) { + public Mono> createSearchWithResponseAsync(CreateReservationOptions body) { return FluxUtil.withContext( context -> service.createSearch(this.client.getEndpoint(), this.client.getApiVersion(), body, context)); } @@ -2160,8 +2160,8 @@ public Mono> createSearchWithResponseAsync(Create * @return represents a search creation response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createSearchWithResponseAsync( - CreateSearchOptions body, Context context) { + public Mono> createSearchWithResponseAsync( + CreateReservationOptions body, Context context) { return service.createSearch(this.client.getEndpoint(), this.client.getApiVersion(), body, context); } @@ -2175,10 +2175,10 @@ public Mono> createSearchWithResponseAsync( * @return represents a search creation response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createSearchAsync(CreateSearchOptions body) { + public Mono createSearchAsync(CreateReservationOptions body) { return createSearchWithResponseAsync(body) .flatMap( - (Response res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -2198,10 +2198,10 @@ public Mono createSearchAsync(CreateSearchOptions body) { * @return represents a search creation response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createSearchAsync(CreateSearchOptions body, Context context) { + public Mono createSearchAsync(CreateReservationOptions body, Context context) { return createSearchWithResponseAsync(body, context) .flatMap( - (Response res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -2220,7 +2220,7 @@ public Mono createSearchAsync(CreateSearchOptions body, Co * @return represents a search creation response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CreateSearchResponse createSearch(CreateSearchOptions body) { + public CreateReservationResponse createSearch(CreateReservationOptions body) { return createSearchAsync(body).block(); } @@ -2235,7 +2235,7 @@ public CreateSearchResponse createSearch(CreateSearchOptions body) { * @return represents a search creation response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CreateSearchResponse createSearch(CreateSearchOptions body, Context context) { + public CreateReservationResponse createSearch(CreateReservationOptions body, Context context) { return createSearchAsync(body, context).block(); } diff --git a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/CreateSearchOptions.java b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/CreateReservationOptions.java similarity index 81% rename from sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/CreateSearchOptions.java rename to sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/CreateReservationOptions.java index 8bd128dc3db05..27ddb16c2e709 100644 --- a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/CreateSearchOptions.java +++ b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/CreateReservationOptions.java @@ -8,9 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The CreateSearchOptions model. */ +/** The CreateReservationOptions model. */ @Fluent -public final class CreateSearchOptions { +public final class CreateReservationOptions { /* * Display name of the search. */ @@ -60,9 +60,9 @@ public String getDisplayName() { * Set the displayName property: Display name of the search. * * @param displayName the displayName value to set. - * @return the CreateSearchOptions object itself. + * @return the CreateReservationOptions object itself. */ - public CreateSearchOptions setDisplayName(String displayName) { + public CreateReservationOptions setDisplayName(String displayName) { this.displayName = displayName; return this; } @@ -80,9 +80,9 @@ public String getDescription() { * Set the description property: Description of the search. * * @param description the description value to set. - * @return the CreateSearchOptions object itself. + * @return the CreateReservationOptions object itself. */ - public CreateSearchOptions setDescription(String description) { + public CreateReservationOptions setDescription(String description) { this.description = description; return this; } @@ -100,9 +100,9 @@ public List getPhonePlanIds() { * Set the phonePlanIds property: The plan subtype ids from which to create the search. * * @param phonePlanIds the phonePlanIds value to set. - * @return the CreateSearchOptions object itself. + * @return the CreateReservationOptions object itself. */ - public CreateSearchOptions setPhonePlanIds(List phonePlanIds) { + public CreateReservationOptions setPhonePlanIds(List phonePlanIds) { this.phonePlanIds = phonePlanIds; return this; } @@ -120,9 +120,9 @@ public String getAreaCode() { * Set the areaCode property: The area code from which to create the search. * * @param areaCode the areaCode value to set. - * @return the CreateSearchOptions object itself. + * @return the CreateReservationOptions object itself. */ - public CreateSearchOptions setAreaCode(String areaCode) { + public CreateReservationOptions setAreaCode(String areaCode) { this.areaCode = areaCode; return this; } @@ -140,9 +140,9 @@ public Integer getQuantity() { * Set the quantity property: The quantity of phone numbers to request. * * @param quantity the quantity value to set. - * @return the CreateSearchOptions object itself. + * @return the CreateReservationOptions object itself. */ - public CreateSearchOptions setQuantity(Integer quantity) { + public CreateReservationOptions setQuantity(Integer quantity) { this.quantity = quantity; return this; } @@ -160,9 +160,9 @@ public List getLocationOptions() { * Set the locationOptions property: The location options of the search. * * @param locationOptions the locationOptions value to set. - * @return the CreateSearchOptions object itself. + * @return the CreateReservationOptions object itself. */ - public CreateSearchOptions setLocationOptions(List locationOptions) { + public CreateReservationOptions setLocationOptions(List locationOptions) { this.locationOptions = locationOptions; return this; } diff --git a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/CreateReservationResponse.java b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/CreateReservationResponse.java new file mode 100644 index 0000000000000..e49f696bd3caa --- /dev/null +++ b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/CreateReservationResponse.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.communication.administration.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The CreateReservationResponse model. */ +@Fluent +public final class CreateReservationResponse { + /* + * The search id of the search that was created. + */ + @JsonProperty(value = "searchId", required = true) + private String reservationId; + + /** + * Get the reservationId property: The search id of the search that was created. + * + * @return the reservationId value. + */ + public String getReservationId() { + return this.reservationId; + } + + /** + * Set the reservationId property: The search id of the search that was created. + * + * @param reservationId the reservationId value to set. + * @return the CreateReservationResponse object itself. + */ + public CreateReservationResponse setReservationId(String reservationId) { + this.reservationId = reservationId; + return this; + } +} diff --git a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/CreateSearchResponse.java b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/CreateSearchResponse.java deleted file mode 100644 index 24fb02f36a9d6..0000000000000 --- a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/CreateSearchResponse.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.communication.administration.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The CreateSearchResponse model. */ -@Fluent -public final class CreateSearchResponse { - /* - * The search id of the search that was created. - */ - @JsonProperty(value = "searchId", required = true) - private String searchId; - - /** - * Get the searchId property: The search id of the search that was created. - * - * @return the searchId value. - */ - public String getSearchId() { - return this.searchId; - } - - /** - * Set the searchId property: The search id of the search that was created. - * - * @param searchId the searchId value to set. - * @return the CreateSearchResponse object itself. - */ - public CreateSearchResponse setSearchId(String searchId) { - this.searchId = searchId; - return this; - } -} diff --git a/sdk/communication/azure-communication-administration/src/samples/java/com/azure/communication/administration/ReadmeSamples.java b/sdk/communication/azure-communication-administration/src/samples/java/com/azure/communication/administration/ReadmeSamples.java index e5019cb2b4acd..47fd34a516e70 100644 --- a/sdk/communication/azure-communication-administration/src/samples/java/com/azure/communication/administration/ReadmeSamples.java +++ b/sdk/communication/azure-communication-administration/src/samples/java/com/azure/communication/administration/ReadmeSamples.java @@ -9,8 +9,8 @@ import java.util.List; import com.azure.communication.administration.models.AcquiredPhoneNumber; import com.azure.communication.administration.models.AreaCodes; -import com.azure.communication.administration.models.CreateSearchOptions; -import com.azure.communication.administration.models.CreateSearchResponse; +import com.azure.communication.administration.models.CreateReservationOptions; +import com.azure.communication.administration.models.CreateReservationResponse; import com.azure.communication.administration.models.LocationOptions; import com.azure.communication.administration.models.LocationOptionsDetails; import com.azure.communication.administration.models.LocationOptionsQuery; @@ -295,7 +295,7 @@ public AreaCodes getAreaCodes() { } /** - * Sample code to create a phone number search + * Sample code to create a phone number reservation * * @return PhoneNumberReservation for the phone plan */ @@ -305,25 +305,25 @@ public PhoneNumberReservation createPhoneNumberReservation() { List phonePlanIds = new ArrayList<>(); phonePlanIds.add(phonePlanId); - CreateSearchOptions createSearchOptions = new CreateSearchOptions(); - createSearchOptions - .setAreaCode("AREA_CODE_FOR_SEARCH") - .setDescription("DESCRIPTION_FOR_SEARCH") - .setDisplayName("NAME_FOR_SEARCH") + CreateReservationOptions createReservationOptions = new CreateReservationOptions(); + createReservationOptions + .setAreaCode("AREA_CODE_FOR_RESERVATION") + .setDescription("DESCRIPTION_FOR_RESERVATION") + .setDisplayName("NAME_FOR_RESERVATION") .setPhonePlanIds(phonePlanIds) .setQuantity(2); PhoneNumberClient phoneNumberClient = createPhoneNumberClient(); - CreateSearchResponse createSearchResponse = phoneNumberClient.createSearch(createSearchOptions); + CreateReservationResponse createReservationResponse = phoneNumberClient.createReservation(createReservationOptions); - System.out.println("SearchId: " + createSearchResponse.getSearchId()); - PhoneNumberReservation phoneNumberSearch = phoneNumberClient.getSearchById(createSearchResponse.getSearchId()); + System.out.println("ReservationId: " + createReservationResponse.getReservationId()); + PhoneNumberReservation phoneNumberReservation = phoneNumberClient.getReservationById(createReservationResponse.getReservationId()); for (String phoneNumber - : phoneNumberSearch.getPhoneNumbers()) { + : phoneNumberReservation.getPhoneNumbers()) { System.out.println("Phone Number: " + phoneNumber); } - return phoneNumberSearch; + return phoneNumberReservation; } /** @@ -339,19 +339,19 @@ public void configurePhoneNumber() { } /** - * Sample code to create a search as a long running operation + * Sample code to create a reservation as a long running operation */ - public void beginCreateSearch() { + public void beginCreateReservation() { String phonePlanId = "PHONE_PLAN_ID"; List phonePlanIds = new ArrayList<>(); phonePlanIds.add(phonePlanId); - CreateSearchOptions createSearchOptions = new CreateSearchOptions(); - createSearchOptions - .setAreaCode("AREA_CODE_FOR_SEARCH") - .setDescription("DESCRIPTION_FOR_SEARCH") - .setDisplayName("NAME_FOR_SEARCH") + CreateReservationOptions createReservationOptions = new CreateReservationOptions(); + createReservationOptions + .setAreaCode("AREA_CODE_FOR_RESERVATION") + .setDescription("DESCRIPTION_FOR_RESERVATION") + .setDisplayName("NAME_FOR_RESERVATION") .setPhonePlanIds(phonePlanIds) .setQuantity(2); @@ -359,7 +359,7 @@ public void beginCreateSearch() { PhoneNumberClient phoneNumberClient = createPhoneNumberClient(); SyncPoller res = - phoneNumberClient.beginCreateSearch(createSearchOptions, duration); + phoneNumberClient.beginCreateReservation(createReservationOptions, duration); res.waitForCompletion(); PhoneNumberReservation result = res.getFinalResult(); @@ -370,15 +370,15 @@ public void beginCreateSearch() { } /** - * Sample code to purchase a search as a long running operation + * Sample code to purchase a reservation as a long running operation */ - public void beginPurchaseSearch() { + public void beginPurchaseReservation() { Duration duration = Duration.ofSeconds(1); - String phoneNumberSearchId = "SEARCH_ID_TO_PURCHASE"; + String phoneNumberReservationId = "RESERVATION_ID_TO_PURCHASE"; PhoneNumberClient phoneNumberClient = createPhoneNumberClient(); SyncPoller res = - phoneNumberClient.beginPurchaseSearch(phoneNumberSearchId, duration); + phoneNumberClient.beginPurchaseReservation(phoneNumberReservationId, duration); res.waitForCompletion(); } diff --git a/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberAsyncClientIntegrationTest.java b/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberAsyncClientIntegrationTest.java index 0b074e8910a34..1971e28260329 100644 --- a/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberAsyncClientIntegrationTest.java +++ b/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberAsyncClientIntegrationTest.java @@ -5,8 +5,8 @@ import com.azure.communication.administration.models.AcquiredPhoneNumber; import com.azure.communication.administration.models.AreaCodes; import com.azure.communication.administration.models.Capability; -import com.azure.communication.administration.models.CreateSearchOptions; -import com.azure.communication.administration.models.CreateSearchResponse; +import com.azure.communication.administration.models.CreateReservationOptions; +import com.azure.communication.administration.models.CreateReservationResponse; import com.azure.communication.administration.models.LocationOptionsQuery; import com.azure.communication.administration.models.LocationOptionsResponse; import com.azure.communication.administration.models.NumberConfigurationResponse; @@ -19,7 +19,6 @@ import com.azure.communication.administration.models.PhonePlanGroup; import com.azure.communication.administration.models.PstnConfiguration; import com.azure.communication.administration.models.ReleaseStatus; -import com.azure.communication.administration.models.SearchStatus; import com.azure.communication.administration.models.UpdateNumberCapabilitiesResponse; import com.azure.communication.administration.models.UpdatePhoneNumberCapabilitiesResponse; import com.azure.communication.common.PhoneNumber; @@ -119,8 +118,8 @@ public void listAllReleases(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - public void listAllSearches(HttpClient httpClient) { - PagedFlux pagedFlux = this.getClient(httpClient).listAllSearches(); + public void listAllReservations(HttpClient httpClient) { + PagedFlux pagedFlux = this.getClient(httpClient).listAllReservations(); StepVerifier.create(pagedFlux.next()) .assertNext(item -> { @@ -276,89 +275,89 @@ public void getCapabilitiesUpdateWithResponse(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - public void createSearch(HttpClient httpClient) { + public void createReservation(HttpClient httpClient) { List phonePlanIds = new ArrayList<>(); phonePlanIds.add(PHONE_PLAN_ID); - CreateSearchOptions createSearchOptions = new CreateSearchOptions(); - createSearchOptions + CreateReservationOptions createReservationOptions = new CreateReservationOptions(); + createReservationOptions .setAreaCode(AREA_CODE_FOR_SEARCH) - .setDescription("testsearch20200014") - .setDisplayName("testsearch20200014") + .setDescription("testreservation20200014") + .setDisplayName("testreservation20200014") .setPhonePlanIds(phonePlanIds) .setQuantity(1); - Mono mono = this.getClient(httpClient).createSearch(createSearchOptions); + Mono mono = this.getClient(httpClient).createReservation(createReservationOptions); StepVerifier.create(mono) .assertNext(item -> { - assertNotNull(item.getSearchId()); + assertNotNull(item.getReservationId()); }) .verifyComplete(); } @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - public void createSearchWithResponse(HttpClient httpClient) { + public void createReservationWithResponse(HttpClient httpClient) { List phonePlanIds = new ArrayList<>(); phonePlanIds.add(PHONE_PLAN_ID); - CreateSearchOptions createSearchOptions = new CreateSearchOptions(); - createSearchOptions + CreateReservationOptions createReservationOptions = new CreateReservationOptions(); + createReservationOptions .setAreaCode(AREA_CODE_FOR_SEARCH) - .setDescription("testsearch20200014") - .setDisplayName("testsearch20200014") + .setDescription("testreservation20200014") + .setDisplayName("testreservation20200014") .setPhonePlanIds(phonePlanIds) .setQuantity(1); - Mono> mono = - this.getClient(httpClient).createSearchWithResponse(createSearchOptions, Context.NONE); + Mono> mono = + this.getClient(httpClient).createReservationWithResponse(createReservationOptions, Context.NONE); StepVerifier.create(mono) .assertNext(item -> { assertEquals(201, item.getStatusCode()); - assertNotNull(item.getValue().getSearchId()); + assertNotNull(item.getValue().getReservationId()); }) .verifyComplete(); } @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - public void getSearchById(HttpClient httpClient) { - Mono mono = this.getClient(httpClient).getSearchById(SEARCH_ID); + public void getReservationById(HttpClient httpClient) { + Mono mono = this.getClient(httpClient).getReservationById(RESERVATION_ID); StepVerifier.create(mono) .assertNext(item -> { - assertEquals(SEARCH_ID, item.getReservationId()); + assertEquals(RESERVATION_ID, item.getReservationId()); }) .verifyComplete(); } @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - public void getSearchByIdWithResponse(HttpClient httpClient) { - Mono> mono = this.getClient(httpClient).getSearchByIdWithResponse(SEARCH_ID, Context.NONE); + public void getReservationByIdWithResponse(HttpClient httpClient) { + Mono> mono = this.getClient(httpClient).getReservationByIdWithResponse(RESERVATION_ID, Context.NONE); StepVerifier.create(mono) .assertNext(item -> { assertEquals(200, item.getStatusCode()); - assertEquals(SEARCH_ID, item.getValue().getReservationId()); + assertEquals(RESERVATION_ID, item.getValue().getReservationId()); }) .verifyComplete(); } @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - public void cancelSearch(HttpClient httpClient) { - Mono mono = this.getClient(httpClient).cancelSearch(SEARCH_ID_TO_CANCEL); + public void cancelReservation(HttpClient httpClient) { + Mono mono = this.getClient(httpClient).cancelReservation(RESERVATION_ID_TO_CANCEL); StepVerifier.create(mono).verifyComplete(); } @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - public void cancelSearchWithResponse(HttpClient httpClient) { - Mono> mono = this.getClient(httpClient).cancelSearchWithResponse(SEARCH_ID_TO_CANCEL, Context.NONE); + public void cancelReservationWithResponse(HttpClient httpClient) { + Mono> mono = this.getClient(httpClient).cancelReservationWithResponse(RESERVATION_ID_TO_CANCEL, Context.NONE); StepVerifier.create(mono) .assertNext(item -> { @@ -453,22 +452,22 @@ public void unconfigureNumberWithResponse(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - public void beginCreateSearch(HttpClient httpClient) { + public void beginCreateReservation(HttpClient httpClient) { List phonePlanIds = new ArrayList<>(); phonePlanIds.add(PHONE_PLAN_ID); - CreateSearchOptions createSearchOptions = new CreateSearchOptions(); - createSearchOptions + CreateReservationOptions createReservationOptions = new CreateReservationOptions(); + createReservationOptions .setAreaCode(AREA_CODE_FOR_SEARCH) - .setDescription(SEARCH_OPTIONS_DESCRIPTION) - .setDisplayName(SEARCH_OPTIONS_NAME) + .setDescription(RESERVATION_OPTIONS_DESCRIPTION) + .setDisplayName(RESERVATION_OPTIONS_NAME) .setPhonePlanIds(phonePlanIds) .setQuantity(2); Duration duration = Duration.ofSeconds(1); PhoneNumberAsyncClient client = this.getClient(httpClient); PollerFlux poller = - client.beginCreateSearch(createSearchOptions, duration); + client.beginCreateReservation(createReservationOptions, duration); Mono> asyncRes = poller.last(); StepVerifier.create(asyncRes) .assertNext(item -> { @@ -480,17 +479,17 @@ public void beginCreateSearch(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - public void beginPurchaseSearch(HttpClient httpClient) { + public void beginPurchaseReservation(HttpClient httpClient) { Duration pollInterval = Duration.ofSeconds(1); PhoneNumberAsyncClient client = this.getClient(httpClient); PollerFlux poller = - client.beginPurchaseSearch(SEARCH_ID, pollInterval); + client.beginPurchaseReservation(RESERVATION_ID, pollInterval); poller.takeUntil(apr -> apr.getStatus() == LongRunningOperationStatus.SUCCESSFULLY_COMPLETED) .blockLast(); - Mono testResult = client.getSearchById(SEARCH_ID); + Mono testResult = client.getReservationById(RESERVATION_ID); StepVerifier.create(testResult) .assertNext(item -> { - assertEquals(SearchStatus.SUCCESS, item.getStatus()); + assertEquals(ReservationStatus.SUCCESS, item.getStatus()); }) .verifyComplete(); } diff --git a/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberClientIntegrationTest.java b/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberClientIntegrationTest.java index 806b80a8ff397..9b843837dbe3b 100644 --- a/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberClientIntegrationTest.java +++ b/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberClientIntegrationTest.java @@ -5,8 +5,8 @@ import com.azure.communication.administration.models.AcquiredPhoneNumber; import com.azure.communication.administration.models.AreaCodes; import com.azure.communication.administration.models.Capability; -import com.azure.communication.administration.models.CreateSearchOptions; -import com.azure.communication.administration.models.CreateSearchResponse; +import com.azure.communication.administration.models.CreateReservationOptions; +import com.azure.communication.administration.models.CreateReservationResponse; import com.azure.communication.administration.models.LocationOptionsQuery; import com.azure.communication.administration.models.LocationOptionsResponse; import com.azure.communication.administration.models.NumberConfigurationResponse; @@ -78,7 +78,7 @@ public void listAllReleases(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") public void listAllSearches(HttpClient httpClient) { - PagedIterable pagedIterable = this.getClient(httpClient).listAllSearches(); + PagedIterable pagedIterable = this.getClient(httpClient).listAllReservations(); assertNotNull(pagedIterable.iterator().next().getId()); } @@ -198,71 +198,71 @@ public void getCapabilitiesUpdateWithResponse(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - public void createSearch(HttpClient httpClient) { + public void createReservation(HttpClient httpClient) { List phonePlanIds = new ArrayList<>(); phonePlanIds.add(PHONE_PLAN_ID); - CreateSearchOptions createSearchOptions = new CreateSearchOptions(); - createSearchOptions + CreateReservationOptions createReservationOptions = new CreateReservationOptions(); + createReservationOptions .setAreaCode(AREA_CODE_FOR_SEARCH) .setDescription("318362fa-2b19-4062-92af-fa0673914f30") .setDisplayName("318362fa-2b19-4062-92af-fa0673914f30") .setPhonePlanIds(phonePlanIds) .setQuantity(1); - CreateSearchResponse createSearchResponse = this.getClient(httpClient).createSearch(createSearchOptions); + CreateReservationResponse createReservationResponse = this.getClient(httpClient).createReservation(createReservationOptions); - assertNotNull(createSearchResponse.getSearchId()); + assertNotNull(createReservationResponse.getReservationId()); } @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - public void createSearchWithResponse(HttpClient httpClient) { + public void createReservationWithResponse(HttpClient httpClient) { List phonePlanIds = new ArrayList<>(); phonePlanIds.add(PHONE_PLAN_ID); - CreateSearchOptions createSearchOptions = new CreateSearchOptions(); - createSearchOptions + CreateReservationOptions createReservationOptions = new CreateReservationOptions(); + createReservationOptions .setAreaCode(AREA_CODE_FOR_SEARCH) .setDescription("318362fa-2b19-4062-92af-fa0673914f30") .setDisplayName("318362fa-2b19-4062-92af-fa0673914f30") .setPhonePlanIds(phonePlanIds) .setQuantity(1); - Response response = - this.getClient(httpClient).createSearchWithResponse(createSearchOptions, Context.NONE); + Response response = + this.getClient(httpClient).createReservationWithResponse(createReservationOptions, Context.NONE); assertEquals(201, response.getStatusCode()); - assertNotNull(response.getValue().getSearchId()); + assertNotNull(response.getValue().getReservationId()); } @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - public void getSearchById(HttpClient httpClient) { - PhoneNumberReservation search = this.getClient(httpClient).getSearchById(SEARCH_ID); + public void getReservationById(HttpClient httpClient) { + PhoneNumberReservation search = this.getClient(httpClient).getReservationById(RESERVATION_ID); - assertEquals(SEARCH_ID, search.getReservationId()); + assertEquals(RESERVATION_ID, search.getReservationId()); } @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - public void getSearchByIdWithResponse(HttpClient httpClient) { - Response response = this.getClient(httpClient).getSearchByIdWithResponse(SEARCH_ID, Context.NONE); + public void getReservationByIdWithResponse(HttpClient httpClient) { + Response response = this.getClient(httpClient).getReservationByIdWithResponse(RESERVATION_ID, Context.NONE); assertEquals(200, response.getStatusCode()); - assertEquals(SEARCH_ID, response.getValue().getReservationId()); + assertEquals(RESERVATION_ID, response.getValue().getReservationId()); } @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") public void cancelSearch(HttpClient httpClient) { - this.getClient(httpClient).cancelSearch(SEARCH_ID_TO_CANCEL); + this.getClient(httpClient).cancelReservation(RESERVATION_ID_TO_CANCEL); } @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") public void cancelSearchWithResponse(HttpClient httpClient) { - Response response = this.getClient(httpClient).cancelSearchWithResponse(SEARCH_ID_TO_CANCEL, Context.NONE); + Response response = this.getClient(httpClient).cancelReservationWithResponse(RESERVATION_ID_TO_CANCEL, Context.NONE); assertEquals(202, response.getStatusCode()); } diff --git a/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberIntegrationTestBase.java b/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberIntegrationTestBase.java index dab5cc20953d6..31fe621c95a6a 100644 --- a/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberIntegrationTestBase.java +++ b/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberIntegrationTestBase.java @@ -28,15 +28,15 @@ public class PhoneNumberIntegrationTestBase extends TestBase { protected static final String AREA_CODE_FOR_SEARCH = Configuration.getGlobalConfiguration().get( "AREA_CODE_FOR_SEARCH", "777"); - protected static final String SEARCH_ID = + protected static final String RESERVATION_ID = Configuration.getGlobalConfiguration().get( - "SEARCH_ID", "search-id-1"); - protected static final String SEARCH_ID_TO_PURCHASE = + "RESERVATION_ID", "reservation-id-1"); + protected static final String RESERVATION_ID_TO_PURCHASE = Configuration.getGlobalConfiguration().get( - "SEARCH_ID_TO_PURCHASE", "search-id-1"); - protected static final String SEARCH_ID_TO_CANCEL = + "RESERVATION_ID_TO_PURCHASE", "reservation-id-1"); + protected static final String RESERVATION_ID_TO_CANCEL = Configuration.getGlobalConfiguration().get( - "SEARCH_ID_TO_CANCEL", "search-id-2"); + "RESERVATION_ID_TO_CANCEL", "reservation-id-2"); protected static final String PHONENUMBER_TO_CONFIGURE = Configuration.getGlobalConfiguration().get( "PHONENUMBER_TO_CONFIGURE", "+17771234567"); @@ -59,10 +59,10 @@ public class PhoneNumberIntegrationTestBase extends TestBase { Configuration.getGlobalConfiguration().get("LOCATION_OPTION_STATE", "CA"); protected static final String LOCATION_OPTION_CITY = Configuration.getGlobalConfiguration().get("LOCATION_OPTION_CITY", "NOAM-US-CA-LA"); - protected static final String SEARCH_OPTIONS_DESCRIPTION = - Configuration.getGlobalConfiguration().get("SEARCH_OPTIONS_DESCRIPTION", "testsearch20200014"); - protected static final String SEARCH_OPTIONS_NAME = - Configuration.getGlobalConfiguration().get("SEARCH_OPTIONS_NAME", "testsearch20200014"); + protected static final String RESERVATION_OPTIONS_DESCRIPTION = + Configuration.getGlobalConfiguration().get("RESERVATION_OPTIONS_DESCRIPTION", "testReservation20200014"); + protected static final String RESERVATION_OPTIONS_NAME = + Configuration.getGlobalConfiguration().get("RESERVATION_OPTIONS_NAME", "testReservation20200014"); protected PhoneNumberClientBuilder getClientBuilder(HttpClient httpClient) { if (getTestMode() == TestMode.PLAYBACK) { diff --git a/sdk/communication/azure-communication-administration/swagger/README.md b/sdk/communication/azure-communication-administration/swagger/README.md index 162fc44e74d8e..c034ef0cb712a 100644 --- a/sdk/communication/azure-communication-administration/swagger/README.md +++ b/sdk/communication/azure-communication-administration/swagger/README.md @@ -44,35 +44,65 @@ These settings apply only when `--tag=phonenumber` is specified on the command l input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/257f060be8b60d8468584682aa2d71b1faa5f82c/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/communicationservicesadministration.json override-client-name: PhoneNumberAdminClient ``` -### Rename searchId to reservationId - +### Rename searchId to reservationId in CreateSearchResponse ``` yaml - directive: - - from: swagger-document + where: $.definitions.CreateSearchResponse.properties.searchId + transform: > + $["x-ms-client-name"] = "reservationId"; +``` +### Rename searchId to reservationId in PhoneNumberSearch +``` yaml +directive: + - from: swagger-document where: $.definitions.PhoneNumberSearch.properties.searchId - transform: > - $["x-ms-client-name"] = "reservationId"; - ``` +### Rename AddChatThreadMembersRequest to AddChatThreadMembersOptions +``` yaml +directive: +- from: swagger-document + where: $["paths"]["/chat/threads/{chatThreadId}/members"].post.parameters[2] + transform: > + if ($.schema && $.schema.$ref && $.schema.$ref.endsWith("AddChatThreadMembersRequest")) { + const path = $.schema.$ref.replace(/[#].*$/, "#/definitions/AddChatThreadMembersOptions"); + $.schema = { "$ref": path }; + } +``` + ### Rename PhoneNumberSearch to PhoneNumberReservation ``` yaml directive: - rename-model: - from: PhoneNumberSearch - to: PhoneNumberReservation +``` +### Rename CreateSearchOptions to CreateReservationOptions + +``` yaml +directive: + - rename-model: + from: CreateSearchOptions + to: CreateReservationOptions ``` +### Rename CreateSearchResponse to CreateReservationResponse + +``` yaml +directive: + - rename-model: + from: CreateSearchResponse + to: CreateReservationResponse +``` + + ### Code generation settings From 4492314cfcf48c4f8cddc8946ed76765932af116 Mon Sep 17 00:00:00 2001 From: Paola Vicencio Date: Thu, 12 Nov 2020 17:43:31 -0600 Subject: [PATCH 6/8] Fixing tests --- .../PhoneNumberAsyncClient.java | 8 +- ...PhoneNumberAsyncClientIntegrationTest.java | 6 +- .../PhoneNumberClientIntegrationTest.java | 6 +- .../beginCreateReservation.json | 491 ++++++++++ .../session-records/beginCreateSearch.json | 59 -- ...rch.json => beginPurchaseReservation.json} | 140 +-- .../beginReleasePhoneNumbers.json | 854 ++++++++++-------- .../session-records/cancelReservation.json | 20 + .../cancelReservationWithResponse.json | 20 + .../session-records/cancelSearch.json | 20 - .../cancelSearchWithResponse.json | 20 - .../session-records/configureNumber.json | 10 +- .../configureNumberWithResponse.json | 10 +- ...PhoneNumberClientWithConnectionString.json | 12 +- ...eateSearch.json => createReservation.json} | 12 +- .../createReservationWithResponse.json | 23 + .../session-records/getAllAreaCodes.json | 14 +- .../getAllAreaCodesWithResponse.json | 14 +- .../getCapabilitiesUpdate.json | 16 +- .../getCapabilitiesUpdateWithResponse.json | 16 +- .../getNumberConfiguration.json | 12 +- .../getNumberConfigurationWithResponse.json | 10 +- .../getPhonePlanLocationOptions.json | 14 +- .../session-records/getReservationById.json | 22 + .../getReservationByIdWithResponse.json | 22 + .../session-records/getSearchById.json | 22 - .../getSearchByIdWithResponse.json | 22 - .../session-records/listAllPhoneNumbers.json | 12 +- .../session-records/listAllReleases.json | 12 +- .../session-records/listAllReservations.json | 22 + .../session-records/listAllSearches.json | 22 - .../listAllSupportedCountries.json | 12 +- .../session-records/listPhonePlanGroups.json | 12 +- .../session-records/listPhonePlans.json | 14 +- .../session-records/releasePhoneNumbers.json | 23 - .../releasePhoneNumbersWithResponse.json | 23 - .../session-records/unconfigureNumber.json | 12 +- .../unconfigureNumberWithResponse.json | 10 +- .../session-records/updateCapabilities.json | 12 +- .../updateCapabilitiesWithResponse.json | 12 +- 40 files changed, 1297 insertions(+), 796 deletions(-) create mode 100644 sdk/communication/azure-communication-administration/src/test/resources/session-records/beginCreateReservation.json delete mode 100644 sdk/communication/azure-communication-administration/src/test/resources/session-records/beginCreateSearch.json rename sdk/communication/azure-communication-administration/src/test/resources/session-records/{beginPurchaseSearch.json => beginPurchaseReservation.json} (56%) create mode 100644 sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelReservation.json create mode 100644 sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelReservationWithResponse.json delete mode 100644 sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelSearch.json delete mode 100644 sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelSearchWithResponse.json rename sdk/communication/azure-communication-administration/src/test/resources/session-records/{createSearch.json => createReservation.json} (58%) create mode 100644 sdk/communication/azure-communication-administration/src/test/resources/session-records/createReservationWithResponse.json create mode 100644 sdk/communication/azure-communication-administration/src/test/resources/session-records/getReservationById.json create mode 100644 sdk/communication/azure-communication-administration/src/test/resources/session-records/getReservationByIdWithResponse.json delete mode 100644 sdk/communication/azure-communication-administration/src/test/resources/session-records/getSearchById.json delete mode 100644 sdk/communication/azure-communication-administration/src/test/resources/session-records/getSearchByIdWithResponse.json create mode 100644 sdk/communication/azure-communication-administration/src/test/resources/session-records/listAllReservations.json delete mode 100644 sdk/communication/azure-communication-administration/src/test/resources/session-records/listAllSearches.json delete mode 100644 sdk/communication/azure-communication-administration/src/test/resources/session-records/releasePhoneNumbers.json delete mode 100644 sdk/communication/azure-communication-administration/src/test/resources/session-records/releasePhoneNumbersWithResponse.json diff --git a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberAsyncClient.java b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberAsyncClient.java index 808c59e01f0c7..5a46c23cc88d6 100644 --- a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberAsyncClient.java +++ b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberAsyncClient.java @@ -8,9 +8,10 @@ import com.azure.communication.administration.models.AreaCodes; import com.azure.communication.administration.models.CreateReservationOptions; import com.azure.communication.administration.models.CreateReservationResponse; -import com.azure.communication.administration.models.LocationOptionsQueries; import com.azure.communication.administration.models.LocationOptionsQuery; +import com.azure.communication.administration.models.LocationOptionsQueries; import com.azure.communication.administration.models.LocationOptionsResponse; +import com.azure.communication.administration.models.NumberConfiguration; import com.azure.communication.administration.models.NumberConfigurationPhoneNumber; import com.azure.communication.administration.models.NumberConfigurationResponse; import com.azure.communication.administration.models.NumberUpdateCapabilities; @@ -20,13 +21,12 @@ import com.azure.communication.administration.models.PhonePlan; import com.azure.communication.administration.models.PhonePlanGroup; import com.azure.communication.administration.models.PstnConfiguration; -import com.azure.communication.administration.models.ReleaseRequest; import com.azure.communication.administration.models.ReleaseResponse; +import com.azure.communication.administration.models.ReleaseRequest; import com.azure.communication.administration.models.ReleaseStatus; +import com.azure.communication.administration.models.UpdateNumberCapabilitiesRequest; import com.azure.communication.administration.models.UpdateNumberCapabilitiesResponse; -import com.azure.communication.administration.models.NumberConfiguration; import com.azure.communication.administration.models.PhoneNumberReservation; -import com.azure.communication.administration.models.UpdateNumberCapabilitiesRequest; import com.azure.communication.administration.models.UpdatePhoneNumberCapabilitiesResponse; import com.azure.communication.common.PhoneNumber; import com.azure.core.annotation.ReturnType; diff --git a/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberAsyncClientIntegrationTest.java b/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberAsyncClientIntegrationTest.java index 1971e28260329..e1545141b452e 100644 --- a/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberAsyncClientIntegrationTest.java +++ b/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberAsyncClientIntegrationTest.java @@ -489,7 +489,8 @@ public void beginPurchaseReservation(HttpClient httpClient) { Mono testResult = client.getReservationById(RESERVATION_ID); StepVerifier.create(testResult) .assertNext(item -> { - assertEquals(ReservationStatus.SUCCESS, item.getStatus()); + assertEquals(ReservationStatus.SUCCESS, + ReservationStatus.fromString(item.getStatus().toString())); }) .verifyComplete(); } @@ -506,7 +507,8 @@ public void beginReleasePhoneNumbers(HttpClient httpClient) { Mono> asyncRes = poller.last(); StepVerifier.create(asyncRes) .assertNext(item -> { - assertEquals(ReleaseStatus.COMPLETE, item.getValue().getStatus()); + assertEquals(ReleaseStatus.COMPLETE, + item.getValue().getStatus()); }) .verifyComplete(); } diff --git a/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberClientIntegrationTest.java b/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberClientIntegrationTest.java index 9b843837dbe3b..7d444489f76b0 100644 --- a/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberClientIntegrationTest.java +++ b/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberClientIntegrationTest.java @@ -77,7 +77,7 @@ public void listAllReleases(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - public void listAllSearches(HttpClient httpClient) { + public void listAllReservations(HttpClient httpClient) { PagedIterable pagedIterable = this.getClient(httpClient).listAllReservations(); assertNotNull(pagedIterable.iterator().next().getId()); @@ -255,13 +255,13 @@ public void getReservationByIdWithResponse(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - public void cancelSearch(HttpClient httpClient) { + public void cancelReservation(HttpClient httpClient) { this.getClient(httpClient).cancelReservation(RESERVATION_ID_TO_CANCEL); } @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - public void cancelSearchWithResponse(HttpClient httpClient) { + public void cancelReservationWithResponse(HttpClient httpClient) { Response response = this.getClient(httpClient).cancelReservationWithResponse(RESERVATION_ID_TO_CANCEL, Context.NONE); assertEquals(202, response.getStatusCode()); diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/beginCreateReservation.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/beginCreateReservation.json new file mode 100644 index 0000000000000..b63bcbe23dffd --- /dev/null +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/beginCreateReservation.json @@ -0,0 +1,491 @@ +{ + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "1549ms", + "MS-CV" : "KF28g+ex4km/r5swhBu+Ug.0", + "retry-after" : "0", + "X-Azure-Ref" : "0JJutXwAAAABJZ39jN7AOTJ9aZXEng2gcTEFYRURHRTEyMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "201", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\"}", + "Date" : "Thu, 12 Nov 2020 20:29:25 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "266ms", + "MS-CV" : "T971ThWTs021syMbW3KmgA.0", + "retry-after" : "0", + "X-Azure-Ref" : "0JputXwAAAACYerL3IcJiSbloajY8YcRhTEFYRURHRTEyMTcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:26 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "267ms", + "MS-CV" : "hp/h3JsAl0mDdTK5xfOEXA.0", + "retry-after" : "0", + "X-Azure-Ref" : "0J5utXwAAAAD8vN1HyrAjTZ2c4GnIPZajTEFYRURHRTEyMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:27 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "268ms", + "MS-CV" : "E/l1yiCZ+kaSl+nU+BKm1Q.0", + "retry-after" : "0", + "X-Azure-Ref" : "0KZutXwAAAABDrtZIU0yOTpZjus8jNhXWTEFYRURHRTEyMTcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:28 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "268ms", + "MS-CV" : "2Zqq4pKzZ0SomCGFxk720g.0", + "retry-after" : "0", + "X-Azure-Ref" : "0KputXwAAAACGTWxiN/nVT7QBHaxxrEW3TEFYRURHRTEyMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:30 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "1440ms", + "MS-CV" : "NLBbJ+i6jEKZyBFRjpdmGA.0", + "retry-after" : "0", + "X-Azure-Ref" : "0K5utXwAAAABVW1PTxDUJT6GCITEv4VrhTEFYRURHRTEyMTcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:32 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "327ms", + "MS-CV" : "d2AUI3iZPEe55AhAtcdPrg.0", + "retry-after" : "0", + "X-Azure-Ref" : "0LputXwAAAABrOpcisChgTZqaAUFNSZbTTEFYRURHRTEyMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:34 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "261ms", + "MS-CV" : "vZmQJ5LuJkmHxx3qI66MCg.0", + "retry-after" : "0", + "X-Azure-Ref" : "0L5utXwAAAACBGxhn6NlOSYr3g7AxcXxrTEFYRURHRTEyMTcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:35 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "307ms", + "MS-CV" : "7VccK+kptkiGdXhgpRjbNw.0", + "retry-after" : "0", + "X-Azure-Ref" : "0MZutXwAAAABJ/BrKbetBS4B1hkaGd4CzTEFYRURHRTEyMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:36 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "266ms", + "MS-CV" : "4DpW4b9BE0yhnXkN2ujeQg.0", + "retry-after" : "0", + "X-Azure-Ref" : "0MputXwAAAACuyq890jfPTLMbKXR8z34OTEFYRURHRTEyMTcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:38 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "291ms", + "MS-CV" : "UA/sBUGDa0ORFQs+zqiyqw.0", + "retry-after" : "0", + "X-Azure-Ref" : "0M5utXwAAAABpRJZRV35nRrcY8mOATTkNTEFYRURHRTEyMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:39 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "271ms", + "MS-CV" : "4nim9JaxwkqSJU9TPgM2kA.0", + "retry-after" : "0", + "X-Azure-Ref" : "0NZutXwAAAAD1vlQFGD2FTqXO3JWB7T5xTEFYRURHRTEyMTcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:41 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "368ms", + "MS-CV" : "X5kOjFEeV0K1Gtvx5jeP6Q.0", + "retry-after" : "0", + "X-Azure-Ref" : "0NputXwAAAADK9U6e83psQKWY/RdI1tz1TEFYRURHRTEyMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:42 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "261ms", + "MS-CV" : "jJOveGcphEicNwW7D0VWqA.0", + "retry-after" : "0", + "X-Azure-Ref" : "0N5utXwAAAAB5Dxx2SR3mSLO2L/gw3lHFTEFYRURHRTEyMTcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:43 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "266ms", + "MS-CV" : "akd9EGlvhkOtQK1tfwu7nw.0", + "retry-after" : "0", + "X-Azure-Ref" : "0OZutXwAAAADnBwlDxgTRT52U+VcXKItjTEFYRURHRTEyMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:45 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "300ms", + "MS-CV" : "YNhITarc50G7bIICm1aVwg.0", + "retry-after" : "0", + "X-Azure-Ref" : "0OputXwAAAAC2hk2Qb9/hTLn9v+l7/zTxTEFYRURHRTEyMTcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:46 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "407ms", + "MS-CV" : "G2jo2XaFPUWGwTo5TJs7dw.0", + "retry-after" : "0", + "X-Azure-Ref" : "0O5utXwAAAADiUewk1UdnTKOyDTTEjEpHTEFYRURHRTEyMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:48 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "265ms", + "MS-CV" : "gDUDPiKha0C8Lh/T/M8HjA.0", + "retry-after" : "0", + "X-Azure-Ref" : "0PZutXwAAAADpZNNTpSsdQZvPH8NJnyChTEFYRURHRTEyMTcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:49 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "301ms", + "MS-CV" : "1gPI64GGjkuauhXEX94YuA.0", + "retry-after" : "0", + "X-Azure-Ref" : "0PputXwAAAADfm2lL8bLPQLkN4E45uh2WTEFYRURHRTEyMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:50 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "345ms", + "MS-CV" : "44HDSdM0yE2oa+nsaiJWpg.0", + "retry-after" : "0", + "X-Azure-Ref" : "0QJutXwAAAADXMF2J53CTTKq4fmEaTHECTEFYRURHRTEyMTcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:52 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "285ms", + "MS-CV" : "3uwxmioAVUWpVtthYYYxbw.0", + "retry-after" : "0", + "X-Azure-Ref" : "0QZutXwAAAACEEPXdSYZnS47ff1HQffEjTEFYRURHRTEyMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:53 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "263ms", + "MS-CV" : "7+NRcvRAukizlcPYh5iXwQ.0", + "retry-after" : "0", + "X-Azure-Ref" : "0QputXwAAAAA+PVB7U4RHSr6U2XOz7UKrTEFYRURHRTEyMTcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:54 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "361ms", + "MS-CV" : "7VIkwqulgkSgQaiKBWfl6Q.0", + "retry-after" : "0", + "X-Azure-Ref" : "0RJutXwAAAADJ3rJQQv/GQIza9DGFHhoiTEFYRURHRTEyMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:56 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "267ms", + "MS-CV" : "EPJ1y7O7Tk6any+oxt47zA.0", + "retry-after" : "0", + "X-Azure-Ref" : "0RZutXwAAAAC7FZ+tV2DxR5gh+VfKbJiWTEFYRURHRTEyMTcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"InProgress\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:57 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "445ms", + "MS-CV" : "tEiXgaA68kW24C8dkizj8g.0", + "retry-after" : "0", + "X-Azure-Ref" : "0R5utXwAAAADs11xGbUqFQI5mmHk2b+34TEFYRURHRTEyMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"InProgress\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:29:59 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "266ms", + "MS-CV" : "ZO8Y+BqwN02OCcMQ+VYjVw.0", + "retry-after" : "0", + "X-Azure-Ref" : "0SJutXwAAAACca/d/LUg3Spq7C3jsXaTXTEFYRURHRTEyMTcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"InProgress\",\"phoneNumbers\":[]}", + "Date" : "Thu, 12 Nov 2020 20:30:00 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/5950a5b1-2207-46ec-a93e-e18b0734446d?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "577ms", + "MS-CV" : "6x8R7lVQn0mxymAWAZev6Q.0", + "retry-after" : "0", + "X-Azure-Ref" : "0SputXwAAAAA+kfR4nsRiTY1s1+kT024oTEFYRURHRTEyMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"5950a5b1-2207-46ec-a93e-e18b0734446d\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T20:29:25.2447424+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Reserved\",\"phoneNumbers\":[\"+13234882257\",\"+13234882258\"],\"reservationExpiryDate\":\"2020-11-12T20:45:58.457675+00:00\"}", + "Date" : "Thu, 12 Nov 2020 20:30:02 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ ] +} \ No newline at end of file diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/beginCreateSearch.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/beginCreateSearch.json deleted file mode 100644 index 6ec687b238d06..0000000000000 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/beginCreateSearch.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Windows 10; 10.0)", - "Content-Type" : "application/json" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "2106ms", - "MS-CV" : "AudA+TBsSkC2dy5EORj0jg.0", - "retry-after" : "0", - "X-Azure-Ref" : "0/598XwAAAABNqI5PZ5BrTocglFXesDJDREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "201", - "Body" : "{\"searchId\":\"44b70e2f-6521-454e-a8ea-67ab95927a13\"}", - "Date" : "Tue, 06 Oct 2020 16:49:05 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/44b70e2f-6521-454e-a8ea-67ab95927a13?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Windows 10; 10.0)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "351ms", - "MS-CV" : "UsgvNonyy0W78Wb+YlAR/Q.0", - "retry-after" : "0", - "X-Azure-Ref" : "0B6B8XwAAAABJLU8C50vpQr8eJDv7BnURREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"searchId\":\"44b70e2f-6521-454e-a8ea-67ab95927a13\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-06T16:49:05.1044519+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", - "Date" : "Tue, 06 Oct 2020 16:49:11 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/44b70e2f-6521-454e-a8ea-67ab95927a13?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Windows 10; 10.0)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "292ms", - "MS-CV" : "rgPQQ3XR50SFtXr68Qefqw.0", - "retry-after" : "0", - "X-Azure-Ref" : "0DaB8XwAAAADdZnkaYhXqS76qjA9LTed8REVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"searchId\":\"44b70e2f-6521-454e-a8ea-67ab95927a13\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-06T16:49:05.1044519+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Reserved\",\"phoneNumbers\":[\"+13234866789\",\"+13234866792\"],\"reservationExpiryDate\":\"2020-10-06T17:05:13.5997531+00:00\"}", - "Date" : "Tue, 06 Oct 2020 16:49:16 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ ] -} \ No newline at end of file diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/beginPurchaseSearch.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/beginPurchaseReservation.json similarity index 56% rename from sdk/communication/azure-communication-administration/src/test/resources/session-records/beginPurchaseSearch.json rename to sdk/communication/azure-communication-administration/src/test/resources/session-records/beginPurchaseReservation.json index 67f66e73e9f4e..3a7f43c13f31b 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/beginPurchaseSearch.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/beginPurchaseReservation.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1/purchase?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1/purchase?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -17,7 +17,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -28,14 +28,14 @@ "retry-after" : "0", "X-Azure-Ref" : "02qOYXwAAAACj4Om3krHfQaMHILLESNEfREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:48:58 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -46,14 +46,14 @@ "retry-after" : "0", "X-Azure-Ref" : "03KOYXwAAAAClBcLkVYRgRKK5u1u9hROSREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:00 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -64,14 +64,14 @@ "retry-after" : "0", "X-Azure-Ref" : "03aOYXwAAAAAx+QjqIxgUTo7ViLgxaZpoREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:01 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -82,14 +82,14 @@ "retry-after" : "0", "X-Azure-Ref" : "036OYXwAAAAAGI5ktzTzTQ7KxE5pc3htmREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:03 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -100,14 +100,14 @@ "retry-after" : "0", "X-Azure-Ref" : "04KOYXwAAAAB4aWpAmiz3RbbH4Xd5aOkGREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:04 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -118,14 +118,14 @@ "retry-after" : "0", "X-Azure-Ref" : "04aOYXwAAAACjoIzQO5l6SpNW1u9aJ7LSREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:06 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -136,14 +136,14 @@ "retry-after" : "0", "X-Azure-Ref" : "046OYXwAAAACp/p2mwMhqSLHFgJj4+od1REVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:07 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -154,14 +154,14 @@ "retry-after" : "0", "X-Azure-Ref" : "05aOYXwAAAABQQ3MyYOpjT6064KD0IM3RREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:09 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -172,14 +172,14 @@ "retry-after" : "0", "X-Azure-Ref" : "05qOYXwAAAAD7sRA7/+96R5hgGhHx/l6WREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:10 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -190,14 +190,14 @@ "retry-after" : "0", "X-Azure-Ref" : "056OYXwAAAADRBlWI2CR9SbSedKBTGTtbREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:11 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -208,14 +208,14 @@ "retry-after" : "0", "X-Azure-Ref" : "06aOYXwAAAABAoDBoJiDQQquGSjvGhYo5REVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:13 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -226,14 +226,14 @@ "retry-after" : "0", "X-Azure-Ref" : "06qOYXwAAAACy6bWKoeI3Ta5oOWTMJIjkREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:14 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -244,14 +244,14 @@ "retry-after" : "0", "X-Azure-Ref" : "07KOYXwAAAAAx31k3PK4kQarpRlY7e8cAREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:16 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -262,14 +262,14 @@ "retry-after" : "0", "X-Azure-Ref" : "07aOYXwAAAAA9An47am1kRY45e5a6mHZUREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:17 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -280,14 +280,14 @@ "retry-after" : "0", "X-Azure-Ref" : "076OYXwAAAAAUXgawLg4uRKMl8KGahmcjREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:19 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -298,14 +298,14 @@ "retry-after" : "0", "X-Azure-Ref" : "08KOYXwAAAAC6aOlT+nenQYIWbED2zexLREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:20 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -316,14 +316,14 @@ "retry-after" : "0", "X-Azure-Ref" : "08aOYXwAAAAC8RcpEINaaTowSfXzODF3fREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:22 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -334,14 +334,14 @@ "retry-after" : "0", "X-Azure-Ref" : "086OYXwAAAAD1tXRlXcfmRqZ+Fgn6oR/2REVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:23 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -352,14 +352,14 @@ "retry-after" : "0", "X-Azure-Ref" : "09aOYXwAAAAD0a4oVUJfbQriz6b4c1Pc9REVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:25 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -370,14 +370,14 @@ "retry-after" : "0", "X-Azure-Ref" : "09qOYXwAAAACePbt4kWOySbER6FR6xITGREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:26 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -388,14 +388,14 @@ "retry-after" : "0", "X-Azure-Ref" : "0+KOYXwAAAACMIxeOpfIlTr2/GbwHtXBTREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:28 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -406,14 +406,14 @@ "retry-after" : "0", "X-Azure-Ref" : "0+aOYXwAAAABHUS6vAcF3QauWD0FRHjtMREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:29 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -424,14 +424,14 @@ "retry-after" : "0", "X-Azure-Ref" : "0+qOYXwAAAAAGSqPib7moTpFDw8vkDNlyREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:31 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -442,14 +442,14 @@ "retry-after" : "0", "X-Azure-Ref" : "0/KOYXwAAAACLxS3FMwB6TriEqzEZdnKVREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:32 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -460,14 +460,14 @@ "retry-after" : "0", "X-Azure-Ref" : "0/qOYXwAAAAB2jL/qmAqER7fBCsd6QLPDREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:34 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -478,14 +478,14 @@ "retry-after" : "0", "X-Azure-Ref" : "0/6OYXwAAAADyzH/fP2soTouU8oIO67tzREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:35 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -496,14 +496,14 @@ "retry-after" : "0", "X-Azure-Ref" : "0AaSYXwAAAABofq1JUB9UTYb44w0Bq0ErREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:37 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -514,14 +514,14 @@ "retry-after" : "0", "X-Azure-Ref" : "0AqSYXwAAAABnsqScZkobQIvuotT1yITmREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:38 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -532,14 +532,14 @@ "retry-after" : "0", "X-Azure-Ref" : "0A6SYXwAAAACPWkAHP7biQpxSTraN714rREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:39 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -550,14 +550,14 @@ "retry-after" : "0", "X-Azure-Ref" : "0BaSYXwAAAAC4b7vdlr2fT6B3V/LbkX0mREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:41 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -568,14 +568,14 @@ "retry-after" : "0", "X-Azure-Ref" : "0BqSYXwAAAABl6+cFTONoTIduG7Qvs1oxREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:42 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -586,14 +586,14 @@ "retry-after" : "0", "X-Azure-Ref" : "0CKSYXwAAAAD+KGRZOXTyQpKzCBumEA3QREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:44 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -604,14 +604,14 @@ "retry-after" : "0", "X-Azure-Ref" : "0CaSYXwAAAACV4jyJ0GWtR4xjVTRJ7I0IREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Success\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Success\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:45 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, @@ -622,11 +622,11 @@ "retry-after" : "0", "X-Azure-Ref" : "0CqSYXwAAAADOI7TnDoXMRbSGoZR4qkr8REVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Success\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testreservation20200014\",\"createdAt\":\"2020-10-27T22:46:25.5026489+00:00\",\"description\":\"testreservation20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Success\",\"phoneNumbers\":[\"+12134592995\",\"+12134592997\"],\"reservationExpiryDate\":\"2020-10-27T23:02:41.3187451+00:00\"}", "Date" : "Tue, 27 Oct 2020 22:49:46 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/beginReleasePhoneNumbers.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/beginReleasePhoneNumbers.json index c5c2a62d2f5a8..a8a3f3df061de 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/beginReleasePhoneNumbers.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/beginReleasePhoneNumbers.json @@ -1,383 +1,473 @@ { - "networkCallRecords" : [ { - "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)", - "Content-Type" : "application/json" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "1021ms", - "MS-CV" : "OkktCzuvUUeGdwjjKSxWpw.0", - "retry-after" : "0", - "X-Azure-Ref" : "0GiyXXwAAAACsY2Y2pmWDQ4uF9jhQlzhHREVOMDJFREdFMDMxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"1e671fd9-31e3-4c93-a688-e3c13e865e25\"}", - "Date" : "Mon, 26 Oct 2020 20:05:46 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/1e671fd9-31e3-4c93-a688-e3c13e865e25?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "447ms", - "MS-CV" : "LA1nngj23EKnZVRmN3kZHQ.0", - "retry-after" : "0", - "X-Azure-Ref" : "0GyyXXwAAAAANStwPu4xJRJ55d7IxiXsAREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"1e671fd9-31e3-4c93-a688-e3c13e865e25\",\"createdAt\":\"2020-10-26T20:05:46.9508456+00:00\",\"status\":\"Pending\",\"phoneNumberReleaseStatusDetails\":{\"+12134592987\":{\"status\":\"Pending\"}}}", - "Date" : "Mon, 26 Oct 2020 20:05:48 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/1e671fd9-31e3-4c93-a688-e3c13e865e25?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "218ms", - "MS-CV" : "IRGMqOvgnUiDfeXfAEq8vg.0", - "retry-after" : "0", - "X-Azure-Ref" : "0ISyXXwAAAADHjTcg/4s6QalFu9fKUfNUREVOMDJFREdFMDMxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"1e671fd9-31e3-4c93-a688-e3c13e865e25\",\"createdAt\":\"2020-10-26T20:05:46.9508456+00:00\",\"status\":\"Pending\",\"phoneNumberReleaseStatusDetails\":{\"+12134592987\":{\"status\":\"Pending\"}}}", - "Date" : "Mon, 26 Oct 2020 20:05:52 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/1e671fd9-31e3-4c93-a688-e3c13e865e25?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "281ms", - "MS-CV" : "09VjyN0Cp0argLV2ztIZjA.0", - "retry-after" : "0", - "X-Azure-Ref" : "0JiyXXwAAAABJgGwcxuPdS65En2jWCWeyREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"1e671fd9-31e3-4c93-a688-e3c13e865e25\",\"createdAt\":\"2020-10-26T20:05:46.9508456+00:00\",\"status\":\"Pending\",\"phoneNumberReleaseStatusDetails\":{\"+12134592987\":{\"status\":\"Pending\"}}}", - "Date" : "Mon, 26 Oct 2020 20:05:58 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/1e671fd9-31e3-4c93-a688-e3c13e865e25?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "199ms", - "MS-CV" : "tn3VvTszSU6hQedEaPpWyQ.0", - "retry-after" : "0", - "X-Azure-Ref" : "0LCyXXwAAAADfVU1F/Jb1Tqmk4Yl/skNrREVOMDJFREdFMDMxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"1e671fd9-31e3-4c93-a688-e3c13e865e25\",\"createdAt\":\"2020-10-26T20:05:46.9508456+00:00\",\"status\":\"Pending\",\"phoneNumberReleaseStatusDetails\":{\"+12134592987\":{\"status\":\"Pending\"}}}", - "Date" : "Mon, 26 Oct 2020 20:06:03 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/1e671fd9-31e3-4c93-a688-e3c13e865e25?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "199ms", - "MS-CV" : "2Z8V/ovtTkSSCX92PoPlHQ.0", - "retry-after" : "0", - "X-Azure-Ref" : "0MSyXXwAAAAATqVIPBtLHR7cPCK/LJUNwREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"1e671fd9-31e3-4c93-a688-e3c13e865e25\",\"createdAt\":\"2020-10-26T20:05:46.9508456+00:00\",\"status\":\"Pending\",\"phoneNumberReleaseStatusDetails\":{\"+12134592987\":{\"status\":\"Pending\"}}}", - "Date" : "Mon, 26 Oct 2020 20:06:09 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/1e671fd9-31e3-4c93-a688-e3c13e865e25?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "196ms", - "MS-CV" : "bLXHxJJ1OUqw9lYcDwRLAw.0", - "retry-after" : "0", - "X-Azure-Ref" : "0NiyXXwAAAADtmPYpu8BiT5JZcRQUBhwhREVOMDJFREdFMDMxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"1e671fd9-31e3-4c93-a688-e3c13e865e25\",\"createdAt\":\"2020-10-26T20:05:46.9508456+00:00\",\"status\":\"Pending\",\"phoneNumberReleaseStatusDetails\":{\"+12134592987\":{\"status\":\"Pending\"}}}", - "Date" : "Mon, 26 Oct 2020 20:06:13 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/1e671fd9-31e3-4c93-a688-e3c13e865e25?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "204ms", - "MS-CV" : "jGpqtF1M80ay+9PaRhqkTQ.0", - "retry-after" : "0", - "X-Azure-Ref" : "0OyyXXwAAAACFtjBQuLMGSpdnmh1MQYyvREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"1e671fd9-31e3-4c93-a688-e3c13e865e25\",\"createdAt\":\"2020-10-26T20:05:46.9508456+00:00\",\"status\":\"Pending\",\"phoneNumberReleaseStatusDetails\":{\"+12134592987\":{\"status\":\"Pending\"}}}", - "Date" : "Mon, 26 Oct 2020 20:06:19 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/1e671fd9-31e3-4c93-a688-e3c13e865e25?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "200ms", - "MS-CV" : "X5av9HGRvEKPpPVP0Ftiqw.0", - "retry-after" : "0", - "X-Azure-Ref" : "0QSyXXwAAAAAiI0ejZHdgQqCh3L9AlVQkREVOMDJFREdFMDMxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"1e671fd9-31e3-4c93-a688-e3c13e865e25\",\"createdAt\":\"2020-10-26T20:05:46.9508456+00:00\",\"status\":\"Pending\",\"phoneNumberReleaseStatusDetails\":{\"+12134592987\":{\"status\":\"Pending\"}}}", - "Date" : "Mon, 26 Oct 2020 20:06:24 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/1e671fd9-31e3-4c93-a688-e3c13e865e25?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "196ms", - "MS-CV" : "Lk5CPIl9rUmwaNS9LWd2/w.0", - "retry-after" : "0", - "X-Azure-Ref" : "0RiyXXwAAAAB8rQ0abyLQRr/qkTbMbOenREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"1e671fd9-31e3-4c93-a688-e3c13e865e25\",\"createdAt\":\"2020-10-26T20:05:46.9508456+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+12134592987\":{\"status\":\"InProgress\"}}}", - "Date" : "Mon, 26 Oct 2020 20:06:30 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/1e671fd9-31e3-4c93-a688-e3c13e865e25?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "195ms", - "MS-CV" : "KtWmXnEb/06TzCj5U9PzuQ.0", - "retry-after" : "0", - "X-Azure-Ref" : "0SyyXXwAAAACMWo4raCoCRqQY7viXAhiaREVOMDJFREdFMDMxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"1e671fd9-31e3-4c93-a688-e3c13e865e25\",\"createdAt\":\"2020-10-26T20:05:46.9508456+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+12134592987\":{\"status\":\"InProgress\"}}}", - "Date" : "Mon, 26 Oct 2020 20:06:34 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/1e671fd9-31e3-4c93-a688-e3c13e865e25?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "202ms", - "MS-CV" : "wunF1VTjyU6ZBbdx3r0iJw.0", - "retry-after" : "0", - "X-Azure-Ref" : "0UCyXXwAAAADcRX97IXr+QLxD7qykHYwcREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"1e671fd9-31e3-4c93-a688-e3c13e865e25\",\"createdAt\":\"2020-10-26T20:05:46.9508456+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+12134592987\":{\"status\":\"InProgress\"}}}", - "Date" : "Mon, 26 Oct 2020 20:06:40 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/1e671fd9-31e3-4c93-a688-e3c13e865e25?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "195ms", - "MS-CV" : "2H3GVB7xoEir8W8xcgjudw.0", - "retry-after" : "0", - "X-Azure-Ref" : "0ViyXXwAAAAA94b7XOhJwRLmCXJRwBJvsREVOMDJFREdFMDMxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"1e671fd9-31e3-4c93-a688-e3c13e865e25\",\"createdAt\":\"2020-10-26T20:05:46.9508456+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+12134592987\":{\"status\":\"InProgress\"}}}", - "Date" : "Mon, 26 Oct 2020 20:06:45 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/1e671fd9-31e3-4c93-a688-e3c13e865e25?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "250ms", - "MS-CV" : "j1LcvY17ikW0COkorLc4aw.0", - "retry-after" : "0", - "X-Azure-Ref" : "0WyyXXwAAAAD/Ma3wVnIZQrTcx7dyfVcrREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"1e671fd9-31e3-4c93-a688-e3c13e865e25\",\"createdAt\":\"2020-10-26T20:05:46.9508456+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+12134592987\":{\"status\":\"InProgress\"}}}", - "Date" : "Mon, 26 Oct 2020 20:06:51 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/1e671fd9-31e3-4c93-a688-e3c13e865e25?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "2212ms", - "MS-CV" : "vSVVtN6bDU2gMb2BTo1JRQ.0", - "retry-after" : "0", - "X-Azure-Ref" : "0YCyXXwAAAABQSluFk2kRQoNRl8+fkW0nREVOMDJFREdFMDMxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"1e671fd9-31e3-4c93-a688-e3c13e865e25\",\"createdAt\":\"2020-10-26T20:05:46.9508456+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+12134592987\":{\"status\":\"InProgress\"}}}", - "Date" : "Mon, 26 Oct 2020 20:06:57 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/1e671fd9-31e3-4c93-a688-e3c13e865e25?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "261ms", - "MS-CV" : "uAnk9qCfGk6z2fmS17uJ0Q.0", - "retry-after" : "0", - "X-Azure-Ref" : "0aCyXXwAAAACj4RqkTuwUS4WmkAChTzL7REVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"1e671fd9-31e3-4c93-a688-e3c13e865e25\",\"createdAt\":\"2020-10-26T20:05:46.9508456+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+12134592987\":{\"status\":\"InProgress\"}}}", - "Date" : "Mon, 26 Oct 2020 20:07:04 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/1e671fd9-31e3-4c93-a688-e3c13e865e25?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "355ms", - "MS-CV" : "zWkQB2CIAUilQTHSZ/2oWQ.0", - "retry-after" : "0", - "X-Azure-Ref" : "0bSyXXwAAAAA6GpqN9SXpRrgz2+I1pwPZREVOMDJFREdFMDMxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"1e671fd9-31e3-4c93-a688-e3c13e865e25\",\"createdAt\":\"2020-10-26T20:05:46.9508456+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+12134592987\":{\"status\":\"InProgress\"}}}", - "Date" : "Mon, 26 Oct 2020 20:07:09 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/1e671fd9-31e3-4c93-a688-e3c13e865e25?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "197ms", - "MS-CV" : "m9uzYzLyYkmQgn/hx7l6xg.0", - "retry-after" : "0", - "X-Azure-Ref" : "0ciyXXwAAAAA6WniR8TUEQ4SDIofSNPLDREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"1e671fd9-31e3-4c93-a688-e3c13e865e25\",\"createdAt\":\"2020-10-26T20:05:46.9508456+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+12134592987\":{\"status\":\"InProgress\"}}}", - "Date" : "Mon, 26 Oct 2020 20:07:14 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/1e671fd9-31e3-4c93-a688-e3c13e865e25?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "309ms", - "MS-CV" : "RAqlfHjzuEqciZlb7qxbDw.0", - "retry-after" : "0", - "X-Azure-Ref" : "0eCyXXwAAAAAul0Mo31JLTqmJE6lNiriQREVOMDJFREdFMDMxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"1e671fd9-31e3-4c93-a688-e3c13e865e25\",\"createdAt\":\"2020-10-26T20:05:46.9508456+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+12134592987\":{\"status\":\"InProgress\"}}}", - "Date" : "Mon, 26 Oct 2020 20:07:20 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/1e671fd9-31e3-4c93-a688-e3c13e865e25?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "282ms", - "MS-CV" : "d1/zdj71qEKDB1F/BLpREQ.0", - "retry-after" : "0", - "X-Azure-Ref" : "0fSyXXwAAAABgGll90BArR5Ra7yZYNFEUREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"1e671fd9-31e3-4c93-a688-e3c13e865e25\",\"createdAt\":\"2020-10-26T20:05:46.9508456+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+12134592987\":{\"status\":\"InProgress\"}}}", - "Date" : "Mon, 26 Oct 2020 20:07:25 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/1e671fd9-31e3-4c93-a688-e3c13e865e25?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "238ms", - "MS-CV" : "LEbXKBbttk6cClcEvddQBg.0", - "retry-after" : "0", - "X-Azure-Ref" : "0giyXXwAAAABpw1FAFjbDSbcgW8pYXZdqREVOMDJFREdFMDMxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"1e671fd9-31e3-4c93-a688-e3c13e865e25\",\"createdAt\":\"2020-10-26T20:05:46.9508456+00:00\",\"status\":\"Complete\",\"phoneNumberReleaseStatusDetails\":{\"+12134592987\":{\"status\":\"Success\"}}}", - "Date" : "Mon, 26 Oct 2020 20:07:31 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ ] - } \ No newline at end of file + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "1148ms", + "MS-CV" : "kYcVVMX+GEexVLb+OgEYEA.0", + "retry-after" : "0", + "X-Azure-Ref" : "0DZytXwAAAAAG4saHzAKKRK78R7n3wqQETEFYRURHRTEyMTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\"}", + "Date" : "Thu, 12 Nov 2020 20:33:17 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "524ms", + "MS-CV" : "xxKPyg/JIkuIMX2hlC56ag.0", + "retry-after" : "0", + "X-Azure-Ref" : "0DpytXwAAAAAulBJGzzdXTaVnCv9t8ZUGTEFYRURHRTEyMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"Pending\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"Pending\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:18 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "184ms", + "MS-CV" : "AxD/NgI+ok+AryXumzaezg.0", + "retry-after" : "0", + "X-Azure-Ref" : "0EJytXwAAAACD+8u0ThAzR5tj66NU7Ly/TEFYRURHRTEyMTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"Pending\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"Pending\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:19 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "188ms", + "MS-CV" : "6wgQh7pda0q7qUjsUjNJtA.0", + "retry-after" : "0", + "X-Azure-Ref" : "0EZytXwAAAACHJiD4VMd8T5B2+87oTpBxTEFYRURHRTEyMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"Pending\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"Pending\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:20 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "188ms", + "MS-CV" : "CQYd70LN8U+bHU5G/zLLtA.0", + "retry-after" : "0", + "X-Azure-Ref" : "0EpytXwAAAAA0XSmx9exyRZpXHCCt3ELITEFYRURHRTEyMTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"Pending\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"Pending\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:22 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "256ms", + "MS-CV" : "MTb5lXaHAU+isY2y+7VBUA.0", + "retry-after" : "0", + "X-Azure-Ref" : "0FJytXwAAAABNJTSS7ousT7WrjVljGQp0TEFYRURHRTEyMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"Pending\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:23 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "183ms", + "MS-CV" : "nqBrJAlUqki8NcoasbGFKg.0", + "retry-after" : "0", + "X-Azure-Ref" : "0FZytXwAAAACIyd/pMI9VTLurmbce146GTEFYRURHRTEyMTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"InProgress\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:25 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "190ms", + "MS-CV" : "li06UdeyjUK4eFC6ycKaOg.0", + "retry-after" : "0", + "X-Azure-Ref" : "0FpytXwAAAAD6lwCJGviKR5boatLu6l8tTEFYRURHRTEyMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"InProgress\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:26 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "241ms", + "MS-CV" : "TYisPdehNU+4Y/U5i3qutA.0", + "retry-after" : "0", + "X-Azure-Ref" : "0F5ytXwAAAABLh/IaiWEIRI/EqP1FjK/eTEFYRURHRTEyMTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"InProgress\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:27 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "243ms", + "MS-CV" : "WHnM9R0js0aX6DibJfFJrQ.0", + "retry-after" : "0", + "X-Azure-Ref" : "0GZytXwAAAAAgYc1PdkSyR5sBJvm0GVRoTEFYRURHRTEyMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"InProgress\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:28 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "199ms", + "MS-CV" : "uv+1b/p5EkGX5GR4QcScgQ.0", + "retry-after" : "0", + "X-Azure-Ref" : "0GpytXwAAAAAOSKHNuT+cQYA/NepFbJcOTEFYRURHRTEyMTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"InProgress\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:30 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "262ms", + "MS-CV" : "kZfMzryQp0SJCvnNj/e1HA.0", + "retry-after" : "0", + "X-Azure-Ref" : "0G5ytXwAAAAA9J29FViYuR76d3IsiLZpdTEFYRURHRTEyMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"InProgress\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:31 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "223ms", + "MS-CV" : "hGTsLSN9c0+Hb3Y0Av0bIQ.0", + "retry-after" : "0", + "X-Azure-Ref" : "0HZytXwAAAADdrH26tAHeQqUktSMAQFpVTEFYRURHRTEyMTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"InProgress\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:32 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "194ms", + "MS-CV" : "R3Spn034ykSniWgTu/3fgQ.0", + "retry-after" : "0", + "X-Azure-Ref" : "0HpytXwAAAACYq5LSpza7QbpP8bWXJcCkTEFYRURHRTEyMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"InProgress\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:34 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "190ms", + "MS-CV" : "5+uZcW+bikuZvDw9JS5KFA.0", + "retry-after" : "0", + "X-Azure-Ref" : "0H5ytXwAAAAC4bojcjoWoQKbJ3XZ0QnwfTEFYRURHRTEyMTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"InProgress\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:35 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "190ms", + "MS-CV" : "ikG/CbJ+n0m98rLy6nO8tw.0", + "retry-after" : "0", + "X-Azure-Ref" : "0IZytXwAAAADyyymSih3KQqMZXPrFBSfgTEFYRURHRTEyMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"InProgress\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:36 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "196ms", + "MS-CV" : "uJG2+UiS2ECDIN8AsoLPJg.0", + "retry-after" : "0", + "X-Azure-Ref" : "0IpytXwAAAADtR3aEWLKcRJ/eIL6SGOriTEFYRURHRTEyMTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"InProgress\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:37 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "184ms", + "MS-CV" : "Mw5/zQhoN0OLQeo551As1A.0", + "retry-after" : "0", + "X-Azure-Ref" : "0I5ytXwAAAAC4XXBS65Q8QISSAdDiexJfTEFYRURHRTEyMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"InProgress\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:39 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "210ms", + "MS-CV" : "G0F+Cqqc30Kdj4etQDfPGg.0", + "retry-after" : "0", + "X-Azure-Ref" : "0JZytXwAAAACcaQ1mZ/xHSq+p1mj14tNdTEFYRURHRTEyMTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"InProgress\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:40 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "269ms", + "MS-CV" : "GeFZ4845QEunIgFyPdROgw.0", + "retry-after" : "0", + "X-Azure-Ref" : "0JpytXwAAAAB9tbIUNhEKTKAEnkvhp4XkTEFYRURHRTEyMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"InProgress\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:41 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "179ms", + "MS-CV" : "bsE1LHdLUkeqy2e/DtQr8g.0", + "retry-after" : "0", + "X-Azure-Ref" : "0J5ytXwAAAADaSdWEt2FhTLogq9l3D+iITEFYRURHRTEyMTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"InProgress\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:43 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "197ms", + "MS-CV" : "H9+3PMVs/EeLP5maN23Isg.0", + "retry-after" : "0", + "X-Azure-Ref" : "0KJytXwAAAAD7EdfTHb0rRbTcnNnRU71rTEFYRURHRTEyMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"InProgress\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:44 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "191ms", + "MS-CV" : "durqSPaKeUulIzn3z33rfw.0", + "retry-after" : "0", + "X-Azure-Ref" : "0KpytXwAAAACXjpfpRABwQZXmcmE0dxgHTEFYRURHRTEyMTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"InProgress\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:45 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "179ms", + "MS-CV" : "slAWCQ9l80GADy9KT7DNXg.0", + "retry-after" : "0", + "X-Azure-Ref" : "0K5ytXwAAAAASn/1GuL5QSKAk3J2c56J/TEFYRURHRTEyMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"InProgress\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:46 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "199ms", + "MS-CV" : "tuVelZMVV0u7aQLSTs6vdQ.0", + "retry-after" : "0", + "X-Azure-Ref" : "0LJytXwAAAABtLF8lnpHaRJpAunaF7XW2TEFYRURHRTEyMTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"InProgress\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"InProgress\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:48 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases/e5bdeee1-ebca-4a2d-9a38-81998ff34737?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "201ms", + "MS-CV" : "ZIMWUB08BUmt8ahfsCXL9w.0", + "retry-after" : "0", + "X-Azure-Ref" : "0LpytXwAAAADB7GHMSKNETpum3chSuJ+cTEFYRURHRTEyMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"releaseId\":\"e5bdeee1-ebca-4a2d-9a38-81998ff34737\",\"createdAt\":\"2020-11-12T20:33:17.5723749+00:00\",\"status\":\"Complete\",\"phoneNumberReleaseStatusDetails\":{\"+13234882258\":{\"status\":\"Success\"}}}", + "Date" : "Thu, 12 Nov 2020 20:33:49 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ ] +} \ No newline at end of file diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelReservation.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelReservation.json new file mode 100644 index 0000000000000..d10d3728d4e52 --- /dev/null +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelReservation.json @@ -0,0 +1,20 @@ +{ + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/40fc0889-ce29-4a18-aac8-94fe6eda7af7/cancel?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "X-Processing-Time" : "261ms", + "MS-CV" : "75fbF5PspE+xZHHBXU0Avg.0", + "retry-after" : "0", + "X-Azure-Ref" : "0QuysXwAAAAD0RRxhmp7PR40y8OpLt8GSTEFYRURHRTEyMTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Content-Length" : "0", + "StatusCode" : "202", + "Date" : "Thu, 12 Nov 2020 08:03:14 GMT" + }, + "Exception" : null + } ], + "variables" : [ ] +} \ No newline at end of file diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelReservationWithResponse.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelReservationWithResponse.json new file mode 100644 index 0000000000000..332f56a85de26 --- /dev/null +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelReservationWithResponse.json @@ -0,0 +1,20 @@ +{ + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/40fc0889-ce29-4a18-aac8-94fe6eda7af7/cancel?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "X-Processing-Time" : "1337ms", + "MS-CV" : "dml3KGYkokGft0szL1Pa/g.0", + "retry-after" : "0", + "X-Azure-Ref" : "0QeysXwAAAABtXTlcFvJPTIKdp9YCE8VqTEFYRURHRTEyMTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Content-Length" : "0", + "StatusCode" : "202", + "Date" : "Thu, 12 Nov 2020 08:03:14 GMT" + }, + "Exception" : null + } ], + "variables" : [ ] +} \ No newline at end of file diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelSearch.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelSearch.json deleted file mode 100644 index 9c0d08a142168..0000000000000 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelSearch.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-2/cancel?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)" - }, - "Response" : { - "X-Processing-Time" : "2180ms", - "MS-CV" : "JyEciUCXxUCL6kA2f2qtFA.0", - "retry-after" : "0", - "X-Azure-Ref" : "0AX9pXwAAAAA/zlY4jVBMSKp3gq0ZdwsBWVZSMzBFREdFMDMxMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Content-Length" : "0", - "StatusCode" : "202", - "Date" : "Tue, 22 Sep 2020 04:35:15 GMT" - }, - "Exception" : null - } ], - "variables" : [ ] -} \ No newline at end of file diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelSearchWithResponse.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelSearchWithResponse.json deleted file mode 100644 index b828efcf0e0e0..0000000000000 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelSearchWithResponse.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-2/cancel?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)" - }, - "Response" : { - "X-Processing-Time" : "2180ms", - "MS-CV" : "JyEciUCXxUCL6kA2f2qtFA.0", - "retry-after" : "0", - "X-Azure-Ref" : "0AX9pXwAAAAA/zlY4jVBMSKp3gq0ZdwsBWVZSMzBFREdFMDMxMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Content-Length" : "0", - "StatusCode" : "202", - "Date" : "Tue, 22 Sep 2020 04:35:15 GMT" - }, - "Exception" : null - } ], - "variables" : [ ] -} diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/configureNumber.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/configureNumber.json index 277986f249dce..5b617226fa80a 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/configureNumber.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/configureNumber.json @@ -3,17 +3,17 @@ "Method" : "PATCH", "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/numberconfiguration/configure?api-version=2020-07-20-preview1", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)", + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { - "X-Processing-Time" : "111ms", - "MS-CV" : "AlNcymYci0KnUJlpFYJ7SQ.0", + "X-Processing-Time" : "747ms", + "MS-CV" : "FXayA2Q73Um3gmoKDsdAVA.0", "retry-after" : "0", - "X-Azure-Ref" : "0R3xpXwAAAADR0b9AJJ/fT4MZwVQ912XOWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0MqKtXwAAAAB412Qnk4/3QblygwkW0zLrTEFYRURHRTEyMTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "Content-Length" : "0", "StatusCode" : "200", - "Date" : "Tue, 22 Sep 2020 04:23:34 GMT" + "Date" : "Thu, 12 Nov 2020 20:59:31 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/configureNumberWithResponse.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/configureNumberWithResponse.json index fa05ca42d6c52..8f05197981bc8 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/configureNumberWithResponse.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/configureNumberWithResponse.json @@ -3,17 +3,17 @@ "Method" : "PATCH", "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/numberconfiguration/configure?api-version=2020-07-20-preview1", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)", + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { - "X-Processing-Time" : "219ms", - "MS-CV" : "rVm/RharrEerHY2hUzKDSw.0", + "X-Processing-Time" : "714ms", + "MS-CV" : "H0ifjbpkJE6RaN1BipBmJQ.0", "retry-after" : "0", - "X-Azure-Ref" : "0RXxpXwAAAAA/H8wY0GrvSaITi8Q5Mz9xWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0QuysXwAAAACKzsWvr5iHTqO7Ua25KZtjTEFYRURHRTEyMTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "Content-Length" : "0", "StatusCode" : "200", - "Date" : "Tue, 22 Sep 2020 04:23:33 GMT" + "Date" : "Thu, 12 Nov 2020 08:03:15 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/createAsyncPhoneNumberClientWithConnectionString.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/createAsyncPhoneNumberClientWithConnectionString.json index d6168e639a72a..b62522c95dd84 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/createAsyncPhoneNumberClientWithConnectionString.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/createAsyncPhoneNumberClientWithConnectionString.json @@ -3,17 +3,17 @@ "Method" : "GET", "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/phonenumbers?locale=en-us&api-version=2020-07-20-preview1", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.2 (11.0.8; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "1857ms", - "MS-CV" : "VXG7hpQ9Ikypcp9mkJTJ7Q.0", + "X-Processing-Time" : "507ms", + "MS-CV" : "/hlwZtEBk0eTdi0lfM+0ww.0", "retry-after" : "0", - "X-Azure-Ref" : "0Ucp3XwAAAADNdZrX4K5HTrEUVvzdREK/WVZSMzBFREdFMDQxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0Q+ysXwAAAACkJfXCPXI0SLvmjuX0kkVITEFYRURHRTEyMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"phoneNumbers\":[{\"phoneNumber\":\"REDACTED\",\"acquiredCapabilities\":[\"Azure\",\"InboundCalling\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"InboundA2PSms\",\"OutboundA2PSms\",\"TollFree\"],\"availableCapabilities\":[\"ConferenceAssignment\",\"TollFree\",\"FirstPartyAppAssignment\",\"ThirdPartyAppAssignment\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\",\"InboundA2PSms\",\"OutboundA2PSms\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Toll-Free, United States\",\"activationState\":\"Activated\"}],\"nextLink\":null}", - "Date" : "Sat, 03 Oct 2020 00:48:19 GMT", + "Body" : "{\"phoneNumbers\":[{\"phoneNumber\":\"+12133285934\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"UserAssignment\",\"Geographic\",\"InboundCalling\"],\"availableCapabilities\":[\"UserAssignment\",\"InboundCalling\",\"OutboundCalling\",\"Geographic\",\"Office365\",\"Azure\"],\"assignmentStatus\":\"Unknown\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+12134592989\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"UserAssignment\",\"Geographic\"],\"availableCapabilities\":[\"UserAssignment\",\"Geographic\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unknown\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+12134592990\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"UserAssignment\",\"Geographic\"],\"availableCapabilities\":[\"UserAssignment\",\"Geographic\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unknown\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+12134592991\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"UserAssignment\",\"Geographic\"],\"availableCapabilities\":[\"UserAssignment\",\"Geographic\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unknown\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+12134592992\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"UserAssignment\",\"Geographic\"],\"availableCapabilities\":[\"UserAssignment\",\"Geographic\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unknown\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+12134592994\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"UserAssignment\",\"Geographic\"],\"availableCapabilities\":[\"UserAssignment\",\"Geographic\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unknown\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+12134592995\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"UserAssignment\",\"Geographic\"],\"availableCapabilities\":[\"UserAssignment\",\"Geographic\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+12134592997\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"UserAssignment\",\"Geographic\"],\"availableCapabilities\":[\"UserAssignment\",\"Geographic\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+12135324424\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"UserAssignment\",\"Geographic\"],\"availableCapabilities\":[\"UserAssignment\",\"Geographic\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+12135324430\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"UserAssignment\",\"Geographic\"],\"availableCapabilities\":[\"UserAssignment\",\"Geographic\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+13234882398\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"Geographic\"],\"availableCapabilities\":[\"ConferenceAssignment\",\"Geographic\",\"FirstPartyAppAssignment\",\"ThirdPartyAppAssignment\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+18332092638\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"InboundA2PSms\",\"OutboundA2PSms\",\"TollFree\"],\"availableCapabilities\":[\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"ConferenceAssignment\",\"FirstPartyAppAssignment\",\"TollFree\",\"InboundA2PSms\",\"OutboundA2PSms\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Toll-Free, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+18332092648\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"InboundA2PSms\",\"OutboundA2PSms\",\"TollFree\"],\"availableCapabilities\":[\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"ConferenceAssignment\",\"FirstPartyAppAssignment\",\"TollFree\",\"InboundA2PSms\",\"OutboundA2PSms\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Toll-Free, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+18332092655\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"InboundA2PSms\",\"OutboundA2PSms\",\"TollFree\"],\"availableCapabilities\":[\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"ConferenceAssignment\",\"FirstPartyAppAssignment\",\"TollFree\",\"InboundA2PSms\",\"OutboundA2PSms\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Toll-Free, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+18332092664\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"InboundA2PSms\",\"OutboundA2PSms\",\"TollFree\",\"InboundCalling\"],\"availableCapabilities\":[\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"ConferenceAssignment\",\"FirstPartyAppAssignment\",\"TollFree\",\"InboundA2PSms\",\"OutboundA2PSms\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Toll-Free, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+18332092668\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"InboundA2PSms\",\"OutboundA2PSms\",\"TollFree\"],\"availableCapabilities\":[\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"ConferenceAssignment\",\"FirstPartyAppAssignment\",\"TollFree\",\"InboundA2PSms\",\"OutboundA2PSms\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Toll-Free, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+19169051301\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"Geographic\"],\"availableCapabilities\":[\"ConferenceAssignment\",\"Geographic\",\"FirstPartyAppAssignment\",\"ThirdPartyAppAssignment\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Sacramento, United States\",\"activationState\":\"Activated\"}],\"nextLink\":null}", + "Date" : "Thu, 12 Nov 2020 08:03:15 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/createSearch.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/createReservation.json similarity index 58% rename from sdk/communication/azure-communication-administration/src/test/resources/session-records/createSearch.json rename to sdk/communication/azure-communication-administration/src/test/resources/session-records/createReservation.json index 1167abf595c53..bd20429db2775 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/createSearch.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/createReservation.json @@ -3,18 +3,18 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches?api-version=2020-07-20-preview1", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)", + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "1529ms", - "MS-CV" : "TPdtsisaOU+qG8InRKRMsg.0", + "X-Processing-Time" : "1189ms", + "MS-CV" : "SoV6sw+JME+e4gJoyE4YVg.0", "retry-after" : "0", - "X-Azure-Ref" : "0VXxpXwAAAABia5b180wgQ6BE18LRI25tWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0QeysXwAAAADKbXoFcPCwQahQO5VoIYLpTEFYRURHRTEyMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "201", - "Body" : "{\"searchId\":\"4b300fc8-d36c-4c10-a9ba-a296aa5ee305\"}", - "Date" : "Tue, 22 Sep 2020 04:23:50 GMT", + "Body" : "{\"searchId\":\"7167fcf6-8496-4b9e-922f-e60a0af289b8\"}", + "Date" : "Thu, 12 Nov 2020 08:03:14 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/createReservationWithResponse.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/createReservationWithResponse.json new file mode 100644 index 0000000000000..d632f50219bdf --- /dev/null +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/createReservationWithResponse.json @@ -0,0 +1,23 @@ +{ + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "1448ms", + "MS-CV" : "kzsWWjOiCUaxtOLgqgRtXQ.0", + "retry-after" : "0", + "X-Azure-Ref" : "0QeysXwAAAABuL3eFw/rwT71NWnbmhkOCTEFYRURHRTEyMTgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "201", + "Body" : "{\"searchId\":\"ebbffd18-5ed1-46c8-99bb-5173ec53514c\"}", + "Date" : "Thu, 12 Nov 2020 08:03:13 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ ] +} \ No newline at end of file diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getAllAreaCodes.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getAllAreaCodes.json index 195014d6b397c..cb5ccbf4d9b84 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getAllAreaCodes.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getAllAreaCodes.json @@ -1,20 +1,20 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/countries/US/areacodes?locationType=selection&phonePlanId=phone-plan-id-1&api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/countries/US/areacodes?locationType=selection&phonePlanId=27b53eec-8ff4-4070-8900-fbeaabfd158a&api-version=2020-07-20-preview1", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)", + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "362ms", - "MS-CV" : "jTeh0Fpbsk+k+jEWqBqOEA.0", + "X-Processing-Time" : "870ms", + "MS-CV" : "NXtlcUBZBkKrdtWay3eRlg.0", "retry-after" : "0", - "X-Azure-Ref" : "0OnxpXwAAAAAFVOX2n/WcTqriYkoY9JuzWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0QeysXwAAAAA4QEQ7d0jfR5bZXTKwR9vQTEFYRURHRTEyMTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"primaryAreaCodes\":[\"777\"],\"secondaryAreaCodes\":[],\"nextLink\":null}", - "Date" : "Tue, 22 Sep 2020 04:23:22 GMT", + "Body" : "{\"primaryAreaCodes\":[\"323\"],\"secondaryAreaCodes\":[],\"nextLink\":null}", + "Date" : "Thu, 12 Nov 2020 08:03:13 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getAllAreaCodesWithResponse.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getAllAreaCodesWithResponse.json index bec8e8e4e1d23..928af325a7e9a 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getAllAreaCodesWithResponse.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getAllAreaCodesWithResponse.json @@ -1,20 +1,20 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/countries/US/areacodes?locationType=selection&phonePlanId=phone-plan-id-1&api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/countries/US/areacodes?locationType=selection&phonePlanId=27b53eec-8ff4-4070-8900-fbeaabfd158a&api-version=2020-07-20-preview1", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)", + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "863ms", - "MS-CV" : "7R1y2WeJ/EacjqqAUpikYQ.0", + "X-Processing-Time" : "383ms", + "MS-CV" : "CNYJjQzS+UCN1I+2ZCcwsw.0", "retry-after" : "0", - "X-Azure-Ref" : "0L3xpXwAAAABWTkQohIqGSb2EzUfQZaGlWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0QeysXwAAAAA7lP3MwYy7SYTqJJF24OLXTEFYRURHRTEyMTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"primaryAreaCodes\":[\"777\"],\"secondaryAreaCodes\":[],\"nextLink\":null}", - "Date" : "Tue, 22 Sep 2020 04:23:11 GMT", + "Body" : "{\"primaryAreaCodes\":[\"323\"],\"secondaryAreaCodes\":[],\"nextLink\":null}", + "Date" : "Thu, 12 Nov 2020 08:03:13 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getCapabilitiesUpdate.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getCapabilitiesUpdate.json index b21b46a181670..7f6d01416fee8 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getCapabilitiesUpdate.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getCapabilitiesUpdate.json @@ -1,22 +1,22 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/capabilities/capabilities-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/capabilities/f1ff2fd9-e703-40f9-8bb0-33c6e707c03d?api-version=2020-07-20-preview1", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)" + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "1367ms", - "MS-CV" : "4EZnktsXRkWOjvW/rNuVjg.0", + "X-Processing-Time" : "565ms", + "MS-CV" : "/zJhMJ2NbUqkHso2/YwqDA.0", "retry-after" : "0", - "X-Azure-Ref" : "0ioJpXwAAAAAZGoNaTEV1Q55RcXGoYnOZWVZSMzBFREdFMDQxMwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0QuysXwAAAADB6MD6Z/T8SJZ4S8d5vojMTEFYRURHRTEyMDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"capabilitiesUpdateId\":\"capabilities-id-1\",\"createdAt\":\"2020-09-22T04:23:52.1185774+00:00\",\"capabilitiesUpdateStatus\":\"Complete\",\"phoneNumberCapabilitiesUpdates\":{\"+17771234567\":{\"add\":[\"InboundCalling\"],\"remove\":[]}}}", - "Date" : "Tue, 22 Sep 2020 04:50:19 GMT", + "Body" : "{\"capabilitiesUpdateId\":\"f1ff2fd9-e703-40f9-8bb0-33c6e707c03d\",\"createdAt\":\"2020-11-12T04:14:33.1025041+00:00\",\"capabilitiesUpdateStatus\":\"Complete\",\"phoneNumberCapabilitiesUpdates\":{\"+12133285934\":{\"add\":[\"InboundCalling\"],\"remove\":[]}}}", + "Date" : "Thu, 12 Nov 2020 08:03:14 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null } ], "variables" : [ ] -} +} \ No newline at end of file diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getCapabilitiesUpdateWithResponse.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getCapabilitiesUpdateWithResponse.json index b21b46a181670..6a8bd8355a4e9 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getCapabilitiesUpdateWithResponse.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getCapabilitiesUpdateWithResponse.json @@ -1,22 +1,22 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/capabilities/capabilities-id-1?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/capabilities/f1ff2fd9-e703-40f9-8bb0-33c6e707c03d?api-version=2020-07-20-preview1", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)" + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "1367ms", - "MS-CV" : "4EZnktsXRkWOjvW/rNuVjg.0", + "X-Processing-Time" : "276ms", + "MS-CV" : "qf2BClHxhEqL9ek8pMp7MA.0", "retry-after" : "0", - "X-Azure-Ref" : "0ioJpXwAAAAAZGoNaTEV1Q55RcXGoYnOZWVZSMzBFREdFMDQxMwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0Q+ysXwAAAABEhM+bmntmT6wop8/QCv04TEFYRURHRTEyMDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"capabilitiesUpdateId\":\"capabilities-id-1\",\"createdAt\":\"2020-09-22T04:23:52.1185774+00:00\",\"capabilitiesUpdateStatus\":\"Complete\",\"phoneNumberCapabilitiesUpdates\":{\"+17771234567\":{\"add\":[\"InboundCalling\"],\"remove\":[]}}}", - "Date" : "Tue, 22 Sep 2020 04:50:19 GMT", + "Body" : "{\"capabilitiesUpdateId\":\"f1ff2fd9-e703-40f9-8bb0-33c6e707c03d\",\"createdAt\":\"2020-11-12T04:14:33.1025041+00:00\",\"capabilitiesUpdateStatus\":\"Complete\",\"phoneNumberCapabilitiesUpdates\":{\"+12133285934\":{\"add\":[\"InboundCalling\"],\"remove\":[]}}}", + "Date" : "Thu, 12 Nov 2020 08:03:14 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null } ], "variables" : [ ] -} +} \ No newline at end of file diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getNumberConfiguration.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getNumberConfiguration.json index a1e9f70925f5c..a221dd26c4a3d 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getNumberConfiguration.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getNumberConfiguration.json @@ -3,21 +3,21 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/numberconfiguration?api-version=2020-07-20-preview1", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)", + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "111ms", - "MS-CV" : "VkbtYeLW/UCu3cmO0mlLow.0", + "X-Processing-Time" : "802ms", + "MS-CV" : "/TF1eYUPXkGHBtiTC20t9w.0", "retry-after" : "0", - "X-Azure-Ref" : "0RXxpXwAAAAAip43zYy9hQKnfk3RZ1OJ6WVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0TKKtXwAAAAAdaw7X/YnoQLE3sY0jesBhTEFYRURHRTEyMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", "Body" : "{\"pstnConfiguration\":{\"callbackUrl\":\"https://callbackurl\",\"applicationId\":\"ApplicationId\"}}", - "Date" : "Tue, 22 Sep 2020 04:23:33 GMT", + "Date" : "Thu, 12 Nov 2020 20:59:56 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getNumberConfigurationWithResponse.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getNumberConfigurationWithResponse.json index db63c4d5590d2..2a3b60220ce24 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getNumberConfigurationWithResponse.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getNumberConfigurationWithResponse.json @@ -3,18 +3,18 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/numberconfiguration?api-version=2020-07-20-preview1", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)", + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "111ms", - "MS-CV" : "VkbtYeLW/UCu3cmO0mlLow.0", + "X-Processing-Time" : "497ms", + "MS-CV" : "tkNxYo7nm0WiH3JlZ2xYEg.0", "retry-after" : "0", - "X-Azure-Ref" : "0RXxpXwAAAAAip43zYy9hQKnfk3RZ1OJ6WVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0aqKtXwAAAADw5O9t54OZRZ/BguzYUS6GTEFYRURHRTEyMTYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", "Body" : "{\"pstnConfiguration\":{\"callbackUrl\":\"https://callbackurl\",\"applicationId\":\"ApplicationId\"}}", - "Date" : "Tue, 22 Sep 2020 04:23:33 GMT", + "Date" : "Thu, 12 Nov 2020 21:00:26 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getPhonePlanLocationOptions.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getPhonePlanLocationOptions.json index cef33c707e21a..2699029f70fa3 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getPhonePlanLocationOptions.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getPhonePlanLocationOptions.json @@ -1,19 +1,19 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/phone-plan-group-id-1/phoneplans/phone-plan-id-1/locationoptions?locale=en-us&api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/671ee064-662f-4c3b-82a9-af2ab200dd5c/phoneplans/27b53eec-8ff4-4070-8900-fbeaabfd158a/locationoptions?locale=en-us&api-version=2020-07-20-preview1", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)" + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "533ms", - "MS-CV" : "9kRv2Vx7c06HdPknQfPDlQ.0", + "X-Processing-Time" : "489ms", + "MS-CV" : "n9GZ3/3EP0SBiuj554GCMA.0", "retry-after" : "0", - "X-Azure-Ref" : "0RHxpXwAAAAAZigu1u8ssSKmjffwMtBCwWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0QuysXwAAAAANW8NFO4WlTLSd45FbnMQqTEFYRURHRTEyMTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"locationOptions\":{\"labelId\":\"state\",\"labelName\":\"State\",\"options\":[{\"name\":\"AK\",\"value\":\"AK\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Anchorage\",\"value\":\"NOAM-US-AK-AN\",\"locationOptions\":[]}]}]},{\"name\":\"AL\",\"value\":\"AL\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Birmingham\",\"value\":\"NOAM-US-AL-BI\",\"locationOptions\":[]},{\"name\":\"Huntsville\",\"value\":\"NOAM-US-AL-HN\",\"locationOptions\":[]},{\"name\":\"Mobile\",\"value\":\"NOAM-US-AL-MO\",\"locationOptions\":[]},{\"name\":\"Montgomery\",\"value\":\"NOAM-US-AL-MN\",\"locationOptions\":[]}]}]},{\"name\":\"AR\",\"value\":\"AR\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Fort Smith\",\"value\":\"NOAM-US-AR-FS\",\"locationOptions\":[]},{\"name\":\"Jonesboro\",\"value\":\"NOAM-US-AR-JO\",\"locationOptions\":[]},{\"name\":\"Little Rock\",\"value\":\"NOAM-US-AR-LR\",\"locationOptions\":[]}]}]},{\"name\":\"AZ\",\"value\":\"AZ\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Phoenix\",\"value\":\"NOAM-US-AZ-PH\",\"locationOptions\":[]}]}]},{\"name\":\"CA\",\"value\":\"CA\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Fresno\",\"value\":\"NOAM-US-CA-FR\",\"locationOptions\":[]},{\"name\":\"Los Angeles\",\"value\":\"NOAM-US-CA-LA\",\"locationOptions\":[]},{\"name\":\"Riverside\",\"value\":\"NOAM-US-CA-RI\",\"locationOptions\":[]},{\"name\":\"Sacramento\",\"value\":\"NOAM-US-CA-SA\",\"locationOptions\":[]},{\"name\":\"Salinas\",\"value\":\"NOAM-US-CA-SL\",\"locationOptions\":[]},{\"name\":\"San Diego\",\"value\":\"NOAM-US-CA-SD\",\"locationOptions\":[]},{\"name\":\"San Jose\",\"value\":\"NOAM-US-CA-SJ\",\"locationOptions\":[]},{\"name\":\"Santa Barbara\",\"value\":\"NOAM-US-CA-SB\",\"locationOptions\":[]},{\"name\":\"Santa Clarita\",\"value\":\"NOAM-US-CA-SC\",\"locationOptions\":[]},{\"name\":\"Santa Rosa\",\"value\":\"NOAM-US-CA-SR\",\"locationOptions\":[]},{\"name\":\"Stockton\",\"value\":\"NOAM-US-CA-ST\",\"locationOptions\":[]}]}]},{\"name\":\"CL\",\"value\":\"CL\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Washington DC\",\"value\":\"NOAM-US-CL-DC\",\"locationOptions\":[]}]}]},{\"name\":\"CO\",\"value\":\"CO\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Denver\",\"value\":\"NOAM-US-CO-DE\",\"locationOptions\":[]},{\"name\":\"Grand Junction\",\"value\":\"NOAM-US-CO-GJ\",\"locationOptions\":[]},{\"name\":\"Pueblo\",\"value\":\"NOAM-US-CO-PU\",\"locationOptions\":[]}]}]},{\"name\":\"CT\",\"value\":\"CT\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Bridgeport\",\"value\":\"NOAM-US-CT-BR\",\"locationOptions\":[]},{\"name\":\"Hartford\",\"value\":\"NOAM-US-CT-HA\",\"locationOptions\":[]}]}]},{\"name\":\"DE\",\"value\":\"DE\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Wilmington\",\"value\":\"NOAM-US-DE-WI\",\"locationOptions\":[]}]}]},{\"name\":\"FL\",\"value\":\"FL\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Cape Coral\",\"value\":\"NOAM-US-FL-CC\",\"locationOptions\":[]},{\"name\":\"Daytona Beach\",\"value\":\"NOAM-US-FL-DB\",\"locationOptions\":[]},{\"name\":\"Fort Lauderdale\",\"value\":\"NOAM-US-FL-FL\",\"locationOptions\":[]},{\"name\":\"Gainesville\",\"value\":\"NOAM-US-FL-GA\",\"locationOptions\":[]},{\"name\":\"Jacksonville\",\"value\":\"NOAM-US-FL-JA\",\"locationOptions\":[]},{\"name\":\"Lakeland\",\"value\":\"NOAM-US-FL-LA\",\"locationOptions\":[]},{\"name\":\"Miami\",\"value\":\"NOAM-US-FL-MI\",\"locationOptions\":[]},{\"name\":\"Orlando\",\"value\":\"NOAM-US-FL-OR\",\"locationOptions\":[]},{\"name\":\"Port St Lucie\",\"value\":\"NOAM-US-FL-PS\",\"locationOptions\":[]},{\"name\":\"Sarasota\",\"value\":\"NOAM-US-FL-SA\",\"locationOptions\":[]},{\"name\":\"Tallahassee\",\"value\":\"NOAM-US-FL-TA\",\"locationOptions\":[]},{\"name\":\"West Palm Beach\",\"value\":\"NOAM-US-FL-WP\",\"locationOptions\":[]}]}]},{\"name\":\"GA\",\"value\":\"GA\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Albany\",\"value\":\"NOAM-US-GA-AL\",\"locationOptions\":[]},{\"name\":\"Atlanta\",\"value\":\"NOAM-US-GA-AT\",\"locationOptions\":[]},{\"name\":\"Augusta\",\"value\":\"NOAM-US-GA-AU\",\"locationOptions\":[]},{\"name\":\"Macon\",\"value\":\"NOAM-US-GA-MA\",\"locationOptions\":[]},{\"name\":\"Savannah\",\"value\":\"NOAM-US-GA-SA\",\"locationOptions\":[]}]}]},{\"name\":\"HI\",\"value\":\"HI\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Honolulu\",\"value\":\"NOAM-US-HI-HO\",\"locationOptions\":[]}]}]},{\"name\":\"IA\",\"value\":\"IA\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Cedar Rapids\",\"value\":\"NOAM-US-IA-CR\",\"locationOptions\":[]},{\"name\":\"Davenport\",\"value\":\"NOAM-US-IA-DA\",\"locationOptions\":[]},{\"name\":\"Mason City\",\"value\":\"NOAM-US-IA-MC\",\"locationOptions\":[]}]}]},{\"name\":\"ID\",\"value\":\"ID\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Boise\",\"value\":\"NOAM-US-ID-BO\",\"locationOptions\":[]}]}]},{\"name\":\"IL\",\"value\":\"IL\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Alton\",\"value\":\"NOAM-US-IL-AL\",\"locationOptions\":[]},{\"name\":\"Aurora\",\"value\":\"NOAM-US-IL-AU\",\"locationOptions\":[]},{\"name\":\"Big Rock\",\"value\":\"NOAM-US-IL-BK\",\"locationOptions\":[]},{\"name\":\"Champaign\",\"value\":\"NOAM-US-IL-CA\",\"locationOptions\":[]},{\"name\":\"Chicago\",\"value\":\"NOAM-US-IL-CH\",\"locationOptions\":[]},{\"name\":\"Cicero\",\"value\":\"NOAM-US-IL-CI\",\"locationOptions\":[]},{\"name\":\"Rock Island\",\"value\":\"NOAM-US-IL-RI\",\"locationOptions\":[]},{\"name\":\"Waukegan\",\"value\":\"NOAM-US-IL-WK\",\"locationOptions\":[]}]}]},{\"name\":\"IN\",\"value\":\"IN\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Evansville\",\"value\":\"NOAM-US-IN-EV\",\"locationOptions\":[]},{\"name\":\"Fort Wayne\",\"value\":\"NOAM-US-IN-FW\",\"locationOptions\":[]},{\"name\":\"Gary\",\"value\":\"NOAM-US-IN-GA\",\"locationOptions\":[]},{\"name\":\"Indianapolis\",\"value\":\"NOAM-US-IN-IN\",\"locationOptions\":[]},{\"name\":\"South Bend\",\"value\":\"NOAM-US-IN-SB\",\"locationOptions\":[]}]}]},{\"name\":\"KS\",\"value\":\"KS\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Dodge City\",\"value\":\"NOAM-US-KS-DC\",\"locationOptions\":[]},{\"name\":\"Kansas City\",\"value\":\"NOAM-US-KS-KS\",\"locationOptions\":[]},{\"name\":\"Topeka\",\"value\":\"NOAM-US-KS-TO\",\"locationOptions\":[]},{\"name\":\"Wichita\",\"value\":\"NOAM-US-KS-WI\",\"locationOptions\":[]}]}]},{\"name\":\"KY\",\"value\":\"KY\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Ashland\",\"value\":\"NOAM-US-KY-AS\",\"locationOptions\":[]},{\"name\":\"Lexington\",\"value\":\"NOAM-US-KY-LE\",\"locationOptions\":[]},{\"name\":\"Louisville\",\"value\":\"NOAM-US-KY-LO\",\"locationOptions\":[]}]}]},{\"name\":\"LA\",\"value\":\"LA\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Baton Rouge\",\"value\":\"NOAM-US-LA-BR\",\"locationOptions\":[]},{\"name\":\"Lafayette\",\"value\":\"NOAM-US-LA-LA\",\"locationOptions\":[]},{\"name\":\"New Orleans\",\"value\":\"NOAM-US-LA-NO\",\"locationOptions\":[]},{\"name\":\"Shreveport\",\"value\":\"NOAM-US-LA-SH\",\"locationOptions\":[]}]}]},{\"name\":\"MA\",\"value\":\"MA\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Chicopee\",\"value\":\"NOAM-US-MA-CH\",\"locationOptions\":[]}]}]},{\"name\":\"ME\",\"value\":\"ME\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Portland\",\"value\":\"NOAM-US-ME-PO\",\"locationOptions\":[]}]}]},{\"name\":\"MI\",\"value\":\"MI\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Detroit\",\"value\":\"NOAM-US-MI-DE\",\"locationOptions\":[]},{\"name\":\"Flint\",\"value\":\"NOAM-US-MI-FL\",\"locationOptions\":[]},{\"name\":\"Grand Rapids\",\"value\":\"NOAM-US-MI-GP\",\"locationOptions\":[]},{\"name\":\"Grant\",\"value\":\"NOAM-US-MI-GR\",\"locationOptions\":[]},{\"name\":\"Lansing\",\"value\":\"NOAM-US-MI-LA\",\"locationOptions\":[]},{\"name\":\"Saginaw\",\"value\":\"NOAM-US-MI-SA\",\"locationOptions\":[]},{\"name\":\"Sault Ste Marie\",\"value\":\"NOAM-US-MI-SS\",\"locationOptions\":[]},{\"name\":\"Troy\",\"value\":\"NOAM-US-MI-TR\",\"locationOptions\":[]}]}]},{\"name\":\"MN\",\"value\":\"MN\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Duluth\",\"value\":\"NOAM-US-MN-DU\",\"locationOptions\":[]},{\"name\":\"Minneapolis\",\"value\":\"NOAM-US-MN-MI\",\"locationOptions\":[]},{\"name\":\"St. Paul\",\"value\":\"NOAM-US-MN-SP\",\"locationOptions\":[]}]}]},{\"name\":\"MO\",\"value\":\"MO\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Columbia\",\"value\":\"NOAM-US-MO-CO\",\"locationOptions\":[]},{\"name\":\"Kansas City\",\"value\":\"NOAM-US-MO-KS\",\"locationOptions\":[]},{\"name\":\"Marshall\",\"value\":\"NOAM-US-MO-MA\",\"locationOptions\":[]},{\"name\":\"Springfield\",\"value\":\"NOAM-US-MO-SP\",\"locationOptions\":[]},{\"name\":\"St. Charles\",\"value\":\"NOAM-US-MO-SC\",\"locationOptions\":[]},{\"name\":\"St. Louis\",\"value\":\"NOAM-US-MO-SL\",\"locationOptions\":[]}]}]},{\"name\":\"MS\",\"value\":\"MS\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Biloxi\",\"value\":\"NOAM-US-MS-BI\",\"locationOptions\":[]},{\"name\":\"Jackson\",\"value\":\"NOAM-US-MS-JA\",\"locationOptions\":[]},{\"name\":\"Starkville\",\"value\":\"NOAM-US-MS-ST\",\"locationOptions\":[]}]}]},{\"name\":\"MT\",\"value\":\"MT\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Billings\",\"value\":\"NOAM-US-MT-BI\",\"locationOptions\":[]}]}]},{\"name\":\"NC\",\"value\":\"NC\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Charlotte\",\"value\":\"NOAM-US-NC-CH\",\"locationOptions\":[]},{\"name\":\"Fayetteville\",\"value\":\"NOAM-US-NC-FA\",\"locationOptions\":[]},{\"name\":\"Greensboro\",\"value\":\"NOAM-US-NC-GR\",\"locationOptions\":[]},{\"name\":\"Raleigh\",\"value\":\"NOAM-US-NC-RA\",\"locationOptions\":[]}]}]},{\"name\":\"ND\",\"value\":\"ND\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Fargo\",\"value\":\"NOAM-US-ND-FA\",\"locationOptions\":[]}]}]},{\"name\":\"NE\",\"value\":\"NE\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Kearney\",\"value\":\"NOAM-US-NE-KE\",\"locationOptions\":[]},{\"name\":\"Omaha\",\"value\":\"NOAM-US-NE-OM\",\"locationOptions\":[]}]}]},{\"name\":\"NJ\",\"value\":\"NJ\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Atlantic City\",\"value\":\"NOAM-US-NJ-AC\",\"locationOptions\":[]},{\"name\":\"Camden\",\"value\":\"NOAM-US-NJ-CA\",\"locationOptions\":[]},{\"name\":\"Newark\",\"value\":\"NOAM-US-NJ-NE\",\"locationOptions\":[]}]}]},{\"name\":\"NM\",\"value\":\"NM\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Las Cruces\",\"value\":\"NOAM-US-NM-LC\",\"locationOptions\":[]}]}]},{\"name\":\"NV\",\"value\":\"NV\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Las Vegas\",\"value\":\"NOAM-US-NV-LV\",\"locationOptions\":[]},{\"name\":\"Reno\",\"value\":\"NOAM-US-NV-RE\",\"locationOptions\":[]}]}]},{\"name\":\"NY\",\"value\":\"NY\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Albany\",\"value\":\"NOAM-US-NY-AL\",\"locationOptions\":[]},{\"name\":\"Elmira\",\"value\":\"NOAM-US-NY-EL\",\"locationOptions\":[]},{\"name\":\"Kingston\",\"value\":\"NOAM-US-NY-KI\",\"locationOptions\":[]},{\"name\":\"New York City\",\"value\":\"NOAM-US-NY-NY\",\"locationOptions\":[]},{\"name\":\"Niagara Falls\",\"value\":\"NOAM-US-NY-NF\",\"locationOptions\":[]},{\"name\":\"Rochester\",\"value\":\"NOAM-US-NY-RO\",\"locationOptions\":[]},{\"name\":\"Syracuse\",\"value\":\"NOAM-US-NY-SY\",\"locationOptions\":[]}]}]},{\"name\":\"OH\",\"value\":\"OH\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Akron\",\"value\":\"NOAM-US-OH-AK\",\"locationOptions\":[]},{\"name\":\"Cincinnati\",\"value\":\"NOAM-US-OH-CI\",\"locationOptions\":[]},{\"name\":\"Columbus\",\"value\":\"NOAM-US-OH-CO\",\"locationOptions\":[]},{\"name\":\"Dayton\",\"value\":\"NOAM-US-OH-DA\",\"locationOptions\":[]},{\"name\":\"Toledo\",\"value\":\"NOAM-US-OH-TO\",\"locationOptions\":[]}]}]},{\"name\":\"OK\",\"value\":\"OK\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Lawton\",\"value\":\"NOAM-US-OK-LA\",\"locationOptions\":[]},{\"name\":\"Oklahoma City\",\"value\":\"NOAM-US-OK-OC\",\"locationOptions\":[]},{\"name\":\"Tulsa\",\"value\":\"NOAM-US-OK-TU\",\"locationOptions\":[]}]}]},{\"name\":\"PA\",\"value\":\"PA\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Erie\",\"value\":\"NOAM-US-PA-ER\",\"locationOptions\":[]},{\"name\":\"Lancaster\",\"value\":\"NOAM-US-PA-LA\",\"locationOptions\":[]},{\"name\":\"New Castle\",\"value\":\"NOAM-US-PA-NC\",\"locationOptions\":[]},{\"name\":\"Philadelphia\",\"value\":\"NOAM-US-PA-PI\",\"locationOptions\":[]},{\"name\":\"Pittsburgh\",\"value\":\"NOAM-US-PA-PT\",\"locationOptions\":[]},{\"name\":\"Scranton\",\"value\":\"NOAM-US-PA-SC\",\"locationOptions\":[]}]}]},{\"name\":\"RI\",\"value\":\"RI\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Providence\",\"value\":\"NOAM-US-RI-PR\",\"locationOptions\":[]}]}]},{\"name\":\"SC\",\"value\":\"SC\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Charleston\",\"value\":\"NOAM-US-SC-CH\",\"locationOptions\":[]},{\"name\":\"Columbia\",\"value\":\"NOAM-US-SC-CO\",\"locationOptions\":[]},{\"name\":\"Greenville\",\"value\":\"NOAM-US-SC-GR\",\"locationOptions\":[]}]}]},{\"name\":\"SD\",\"value\":\"SD\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Sioux Falls\",\"value\":\"NOAM-US-SD-SF\",\"locationOptions\":[]}]}]},{\"name\":\"TN\",\"value\":\"TN\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Chattanooga\",\"value\":\"NOAM-US-TN-CH\",\"locationOptions\":[]},{\"name\":\"Clarksville\",\"value\":\"NOAM-US-TN-CL\",\"locationOptions\":[]},{\"name\":\"Jackson\",\"value\":\"NOAM-US-TN-JA\",\"locationOptions\":[]},{\"name\":\"Knoxville\",\"value\":\"NOAM-US-TN-KN\",\"locationOptions\":[]},{\"name\":\"Memphis\",\"value\":\"NOAM-US-TN-ME\",\"locationOptions\":[]},{\"name\":\"Nashville\",\"value\":\"NOAM-US-TN-NA\",\"locationOptions\":[]}]}]},{\"name\":\"TX\",\"value\":\"TX\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Austin\",\"value\":\"NOAM-US-TX-AU\",\"locationOptions\":[]},{\"name\":\"Corpus Christi\",\"value\":\"NOAM-US-TX-CC\",\"locationOptions\":[]},{\"name\":\"Denton\",\"value\":\"NOAM-US-TX-DE\",\"locationOptions\":[]},{\"name\":\"El Paso\",\"value\":\"NOAM-US-TX-EP\",\"locationOptions\":[]},{\"name\":\"Galveston\",\"value\":\"NOAM-US-TX-GA\",\"locationOptions\":[]},{\"name\":\"Hamilton\",\"value\":\"NOAM-US-TX-HA\",\"locationOptions\":[]},{\"name\":\"Houston\",\"value\":\"NOAM-US-TX-HO\",\"locationOptions\":[]},{\"name\":\"Lubbock\",\"value\":\"NOAM-US-TX-LU\",\"locationOptions\":[]},{\"name\":\"Tyler\",\"value\":\"NOAM-US-TX-TY\",\"locationOptions\":[]}]}]},{\"name\":\"UT\",\"value\":\"UT\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Salt Lake City\",\"value\":\"NOAM-US-UT-SL\",\"locationOptions\":[]},{\"name\":\"St. George\",\"value\":\"NOAM-US-UT-SG\",\"locationOptions\":[]}]}]},{\"name\":\"VA\",\"value\":\"VA\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Lynchburg\",\"value\":\"NOAM-US-VA-LY\",\"locationOptions\":[]},{\"name\":\"Richmond\",\"value\":\"NOAM-US-VA-RI\",\"locationOptions\":[]},{\"name\":\"Roanoke\",\"value\":\"NOAM-US-VA-RO\",\"locationOptions\":[]},{\"name\":\"Virginia Beach\",\"value\":\"NOAM-US-VA-VB\",\"locationOptions\":[]}]}]},{\"name\":\"VT\",\"value\":\"VT\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Bennington\",\"value\":\"NOAM-US-VT-BE\",\"locationOptions\":[]},{\"name\":\"Brattleboro\",\"value\":\"NOAM-US-VT-BR\",\"locationOptions\":[]},{\"name\":\"Burlington\",\"value\":\"NOAM-US-VT-BU\",\"locationOptions\":[]},{\"name\":\"Middlebury\",\"value\":\"NOAM-US-VT-MB\",\"locationOptions\":[]},{\"name\":\"Montpelier\",\"value\":\"NOAM-US-VT-MP\",\"locationOptions\":[]},{\"name\":\"Newport\",\"value\":\"NOAM-US-VT-NE\",\"locationOptions\":[]}]}]},{\"name\":\"WI\",\"value\":\"WI\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Green Bay\",\"value\":\"NOAM-US-WI-GB\",\"locationOptions\":[]},{\"name\":\"Kenosha\",\"value\":\"NOAM-US-WI-KE\",\"locationOptions\":[]},{\"name\":\"Madison\",\"value\":\"NOAM-US-WI-MA\",\"locationOptions\":[]},{\"name\":\"Milwaukee\",\"value\":\"NOAM-US-WI-MI\",\"locationOptions\":[]}]}]},{\"name\":\"WV\",\"value\":\"WV\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Charleston\",\"value\":\"NOAM-US-WV-CH\",\"locationOptions\":[]}]}]},{\"name\":\"WY\",\"value\":\"WY\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Laramie\",\"value\":\"NOAM-US-WY-LA\",\"locationOptions\":[]}]}]}]}}", - "Date" : "Tue, 22 Sep 2020 04:23:32 GMT", + "Body" : "{\"locationOptions\":{\"labelId\":\"state\",\"labelName\":\"State\",\"options\":[{\"name\":\"AK\",\"value\":\"AK\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Anchorage\",\"value\":\"NOAM-US-AK-AN\",\"locationOptions\":[]}]}]},{\"name\":\"AL\",\"value\":\"AL\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Birmingham\",\"value\":\"NOAM-US-AL-BI\",\"locationOptions\":[]},{\"name\":\"Huntsville\",\"value\":\"NOAM-US-AL-HN\",\"locationOptions\":[]},{\"name\":\"Mobile\",\"value\":\"NOAM-US-AL-MO\",\"locationOptions\":[]},{\"name\":\"Montgomery\",\"value\":\"NOAM-US-AL-MN\",\"locationOptions\":[]}]}]},{\"name\":\"AR\",\"value\":\"AR\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Fort Smith\",\"value\":\"NOAM-US-AR-FS\",\"locationOptions\":[]},{\"name\":\"Jonesboro\",\"value\":\"NOAM-US-AR-JO\",\"locationOptions\":[]},{\"name\":\"Little Rock\",\"value\":\"NOAM-US-AR-LR\",\"locationOptions\":[]}]}]},{\"name\":\"AZ\",\"value\":\"AZ\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Phoenix\",\"value\":\"NOAM-US-AZ-PH\",\"locationOptions\":[]}]}]},{\"name\":\"CA\",\"value\":\"CA\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Burbank\",\"value\":\"NOAM-US-CA-BU\",\"locationOptions\":[]},{\"name\":\"Fresno\",\"value\":\"NOAM-US-CA-FR\",\"locationOptions\":[]},{\"name\":\"Irvine\",\"value\":\"NOAM-US-CA-IR\",\"locationOptions\":[]},{\"name\":\"Los Angeles\",\"value\":\"NOAM-US-CA-LA\",\"locationOptions\":[]},{\"name\":\"Riverside\",\"value\":\"NOAM-US-CA-RI\",\"locationOptions\":[]},{\"name\":\"Sacramento\",\"value\":\"NOAM-US-CA-SA\",\"locationOptions\":[]},{\"name\":\"Salinas\",\"value\":\"NOAM-US-CA-SL\",\"locationOptions\":[]},{\"name\":\"San Diego\",\"value\":\"NOAM-US-CA-SD\",\"locationOptions\":[]},{\"name\":\"San Jose\",\"value\":\"NOAM-US-CA-SJ\",\"locationOptions\":[]},{\"name\":\"Santa Barbara\",\"value\":\"NOAM-US-CA-SB\",\"locationOptions\":[]},{\"name\":\"Santa Clarita\",\"value\":\"NOAM-US-CA-SC\",\"locationOptions\":[]},{\"name\":\"Santa Rosa\",\"value\":\"NOAM-US-CA-SR\",\"locationOptions\":[]},{\"name\":\"Stockton\",\"value\":\"NOAM-US-CA-ST\",\"locationOptions\":[]}]}]},{\"name\":\"CL\",\"value\":\"CL\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Washington DC\",\"value\":\"NOAM-US-CL-DC\",\"locationOptions\":[]}]}]},{\"name\":\"CO\",\"value\":\"CO\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Denver\",\"value\":\"NOAM-US-CO-DE\",\"locationOptions\":[]},{\"name\":\"Grand Junction\",\"value\":\"NOAM-US-CO-GJ\",\"locationOptions\":[]},{\"name\":\"Pueblo\",\"value\":\"NOAM-US-CO-PU\",\"locationOptions\":[]}]}]},{\"name\":\"CT\",\"value\":\"CT\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Bridgeport\",\"value\":\"NOAM-US-CT-BR\",\"locationOptions\":[]}]}]},{\"name\":\"DE\",\"value\":\"DE\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Wilmington\",\"value\":\"NOAM-US-DE-WI\",\"locationOptions\":[]}]}]},{\"name\":\"FL\",\"value\":\"FL\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Cape Coral\",\"value\":\"NOAM-US-FL-CC\",\"locationOptions\":[]},{\"name\":\"Fort Lauderdale\",\"value\":\"NOAM-US-FL-FL\",\"locationOptions\":[]},{\"name\":\"Gainesville\",\"value\":\"NOAM-US-FL-GA\",\"locationOptions\":[]},{\"name\":\"Jacksonville\",\"value\":\"NOAM-US-FL-JA\",\"locationOptions\":[]},{\"name\":\"Lakeland\",\"value\":\"NOAM-US-FL-LA\",\"locationOptions\":[]},{\"name\":\"Miami\",\"value\":\"NOAM-US-FL-MI\",\"locationOptions\":[]},{\"name\":\"Orlando\",\"value\":\"NOAM-US-FL-OR\",\"locationOptions\":[]},{\"name\":\"Port St Lucie\",\"value\":\"NOAM-US-FL-PS\",\"locationOptions\":[]},{\"name\":\"Sarasota\",\"value\":\"NOAM-US-FL-SA\",\"locationOptions\":[]},{\"name\":\"Tallahassee\",\"value\":\"NOAM-US-FL-TA\",\"locationOptions\":[]},{\"name\":\"West Palm Beach\",\"value\":\"NOAM-US-FL-WP\",\"locationOptions\":[]}]}]},{\"name\":\"GA\",\"value\":\"GA\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Albany\",\"value\":\"NOAM-US-GA-AL\",\"locationOptions\":[]},{\"name\":\"Atlanta\",\"value\":\"NOAM-US-GA-AT\",\"locationOptions\":[]},{\"name\":\"Augusta\",\"value\":\"NOAM-US-GA-AU\",\"locationOptions\":[]},{\"name\":\"Macon\",\"value\":\"NOAM-US-GA-MA\",\"locationOptions\":[]},{\"name\":\"Savannah\",\"value\":\"NOAM-US-GA-SA\",\"locationOptions\":[]}]}]},{\"name\":\"HI\",\"value\":\"HI\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Honolulu\",\"value\":\"NOAM-US-HI-HO\",\"locationOptions\":[]}]}]},{\"name\":\"IA\",\"value\":\"IA\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Cedar Rapids\",\"value\":\"NOAM-US-IA-CR\",\"locationOptions\":[]},{\"name\":\"Davenport\",\"value\":\"NOAM-US-IA-DA\",\"locationOptions\":[]},{\"name\":\"Mason City\",\"value\":\"NOAM-US-IA-MC\",\"locationOptions\":[]}]}]},{\"name\":\"ID\",\"value\":\"ID\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Boise\",\"value\":\"NOAM-US-ID-BO\",\"locationOptions\":[]}]}]},{\"name\":\"IL\",\"value\":\"IL\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Alton\",\"value\":\"NOAM-US-IL-AL\",\"locationOptions\":[]},{\"name\":\"Aurora\",\"value\":\"NOAM-US-IL-AU\",\"locationOptions\":[]},{\"name\":\"Big Rock\",\"value\":\"NOAM-US-IL-BK\",\"locationOptions\":[]},{\"name\":\"Champaign\",\"value\":\"NOAM-US-IL-CA\",\"locationOptions\":[]},{\"name\":\"Chicago\",\"value\":\"NOAM-US-IL-CH\",\"locationOptions\":[]},{\"name\":\"Cicero\",\"value\":\"NOAM-US-IL-CI\",\"locationOptions\":[]},{\"name\":\"Rock Island\",\"value\":\"NOAM-US-IL-RI\",\"locationOptions\":[]},{\"name\":\"Waukegan\",\"value\":\"NOAM-US-IL-WK\",\"locationOptions\":[]}]}]},{\"name\":\"IN\",\"value\":\"IN\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Evansville\",\"value\":\"NOAM-US-IN-EV\",\"locationOptions\":[]},{\"name\":\"Fort Wayne\",\"value\":\"NOAM-US-IN-FW\",\"locationOptions\":[]},{\"name\":\"Gary\",\"value\":\"NOAM-US-IN-GA\",\"locationOptions\":[]},{\"name\":\"South Bend\",\"value\":\"NOAM-US-IN-SB\",\"locationOptions\":[]}]}]},{\"name\":\"KS\",\"value\":\"KS\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Kansas City\",\"value\":\"NOAM-US-KS-KS\",\"locationOptions\":[]},{\"name\":\"Topeka\",\"value\":\"NOAM-US-KS-TO\",\"locationOptions\":[]},{\"name\":\"Wichita\",\"value\":\"NOAM-US-KS-WI\",\"locationOptions\":[]}]}]},{\"name\":\"KY\",\"value\":\"KY\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Ashland\",\"value\":\"NOAM-US-KY-AS\",\"locationOptions\":[]},{\"name\":\"Lexington\",\"value\":\"NOAM-US-KY-LE\",\"locationOptions\":[]},{\"name\":\"Louisville\",\"value\":\"NOAM-US-KY-LO\",\"locationOptions\":[]}]}]},{\"name\":\"LA\",\"value\":\"LA\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Baton Rouge\",\"value\":\"NOAM-US-LA-BR\",\"locationOptions\":[]},{\"name\":\"Lafayette\",\"value\":\"NOAM-US-LA-LA\",\"locationOptions\":[]},{\"name\":\"New Orleans\",\"value\":\"NOAM-US-LA-NO\",\"locationOptions\":[]},{\"name\":\"Shreveport\",\"value\":\"NOAM-US-LA-SH\",\"locationOptions\":[]}]}]},{\"name\":\"MA\",\"value\":\"MA\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Chicopee\",\"value\":\"NOAM-US-MA-CH\",\"locationOptions\":[]}]}]},{\"name\":\"ME\",\"value\":\"ME\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Portland\",\"value\":\"NOAM-US-ME-PO\",\"locationOptions\":[]}]}]},{\"name\":\"MI\",\"value\":\"MI\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Detroit\",\"value\":\"NOAM-US-MI-DE\",\"locationOptions\":[]},{\"name\":\"Flint\",\"value\":\"NOAM-US-MI-FL\",\"locationOptions\":[]},{\"name\":\"Grand Rapids\",\"value\":\"NOAM-US-MI-GP\",\"locationOptions\":[]},{\"name\":\"Grant\",\"value\":\"NOAM-US-MI-GR\",\"locationOptions\":[]},{\"name\":\"Lansing\",\"value\":\"NOAM-US-MI-LA\",\"locationOptions\":[]},{\"name\":\"Saginaw\",\"value\":\"NOAM-US-MI-SA\",\"locationOptions\":[]},{\"name\":\"Sault Ste Marie\",\"value\":\"NOAM-US-MI-SS\",\"locationOptions\":[]},{\"name\":\"Troy\",\"value\":\"NOAM-US-MI-TR\",\"locationOptions\":[]}]}]},{\"name\":\"MN\",\"value\":\"MN\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Duluth\",\"value\":\"NOAM-US-MN-DU\",\"locationOptions\":[]}]}]},{\"name\":\"MO\",\"value\":\"MO\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Columbia\",\"value\":\"NOAM-US-MO-CO\",\"locationOptions\":[]},{\"name\":\"Kansas City\",\"value\":\"NOAM-US-MO-KS\",\"locationOptions\":[]},{\"name\":\"Marshall\",\"value\":\"NOAM-US-MO-MA\",\"locationOptions\":[]},{\"name\":\"Springfield\",\"value\":\"NOAM-US-MO-SP\",\"locationOptions\":[]},{\"name\":\"St. Charles\",\"value\":\"NOAM-US-MO-SC\",\"locationOptions\":[]},{\"name\":\"St. Louis\",\"value\":\"NOAM-US-MO-SL\",\"locationOptions\":[]}]}]},{\"name\":\"MS\",\"value\":\"MS\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Biloxi\",\"value\":\"NOAM-US-MS-BI\",\"locationOptions\":[]},{\"name\":\"Jackson\",\"value\":\"NOAM-US-MS-JA\",\"locationOptions\":[]},{\"name\":\"Starkville\",\"value\":\"NOAM-US-MS-ST\",\"locationOptions\":[]}]}]},{\"name\":\"MT\",\"value\":\"MT\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Billings\",\"value\":\"NOAM-US-MT-BI\",\"locationOptions\":[]}]}]},{\"name\":\"NC\",\"value\":\"NC\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Charlotte\",\"value\":\"NOAM-US-NC-CH\",\"locationOptions\":[]},{\"name\":\"Fayetteville\",\"value\":\"NOAM-US-NC-FA\",\"locationOptions\":[]},{\"name\":\"Greensboro\",\"value\":\"NOAM-US-NC-GR\",\"locationOptions\":[]},{\"name\":\"Raleigh\",\"value\":\"NOAM-US-NC-RA\",\"locationOptions\":[]}]}]},{\"name\":\"NE\",\"value\":\"NE\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Kearney\",\"value\":\"NOAM-US-NE-KE\",\"locationOptions\":[]},{\"name\":\"Omaha\",\"value\":\"NOAM-US-NE-OM\",\"locationOptions\":[]}]}]},{\"name\":\"NJ\",\"value\":\"NJ\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Atlantic City\",\"value\":\"NOAM-US-NJ-AC\",\"locationOptions\":[]},{\"name\":\"Camden\",\"value\":\"NOAM-US-NJ-CA\",\"locationOptions\":[]},{\"name\":\"Newark\",\"value\":\"NOAM-US-NJ-NE\",\"locationOptions\":[]}]}]},{\"name\":\"NM\",\"value\":\"NM\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Las Cruces\",\"value\":\"NOAM-US-NM-LC\",\"locationOptions\":[]}]}]},{\"name\":\"NV\",\"value\":\"NV\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Las Vegas\",\"value\":\"NOAM-US-NV-LV\",\"locationOptions\":[]},{\"name\":\"Reno\",\"value\":\"NOAM-US-NV-RE\",\"locationOptions\":[]}]}]},{\"name\":\"NY\",\"value\":\"NY\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Albany\",\"value\":\"NOAM-US-NY-AL\",\"locationOptions\":[]},{\"name\":\"Elmira\",\"value\":\"NOAM-US-NY-EL\",\"locationOptions\":[]},{\"name\":\"Hempstead\",\"value\":\"NOAM-US-NY-HE\",\"locationOptions\":[]},{\"name\":\"Kingston\",\"value\":\"NOAM-US-NY-KI\",\"locationOptions\":[]},{\"name\":\"New York City\",\"value\":\"NOAM-US-NY-NY\",\"locationOptions\":[]},{\"name\":\"Niagara Falls\",\"value\":\"NOAM-US-NY-NF\",\"locationOptions\":[]},{\"name\":\"Rochester\",\"value\":\"NOAM-US-NY-RO\",\"locationOptions\":[]},{\"name\":\"Syracuse\",\"value\":\"NOAM-US-NY-SY\",\"locationOptions\":[]}]}]},{\"name\":\"OH\",\"value\":\"OH\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Akron\",\"value\":\"NOAM-US-OH-AK\",\"locationOptions\":[]},{\"name\":\"Cincinnati\",\"value\":\"NOAM-US-OH-CI\",\"locationOptions\":[]},{\"name\":\"Cleveland\",\"value\":\"NOAM-US-OH-CL\",\"locationOptions\":[]},{\"name\":\"Columbus\",\"value\":\"NOAM-US-OH-CO\",\"locationOptions\":[]},{\"name\":\"Dayton\",\"value\":\"NOAM-US-OH-DA\",\"locationOptions\":[]},{\"name\":\"Toledo\",\"value\":\"NOAM-US-OH-TO\",\"locationOptions\":[]}]}]},{\"name\":\"OK\",\"value\":\"OK\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Lawton\",\"value\":\"NOAM-US-OK-LA\",\"locationOptions\":[]},{\"name\":\"Oklahoma City\",\"value\":\"NOAM-US-OK-OC\",\"locationOptions\":[]},{\"name\":\"Tulsa\",\"value\":\"NOAM-US-OK-TU\",\"locationOptions\":[]}]}]},{\"name\":\"PA\",\"value\":\"PA\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Erie\",\"value\":\"NOAM-US-PA-ER\",\"locationOptions\":[]},{\"name\":\"Lancaster\",\"value\":\"NOAM-US-PA-LA\",\"locationOptions\":[]},{\"name\":\"New Castle\",\"value\":\"NOAM-US-PA-NC\",\"locationOptions\":[]},{\"name\":\"Philadelphia\",\"value\":\"NOAM-US-PA-PI\",\"locationOptions\":[]},{\"name\":\"Pittsburgh\",\"value\":\"NOAM-US-PA-PT\",\"locationOptions\":[]},{\"name\":\"Scranton\",\"value\":\"NOAM-US-PA-SC\",\"locationOptions\":[]}]}]},{\"name\":\"RI\",\"value\":\"RI\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Providence\",\"value\":\"NOAM-US-RI-PR\",\"locationOptions\":[]}]}]},{\"name\":\"SC\",\"value\":\"SC\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Charleston\",\"value\":\"NOAM-US-SC-CH\",\"locationOptions\":[]},{\"name\":\"Columbia\",\"value\":\"NOAM-US-SC-CO\",\"locationOptions\":[]},{\"name\":\"Greenville\",\"value\":\"NOAM-US-SC-GR\",\"locationOptions\":[]}]}]},{\"name\":\"SD\",\"value\":\"SD\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Sioux Falls\",\"value\":\"NOAM-US-SD-SF\",\"locationOptions\":[]}]}]},{\"name\":\"TN\",\"value\":\"TN\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Chattanooga\",\"value\":\"NOAM-US-TN-CH\",\"locationOptions\":[]},{\"name\":\"Clarksville\",\"value\":\"NOAM-US-TN-CL\",\"locationOptions\":[]},{\"name\":\"Jackson\",\"value\":\"NOAM-US-TN-JA\",\"locationOptions\":[]},{\"name\":\"Knoxville\",\"value\":\"NOAM-US-TN-KN\",\"locationOptions\":[]},{\"name\":\"Memphis\",\"value\":\"NOAM-US-TN-ME\",\"locationOptions\":[]},{\"name\":\"Nashville\",\"value\":\"NOAM-US-TN-NA\",\"locationOptions\":[]}]}]},{\"name\":\"TX\",\"value\":\"TX\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Abilene\",\"value\":\"NOAM-US-TX-AB\",\"locationOptions\":[]},{\"name\":\"Corpus Christi\",\"value\":\"NOAM-US-TX-CC\",\"locationOptions\":[]},{\"name\":\"Denton\",\"value\":\"NOAM-US-TX-DE\",\"locationOptions\":[]},{\"name\":\"El Paso\",\"value\":\"NOAM-US-TX-EP\",\"locationOptions\":[]},{\"name\":\"Fort Worth\",\"value\":\"NOAM-US-TX-FW\",\"locationOptions\":[]},{\"name\":\"Galveston\",\"value\":\"NOAM-US-TX-GA\",\"locationOptions\":[]},{\"name\":\"Houston\",\"value\":\"NOAM-US-TX-HO\",\"locationOptions\":[]},{\"name\":\"Laredo\",\"value\":\"NOAM-US-TX-LA\",\"locationOptions\":[]},{\"name\":\"Lubbock\",\"value\":\"NOAM-US-TX-LU\",\"locationOptions\":[]},{\"name\":\"Tyler\",\"value\":\"NOAM-US-TX-TY\",\"locationOptions\":[]}]}]},{\"name\":\"UT\",\"value\":\"UT\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Salt Lake City\",\"value\":\"NOAM-US-UT-SL\",\"locationOptions\":[]},{\"name\":\"St. George\",\"value\":\"NOAM-US-UT-SG\",\"locationOptions\":[]}]}]},{\"name\":\"VA\",\"value\":\"VA\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Lynchburg\",\"value\":\"NOAM-US-VA-LY\",\"locationOptions\":[]},{\"name\":\"Richmond\",\"value\":\"NOAM-US-VA-RI\",\"locationOptions\":[]},{\"name\":\"Virginia Beach\",\"value\":\"NOAM-US-VA-VB\",\"locationOptions\":[]}]}]},{\"name\":\"VT\",\"value\":\"VT\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Bennington\",\"value\":\"NOAM-US-VT-BE\",\"locationOptions\":[]},{\"name\":\"Brattleboro\",\"value\":\"NOAM-US-VT-BR\",\"locationOptions\":[]},{\"name\":\"Burlington\",\"value\":\"NOAM-US-VT-BU\",\"locationOptions\":[]},{\"name\":\"Middlebury\",\"value\":\"NOAM-US-VT-MB\",\"locationOptions\":[]},{\"name\":\"Montpelier\",\"value\":\"NOAM-US-VT-MP\",\"locationOptions\":[]},{\"name\":\"Newport\",\"value\":\"NOAM-US-VT-NE\",\"locationOptions\":[]}]}]},{\"name\":\"WI\",\"value\":\"WI\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Green Bay\",\"value\":\"NOAM-US-WI-GB\",\"locationOptions\":[]},{\"name\":\"Kenosha\",\"value\":\"NOAM-US-WI-KE\",\"locationOptions\":[]},{\"name\":\"Madison\",\"value\":\"NOAM-US-WI-MA\",\"locationOptions\":[]},{\"name\":\"Milwaukee\",\"value\":\"NOAM-US-WI-MI\",\"locationOptions\":[]}]}]},{\"name\":\"WV\",\"value\":\"WV\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Charleston\",\"value\":\"NOAM-US-WV-CH\",\"locationOptions\":[]}]}]},{\"name\":\"WY\",\"value\":\"WY\",\"locationOptions\":[{\"labelId\":\"city\",\"labelName\":\"City\",\"options\":[{\"name\":\"Laramie\",\"value\":\"NOAM-US-WY-LA\",\"locationOptions\":[]}]}]}]}}", + "Date" : "Thu, 12 Nov 2020 08:03:14 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getReservationById.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getReservationById.json new file mode 100644 index 0000000000000..75283ca239a5d --- /dev/null +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getReservationById.json @@ -0,0 +1,22 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/40fc0889-ce29-4a18-aac8-94fe6eda7af7?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "297ms", + "MS-CV" : "h2QDsvqSOUufz9pcicrGmg.0", + "retry-after" : "0", + "X-Azure-Ref" : "0QeysXwAAAAA/nerhDLkNQZ4KOw8bHzDbTEFYRURHRTEyMTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"40fc0889-ce29-4a18-aac8-94fe6eda7af7\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T07:43:27.7822718+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Cancelled\",\"phoneNumbers\":[\"+13234882403\",\"+13234882404\"],\"reservationExpiryDate\":\"2020-11-12T07:59:47.4823703+00:00\"}", + "Date" : "Thu, 12 Nov 2020 08:03:13 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ ] +} \ No newline at end of file diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getReservationByIdWithResponse.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getReservationByIdWithResponse.json new file mode 100644 index 0000000000000..e67b6530eb5fe --- /dev/null +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getReservationByIdWithResponse.json @@ -0,0 +1,22 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/40fc0889-ce29-4a18-aac8-94fe6eda7af7?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "271ms", + "MS-CV" : "S3jBWMkSakmdvwc1QqOkWQ.0", + "retry-after" : "0", + "X-Azure-Ref" : "0QuysXwAAAABGa0TQ6PwAQ6xLK4o1urPmTEFYRURHRTEyMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"40fc0889-ce29-4a18-aac8-94fe6eda7af7\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T07:43:27.7822718+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Cancelled\",\"phoneNumbers\":[\"+13234882403\",\"+13234882404\"],\"reservationExpiryDate\":\"2020-11-12T07:59:47.4823703+00:00\"}", + "Date" : "Thu, 12 Nov 2020 08:03:14 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ ] +} \ No newline at end of file diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getSearchById.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getSearchById.json deleted file mode 100644 index 9b209d8ec4635..0000000000000 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getSearchById.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "826ms", - "MS-CV" : "PFFFWzMLUkGw4eanwtCtGA.0", - "retry-after" : "0", - "X-Azure-Ref" : "0QnxpXwAAAABqH1xGXYpFT47R4f9VRD8ZWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200021\",\"createdAt\":\"2020-09-21T22:57:25.353001+00:00\",\"description\":\"testsearch20200021\",\"phonePlanIds\":[\"phone-plan-id-1\"],\"areaCode\":\"777\",\"quantity\":1,\"locationOptions\":[],\"status\":\"Success\",\"phoneNumbers\":[\"+17771234567\"],\"reservationExpiryDate\":\"2020-09-21T23:13:42.1721905+00:00\"}", - "Date" : "Tue, 22 Sep 2020 04:23:30 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ ] -} \ No newline at end of file diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getSearchByIdWithResponse.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getSearchByIdWithResponse.json deleted file mode 100644 index 27a37d8c0bf1b..0000000000000 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getSearchByIdWithResponse.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "780ms", - "MS-CV" : "W5pJXXQHHE+zpYoSNw6s+Q.0", - "retry-after" : "0", - "X-Azure-Ref" : "0P3xpXwAAAAChXWEiQLP1QbuUKsn8TvaKWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200021\",\"createdAt\":\"2020-09-21T22:57:25.353001+00:00\",\"description\":\"testsearch20200021\",\"phonePlanIds\":[\"phone-plan-id-1\"],\"areaCode\":\"777\",\"quantity\":1,\"locationOptions\":[],\"status\":\"Success\",\"phoneNumbers\":[\"+17771234567\"],\"reservationExpiryDate\":\"2020-09-21T23:13:42.1721905+00:00\"}", - "Date" : "Tue, 22 Sep 2020 04:23:27 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ ] -} \ No newline at end of file diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/listAllPhoneNumbers.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/listAllPhoneNumbers.json index 08fc9649bd81b..424acda917246 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/listAllPhoneNumbers.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/listAllPhoneNumbers.json @@ -3,17 +3,17 @@ "Method" : "GET", "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/phonenumbers?locale=en-us&api-version=2020-07-20-preview1", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)" + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "754ms", - "MS-CV" : "0ZbK/21pm0aqHRtkP9IY9Q.0", + "X-Processing-Time" : "404ms", + "MS-CV" : "WMz+GRCMt0itJAC4TZt9UA.0", "retry-after" : "0", - "X-Azure-Ref" : "0RXxpXwAAAABGqCLf4L74SZUVmMJpZiI3WVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0QuysXwAAAACyYkKZ8gl8TKtZ1CRwCj4TTEFYRURHRTEyMTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"phoneNumbers\":[{\"phoneNumber\":\"+17771234567\",\"acquiredCapabilities\":[\"Azure\",\"InboundCalling\",\"ThirdPartyAppAssignment\",\"Geographic\"],\"availableCapabilities\":[\"ConferenceAssignment\",\"Geographic\",\"FirstPartyAppAssignment\",\"ThirdPartyAppAssignment\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"}],\"nextLink\":null}", - "Date" : "Tue, 22 Sep 2020 04:23:33 GMT", + "Body" : "{\"phoneNumbers\":[{\"phoneNumber\":\"+12133285934\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"UserAssignment\",\"Geographic\",\"InboundCalling\"],\"availableCapabilities\":[\"UserAssignment\",\"InboundCalling\",\"OutboundCalling\",\"Geographic\",\"Office365\",\"Azure\"],\"assignmentStatus\":\"Unknown\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+12134592989\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"UserAssignment\",\"Geographic\"],\"availableCapabilities\":[\"UserAssignment\",\"Geographic\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unknown\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+12134592990\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"UserAssignment\",\"Geographic\"],\"availableCapabilities\":[\"UserAssignment\",\"Geographic\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unknown\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+12134592991\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"UserAssignment\",\"Geographic\"],\"availableCapabilities\":[\"UserAssignment\",\"Geographic\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unknown\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+12134592992\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"UserAssignment\",\"Geographic\"],\"availableCapabilities\":[\"UserAssignment\",\"Geographic\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unknown\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+12134592994\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"UserAssignment\",\"Geographic\"],\"availableCapabilities\":[\"UserAssignment\",\"Geographic\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unknown\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+12134592995\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"UserAssignment\",\"Geographic\"],\"availableCapabilities\":[\"UserAssignment\",\"Geographic\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+12134592997\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"UserAssignment\",\"Geographic\"],\"availableCapabilities\":[\"UserAssignment\",\"Geographic\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+12135324424\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"UserAssignment\",\"Geographic\"],\"availableCapabilities\":[\"UserAssignment\",\"Geographic\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+12135324430\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"UserAssignment\",\"Geographic\"],\"availableCapabilities\":[\"UserAssignment\",\"Geographic\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+13234882398\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"Geographic\"],\"availableCapabilities\":[\"ConferenceAssignment\",\"Geographic\",\"FirstPartyAppAssignment\",\"ThirdPartyAppAssignment\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Los Angeles, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+18332092638\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"InboundA2PSms\",\"OutboundA2PSms\",\"TollFree\"],\"availableCapabilities\":[\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"ConferenceAssignment\",\"FirstPartyAppAssignment\",\"TollFree\",\"InboundA2PSms\",\"OutboundA2PSms\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Toll-Free, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+18332092648\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"InboundA2PSms\",\"OutboundA2PSms\",\"TollFree\"],\"availableCapabilities\":[\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"ConferenceAssignment\",\"FirstPartyAppAssignment\",\"TollFree\",\"InboundA2PSms\",\"OutboundA2PSms\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Toll-Free, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+18332092655\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"InboundA2PSms\",\"OutboundA2PSms\",\"TollFree\"],\"availableCapabilities\":[\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"ConferenceAssignment\",\"FirstPartyAppAssignment\",\"TollFree\",\"InboundA2PSms\",\"OutboundA2PSms\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Toll-Free, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+18332092664\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"InboundA2PSms\",\"OutboundA2PSms\",\"TollFree\",\"InboundCalling\"],\"availableCapabilities\":[\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"ConferenceAssignment\",\"FirstPartyAppAssignment\",\"TollFree\",\"InboundA2PSms\",\"OutboundA2PSms\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Toll-Free, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+18332092668\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"InboundA2PSms\",\"OutboundA2PSms\",\"TollFree\"],\"availableCapabilities\":[\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"ConferenceAssignment\",\"FirstPartyAppAssignment\",\"TollFree\",\"InboundA2PSms\",\"OutboundA2PSms\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Toll-Free, United States\",\"activationState\":\"Activated\"},{\"phoneNumber\":\"+19169051301\",\"acquiredCapabilities\":[\"Azure\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"Geographic\"],\"availableCapabilities\":[\"ConferenceAssignment\",\"Geographic\",\"FirstPartyAppAssignment\",\"ThirdPartyAppAssignment\",\"Azure\",\"Office365\",\"InboundCalling\",\"OutboundCalling\"],\"assignmentStatus\":\"Unassigned\",\"placeName\":\"Sacramento, United States\",\"activationState\":\"Activated\"}],\"nextLink\":null}", + "Date" : "Thu, 12 Nov 2020 08:03:14 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/listAllReleases.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/listAllReleases.json index 15bfd85b32ba0..430e41cd17263 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/listAllReleases.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/listAllReleases.json @@ -3,17 +3,17 @@ "Method" : "GET", "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases?api-version=2020-07-20-preview1", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)" + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "556ms", - "MS-CV" : "ng5PWjRH1UufMooTpHKj9A.0", + "X-Processing-Time" : "279ms", + "MS-CV" : "FDr6Mmnms0CIuRUvflsG5Q.0", "retry-after" : "0", - "X-Azure-Ref" : "0WXxpXwAAAADS9CsLD4nhQqW9AAfc9VhpWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0QeysXwAAAAAYMYddy7WWTLmeX52jTSEvTEFYRURHRTEyMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"entities\":[{\"id\":\"2a893091-d997-40f5-ae36-69228799d9a5\",\"createdAt\":\"2020-09-22T04:23:36.1626946+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Pending\"},{\"id\":\"1cbc4c35-8318-413c-a4d9-7390aae6bc5a\",\"createdAt\":\"2020-09-22T04:23:25.9748532+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"}],\"nextLink\":null}", - "Date" : "Tue, 22 Sep 2020 04:23:53 GMT", + "Body" : "{\"entities\":[{\"id\":\"aaa15c7c-ce77-40ad-825e-eb288c83b6e7\",\"createdAt\":\"2020-11-12T08:02:34.7916569+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"3925b4ad-1bef-4d09-af5e-fd24683bc398\",\"createdAt\":\"2020-11-12T08:01:43.0418204+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"edde5e42-7e55-4bf5-9ea5-5dfd54059f67\",\"createdAt\":\"2020-11-12T07:56:37.1358721+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"88592215-3b4d-460e-9792-adec5abb26f4\",\"createdAt\":\"2020-11-12T07:54:13.9234173+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"0a9d8e2f-d490-4b6e-9825-3e6c07d913b5\",\"createdAt\":\"2020-11-12T07:51:52.4519061+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"3ac4dda3-eb5c-4908-bc7b-358a81f46767\",\"createdAt\":\"2020-11-12T07:46:06.3763879+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"4d81e31f-3d88-419f-bbd4-4cfe4195dcda\",\"createdAt\":\"2020-11-12T07:43:27.0553645+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"ba92bbe0-86a3-4025-af78-a4e70b19a417\",\"createdAt\":\"2020-11-12T07:38:43.1384126+00:00\",\"displayName\":\"\",\"quantity\":2,\"quantityObtained\":2,\"status\":\"Failed\"},{\"id\":\"89614cd0-bcfa-4fd1-8d39-586318cbfb14\",\"createdAt\":\"2020-11-12T07:34:28.7410076+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"662fe99e-5ea5-49c9-abac-0f0a5b9f3295\",\"createdAt\":\"2020-11-12T07:32:46.0282786+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"98de5b47-16fc-45b4-9690-13782c26292f\",\"createdAt\":\"2020-11-12T07:08:26.0062229+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"9b95310b-9964-49a0-b290-6e508a234097\",\"createdAt\":\"2020-11-12T07:03:36.7107076+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"54fd3a27-d5a0-4d03-ac04-0b17f6692e89\",\"createdAt\":\"2020-11-12T05:46:01.2031079+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"a0024f3c-fa3e-4e3b-bcba-bebfaa760762\",\"createdAt\":\"2020-11-12T05:36:59.4348691+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"8d223ee0-6d79-474e-8abd-38f692fccb77\",\"createdAt\":\"2020-11-12T05:31:53.7254491+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"d7f3e251-3e7a-4403-a15d-e0237835fcd5\",\"createdAt\":\"2020-11-12T05:31:10.2671193+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"1682c5e6-9c30-4247-a14f-73cf802f9669\",\"createdAt\":\"2020-11-12T05:22:38.2321704+00:00\",\"displayName\":\"\",\"quantity\":2,\"quantityObtained\":2,\"status\":\"Complete\"},{\"id\":\"e27433ac-d558-4139-b5c4-00cd625081c9\",\"createdAt\":\"2020-11-12T05:18:59.9411826+00:00\",\"displayName\":\"\",\"quantity\":2,\"quantityObtained\":2,\"status\":\"Failed\"},{\"id\":\"fa1ea9b5-db13-4593-8c6f-770a479eca63\",\"createdAt\":\"2020-11-12T05:15:56.4835199+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"9b15bfa9-2b84-4c68-86ee-d1eeb43e2cea\",\"createdAt\":\"2020-11-12T05:15:36.6869569+00:00\",\"displayName\":\"\",\"quantity\":5,\"quantityObtained\":5,\"status\":\"Failed\"},{\"id\":\"ae208b53-dfbb-450a-94cc-8cea751b3c3f\",\"createdAt\":\"2020-11-12T05:11:09.7430788+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"db9951f7-f8d7-4fb8-8eaa-992c5f1c536b\",\"createdAt\":\"2020-11-12T05:05:24.9279609+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"4881ed6c-5841-4e76-a1aa-9df0b808812e\",\"createdAt\":\"2020-11-12T04:24:24.2452406+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"eff20b26-76a7-4f09-9121-6e36fbaad251\",\"createdAt\":\"2020-11-12T04:18:18.4670251+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"b0c8f306-0d40-4e4b-8327-e5fd619428d5\",\"createdAt\":\"2020-11-12T04:14:34.3035643+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"cac77e27-a0db-4d00-80f1-da5a370e4568\",\"createdAt\":\"2020-11-12T04:08:04.0967741+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"674a06af-120c-4a51-ae97-fd420866aade\",\"createdAt\":\"2020-11-12T04:05:54.8367045+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"15958a9a-ab8f-418a-b5e3-15fabd5fa244\",\"createdAt\":\"2020-11-12T04:03:44.7323825+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"7c1cb634-3079-454b-80d0-a7cdf72940ca\",\"createdAt\":\"2020-11-12T03:58:43.7963729+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"d2192dc2-ec90-4f14-819c-472b71a62054\",\"createdAt\":\"2020-11-12T03:55:38.4152225+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"60f55953-33d3-469d-9fb6-1fd24694c6da\",\"createdAt\":\"2020-11-12T03:27:46.1457576+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"758c7551-436a-4df0-b54e-5dcd7b1fc56c\",\"createdAt\":\"2020-11-11T19:36:05.7945215+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"f7a0edd6-a9d4-456f-86ca-9c5790b10b41\",\"createdAt\":\"2020-11-10T20:26:15.6466853+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"67e4dca3-daa1-4244-a7ae-2fe23a196c87\",\"createdAt\":\"2020-11-10T20:03:54.2110032+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Failed\"},{\"id\":\"f949cbaa-d30d-4aba-92a9-2a8ae39072ae\",\"createdAt\":\"2020-10-29T18:42:01.5811158+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Complete\"},{\"id\":\"02f3be15-6a50-4847-ae3d-d83945804002\",\"createdAt\":\"2020-10-29T18:40:21.7998441+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Complete\"},{\"id\":\"1e671fd9-31e3-4c93-a688-e3c13e865e25\",\"createdAt\":\"2020-10-26T20:05:46.9508456+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Complete\"},{\"id\":\"b9ed4ac9-e646-41f0-bc43-7327138b6691\",\"createdAt\":\"2020-10-26T19:58:36.1696165+00:00\",\"displayName\":\"\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Complete\"},{\"id\":\"b1faa409-1a83-461f-acb0-f061321aea4d\",\"createdAt\":\"2020-10-23T21:15:19.4665421+00:00\",\"displayName\":\"\",\"quantity\":4,\"quantityObtained\":4,\"status\":\"Complete\"},{\"id\":\"0bd9695a-74e4-4430-b689-c69c99f3016d\",\"createdAt\":\"2020-10-23T19:13:00.1332822+00:00\",\"displayName\":\"\",\"quantity\":2,\"quantityObtained\":2,\"status\":\"Complete\"}],\"nextLink\":null}", + "Date" : "Thu, 12 Nov 2020 08:03:13 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/listAllReservations.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/listAllReservations.json new file mode 100644 index 0000000000000..7ba447c72934c --- /dev/null +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/listAllReservations.json @@ -0,0 +1,22 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches?api-version=2020-07-20-preview1", + "Headers" : { + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Processing-Time" : "344ms", + "MS-CV" : "lYyftiofQUOwvrntySSpog.0", + "retry-after" : "0", + "X-Azure-Ref" : "0Q+ysXwAAAACjCC4JXkAmQpZ5+u355P2BTEFYRURHRTEyMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "StatusCode" : "200", + "Body" : "{\"entities\":[{\"id\":\"7167fcf6-8496-4b9e-922f-e60a0af289b8\",\"createdAt\":\"2020-11-12T08:03:14.3055517+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Pending\"},{\"id\":\"ebbffd18-5ed1-46c8-99bb-5173ec53514c\",\"createdAt\":\"2020-11-12T08:03:14.1961779+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Pending\"},{\"id\":\"001fa8a9-9368-4a76-828e-22dc2ee3d1ed\",\"createdAt\":\"2020-11-12T08:02:35.2822598+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":2,\"status\":\"Reserved\"},{\"id\":\"68eab31e-d287-49ed-a16d-af146150e4b4\",\"createdAt\":\"2020-11-12T08:02:33.9697611+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Reserved\"},{\"id\":\"b12f3596-54d7-41c9-8ae6-6b6adb453b93\",\"createdAt\":\"2020-11-12T08:02:33.7135224+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Reserved\"},{\"id\":\"de29c221-bfd5-4a4e-8de5-18d41ffbc7e7\",\"createdAt\":\"2020-11-12T08:01:43.3619001+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":2,\"status\":\"Reserved\"},{\"id\":\"2128ae1d-a744-4f03-ab61-afc3a59b21e9\",\"createdAt\":\"2020-11-12T08:01:42.110601+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Reserved\"},{\"id\":\"07146f0b-ca56-4fc2-9f61-9b149363f5c9\",\"createdAt\":\"2020-11-12T08:01:41.5462948+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Reserved\"},{\"id\":\"a4f1280f-19ba-4975-a2e7-9e168b29bb99\",\"createdAt\":\"2020-11-12T07:56:37.6983308+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":2,\"status\":\"Reserved\"},{\"id\":\"e250eff2-e9f3-4647-be59-23fb78dd1bc3\",\"createdAt\":\"2020-11-12T07:56:35.9483338+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Reserved\"},{\"id\":\"943bb232-1670-4f87-af87-d31482530186\",\"createdAt\":\"2020-11-12T07:56:35.5264587+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Reserved\"},{\"id\":\"4c3e71f9-41ec-4ed0-8f7a-feadfd96b557\",\"createdAt\":\"2020-11-12T07:54:14.7073226+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":2,\"status\":\"Reserved\"},{\"id\":\"4bc83bdd-0a03-454d-a973-ba6c1300a27e\",\"createdAt\":\"2020-11-12T07:54:12.9383198+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Reserved\"},{\"id\":\"e57b851e-439b-4ca5-aae9-212622a7d210\",\"createdAt\":\"2020-11-12T07:54:12.7039478+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Reserved\"},{\"id\":\"4d1fbd25-36a6-4640-8e1d-9e75b86352fc\",\"createdAt\":\"2020-11-12T07:51:52.7643946+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":2,\"status\":\"Reserved\"},{\"id\":\"b0b34e07-d842-498d-b00b-cc18fb75ef74\",\"createdAt\":\"2020-11-12T07:51:51.6550236+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Reserved\"},{\"id\":\"cdbf7ee7-6e21-41f5-8637-c2d80ed913e3\",\"createdAt\":\"2020-11-12T07:51:50.5925262+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Reserved\"},{\"id\":\"add8ec68-26a3-4743-841f-06a7f2507828\",\"createdAt\":\"2020-11-12T07:46:07.4922325+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":2,\"status\":\"Expired\"},{\"id\":\"80559b9f-319e-45aa-84ae-721d20c749d5\",\"createdAt\":\"2020-11-12T07:46:05.3516113+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Expired\"},{\"id\":\"85f756b1-40b5-425e-8ba4-4c5297a3a09b\",\"createdAt\":\"2020-11-12T07:46:04.93031+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Expired\"},{\"id\":\"40fc0889-ce29-4a18-aac8-94fe6eda7af7\",\"createdAt\":\"2020-11-12T07:43:27.7822718+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":2,\"status\":\"Cancelled\"},{\"id\":\"ddb8de8c-30ba-4bc9-a23c-b07395d43331\",\"createdAt\":\"2020-11-12T07:43:25.6734133+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Expired\"},{\"id\":\"37f6a3ce-a20b-4185-843c-4a12148fbb9e\",\"createdAt\":\"2020-11-12T07:43:25.2000039+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Expired\"},{\"id\":\"fff14190-a424-4d8d-8e69-1ea52d1b1268\",\"createdAt\":\"2020-11-12T07:37:06.9483718+00:00\",\"displayName\":\"New search for 1 phone number(s) with 916\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Success\"},{\"id\":\"4501487e-5578-40e8-a21a-f408e7ae76f4\",\"createdAt\":\"2020-11-12T07:35:46.5032868+00:00\",\"displayName\":\"New search for 1 phone number(s) with 323\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Success\"},{\"id\":\"551d8820-f96f-48aa-8e66-db121fd8e409\",\"createdAt\":\"2020-11-12T07:34:29.2277649+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":2,\"status\":\"Expired\"},{\"id\":\"dcbfbb31-2cf6-44dd-8119-32bffc983a34\",\"createdAt\":\"2020-11-12T07:34:26.9587137+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Expired\"},{\"id\":\"014e5c1a-af0a-4ef3-ba4a-5b5a26b71bff\",\"createdAt\":\"2020-11-12T07:34:26.808545+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Expired\"},{\"id\":\"0c0e893e-6354-4af4-85b3-44d43363d885\",\"createdAt\":\"2020-11-12T07:32:46.5943936+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"90d3ff4d-5e34-4dc0-8fa8-58bdaee50402\",\"createdAt\":\"2020-11-12T07:32:44.3318158+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"67a888d0-182d-484a-ad41-0c53e6834fe8\",\"createdAt\":\"2020-11-12T07:32:44.3161991+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"749c9e2f-f731-4a41-83b1-513757c621f6\",\"createdAt\":\"2020-11-12T07:30:57.2328027+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"35567c7b-06eb-4fcb-b810-f4cd8dc9eb8c\",\"createdAt\":\"2020-11-12T07:29:08.9895092+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"767ae3d7-5753-40b7-bc37-fde493b029ed\",\"createdAt\":\"2020-11-12T07:21:27.9917522+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"392679eb-2ad3-4483-b4f2-ce386cddc5f8\",\"createdAt\":\"2020-11-12T07:19:38.3822118+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"005e851a-4dfa-42d7-9412-056013f48b15\",\"createdAt\":\"2020-11-12T07:18:34.4256195+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"3102b644-a8c1-4c0c-87d4-cafcc52dde68\",\"createdAt\":\"2020-11-12T07:17:16.2394955+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"47868c87-7428-4f58-ab15-d7053cbba7d8\",\"createdAt\":\"2020-11-12T07:16:43.9035871+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"960b3a09-324e-4295-9c77-c30b9f7684ab\",\"createdAt\":\"2020-11-12T07:09:39.0248174+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"e165c1d6-23a7-40f9-a795-75e8ef44f80a\",\"createdAt\":\"2020-11-12T07:08:26.7804069+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"55cb3a0f-4d33-441e-b758-69323efa17a5\",\"createdAt\":\"2020-11-12T07:08:24.3473797+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"3630f24d-a62c-4e71-9877-84501ef3d0f1\",\"createdAt\":\"2020-11-12T07:08:24.2195189+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"77103cb1-81f3-4416-b3da-c142b47e24c7\",\"createdAt\":\"2020-11-12T07:07:31.0658324+00:00\",\"displayName\":\"318362fa-2b19-4062-92af-fa0673914f30\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"1401642c-4776-4576-955f-f2ea6b5a1555\",\"createdAt\":\"2020-11-12T07:07:30.8540577+00:00\",\"displayName\":\"318362fa-2b19-4062-92af-fa0673914f30\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"56d78f5d-d09f-401c-b6da-63f77115cf21\",\"createdAt\":\"2020-11-12T07:05:09.6513334+00:00\",\"displayName\":\"New search for 1 phone number(s) with 323\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Expired\"},{\"id\":\"667f2a88-dd29-4193-9ff2-108487191dde\",\"createdAt\":\"2020-11-12T07:03:37.3127422+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"1214f8b2-251b-40dd-b3c5-dafe90824496\",\"createdAt\":\"2020-11-12T07:03:35.3637384+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"adcdadab-017a-4fda-8c4e-e19cca0787fb\",\"createdAt\":\"2020-11-12T07:03:34.7117993+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"873724e6-b785-477e-bce4-e7fc03697228\",\"createdAt\":\"2020-11-12T05:57:55.0141306+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"638edb4f-eda7-46a2-a81e-8b11c4e84b31\",\"createdAt\":\"2020-11-12T05:53:20.9229466+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"ba7be4eb-5332-4823-9554-62db64978804\",\"createdAt\":\"2020-11-12T05:46:01.7031073+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"f0e5a5c7-e612-46d0-ad36-9f664002556e\",\"createdAt\":\"2020-11-12T05:45:59.2499837+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"23da3985-2389-4aeb-a98a-5b1aff444947\",\"createdAt\":\"2020-11-12T05:45:58.8395006+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"a655fdca-dee4-4c77-88e2-6962aede817b\",\"createdAt\":\"2020-11-12T05:38:42.8739889+00:00\",\"displayName\":\"318362fa-2b19-4062-92af-fa0673914f30\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"c68abcc7-0f08-44a2-ae87-74abb0bc6b38\",\"createdAt\":\"2020-11-12T05:38:42.4569817+00:00\",\"displayName\":\"318362fa-2b19-4062-92af-fa0673914f30\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"5fb71179-ea44-4f3a-9a5c-b6271fc15f59\",\"createdAt\":\"2020-11-12T05:37:00.064498+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"69f0b521-2f57-45a9-890e-d5b5400f4633\",\"createdAt\":\"2020-11-12T05:36:58.2676272+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"5e6842ca-0eef-496c-af1c-bbb6be228416\",\"createdAt\":\"2020-11-12T05:36:58.2540435+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"51108a1c-96b9-47a0-9196-a67b0e2f8eac\",\"createdAt\":\"2020-11-12T05:31:54.3348007+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"7acef178-ba52-4c59-bbc4-7eab6f7c4308\",\"createdAt\":\"2020-11-12T05:31:52.3736111+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"676f07d2-af73-47f0-8ccf-aeb38e98f090\",\"createdAt\":\"2020-11-12T05:31:52.0225307+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"bad54126-7e2e-4057-9eb7-cdcae121eb7e\",\"createdAt\":\"2020-11-12T05:31:10.8563808+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"cf4eda97-ddd3-491b-907d-33bfa04e4555\",\"createdAt\":\"2020-11-12T05:31:09.1983835+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"de3ad602-3203-4cb4-9d57-a1f82667c83b\",\"createdAt\":\"2020-11-12T05:31:08.9416928+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"fd5542b3-ef84-4efd-a146-baaeeb014b03\",\"createdAt\":\"2020-11-12T05:28:23.2552806+00:00\",\"displayName\":\"318362fa-2b19-4062-92af-fa0673914f30\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"0abedf19-01c7-4180-be2b-cd7dcde4563b\",\"createdAt\":\"2020-11-12T05:28:18.8137988+00:00\",\"displayName\":\"318362fa-2b19-4062-92af-fa0673914f30\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"cf97f324-b2ca-440d-a2f5-17424f2a84f0\",\"createdAt\":\"2020-11-12T05:28:18.3481458+00:00\",\"displayName\":\"318362fa-2b19-4062-92af-fa0673914f30\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"0fd90ec3-3e01-4fd7-acbf-1d7ccd73febb\",\"createdAt\":\"2020-11-12T05:26:18.1701966+00:00\",\"displayName\":\"318362fa-2b19-4062-92af-fa0673914f30\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"a7a28698-9be0-4e37-a0b7-9e5a96183be2\",\"createdAt\":\"2020-11-12T05:26:17.8368768+00:00\",\"displayName\":\"318362fa-2b19-4062-92af-fa0673914f30\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"783a79c3-7127-441f-b24f-39ebd71ddbca\",\"createdAt\":\"2020-11-12T05:11:10.5107913+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"f5988f12-40e6-478a-a434-0b7968273b89\",\"createdAt\":\"2020-11-12T05:11:08.2274259+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"032853dc-0ca2-4643-9098-1f4f89f3b50f\",\"createdAt\":\"2020-11-12T05:11:07.8779975+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"150555a0-e5a7-4bdb-be32-5830ff007abe\",\"createdAt\":\"2020-11-12T05:05:27.1074294+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"81061e49-9f15-4e02-95f7-4827aadace6b\",\"createdAt\":\"2020-11-12T05:05:26.4902226+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"d80c3fa0-27ad-4667-94a8-6dd12796e5fa\",\"createdAt\":\"2020-11-12T05:05:25.7750032+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"b00636fe-5751-4908-946f-b8aa65c23e04\",\"createdAt\":\"2020-11-12T05:05:22.8504335+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"cc1db2b2-130c-4847-b5a1-762b04a56f62\",\"createdAt\":\"2020-11-12T04:24:24.9059374+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"23996146-5bfb-44a0-bf75-46adbe0278c6\",\"createdAt\":\"2020-11-12T04:24:22.7139417+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"abaf81ad-f070-40af-b724-614bfab79d99\",\"createdAt\":\"2020-11-12T04:24:22.6827905+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"db65cca9-97d0-44f4-a467-4d6d41dda593\",\"createdAt\":\"2020-11-12T04:18:19.0139018+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"f7004191-f980-4be8-ace0-b360f21f7000\",\"createdAt\":\"2020-11-12T04:18:17.1533222+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"eda6180d-b972-4ced-b58e-347bcabe4ead\",\"createdAt\":\"2020-11-12T04:18:16.9189467+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"e590109d-f3e1-4643-8d2b-81e473038ff3\",\"createdAt\":\"2020-11-12T04:14:35.7143902+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"81bdae4b-7ace-415a-b2d3-d49f39a71372\",\"createdAt\":\"2020-11-12T04:14:32.7743502+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"8067cfd6-4c97-42e9-9b73-15fa2604a91f\",\"createdAt\":\"2020-11-12T04:14:32.4150127+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"215296d5-e1ae-4623-ac41-67be2a0e2b4d\",\"createdAt\":\"2020-11-12T04:08:04.5225308+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"79997831-cd84-48d3-94ab-bfb62a09e6ca\",\"createdAt\":\"2020-11-12T04:08:03.0178073+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"d18a49db-cf2a-436a-baa9-c3fc909797eb\",\"createdAt\":\"2020-11-12T04:08:02.8695455+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"63fc52e3-78f5-422d-b330-8ba471dbcb63\",\"createdAt\":\"2020-11-12T04:05:55.5735331+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"a6f81996-afa1-4045-9ed2-3c1bb0caf3d6\",\"createdAt\":\"2020-11-12T04:05:53.7585337+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"eb1854d7-697f-410b-a766-f530a232efaf\",\"createdAt\":\"2020-11-12T04:05:53.6803977+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"24bfae08-b722-48d2-aa1b-67d6b5889286\",\"createdAt\":\"2020-11-12T04:03:45.5448554+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"5689a4d2-733e-4da2-bcad-e524fca4ea2f\",\"createdAt\":\"2020-11-12T04:03:43.5248258+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"7de462b5-949f-42f7-8ca4-397bd262dd42\",\"createdAt\":\"2020-11-12T04:03:43.1474433+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"e9b119da-8147-47a8-a164-d8ce4a918918\",\"createdAt\":\"2020-11-12T03:58:44.3981849+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"903d7117-a6f1-46da-a623-9684fca748fa\",\"createdAt\":\"2020-11-12T03:58:42.5463543+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"17b149de-f40b-477a-88cc-cdbfe4e40a3c\",\"createdAt\":\"2020-11-12T03:58:42.3276054+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"ac6c6159-f8b2-4b6c-9f2f-e749051d748e\",\"createdAt\":\"2020-11-12T03:55:38.9152226+00:00\",\"displayName\":\"testReservation20200014\",\"quantity\":2,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"2b8bd6e5-d660-4023-afd9-2602e3b80c89\",\"createdAt\":\"2020-11-12T03:55:37.4152253+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"945f2a40-659e-42ed-975d-bd0e5f81ac68\",\"createdAt\":\"2020-11-12T03:55:37.2121695+00:00\",\"displayName\":\"testreservation20200014\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"}],\"nextLink\":\"https://23.100.38.234/administration/phonenumbers/searches?api-version=2020-07-20-preview1&skip=100&take=100\"}", + "Date" : "Thu, 12 Nov 2020 08:03:15 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ ] +} \ No newline at end of file diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/listAllSearches.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/listAllSearches.json deleted file mode 100644 index 1024ad5d86495..0000000000000 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/listAllSearches.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "663ms", - "MS-CV" : "+rPsJJosJ0CjM3CZEVmA4Q.0", - "retry-after" : "0", - "X-Azure-Ref" : "0Q3xpXwAAAADlHpcJXzt4Ro/sgAuOKDm4WVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"entities\":[{\"id\":\"search-id-1\",\"createdAt\":\"2020-09-21T22:57:25.353001+00:00\",\"displayName\":\"testsearch20200021\",\"quantity\":1,\"quantityObtained\":1,\"status\":\"Success\"},{\"id\":\"bf9fb6f1-deff-4172-9cc7-4db5afb36995\",\"createdAt\":\"2020-09-21T22:43:32.8257185+00:00\",\"displayName\":\"testsearch20200021\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"51eacc91-dbda-4443-b770-7c9da4868ed7\",\"createdAt\":\"2020-09-21T22:24:27.3157678+00:00\",\"displayName\":\"testsearch20200021\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"e84b5a67-fa0e-4866-9fc9-edef5c422af8\",\"createdAt\":\"2020-09-21T22:19:30.5279054+00:00\",\"displayName\":\"testsearch20200021\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"},{\"id\":\"068fc84c-84dc-4a75-9735-bb58b790560c\",\"createdAt\":\"2020-09-21T21:48:34.7679791+00:00\",\"displayName\":\"testsearch20200021\",\"quantity\":1,\"quantityObtained\":0,\"status\":\"Error\"}],\"nextLink\":null}", - "Date" : "Tue, 22 Sep 2020 04:23:31 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ ] -} \ No newline at end of file diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/listAllSupportedCountries.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/listAllSupportedCountries.json index 2a0f0168d61ed..dced10eed8b11 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/listAllSupportedCountries.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/listAllSupportedCountries.json @@ -3,17 +3,17 @@ "Method" : "GET", "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/countries?locale=en-us&api-version=2020-07-20-preview1", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)" + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "697ms", - "MS-CV" : "XgD2jD2Zd0WCfrxBvBWi0w.0", + "X-Processing-Time" : "455ms", + "MS-CV" : "Uxh7Y8U0c02fozYuDrmUoQ.0", "retry-after" : "0", - "X-Azure-Ref" : "0VHxpXwAAAAAzfAp5Uj81SrWuYPNeKAz4WVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0Q+ysXwAAAAAmuWgKkeQ2R5NV45OWujVHTEFYRURHRTEyMTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"countries\":[{\"localizedName\":\"Australia\",\"countryCode\":\"AU\"},{\"localizedName\":\"Japan\",\"countryCode\":\"JP\"},{\"localizedName\":\"United States\",\"countryCode\":\"US\"}],\"nextLink\":null}", - "Date" : "Tue, 22 Sep 2020 04:23:49 GMT", + "Body" : "{\"countries\":[{\"localizedName\":\"United States\",\"countryCode\":\"US\"}],\"nextLink\":null}", + "Date" : "Thu, 12 Nov 2020 08:03:15 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/listPhonePlanGroups.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/listPhonePlanGroups.json index 805cb0a1561bb..69ccf770b9cbe 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/listPhonePlanGroups.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/listPhonePlanGroups.json @@ -3,17 +3,17 @@ "Method" : "GET", "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups?locale=en-us&includeRateInformation=true&api-version=2020-07-20-preview1", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)" + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "2726ms", - "MS-CV" : "Ld/dAmH64UuYDz9SprE/IA.0", + "X-Processing-Time" : "2447ms", + "MS-CV" : "ZwwUFn+0uEOJCcF5rYMAPA.0", "retry-after" : "0", - "X-Azure-Ref" : "0OnxpXwAAAABOjyv6VYUgRoXEK5XCD85BWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0QeysXwAAAABHJMX6lHOGRYSEGJRhHCcZTEFYRURHRTEyMTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"phonePlanGroups\":[{\"phonePlanGroupId\":\"phone-plan-group-id-1\",\"phoneNumberType\":\"Geographic\",\"localizedName\":\"Azure - Geographic\",\"localizedDescription\":\"These are numbers used by Azure resources.\",\"rateInformation\":{\"monthlyRate\":0.0,\"currencyType\":\"USD\",\"rateErrorMessage\":\"The specified phone number is not eligible for purchase.\"}},{\"phonePlanGroupId\":\"d47a0cdc-8dc1-4e82-a29b-39067f7fc317\",\"phoneNumberType\":\"TollFree\",\"localizedName\":\"Azure - Toll Free\",\"localizedDescription\":\"These are toll free numbers used by Azure resources.\",\"rateInformation\":{\"monthlyRate\":0.0,\"currencyType\":\"USD\",\"rateErrorMessage\":\"The specified phone number is not eligible for purchase.\"}}],\"nextLink\":null}", - "Date" : "Tue, 22 Sep 2020 04:23:25 GMT", + "Body" : "{\"phonePlanGroups\":[{\"phonePlanGroupId\":\"55bc1415-9fe6-42d7-9ed4-5ea28c6a17cf\",\"phoneNumberType\":\"Geographic\",\"localizedName\":\"Azure- User - Geographic\",\"localizedDescription\":\"These are numbers used by Azure resources.\",\"rateInformation\":{\"monthlyRate\":1.0,\"currencyType\":\"USD\",\"rateErrorMessage\":null}},{\"phonePlanGroupId\":\"671ee064-662f-4c3b-82a9-af2ab200dd5c\",\"phoneNumberType\":\"Geographic\",\"localizedName\":\"Azure - Geographic\",\"localizedDescription\":\"These are numbers used by Azure resources.\",\"rateInformation\":{\"monthlyRate\":1.0,\"currencyType\":\"USD\",\"rateErrorMessage\":null}},{\"phonePlanGroupId\":\"d47a0cdc-8dc1-4e82-a29b-39067f7fc317\",\"phoneNumberType\":\"TollFree\",\"localizedName\":\"Azure - Toll Free\",\"localizedDescription\":\"These are toll free numbers used by Azure resources.\",\"rateInformation\":{\"monthlyRate\":2.0,\"currencyType\":\"USD\",\"rateErrorMessage\":null}}],\"nextLink\":null}", + "Date" : "Thu, 12 Nov 2020 08:03:15 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/listPhonePlans.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/listPhonePlans.json index 54d756b040e06..a242000b20725 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/listPhonePlans.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/listPhonePlans.json @@ -1,19 +1,19 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/phone-plan-group-id-1/phoneplans?locale=en-us&api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/671ee064-662f-4c3b-82a9-af2ab200dd5c/phoneplans?locale=en-us&api-version=2020-07-20-preview1", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)" + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "493ms", - "MS-CV" : "PHyHjd8btU65uKaSCb7bbA.0", + "X-Processing-Time" : "264ms", + "MS-CV" : "25F3lpAcK0yTCMbQGUqr+Q.0", "retry-after" : "0", - "X-Azure-Ref" : "0R3xpXwAAAAA0psO7t4yrQJdHH/Ic2taXWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0Q+ysXwAAAADzMkwIQhASRoewXoB/4wW5TEFYRURHRTEyMTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"phonePlans\":[{\"phonePlanId\":\"27b53eec-8ff4-4070-8900-fbeaabfd158a\",\"localizedName\":\"Outbound Only PSTN - Geographic\",\"locationType\":\"Selection\",\"areaCodes\":[],\"capabilities\":[\"Azure\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"Geographic\"],\"maximumSearchSize\":100},{\"phonePlanId\":\"phone-plan-id-1\",\"localizedName\":\"Inbound Only PSTN - Geographic\",\"locationType\":\"Selection\",\"areaCodes\":[],\"capabilities\":[\"Azure\",\"InboundCalling\",\"ThirdPartyAppAssignment\",\"Geographic\"],\"maximumSearchSize\":100}],\"nextLink\":null}", - "Date" : "Tue, 22 Sep 2020 04:23:35 GMT", + "Body" : "{\"phonePlans\":[{\"phonePlanId\":\"27b53eec-8ff4-4070-8900-fbeaabfd158a\",\"localizedName\":\"Outbound Only PSTN - Geographic\",\"locationType\":\"Selection\",\"areaCodes\":[],\"capabilities\":[\"Azure\",\"OutboundCalling\",\"ThirdPartyAppAssignment\",\"Geographic\"],\"maximumSearchSize\":20},{\"phonePlanId\":\"d0d438e7-923f-4210-8e05-365979e30414\",\"localizedName\":\"Inbound Only PSTN - Geographic\",\"locationType\":\"Selection\",\"areaCodes\":[],\"capabilities\":[\"Azure\",\"InboundCalling\",\"ThirdPartyAppAssignment\",\"Geographic\"],\"maximumSearchSize\":20}],\"nextLink\":null}", + "Date" : "Thu, 12 Nov 2020 08:03:14 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/releasePhoneNumbers.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/releasePhoneNumbers.json deleted file mode 100644 index a72405d159119..0000000000000 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/releasePhoneNumbers.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)", - "Content-Type" : "application/json" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "1072ms", - "MS-CV" : "hq1XzlPxzUmtJVSE+FbrdA.0", - "retry-after" : "0", - "X-Azure-Ref" : "0R3xpXwAAAAAqi4SCHk54SrmO/RX/dJorWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"2a893091-d997-40f5-ae36-69228799d9a5\"}", - "Date" : "Tue, 22 Sep 2020 04:23:36 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ ] -} \ No newline at end of file diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/releasePhoneNumbersWithResponse.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/releasePhoneNumbersWithResponse.json deleted file mode 100644 index bb3be37b41563..0000000000000 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/releasePhoneNumbersWithResponse.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/releases?api-version=2020-07-20-preview1", - "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)", - "Content-Type" : "application/json" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "1347ms", - "MS-CV" : "B3L80if0GkKppBQaPMaWUA.0", - "retry-after" : "0", - "X-Azure-Ref" : "0PXxpXwAAAAAHuE0mBjdbT7yfjDMPpbKNWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "StatusCode" : "200", - "Body" : "{\"releaseId\":\"1cbc4c35-8318-413c-a4d9-7390aae6bc5a\"}", - "Date" : "Tue, 22 Sep 2020 04:23:26 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ ] -} \ No newline at end of file diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/unconfigureNumber.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/unconfigureNumber.json index c4c60f88b5f06..b84a6d033abeb 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/unconfigureNumber.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/unconfigureNumber.json @@ -3,19 +3,19 @@ "Method" : "PATCH", "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/numberconfiguration/unconfigure?api-version=2020-07-20-preview1", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)", + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { - "X-Processing-Time" : "129ms", - "MS-CV" : "Ppt2RXEEJ0CilpKk3AfoEw.0", + "X-Processing-Time" : "1097ms", + "MS-CV" : "lIVW7irZ1UmDxpXo/M+WGQ.0", "retry-after" : "0", - "X-Azure-Ref" : "0SXxpXwAAAACzA2zcS3YsSbP9fYFrMoz/WVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0Le2sXwAAAADHZIdpS6EcQLzOHKn5kefiTEFYRURHRTEyMTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "Content-Length" : "0", "StatusCode" : "200", - "Date" : "Tue, 22 Sep 2020 04:23:36 GMT" + "Date" : "Thu, 12 Nov 2020 08:07:09 GMT" }, "Exception" : null } ], "variables" : [ ] -} +} \ No newline at end of file diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/unconfigureNumberWithResponse.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/unconfigureNumberWithResponse.json index 79e8e91e4aed4..0a0d27bab90b0 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/unconfigureNumberWithResponse.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/unconfigureNumberWithResponse.json @@ -3,17 +3,17 @@ "Method" : "PATCH", "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/numberconfiguration/unconfigure?api-version=2020-07-20-preview1", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)", + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { - "X-Processing-Time" : "129ms", - "MS-CV" : "Ppt2RXEEJ0CilpKk3AfoEw.0", + "X-Processing-Time" : "778ms", + "MS-CV" : "UTJGvdOEJEmWOah5zK6NBg.0", "retry-after" : "0", - "X-Azure-Ref" : "0SXxpXwAAAACzA2zcS3YsSbP9fYFrMoz/WVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0Q+ysXwAAAADe6E3Kd5H7SITFsm1wx8gwTEFYRURHRTEyMDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "Content-Length" : "0", "StatusCode" : "200", - "Date" : "Tue, 22 Sep 2020 04:23:36 GMT" + "Date" : "Thu, 12 Nov 2020 08:03:15 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/updateCapabilities.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/updateCapabilities.json index 9ab58aab59637..df96f2a2a857f 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/updateCapabilities.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/updateCapabilities.json @@ -3,18 +3,18 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/capabilities?api-version=2020-07-20-preview1", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)", + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "1133ms", - "MS-CV" : "Q3nI5VhxL0SgCyX4PUe+rA.0", + "X-Processing-Time" : "1169ms", + "MS-CV" : "k99P0b/1dkm8PmhGVS9tlQ.0", "retry-after" : "0", - "X-Azure-Ref" : "0V3xpXwAAAADO7y3O7t0+RJwAoLLEE0zQWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0QeysXwAAAADv0rJd0U9MSKX82Bw7wcTITEFYRURHRTEyMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"capabilitiesUpdateId\":\"capabilities-id-1\"}", - "Date" : "Tue, 22 Sep 2020 04:23:52 GMT", + "Body" : "{\"capabilitiesUpdateId\":\"bfcdad6c-c039-4b62-8ed3-f7a16ca45536\"}", + "Date" : "Thu, 12 Nov 2020 08:03:14 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/updateCapabilitiesWithResponse.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/updateCapabilitiesWithResponse.json index 5289d98167441..2636fdadb8367 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/updateCapabilitiesWithResponse.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/updateCapabilitiesWithResponse.json @@ -3,18 +3,18 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/capabilities?api-version=2020-07-20-preview1", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Mac OS X 10.15.6)", + "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "1759ms", - "MS-CV" : "Gng08Be3wkGfy+8M2sffvg.0", + "X-Processing-Time" : "895ms", + "MS-CV" : "kb4kc3LGw0yOPL3QIXuYmA.0", "retry-after" : "0", - "X-Azure-Ref" : "0QHxpXwAAAAB46lm2ZAxAQJ8Oa5SmDMizWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0QeysXwAAAADnrJJKKIhZQbP0lgw2GX9wTEFYRURHRTEyMDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"capabilitiesUpdateId\":\"dc823bb2-585d-4943-a8e7-b33cc5c86ea0\"}", - "Date" : "Tue, 22 Sep 2020 04:23:29 GMT", + "Body" : "{\"capabilitiesUpdateId\":\"e2f266a6-f706-4e18-ad1c-d9a1f7cca05e\"}", + "Date" : "Thu, 12 Nov 2020 08:03:13 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null From 8370590fedb1b1902804c871f08789b9e5b8052d Mon Sep 17 00:00:00 2001 From: Paola Vicencio Date: Thu, 12 Nov 2020 18:00:54 -0600 Subject: [PATCH 7/8] Fixing tests --- .../test/resources/session-records/cancelReservation.json | 4 ++-- .../session-records/cancelReservationWithResponse.json | 4 ++-- .../src/test/resources/session-records/getAllAreaCodes.json | 4 ++-- .../session-records/getAllAreaCodesWithResponse.json | 4 ++-- .../resources/session-records/getCapabilitiesUpdate.json | 6 +++--- .../session-records/getCapabilitiesUpdateWithResponse.json | 6 +++--- .../session-records/getPhonePlanLocationOptions.json | 4 ++-- .../test/resources/session-records/getReservationById.json | 6 +++--- .../session-records/getReservationByIdWithResponse.json | 6 +++--- .../src/test/resources/session-records/listPhonePlans.json | 4 ++-- 10 files changed, 24 insertions(+), 24 deletions(-) diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelReservation.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelReservation.json index d10d3728d4e52..87d1be6886d80 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelReservation.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelReservation.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/40fc0889-ce29-4a18-aac8-94fe6eda7af7/cancel?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-2/cancel?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" }, @@ -17,4 +17,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelReservationWithResponse.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelReservationWithResponse.json index 332f56a85de26..023309aa35e5a 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelReservationWithResponse.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/cancelReservationWithResponse.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/40fc0889-ce29-4a18-aac8-94fe6eda7af7/cancel?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-2/cancel?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" }, @@ -17,4 +17,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getAllAreaCodes.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getAllAreaCodes.json index cb5ccbf4d9b84..de973ced497ca 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getAllAreaCodes.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getAllAreaCodes.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/countries/US/areacodes?locationType=selection&phonePlanId=27b53eec-8ff4-4070-8900-fbeaabfd158a&api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/countries/US/areacodes?locationType=selection&phonePlanId=phone-plan-id-1&api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)", "Content-Type" : "application/json" @@ -20,4 +20,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getAllAreaCodesWithResponse.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getAllAreaCodesWithResponse.json index 928af325a7e9a..cc98aaace1a31 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getAllAreaCodesWithResponse.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getAllAreaCodesWithResponse.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/countries/US/areacodes?locationType=selection&phonePlanId=27b53eec-8ff4-4070-8900-fbeaabfd158a&api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/countries/US/areacodes?locationType=selection&phonePlanId=phone-plan-id-1&api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)", "Content-Type" : "application/json" @@ -20,4 +20,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getCapabilitiesUpdate.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getCapabilitiesUpdate.json index 7f6d01416fee8..8f414ea65512d 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getCapabilitiesUpdate.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getCapabilitiesUpdate.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/capabilities/f1ff2fd9-e703-40f9-8bb0-33c6e707c03d?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/capabilities/capabilities-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" }, @@ -12,11 +12,11 @@ "retry-after" : "0", "X-Azure-Ref" : "0QuysXwAAAADB6MD6Z/T8SJZ4S8d5vojMTEFYRURHRTEyMDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"capabilitiesUpdateId\":\"f1ff2fd9-e703-40f9-8bb0-33c6e707c03d\",\"createdAt\":\"2020-11-12T04:14:33.1025041+00:00\",\"capabilitiesUpdateStatus\":\"Complete\",\"phoneNumberCapabilitiesUpdates\":{\"+12133285934\":{\"add\":[\"InboundCalling\"],\"remove\":[]}}}", + "Body" : "{\"capabilitiesUpdateId\":\"capabilities-id-1\",\"createdAt\":\"2020-11-12T04:14:33.1025041+00:00\",\"capabilitiesUpdateStatus\":\"Complete\",\"phoneNumberCapabilitiesUpdates\":{\"+12133285934\":{\"add\":[\"InboundCalling\"],\"remove\":[]}}}", "Date" : "Thu, 12 Nov 2020 08:03:14 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getCapabilitiesUpdateWithResponse.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getCapabilitiesUpdateWithResponse.json index 6a8bd8355a4e9..fefafa504a643 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getCapabilitiesUpdateWithResponse.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getCapabilitiesUpdateWithResponse.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/capabilities/f1ff2fd9-e703-40f9-8bb0-33c6e707c03d?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/capabilities/capabilities-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" }, @@ -12,11 +12,11 @@ "retry-after" : "0", "X-Azure-Ref" : "0Q+ysXwAAAABEhM+bmntmT6wop8/QCv04TEFYRURHRTEyMDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"capabilitiesUpdateId\":\"f1ff2fd9-e703-40f9-8bb0-33c6e707c03d\",\"createdAt\":\"2020-11-12T04:14:33.1025041+00:00\",\"capabilitiesUpdateStatus\":\"Complete\",\"phoneNumberCapabilitiesUpdates\":{\"+12133285934\":{\"add\":[\"InboundCalling\"],\"remove\":[]}}}", + "Body" : "{\"capabilitiesUpdateId\":\"capabilities-id-1\",\"createdAt\":\"2020-11-12T04:14:33.1025041+00:00\",\"capabilitiesUpdateStatus\":\"Complete\",\"phoneNumberCapabilitiesUpdates\":{\"+12133285934\":{\"add\":[\"InboundCalling\"],\"remove\":[]}}}", "Date" : "Thu, 12 Nov 2020 08:03:14 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getPhonePlanLocationOptions.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getPhonePlanLocationOptions.json index 2699029f70fa3..c51af10c18363 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getPhonePlanLocationOptions.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getPhonePlanLocationOptions.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/671ee064-662f-4c3b-82a9-af2ab200dd5c/phoneplans/27b53eec-8ff4-4070-8900-fbeaabfd158a/locationoptions?locale=en-us&api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/phone-plan-group-id-1/phoneplans/phone-plan-id-1/locationoptions?locale=en-us&api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" }, @@ -19,4 +19,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getReservationById.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getReservationById.json index 75283ca239a5d..5b24dc078d71c 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getReservationById.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getReservationById.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/40fc0889-ce29-4a18-aac8-94fe6eda7af7?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" }, @@ -12,11 +12,11 @@ "retry-after" : "0", "X-Azure-Ref" : "0QeysXwAAAAA/nerhDLkNQZ4KOw8bHzDbTEFYRURHRTEyMTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"searchId\":\"40fc0889-ce29-4a18-aac8-94fe6eda7af7\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T07:43:27.7822718+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Cancelled\",\"phoneNumbers\":[\"+13234882403\",\"+13234882404\"],\"reservationExpiryDate\":\"2020-11-12T07:59:47.4823703+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T07:43:27.7822718+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Cancelled\",\"phoneNumbers\":[\"+13234882403\",\"+13234882404\"],\"reservationExpiryDate\":\"2020-11-12T07:59:47.4823703+00:00\"}", "Date" : "Thu, 12 Nov 2020 08:03:13 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getReservationByIdWithResponse.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getReservationByIdWithResponse.json index e67b6530eb5fe..e5a3069ca3bb7 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getReservationByIdWithResponse.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getReservationByIdWithResponse.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/40fc0889-ce29-4a18-aac8-94fe6eda7af7?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/reservation-id-1?api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" }, @@ -12,11 +12,11 @@ "retry-after" : "0", "X-Azure-Ref" : "0QuysXwAAAABGa0TQ6PwAQ6xLK4o1urPmTEFYRURHRTEyMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"searchId\":\"40fc0889-ce29-4a18-aac8-94fe6eda7af7\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T07:43:27.7822718+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Cancelled\",\"phoneNumbers\":[\"+13234882403\",\"+13234882404\"],\"reservationExpiryDate\":\"2020-11-12T07:59:47.4823703+00:00\"}", + "Body" : "{\"searchId\":\"reservation-id-1\",\"displayName\":\"testReservation20200014\",\"createdAt\":\"2020-11-12T07:43:27.7822718+00:00\",\"description\":\"testReservation20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Cancelled\",\"phoneNumbers\":[\"+13234882403\",\"+13234882404\"],\"reservationExpiryDate\":\"2020-11-12T07:59:47.4823703+00:00\"}", "Date" : "Thu, 12 Nov 2020 08:03:14 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/listPhonePlans.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/listPhonePlans.json index a242000b20725..4d3d7e3817757 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/listPhonePlans.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/listPhonePlans.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/671ee064-662f-4c3b-82a9-af2ab200dd5c/phoneplans?locale=en-us&api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/phone-plan-group-id-1/phoneplans?locale=en-us&api-version=2020-07-20-preview1", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (15.0.1; Windows 10; 10.0)" }, @@ -19,4 +19,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} From 2d66060851676cb1a6170a45f48affeb6cbd6412 Mon Sep 17 00:00:00 2001 From: Paola Vicencio Date: Fri, 13 Nov 2020 12:35:27 -0600 Subject: [PATCH 8/8] fixing typo un reservations --- .../administration/PhoneNumberClient.java | 6 +++--- .../swagger/README.md | 13 ------------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberClient.java b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberClient.java index 183002f4f36af..09bc5ae8eeba6 100644 --- a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberClient.java +++ b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberClient.java @@ -437,9 +437,9 @@ public Response createReservationWithResponse( } /** - * Gets the list of all reservationes + * Gets the list of all reservations * - * @return A {@link PagedIterable} of {@link PhoneNumberEntity} instances representing reservationes. + * @return A {@link PagedIterable} of {@link PhoneNumberEntity} instances representing reservations. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listAllReservations() { @@ -450,7 +450,7 @@ public PagedIterable listAllReservations() { * Gets the list of all reservationes * * @param context A {@link Context} representing the request context. - * @return A {@link PagedIterable} of {@link PhoneNumberEntity} instances representing reservationes. + * @return A {@link PagedIterable} of {@link PhoneNumberEntity} instances representing reservations. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listAllReservations(Context context) { diff --git a/sdk/communication/azure-communication-administration/swagger/README.md b/sdk/communication/azure-communication-administration/swagger/README.md index c034ef0cb712a..37bf0b5712177 100644 --- a/sdk/communication/azure-communication-administration/swagger/README.md +++ b/sdk/communication/azure-communication-administration/swagger/README.md @@ -63,17 +63,6 @@ directive: transform: > $["x-ms-client-name"] = "reservationId"; ``` -### Rename AddChatThreadMembersRequest to AddChatThreadMembersOptions -``` yaml -directive: -- from: swagger-document - where: $["paths"]["/chat/threads/{chatThreadId}/members"].post.parameters[2] - transform: > - if ($.schema && $.schema.$ref && $.schema.$ref.endsWith("AddChatThreadMembersRequest")) { - const path = $.schema.$ref.replace(/[#].*$/, "#/definitions/AddChatThreadMembersOptions"); - $.schema = { "$ref": path }; - } -``` ### Rename PhoneNumberSearch to PhoneNumberReservation @@ -102,8 +91,6 @@ directive: to: CreateReservationResponse ``` - - ### Code generation settings ``` yaml