diff --git a/sdk/communication/azure-communication-administration/README.md b/sdk/communication/azure-communication-administration/README.md index cac282cc4238..2ab5821262f2 100644 --- a/sdk/communication/azure-communication-administration/README.md +++ b/sdk/communication/azure-communication-administration/README.md @@ -240,19 +240,10 @@ for (String areaCode } ``` -### Purchase Search - - -```java -PhoneNumberClient phoneNumberClient = createPhoneNumberClient(); -phoneNumberClient.purchaseSearch(phoneNumberSearchId); -``` - ### Configure Phone Number - + ```java -PhoneNumberClient phoneNumberClient = createPhoneNumberClient(); phoneNumberClient.configureNumber(phoneNumber, pstnConfiguration); ``` @@ -262,7 +253,7 @@ The Phone Number Client supports a variety of long running operations that allow ### Create Search - + ```java String phonePlanId = "PHONE_PLAN_ID"; @@ -292,7 +283,7 @@ for (String phoneNumber: result.getPhoneNumbers()) { ``` ### Purchase Search - + ```java Duration duration = Duration.ofSeconds(1); String phoneNumberSearchId = "SEARCH_ID_TO_PURCHASE"; 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 5cd243fa77d1..b85af46a83f6 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 @@ -62,6 +62,7 @@ public final class PhoneNumberAsyncClient { private final ClientLogger logger = new ClientLogger(PhoneNumberAsyncClient.class); private final PhoneNumberAdministrationsImpl phoneNumberAdministrations; + private final Duration defaultPollInterval = Duration.ofSeconds(1); PhoneNumberAsyncClient(PhoneNumberAdminClientImpl phoneNumberAdminClient) { this.phoneNumberAdministrations = phoneNumberAdminClient.getPhoneNumberAdministrations(); @@ -735,8 +736,7 @@ Mono> cancelSearchWithResponse(String searchId, Context context) * @param searchId ID of the search * @return A {@link Mono} for the asynchronous return */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono purchaseSearch(String searchId) { + private Mono purchaseSearch(String searchId) { return purchaseSearchWithResponse(searchId).flatMap(FluxUtil::toMono); } @@ -746,12 +746,11 @@ public Mono purchaseSearch(String searchId) { * @param searchId ID of the search * @return A {@link Mono} containing a {@link Response} for the operation */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> purchaseSearchWithResponse(String searchId) { + private Mono> purchaseSearchWithResponse(String searchId) { return purchaseSearchWithResponse(searchId, null); } - Mono> purchaseSearchWithResponse(String searchId, Context context) { + private Mono> purchaseSearchWithResponse(String searchId, Context context) { Objects.requireNonNull(searchId, "'searchId' cannot be null."); try { @@ -779,7 +778,11 @@ Mono> purchaseSearchWithResponse(String searchId, Context context public PollerFlux beginCreateSearch( CreateSearchOptions options, Duration pollInterval) { Objects.requireNonNull(options, "'options' cannot be null."); - Objects.requireNonNull(pollInterval, "'pollInterval' cannot be null."); + + if (pollInterval == null) { + pollInterval = defaultPollInterval; + } + return new PollerFlux(pollInterval, createSearchActivationOperation(options), createSearchPollOperation(), @@ -849,7 +852,10 @@ Mono> createSearchFetchResultOperation() { @ServiceMethod(returns = ReturnType.COLLECTION) public PollerFlux beginPurchaseSearch(String searchId, Duration pollInterval) { Objects.requireNonNull(searchId, "'searchId' can not be null."); - Objects.requireNonNull(pollInterval, "'pollInterval' can not be null."); + + if (pollInterval == null) { + pollInterval = defaultPollInterval; + } return new PollerFlux(pollInterval, purchaseSearchActivationOperation(searchId), @@ -858,11 +864,10 @@ public PollerFlux beginPurchaseSearch(String searchId, Duration poll purchaseSearchFetchResultOperation()); } - private Function, Mono> purchaseSearchActivationOperation(String searchId) { - + private Function, + Mono> purchaseSearchActivationOperation(String searchId) { return (pollingContext) -> { - Mono response = purchaseSearch(searchId); - return response; + return purchaseSearch(searchId); }; } @@ -871,13 +876,12 @@ private Function, Mono> purchaseSearchActivationOpera return (pollingContext) -> getSearchById(searchId) .flatMap(getSearchResponse -> { SearchStatus statusResponse = getSearchResponse.getStatus(); - if (statusResponse.equals(SearchStatus.RESERVED) - || statusResponse.equals(SearchStatus.EXPIRED) - || statusResponse.equals(SearchStatus.SUCCESS)) { + if (statusResponse.equals(SearchStatus.SUCCESS)) { 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)); } 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 a68a74937bdc..2ddb1cc50d93 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 @@ -503,28 +503,6 @@ public Response cancelSearchWithResponse(String searchId, Context context) return phoneNumberAsyncClient.cancelSearchWithResponse(searchId, context).block(); } - /** - * Purchases the phone number search. - * - * @param searchId ID of the search - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void purchaseSearch(String searchId) { - phoneNumberAsyncClient.purchaseSearch(searchId).block(); - } - - /** - * Purchases the phone number search. - * - * @param searchId ID of the search - * @param context A {@link Context} representing the request context. - * @return A {@link Response} for the operation - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response purchaseSearchWithResponse(String searchId, Context context) { - return phoneNumberAsyncClient.purchaseSearchWithResponse(searchId, context).block(); - } - /** * Initiates a search and returns a {@link PhoneNumberSearch} usable by other functions * This function returns a Long Running Operation poller. 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 977c196baca9..1769ea548668 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 @@ -326,15 +326,6 @@ public PhoneNumberSearch createPhoneNumberSearch() { return phoneNumberSearch; } - /** - * Sample code to purchase a phone number search - */ - public void purchasePhoneNumberSearch() { - String phoneNumberSearchId = "SEARCH_ID_TO_PURCHASE"; - PhoneNumberClient phoneNumberClient = createPhoneNumberClient(); - phoneNumberClient.purchaseSearch(phoneNumberSearchId); - } - /** * Sample code to configure a phone number */ 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 abff9de75f87..72ff8cf37012 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 @@ -346,26 +346,6 @@ public void getSearchByIdWithResponse(HttpClient httpClient) { .verifyComplete(); } - @ParameterizedTest - @MethodSource("com.azure.core.test.TestBase#getHttpClients") - public void purchaseSearch(HttpClient httpClient) { - Mono mono = this.getClient(httpClient).purchaseSearch(SEARCH_ID_TO_PURCHASE); - - StepVerifier.create(mono).verifyComplete(); - } - - @ParameterizedTest - @MethodSource("com.azure.core.test.TestBase#getHttpClients") - public void purchaseSearchWithResponse(HttpClient httpClient) { - Mono> mono = this.getClient(httpClient).purchaseSearchWithResponse(SEARCH_ID_TO_PURCHASE, Context.NONE); - - StepVerifier.create(mono) - .assertNext(item -> { - assertEquals(202, item.getStatusCode()); - }) - .verifyComplete(); - } - @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") public void cancelSearch(HttpClient httpClient) { @@ -531,15 +511,18 @@ public void beginCreateSearch(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") public void beginPurchaseSearch(HttpClient httpClient) { - Duration pollInterval = Duration.ofSeconds(5); + Duration pollInterval = Duration.ofSeconds(1); + PhoneNumberAsyncClient client = this.getClient(httpClient); PollerFlux poller = - this.getClient(httpClient).beginPurchaseSearch(SEARCH_ID, pollInterval); - poller.takeUntil(apr -> apr.getStatus() == LongRunningOperationStatus.SUCCESSFULLY_COMPLETED); - Mono mono = this.getClient(httpClient).getSearchById(SEARCH_ID); - StepVerifier.create(mono) + client.beginPurchaseSearch(SEARCH_ID, pollInterval); + poller.takeUntil(apr -> apr.getStatus() == LongRunningOperationStatus.SUCCESSFULLY_COMPLETED) + .blockLast(); + Mono testResult = client.getSearchById(SEARCH_ID); + StepVerifier.create(testResult) .assertNext(item -> { assertEquals(SearchStatus.SUCCESS, item.getStatus()); - }); + }) + .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 431596e253cc..cf240700853c 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 @@ -254,20 +254,6 @@ public void getSearchByIdWithResponse(HttpClient httpClient) { assertEquals(SEARCH_ID, response.getValue().getSearchId()); } - @ParameterizedTest - @MethodSource("com.azure.core.test.TestBase#getHttpClients") - public void purchaseSearch(HttpClient httpClient) { - this.getClient(httpClient).purchaseSearch(SEARCH_ID_TO_PURCHASE); - } - - @ParameterizedTest - @MethodSource("com.azure.core.test.TestBase#getHttpClients") - public void purchaseSearchWithResponse(HttpClient httpClient) { - Response response = this.getClient(httpClient).purchaseSearchWithResponse(SEARCH_ID_TO_PURCHASE, Context.NONE); - - assertEquals(202, response.getStatusCode()); - } - @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") public void cancelSearch(HttpClient httpClient) { 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/beginPurchaseSearch.json index 3c9d93de76b0..67f66e73e9f4 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/beginPurchaseSearch.json @@ -1,74 +1,632 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/b78f406a-38c1-4cf1-af93-983d4d6bd166/purchase?api-version=2020-07-20-preview1", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-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)" }, "Response" : { - "X-Processing-Time" : "979ms", - "MS-CV" : "tD5R80A6i0OfVkWF18F0JQ.0", + "X-Processing-Time" : "1454ms", + "MS-CV" : "Mv4PBSLGnkOjMDD2/7UnfQ.0", "retry-after" : "0", - "X-Azure-Ref" : "0JkSTXwAAAAB8Q1m7u3OCRq1/RROLlhWUREVOMDJFREdFMDMxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "016OYXwAAAAD+h+uEJ+K6QI1JRVRcsKrxREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "Content-Length" : "0", "StatusCode" : "202", - "Date" : "Fri, 23 Oct 2020 20:59:19 GMT" + "Date" : "Tue, 27 Oct 2020 22:48:57 GMT" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/b78f406a-38c1-4cf1-af93-983d4d6bd166?api-version=2020-07-20-preview1", + "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.3 (11.0.8; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "265ms", - "MS-CV" : "emj4hxqTM0+d66L3++hheg.0", + "X-Processing-Time" : "358ms", + "MS-CV" : "mQ4/m0i5I0aERWi+F6kbPA.0", "retry-after" : "0", - "X-Azure-Ref" : "0LUSTXwAAAAD7XD/WlF8gRrJbSLhlKhCBREVOMDJFREdFMDMxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "02qOYXwAAAACj4Om3krHfQaMHILLESNEfREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"b78f406a-38c1-4cf1-af93-983d4d6bd166\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-23T20:57:02.0409712+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134389285\",\"+12134389405\"],\"reservationExpiryDate\":\"2020-10-23T21:13:29.7369346+00:00\"}", - "Date" : "Fri, 23 Oct 2020 20:59:24 GMT", + "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\"}", + "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/b78f406a-38c1-4cf1-af93-983d4d6bd166?api-version=2020-07-20-preview1", + "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.3 (11.0.8; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "2890ms", - "MS-CV" : "wTgcfgHMa0G4LwWZSVy8zQ.0", + "X-Processing-Time" : "276ms", + "MS-CV" : "fglR9kKwskihil18D0RbXw.0", "retry-after" : "0", - "X-Azure-Ref" : "0d0STXwAAAAA07DyMAbGbTpNahiG84FKcREVOMDJFREdFMDMxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "03KOYXwAAAAClBcLkVYRgRKK5u1u9hROSREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"b78f406a-38c1-4cf1-af93-983d4d6bd166\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-23T20:57:02.0409712+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134389285\",\"+12134389405\"],\"reservationExpiryDate\":\"2020-10-23T21:13:29.7369346+00:00\"}", - "Date" : "Fri, 23 Oct 2020 21:00:41 GMT", + "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\"}", + "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/b78f406a-38c1-4cf1-af93-983d4d6bd166?api-version=2020-07-20-preview1", + "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.3 (11.0.8; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "263ms", - "MS-CV" : "Ru1s65E59kO2sqi005DbGA.0", + "X-Processing-Time" : "453ms", + "MS-CV" : "RMMWm4Bp4U6OQ+b1duSeRA.0", "retry-after" : "0", - "X-Azure-Ref" : "0mkSTXwAAAAAA/WDv5/iQTLnd3QTnAcN/REVOMDJFREdFMDMxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "03aOYXwAAAAAx+QjqIxgUTo7ViLgxaZpoREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"b78f406a-38c1-4cf1-af93-983d4d6bd166\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-23T20:57:02.0409712+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Success\",\"phoneNumbers\":[\"+12134389285\",\"+12134389405\"],\"reservationExpiryDate\":\"2020-10-23T21:13:29.7369346+00:00\"}", - "Date" : "Fri, 23 Oct 2020 21:01:14 GMT", + "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\"}", + "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", + "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" : "289ms", + "MS-CV" : "fcDWL3hAHEKRiPHZcu0zog.0", + "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\"}", + "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", + "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" : "284ms", + "MS-CV" : "vHX2ABcmWUuupb4J6aEFyA.0", + "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\"}", + "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", + "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" : "272ms", + "MS-CV" : "cIA0/YZCYEGFOugymyOn6g.0", + "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\"}", + "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", + "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" : "477ms", + "MS-CV" : "oE4FXkMHwESr2kRSqv++3A.0", + "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\"}", + "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", + "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" : "280ms", + "MS-CV" : "AtLP4YeKEEK/iiHUTZaTNA.0", + "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\"}", + "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", + "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" : "374ms", + "MS-CV" : "lNfyVZ2Npk60JlQC27cxBA.0", + "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\"}", + "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", + "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" : "296ms", + "MS-CV" : "pP/QPoO/y0GEAiAvlykrDA.0", + "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\"}", + "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", + "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" : "301ms", + "MS-CV" : "N1ZuWxChFUKHyRLzsbBV/A.0", + "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\"}", + "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", + "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" : "284ms", + "MS-CV" : "K+Ltgh1E1kiyqiWWRe0S3Q.0", + "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\"}", + "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", + "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" : "331ms", + "MS-CV" : "rycjNJPLzEWM2RBV3fFv3w.0", + "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\"}", + "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", + "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" : "385ms", + "MS-CV" : "ZuXr4HIFtE6UWGR/3411Vw.0", + "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\"}", + "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", + "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" : "Dluba6xMUkql/+F6Ci8xmw.0", + "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\"}", + "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", + "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" : "288ms", + "MS-CV" : "JWrM5b6I+EWNV1wGbFPjvA.0", + "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\"}", + "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", + "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" : "387ms", + "MS-CV" : "bxceYgePg0exXvxbSc2FUg.0", + "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\"}", + "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", + "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" : "567ms", + "MS-CV" : "ZJeAPruvuUOB2ewat2CZbA.0", + "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\"}", + "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", + "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" : "297ms", + "MS-CV" : "mfKe2XJxREiHXjbIgFN1CA.0", + "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\"}", + "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", + "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" : "287ms", + "MS-CV" : "fdFrbWdSp0SM0ZYY6oZ59g.0", + "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\"}", + "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", + "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" : "289ms", + "MS-CV" : "ROt6Ep5gBEuFdvRWPe7a6g.0", + "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\"}", + "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", + "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" : "311ms", + "MS-CV" : "N6wduNYeRkOJ+iYnIuGQmQ.0", + "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\"}", + "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", + "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" : "581ms", + "MS-CV" : "CawDI5+pD0CjKTxwNFXP9w.0", + "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\"}", + "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", + "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" : "303ms", + "MS-CV" : "jDx5jMcGFk+/GrLytXUdFA.0", + "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\"}", + "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", + "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" : "417ms", + "MS-CV" : "1AmO4tp/Y06/ljh8ffWq7g.0", + "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\"}", + "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", + "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" : "297ms", + "MS-CV" : "58gUG3WMh0ev5xg8tkRTwg.0", + "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\"}", + "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", + "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" : "304ms", + "MS-CV" : "GMQgSDgc7UK6786GFOl4yw.0", + "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\"}", + "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", + "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" : "292ms", + "MS-CV" : "xxfrNAJdgEGQodsdghnsyg.0", + "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\"}", + "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", + "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" : "289ms", + "MS-CV" : "t9L5z/sEnky7d8xUwUCKbw.0", + "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\"}", + "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", + "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" : "287ms", + "MS-CV" : "0ZhUpZqO/0avEk3k6jyLig.0", + "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\"}", + "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", + "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" : "299ms", + "MS-CV" : "VGJSA8i69EyCrmWCt94nPQ.0", + "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\"}", + "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", + "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" : "485ms", + "MS-CV" : "lGBXxkaT9UqcWoZGNF9Ppg.0", + "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\"}", + "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", + "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" : "283ms", + "MS-CV" : "YpMfVudN70KVIVGWJL7R/A.0", + "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\"}", + "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", + "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" : "297ms", + "MS-CV" : "cLWeHx7HY0arBKOchFl0cQ.0", + "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\"}", + "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/purchaseSearch.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/purchaseSearch.json deleted file mode 100644 index fa9bd4d65a97..000000000000 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/purchaseSearch.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1/purchase?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" : "974ms", - "MS-CV" : "rT3oEz+mOEilM2AB8V1xBQ.0", - "retry-after" : "0", - "X-Azure-Ref" : "0VnxpXwAAAACIK2T71wNCR5nYacbgOG2/WVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Content-Length" : "0", - "StatusCode" : "202", - "Date" : "Tue, 22 Sep 2020 04:23:51 GMT" - }, - "Exception" : null - } ], - "variables" : [ ] -} \ No newline at end of file diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/purchaseSearchWithResponse.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/purchaseSearchWithResponse.json deleted file mode 100644 index 87d720af4e26..000000000000 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/purchaseSearchWithResponse.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/search-id-1/purchase?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" : "974ms", - "MS-CV" : "rT3oEz+mOEilM2AB8V1xBQ.0", - "retry-after" : "0", - "X-Azure-Ref" : "0VnxpXwAAAACIK2T71wNCR5nYacbgOG2/WVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Content-Length" : "0", - "StatusCode" : "202", - "Date" : "Tue, 22 Sep 2020 04:23:51 GMT" - }, - "Exception" : null - } ], - "variables" : [ ] -}