From 2c0aa4e6d03837cf30383a2ab9e5af2cf7631cf9 Mon Sep 17 00:00:00 2001 From: Jorge Beauregard Date: Tue, 27 Oct 2020 12:34:04 -0600 Subject: [PATCH 1/5] Fixed response types --- .../README.md | 8 +- .../PhoneNumberAsyncClient.java | 36 ++- .../administration/PhoneNumberClient.java | 2 +- .../administration/ReadmeSamples.java | 6 +- ...PhoneNumberAsyncClientIntegrationTest.java | 15 +- .../session-records/beginPurchaseSearch.json | 280 ++++++++++++++++-- 6 files changed, 296 insertions(+), 51 deletions(-) diff --git a/sdk/communication/azure-communication-administration/README.md b/sdk/communication/azure-communication-administration/README.md index cac282cc4238..f17b8d439905 100644 --- a/sdk/communication/azure-communication-administration/README.md +++ b/sdk/communication/azure-communication-administration/README.md @@ -292,15 +292,19 @@ for (String phoneNumber: result.getPhoneNumbers()) { ``` ### Purchase Search - + ```java Duration duration = Duration.ofSeconds(1); String phoneNumberSearchId = "SEARCH_ID_TO_PURCHASE"; PhoneNumberClient phoneNumberClient = createPhoneNumberClient(); -SyncPoller res = +SyncPoller res = phoneNumberClient.beginPurchaseSearch(phoneNumberSearchId, duration); res.waitForCompletion(); +PhoneNumberSearch result = res.getFinalResult(); + +System.out.println("Search Id: " + result.getSearchId()); +System.out.println("Purchase status: " + result.getStatus()); ``` ## Contributing 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..d9bb4a81cd80 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 @@ -847,48 +847,52 @@ Mono> createSearchFetchResultOperation() { */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PollerFlux beginPurchaseSearch(String searchId, Duration pollInterval) { + 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 = Duration.ofSeconds(5); + } - return new PollerFlux(pollInterval, + return new PollerFlux(pollInterval, purchaseSearchActivationOperation(searchId), purchaseSearchPollOperation(searchId), (activationResponse, pollingContext) -> Mono.error(new RuntimeException("Cancellation is not supported")), purchaseSearchFetchResultOperation()); } - private Function, Mono> purchaseSearchActivationOperation(String searchId) { - + private Function, + Mono> purchaseSearchActivationOperation(String searchId) { return (pollingContext) -> { - Mono response = purchaseSearch(searchId); - return response; + Mono res = purchaseSearch(searchId).flatMap(agh -> { + return getSearchById(searchId); + }); + return res; }; } - private Function, Mono>> + private Function, Mono>> purchaseSearchPollOperation(String searchId) { return (pollingContext) -> getSearchById(searchId) .flatMap(getSearchResponse -> { SearchStatus statusResponse = getSearchResponse.getStatus(); - if (statusResponse.equals(SearchStatus.RESERVED) - || statusResponse.equals(SearchStatus.EXPIRED) + if (statusResponse.equals(SearchStatus.EXPIRED) || statusResponse.equals(SearchStatus.SUCCESS)) { return Mono.just(new PollResponse<>( - LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, null)); + LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, getSearchResponse)); } if (statusResponse.equals(SearchStatus.ERROR)) { return Mono.just(new PollResponse<>( - LongRunningOperationStatus.FAILED, null)); + LongRunningOperationStatus.FAILED, getSearchResponse)); } - return Mono.just(new PollResponse<>(LongRunningOperationStatus.IN_PROGRESS, null)); + return Mono.just(new PollResponse<>(LongRunningOperationStatus.IN_PROGRESS, getSearchResponse)); }); } - private Function, - Mono> purchaseSearchFetchResultOperation() { + private Function, + Mono> purchaseSearchFetchResultOperation() { return pollingContext -> { - return Mono.empty(); + return Mono.just(pollingContext.getLatestResponse().getValue()); }; } 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..eb4dae2d0b77 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 @@ -550,7 +550,7 @@ public SyncPoller beginCreateSearch( * @return A {@link SyncPoller} object with the search result */ @ServiceMethod(returns = ReturnType.COLLECTION) - public SyncPoller beginPurchaseSearch( + public SyncPoller beginPurchaseSearch( String searchId, Duration pollInterval) { return phoneNumberAsyncClient.beginPurchaseSearch(searchId, pollInterval).getSyncPoller(); } 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..e2510036ab54 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 @@ -386,8 +386,12 @@ public void beginPurchaseSearch() { String phoneNumberSearchId = "SEARCH_ID_TO_PURCHASE"; PhoneNumberClient phoneNumberClient = createPhoneNumberClient(); - SyncPoller res = + SyncPoller res = phoneNumberClient.beginPurchaseSearch(phoneNumberSearchId, duration); res.waitForCompletion(); + PhoneNumberSearch result = res.getFinalResult(); + + System.out.println("Search Id: " + result.getSearchId()); + System.out.println("Purchase status: " + result.getStatus()); } } 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..b6cab643683c 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 @@ -531,15 +531,14 @@ public void beginCreateSearch(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") public void beginPurchaseSearch(HttpClient httpClient) { - Duration pollInterval = Duration.ofSeconds(5); - PollerFlux poller = + Duration pollInterval = Duration.ofSeconds(1); + 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) - .assertNext(item -> { - assertEquals(SearchStatus.SUCCESS, item.getStatus()); - }); + AsyncPollResponse asyncRes = + poller.takeUntil(apr -> apr.getStatus() == LongRunningOperationStatus.SUCCESSFULLY_COMPLETED). + blockLast(); + PhoneNumberSearch testResult = asyncRes.getValue(); + assertEquals(SearchStatus.SUCCESS, testResult.getStatus()); } private PhoneNumberAsyncClient getClient(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..93a4e36950d7 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,308 @@ { "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/6a45013b-0b75-4c05-bcc1-c5bad4109a36/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" : "869ms", + "MS-CV" : "EkFrlEjcF0SeljveDeYAjw.0", "retry-after" : "0", - "X-Azure-Ref" : "0JkSTXwAAAAB8Q1m7u3OCRq1/RROLlhWUREVOMDJFREdFMDMxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "00VuYXwAAAABTVpJY490DQKuJxIo/ZmgsREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "Content-Length" : "0", "StatusCode" : "202", - "Date" : "Fri, 23 Oct 2020 20:59:19 GMT" + "Date" : "Tue, 27 Oct 2020 17:41:38 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/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "269ms", + "MS-CV" : "RtCbIbH2PUyP0laYAcv0Xw.0", "retry-after" : "0", - "X-Azure-Ref" : "0LUSTXwAAAAD7XD/WlF8gRrJbSLhlKhCBREVOMDJFREdFMDMxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "01FuYXwAAAACdpjkGk8bNQLgnd9ArJ3aWREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "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\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", + "Date" : "Tue, 27 Oct 2020 17:41:40 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/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "GoILI/f7vUaW0OpWEfa8iw.0", "retry-after" : "0", - "X-Azure-Ref" : "0d0STXwAAAAA07DyMAbGbTpNahiG84FKcREVOMDJFREdFMDMxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "021uYXwAAAADK3KoekYphQKPso28mdZmTREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "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\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", + "Date" : "Tue, 27 Oct 2020 17:41:47 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/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "266ms", + "MS-CV" : "2FYz8/BNbESO5oon2gassw.0", + "retry-after" : "0", + "X-Azure-Ref" : "03VuYXwAAAAAwJneV6kUmSbQfHam0eip3REVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", + "Date" : "Tue, 27 Oct 2020 17:41:50 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "OY+6dF6Tc0igDpD3rBqC3w.0", + "retry-after" : "0", + "X-Azure-Ref" : "04VuYXwAAAABPIgUCWWcATr2WB7YKMDOSREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", + "Date" : "Tue, 27 Oct 2020 17:41:53 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "267ms", + "MS-CV" : "EP6ECWeoh0ScLsIq2Zn29Q.0", + "retry-after" : "0", + "X-Azure-Ref" : "05FuYXwAAAAA1KwvfvB0xSpobYWB9ilBLREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", + "Date" : "Tue, 27 Oct 2020 17:41:56 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "S/gOQL0uVUCS9RkhvRL6bw.0", + "retry-after" : "0", + "X-Azure-Ref" : "06FuYXwAAAADBqBMaRqJfS5K+Grx1tXgjREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", + "Date" : "Tue, 27 Oct 2020 17:42:00 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "277ms", + "MS-CV" : "XOG0e4CWskia9i085ITMZw.0", + "retry-after" : "0", + "X-Azure-Ref" : "061uYXwAAAADWBanmAO+lQZFcy51/9ILPREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", + "Date" : "Tue, 27 Oct 2020 17:42:03 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "IdBDjE8+CEiExXDcvGdOBw.0", + "retry-after" : "0", + "X-Azure-Ref" : "08FuYXwAAAAB47KT2NIsiQpK4XV9waZxWREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", + "Date" : "Tue, 27 Oct 2020 17:42:08 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "380ms", + "MS-CV" : "1i+uC1etpk+MFy7ysHDXPA.0", + "retry-after" : "0", + "X-Azure-Ref" : "081uYXwAAAACWQvyuAjMjT5kKUc8ivbISREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", + "Date" : "Tue, 27 Oct 2020 17:42:11 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "276ms", + "MS-CV" : "rBoXwdLx7US4OMlwel5ZYw.0", + "retry-after" : "0", + "X-Azure-Ref" : "09luYXwAAAAAGNeU1gtD8TbTps9R59oEgREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", + "Date" : "Tue, 27 Oct 2020 17:42:14 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "845ms", + "MS-CV" : "pG7kpC1ByEaMYKyjORg5Gg.0", + "retry-after" : "0", + "X-Azure-Ref" : "0+luYXwAAAAAWUUd3EZqNQL8t556rB9x2REVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", + "Date" : "Tue, 27 Oct 2020 17:42:19 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "307ms", + "MS-CV" : "2qiXwManhUSKAFjxXgG0WA.0", + "retry-after" : "0", + "X-Azure-Ref" : "0/1uYXwAAAABkATAtL2CnTbOjF7irHxAhREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", + "Date" : "Tue, 27 Oct 2020 17:42:23 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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", + "MS-CV" : "GACrnk6xPE+y0QCcoOIXtw.0", + "retry-after" : "0", + "X-Azure-Ref" : "0AlyYXwAAAADSt91KgW+WSLN7HrDuALLzREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", + "Date" : "Tue, 27 Oct 2020 17:42:26 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "271ms", + "MS-CV" : "eGeZ5c7gAkGXTmOh+huwCA.0", + "retry-after" : "0", + "X-Azure-Ref" : "0CVyYXwAAAACrzGLenBPuSqbEpvmxJYPaREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", + "Date" : "Tue, 27 Oct 2020 17:42:33 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "269ms", + "MS-CV" : "dpbn61q0xESUbBhbRq5X+Q.0", + "retry-after" : "0", + "X-Azure-Ref" : "0DFyYXwAAAAApyzouC0GbRYLFgpETAicrREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", + "Date" : "Tue, 27 Oct 2020 17:42:36 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "267ms", + "MS-CV" : "G/s0bnUXNUKwssy5SHGkaA.0", "retry-after" : "0", - "X-Azure-Ref" : "0mkSTXwAAAAAA/WDv5/iQTLnd3QTnAcN/REVOMDJFREdFMDMxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0HFyYXwAAAABq1qLggO5mQrZwdGFITuGHREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "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\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Success\",\"phoneNumbers\":[\"+12134592990\",\"+12134592989\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", + "Date" : "Tue, 27 Oct 2020 17:42:53 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null - }], + } ], "variables" : [ ] } \ No newline at end of file From 3fbde25606580ac4df4fe2a1c53562d426b52cfa Mon Sep 17 00:00:00 2001 From: Jorge Beauregard Date: Tue, 27 Oct 2020 13:46:33 -0600 Subject: [PATCH 2/5] Fixed EVERYTHING --- .../PhoneNumberAsyncClient.java | 5 +- ...PhoneNumberAsyncClientIntegrationTest.java | 7 +- .../session-records/beginPurchaseSearch.json | 344 +++++++++++++----- 3 files changed, 251 insertions(+), 105 deletions(-) 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 d9bb4a81cd80..b226abd0c754 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 @@ -847,10 +847,11 @@ Mono> createSearchFetchResultOperation() { */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PollerFlux beginPurchaseSearch(String searchId, Duration pollInterval) { + public PollerFlux beginPurchaseSearch(String searchId, Duration pollInterval) { Objects.requireNonNull(searchId, "'searchId' can not be null."); - if(pollInterval == null){ + if (pollInterval == null) { pollInterval = Duration.ofSeconds(5); } 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 b6cab643683c..f0208e92e0d2 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 @@ -532,11 +532,12 @@ public void beginCreateSearch(HttpClient httpClient) { @MethodSource("com.azure.core.test.TestBase#getHttpClients") public void beginPurchaseSearch(HttpClient httpClient) { Duration pollInterval = Duration.ofSeconds(1); + PhoneNumberAsyncClient client = this.getClient(httpClient); PollerFlux poller = - this.getClient(httpClient).beginPurchaseSearch(SEARCH_ID, pollInterval); + client.beginPurchaseSearch(SEARCH_ID, pollInterval); AsyncPollResponse asyncRes = - poller.takeUntil(apr -> apr.getStatus() == LongRunningOperationStatus.SUCCESSFULLY_COMPLETED). - blockLast(); + poller.takeUntil(apr -> apr.getStatus() == LongRunningOperationStatus.SUCCESSFULLY_COMPLETED) + .blockLast(); PhoneNumberSearch testResult = asyncRes.getValue(); assertEquals(SearchStatus.SUCCESS, testResult.getStatus()); } 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 93a4e36950d7..4c329d760ab5 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,305 +1,449 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36/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" : "869ms", - "MS-CV" : "EkFrlEjcF0SeljveDeYAjw.0", + "X-Processing-Time" : "1320ms", + "MS-CV" : "1BEG+5knVE6TABKctrBTsg.0", "retry-after" : "0", - "X-Azure-Ref" : "00VuYXwAAAABTVpJY490DQKuJxIo/ZmgsREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0onaYXwAAAADyIBDiTzfUS6opkKsdy3eeREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "Content-Length" : "0", "StatusCode" : "202", - "Date" : "Tue, 27 Oct 2020 17:41:38 GMT" + "Date" : "Tue, 27 Oct 2020 19:36:03 GMT" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "269ms", - "MS-CV" : "RtCbIbH2PUyP0laYAcv0Xw.0", + "X-Processing-Time" : "285ms", + "MS-CV" : "SUBiELwgek24o2uJoLtFBg.0", "retry-after" : "0", - "X-Azure-Ref" : "01FuYXwAAAACdpjkGk8bNQLgnd9ArJ3aWREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0pXaYXwAAAACClcEPCLaiR68KfturN7nQREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", - "Date" : "Tue, 27 Oct 2020 17:41:40 GMT", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36:04 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "276ms", - "MS-CV" : "GoILI/f7vUaW0OpWEfa8iw.0", + "X-Processing-Time" : "440ms", + "MS-CV" : "xGFsOG6wyUW4ZDIrBnyB8w.0", "retry-after" : "0", - "X-Azure-Ref" : "021uYXwAAAADK3KoekYphQKPso28mdZmTREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0pnaYXwAAAABmXc0yqpKxQ5OC3e86cfooREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", - "Date" : "Tue, 27 Oct 2020 17:41:47 GMT", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36:06 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "266ms", - "MS-CV" : "2FYz8/BNbESO5oon2gassw.0", + "X-Processing-Time" : "282ms", + "MS-CV" : "ClFW+htBI0i6QmGE5JNGTA.0", "retry-after" : "0", - "X-Azure-Ref" : "03VuYXwAAAAAwJneV6kUmSbQfHam0eip3REVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0qHaYXwAAAACyQ5J57QjCQ6ocTmBzOwg1REVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", - "Date" : "Tue, 27 Oct 2020 17:41:50 GMT", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36:07 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "311ms", - "MS-CV" : "OY+6dF6Tc0igDpD3rBqC3w.0", + "X-Processing-Time" : "319ms", + "MS-CV" : "sOpgzZJz1EWf+6+49hb1Wg.0", + "retry-after" : "0", + "X-Azure-Ref" : "0qXaYXwAAAACSS0hzs//DQrepGSXWZ58BREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36: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" : "287ms", + "MS-CV" : "s0xCREQaKkuwNhsHj2hxww.0", "retry-after" : "0", - "X-Azure-Ref" : "04VuYXwAAAABPIgUCWWcATr2WB7YKMDOSREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0qnaYXwAAAABJaHWWRUhFQpAiYyADw+dwREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", - "Date" : "Tue, 27 Oct 2020 17:41:53 GMT", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36:10 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "267ms", - "MS-CV" : "EP6ECWeoh0ScLsIq2Zn29Q.0", + "X-Processing-Time" : "286ms", + "MS-CV" : "q+uqKG0YKkCLptkB+yIEUQ.0", "retry-after" : "0", - "X-Azure-Ref" : "05FuYXwAAAAA1KwvfvB0xSpobYWB9ilBLREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0rHaYXwAAAACr2WsWH79pQK6Yp+3xl2DMREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", - "Date" : "Tue, 27 Oct 2020 17:41:56 GMT", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36:11 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "283ms", - "MS-CV" : "S/gOQL0uVUCS9RkhvRL6bw.0", + "X-Processing-Time" : "279ms", + "MS-CV" : "3/iT3pdLHUqAVKqNSbr7/A.0", + "retry-after" : "0", + "X-Azure-Ref" : "0rXaYXwAAAAA4kGFBFScuRYb/x+nHA0PmREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36: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" : "307ms", + "MS-CV" : "vLX9vJfE8kGwvr1PcqSiNg.0", "retry-after" : "0", - "X-Azure-Ref" : "06FuYXwAAAADBqBMaRqJfS5K+Grx1tXgjREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0rnaYXwAAAADx1orJZb6zSb9WzfEI7/pjREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", - "Date" : "Tue, 27 Oct 2020 17:42:00 GMT", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36:14 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "277ms", - "MS-CV" : "XOG0e4CWskia9i085ITMZw.0", + "X-Processing-Time" : "279ms", + "MS-CV" : "3ukT0Imm3UqOtv+TtgRH7w.0", "retry-after" : "0", - "X-Azure-Ref" : "061uYXwAAAADWBanmAO+lQZFcy51/9ILPREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0sHaYXwAAAACxAb1nHWCYTZb07gt9sPR0REVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", - "Date" : "Tue, 27 Oct 2020 17:42:03 GMT", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36:15 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "284ms", + "MS-CV" : "56aAnaqTiUyDF+mJVWP9Mw.0", + "retry-after" : "0", + "X-Azure-Ref" : "0sXaYXwAAAADIzRnLCkaTSr/N+SHf1mzhREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36: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" : "280ms", - "MS-CV" : "IdBDjE8+CEiExXDcvGdOBw.0", + "MS-CV" : "kNdGZ6Suj0u/g/C+bWfl6g.0", "retry-after" : "0", - "X-Azure-Ref" : "08FuYXwAAAAB47KT2NIsiQpK4XV9waZxWREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0snaYXwAAAAB4rxezeiqhTr9Wz8rZ88koREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", - "Date" : "Tue, 27 Oct 2020 17:42:08 GMT", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36:18 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "380ms", - "MS-CV" : "1i+uC1etpk+MFy7ysHDXPA.0", + "X-Processing-Time" : "271ms", + "MS-CV" : "QOGYZ8nndkuloJcJKrcBCQ.0", "retry-after" : "0", - "X-Azure-Ref" : "081uYXwAAAACWQvyuAjMjT5kKUc8ivbISREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0tHaYXwAAAADpu0e0tPAiT41Ioc3BYrBrREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", - "Date" : "Tue, 27 Oct 2020 17:42:11 GMT", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36:19 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "276ms", - "MS-CV" : "rBoXwdLx7US4OMlwel5ZYw.0", + "X-Processing-Time" : "319ms", + "MS-CV" : "Hs/SqOEXl0SaePe/NuxiDA.0", "retry-after" : "0", - "X-Azure-Ref" : "09luYXwAAAAAGNeU1gtD8TbTps9R59oEgREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0tXaYXwAAAACm6OewOodUSY/efZWZjqOaREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", - "Date" : "Tue, 27 Oct 2020 17:42:14 GMT", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36:21 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "845ms", - "MS-CV" : "pG7kpC1ByEaMYKyjORg5Gg.0", + "X-Processing-Time" : "306ms", + "MS-CV" : "dVqWiJsPTUina2C6/KfDRw.0", "retry-after" : "0", - "X-Azure-Ref" : "0+luYXwAAAAAWUUd3EZqNQL8t556rB9x2REVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0t3aYXwAAAAAWXMfuOB5HTY9E1NfkghXyREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", - "Date" : "Tue, 27 Oct 2020 17:42:19 GMT", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36:22 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "307ms", - "MS-CV" : "2qiXwManhUSKAFjxXgG0WA.0", + "X-Processing-Time" : "311ms", + "MS-CV" : "nEtwhgIvPUCZsOutAAiyNw.0", "retry-after" : "0", - "X-Azure-Ref" : "0/1uYXwAAAABkATAtL2CnTbOjF7irHxAhREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0uHaYXwAAAADJXCvtHmPBQ7b3egGFrDSgREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", - "Date" : "Tue, 27 Oct 2020 17:42:23 GMT", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36:24 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "GACrnk6xPE+y0QCcoOIXtw.0", + "X-Processing-Time" : "598ms", + "MS-CV" : "iqyMRs+4j02ulnxvzLDr8Q.0", "retry-after" : "0", - "X-Azure-Ref" : "0AlyYXwAAAADSt91KgW+WSLN7HrDuALLzREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0uXaYXwAAAABuvcljGhDHRYY+ZeboZqK0REVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", - "Date" : "Tue, 27 Oct 2020 17:42:26 GMT", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36:25 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "271ms", - "MS-CV" : "eGeZ5c7gAkGXTmOh+huwCA.0", + "X-Processing-Time" : "278ms", + "MS-CV" : "KNWV/I+N10C7RpZOfWDniQ.0", + "retry-after" : "0", + "X-Azure-Ref" : "0u3aYXwAAAACcJK2RQ2dQQKreTHs8KqM3REVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36:27 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" : "302ms", + "MS-CV" : "tVvvUuT0J0SQALlyaxr1Fg.0", + "retry-after" : "0", + "X-Azure-Ref" : "0vHaYXwAAAACDQQ9F0UQTS7/zGJAtLD9vREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36: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" : "289ms", + "MS-CV" : "ezjjrq/HVk6arFubnVBO/w.0", + "retry-after" : "0", + "X-Azure-Ref" : "0vnaYXwAAAAC7JI7gIErbTKVsu1W+L97VREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36: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" : "415ms", + "MS-CV" : "S1rYMXZeREuq1kuXLRsNiA.0", + "retry-after" : "0", + "X-Azure-Ref" : "0v3aYXwAAAAB5xoDmXgDvR5KtfNnh1cvVREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36: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" : "289ms", + "MS-CV" : "dRyrCG6exE6bqIs5LZb98Q.0", + "retry-after" : "0", + "X-Azure-Ref" : "0wHaYXwAAAAAX1Fwc/MuDSZLJWIF+fcLYREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "StatusCode" : "200", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36: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" : "336ms", + "MS-CV" : "wDcm/7B3wEOtGnAw5IuHwQ.0", "retry-after" : "0", - "X-Azure-Ref" : "0CVyYXwAAAACrzGLenBPuSqbEpvmxJYPaREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0wnaYXwAAAAA+Yv7iM8DlRJ7Y47b9rp+nREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", - "Date" : "Tue, 27 Oct 2020 17:42:33 GMT", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36:33 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "269ms", - "MS-CV" : "dpbn61q0xESUbBhbRq5X+Q.0", + "X-Processing-Time" : "408ms", + "MS-CV" : "mPJw44hhdUaAJ0skKOJxFA.0", "retry-after" : "0", - "X-Azure-Ref" : "0DFyYXwAAAAApyzouC0GbRYLFgpETAicrREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0w3aYXwAAAADHyWtmItbwTa9JEsXZ1x6eREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12134592989\",\"+12134592990\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", - "Date" : "Tue, 27 Oct 2020 17:42:36 GMT", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36:35 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/6a45013b-0b75-4c05-bcc1-c5bad4109a36?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" : "267ms", - "MS-CV" : "G/s0bnUXNUKwssy5SHGkaA.0", + "X-Processing-Time" : "313ms", + "MS-CV" : "JS24/Ao2pk2FYrZLZkP0Qw.0", "retry-after" : "0", - "X-Azure-Ref" : "0HFyYXwAAAABq1qLggO5mQrZwdGFITuGHREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0xXaYXwAAAAC+Q/W/aX8bTpmQUxi/0K+UREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"6a45013b-0b75-4c05-bcc1-c5bad4109a36\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T17:38:43.3798894+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Success\",\"phoneNumbers\":[\"+12134592990\",\"+12134592989\"],\"reservationExpiryDate\":\"2020-10-27T17:54:49.7398089+00:00\"}", - "Date" : "Tue, 27 Oct 2020 17:42:53 GMT", + "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Success\",\"phoneNumbers\":[\"+12134592994\",\"+12133285934\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", + "Date" : "Tue, 27 Oct 2020 19:36:36 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null From b4eddb1cfdeda7cbd19351e576389fa73b3681ff Mon Sep 17 00:00:00 2001 From: Jorge Beauregard Date: Tue, 27 Oct 2020 16:56:04 -0600 Subject: [PATCH 3/5] Reverted to void --- .../README.md | 8 +- .../PhoneNumberAsyncClient.java | 34 +- .../administration/PhoneNumberClient.java | 2 +- .../administration/ReadmeSamples.java | 6 +- ...PhoneNumberAsyncClientIntegrationTest.java | 15 +- .../session-records/beginPurchaseSearch.json | 422 +++++++++++++----- 6 files changed, 329 insertions(+), 158 deletions(-) diff --git a/sdk/communication/azure-communication-administration/README.md b/sdk/communication/azure-communication-administration/README.md index f17b8d439905..cac282cc4238 100644 --- a/sdk/communication/azure-communication-administration/README.md +++ b/sdk/communication/azure-communication-administration/README.md @@ -292,19 +292,15 @@ for (String phoneNumber: result.getPhoneNumbers()) { ``` ### Purchase Search - + ```java Duration duration = Duration.ofSeconds(1); String phoneNumberSearchId = "SEARCH_ID_TO_PURCHASE"; PhoneNumberClient phoneNumberClient = createPhoneNumberClient(); -SyncPoller res = +SyncPoller res = phoneNumberClient.beginPurchaseSearch(phoneNumberSearchId, duration); res.waitForCompletion(); -PhoneNumberSearch result = res.getFinalResult(); - -System.out.println("Search Id: " + result.getSearchId()); -System.out.println("Purchase status: " + result.getStatus()); ``` ## Contributing 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 b226abd0c754..211773d00db2 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 @@ -847,53 +847,49 @@ Mono> createSearchFetchResultOperation() { */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PollerFlux beginPurchaseSearch(String searchId, Duration pollInterval) { + public PollerFlux beginPurchaseSearch(String searchId, Duration pollInterval) { Objects.requireNonNull(searchId, "'searchId' can not be null."); if (pollInterval == null) { pollInterval = Duration.ofSeconds(5); } - return new PollerFlux(pollInterval, + return new PollerFlux(pollInterval, purchaseSearchActivationOperation(searchId), purchaseSearchPollOperation(searchId), (activationResponse, pollingContext) -> Mono.error(new RuntimeException("Cancellation is not supported")), purchaseSearchFetchResultOperation()); } - private Function, - Mono> purchaseSearchActivationOperation(String searchId) { + private Function, + Mono> purchaseSearchActivationOperation(String searchId) { return (pollingContext) -> { - Mono res = purchaseSearch(searchId).flatMap(agh -> { - return getSearchById(searchId); - }); - return res; + return purchaseSearch(searchId); }; } - private Function, Mono>> + private Function, Mono>> purchaseSearchPollOperation(String searchId) { return (pollingContext) -> getSearchById(searchId) .flatMap(getSearchResponse -> { SearchStatus statusResponse = getSearchResponse.getStatus(); - if (statusResponse.equals(SearchStatus.EXPIRED) - || statusResponse.equals(SearchStatus.SUCCESS)) { + if (statusResponse.equals(SearchStatus.SUCCESS)) { return Mono.just(new PollResponse<>( - LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, getSearchResponse)); + 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, getSearchResponse)); + LongRunningOperationStatus.FAILED, null)); } - return Mono.just(new PollResponse<>(LongRunningOperationStatus.IN_PROGRESS, getSearchResponse)); + return Mono.just(new PollResponse<>(LongRunningOperationStatus.IN_PROGRESS, null)); }); } - private Function, - Mono> purchaseSearchFetchResultOperation() { + private Function, + Mono> purchaseSearchFetchResultOperation() { return pollingContext -> { - return Mono.just(pollingContext.getLatestResponse().getValue()); + 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 eb4dae2d0b77..a68a74937bdc 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 @@ -550,7 +550,7 @@ public SyncPoller beginCreateSearch( * @return A {@link SyncPoller} object with the search result */ @ServiceMethod(returns = ReturnType.COLLECTION) - public SyncPoller beginPurchaseSearch( + public SyncPoller beginPurchaseSearch( String searchId, Duration pollInterval) { return phoneNumberAsyncClient.beginPurchaseSearch(searchId, pollInterval).getSyncPoller(); } 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 e2510036ab54..977c196baca9 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 @@ -386,12 +386,8 @@ public void beginPurchaseSearch() { String phoneNumberSearchId = "SEARCH_ID_TO_PURCHASE"; PhoneNumberClient phoneNumberClient = createPhoneNumberClient(); - SyncPoller res = + SyncPoller res = phoneNumberClient.beginPurchaseSearch(phoneNumberSearchId, duration); res.waitForCompletion(); - PhoneNumberSearch result = res.getFinalResult(); - - System.out.println("Search Id: " + result.getSearchId()); - System.out.println("Purchase status: " + result.getStatus()); } } 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 f0208e92e0d2..212e67f86244 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 @@ -533,13 +533,16 @@ public void beginCreateSearch(HttpClient httpClient) { public void beginPurchaseSearch(HttpClient httpClient) { Duration pollInterval = Duration.ofSeconds(1); PhoneNumberAsyncClient client = this.getClient(httpClient); - PollerFlux poller = - client.beginPurchaseSearch(SEARCH_ID, pollInterval); - AsyncPollResponse asyncRes = - poller.takeUntil(apr -> apr.getStatus() == LongRunningOperationStatus.SUCCESSFULLY_COMPLETED) + PollerFlux poller = + client.beginPurchaseSearch(SEARCH_ID, pollInterval); + poller.takeUntil(apr -> apr.getStatus() == LongRunningOperationStatus.SUCCESSFULLY_COMPLETED) .blockLast(); - PhoneNumberSearch testResult = asyncRes.getValue(); - assertEquals(SearchStatus.SUCCESS, testResult.getStatus()); + 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/resources/session-records/beginPurchaseSearch.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/beginPurchaseSearch.json index 4c329d760ab5..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 @@ -6,13 +6,13 @@ "User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)" }, "Response" : { - "X-Processing-Time" : "1320ms", - "MS-CV" : "1BEG+5knVE6TABKctrBTsg.0", + "X-Processing-Time" : "1454ms", + "MS-CV" : "Mv4PBSLGnkOjMDD2/7UnfQ.0", "retry-after" : "0", - "X-Azure-Ref" : "0onaYXwAAAADyIBDiTzfUS6opkKsdy3eeREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "016OYXwAAAAD+h+uEJ+K6QI1JRVRcsKrxREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "Content-Length" : "0", "StatusCode" : "202", - "Date" : "Tue, 27 Oct 2020 19:36:03 GMT" + "Date" : "Tue, 27 Oct 2020 22:48:57 GMT" }, "Exception" : null }, { @@ -23,13 +23,13 @@ }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "285ms", - "MS-CV" : "SUBiELwgek24o2uJoLtFBg.0", + "X-Processing-Time" : "358ms", + "MS-CV" : "mQ4/m0i5I0aERWi+F6kbPA.0", "retry-after" : "0", - "X-Azure-Ref" : "0pXaYXwAAAACClcEPCLaiR68KfturN7nQREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "02qOYXwAAAACj4Om3krHfQaMHILLESNEfREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36:04 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 @@ -41,13 +41,13 @@ }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "440ms", - "MS-CV" : "xGFsOG6wyUW4ZDIrBnyB8w.0", + "X-Processing-Time" : "276ms", + "MS-CV" : "fglR9kKwskihil18D0RbXw.0", "retry-after" : "0", - "X-Azure-Ref" : "0pnaYXwAAAABmXc0yqpKxQ5OC3e86cfooREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "03KOYXwAAAAClBcLkVYRgRKK5u1u9hROSREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36:06 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 @@ -59,13 +59,13 @@ }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "282ms", - "MS-CV" : "ClFW+htBI0i6QmGE5JNGTA.0", + "X-Processing-Time" : "453ms", + "MS-CV" : "RMMWm4Bp4U6OQ+b1duSeRA.0", "retry-after" : "0", - "X-Azure-Ref" : "0qHaYXwAAAACyQ5J57QjCQ6ocTmBzOwg1REVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "03aOYXwAAAAAx+QjqIxgUTo7ViLgxaZpoREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36:07 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 @@ -77,13 +77,13 @@ }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "319ms", - "MS-CV" : "sOpgzZJz1EWf+6+49hb1Wg.0", + "X-Processing-Time" : "289ms", + "MS-CV" : "fcDWL3hAHEKRiPHZcu0zog.0", "retry-after" : "0", - "X-Azure-Ref" : "0qXaYXwAAAACSS0hzs//DQrepGSXWZ58BREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "036OYXwAAAAAGI5ktzTzTQ7KxE5pc3htmREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Completing\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36:09 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:03 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null @@ -95,13 +95,31 @@ }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "287ms", - "MS-CV" : "s0xCREQaKkuwNhsHj2hxww.0", + "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" : "0qnaYXwAAAABJaHWWRUhFQpAiYyADw+dwREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "04aOYXwAAAACjoIzQO5l6SpNW1u9aJ7LSREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36:10 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:06 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null @@ -113,13 +131,13 @@ }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "286ms", - "MS-CV" : "q+uqKG0YKkCLptkB+yIEUQ.0", + "X-Processing-Time" : "477ms", + "MS-CV" : "oE4FXkMHwESr2kRSqv++3A.0", "retry-after" : "0", - "X-Azure-Ref" : "0rHaYXwAAAACr2WsWH79pQK6Yp+3xl2DMREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "046OYXwAAAACp/p2mwMhqSLHFgJj4+od1REVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36:11 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:07 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null @@ -131,13 +149,13 @@ }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "279ms", - "MS-CV" : "3/iT3pdLHUqAVKqNSbr7/A.0", + "X-Processing-Time" : "280ms", + "MS-CV" : "AtLP4YeKEEK/iiHUTZaTNA.0", "retry-after" : "0", - "X-Azure-Ref" : "0rXaYXwAAAAA4kGFBFScuRYb/x+nHA0PmREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "05aOYXwAAAABQQ3MyYOpjT6064KD0IM3RREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36:13 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:09 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null @@ -149,13 +167,13 @@ }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "307ms", - "MS-CV" : "vLX9vJfE8kGwvr1PcqSiNg.0", + "X-Processing-Time" : "374ms", + "MS-CV" : "lNfyVZ2Npk60JlQC27cxBA.0", "retry-after" : "0", - "X-Azure-Ref" : "0rnaYXwAAAADx1orJZb6zSb9WzfEI7/pjREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "05qOYXwAAAAD7sRA7/+96R5hgGhHx/l6WREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36: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:10 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null @@ -167,13 +185,31 @@ }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "279ms", - "MS-CV" : "3ukT0Imm3UqOtv+TtgRH7w.0", + "X-Processing-Time" : "296ms", + "MS-CV" : "pP/QPoO/y0GEAiAvlykrDA.0", "retry-after" : "0", - "X-Azure-Ref" : "0sHaYXwAAAACxAb1nHWCYTZb07gt9sPR0REVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "056OYXwAAAADRBlWI2CR9SbSedKBTGTtbREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36:15 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: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 @@ -186,12 +222,12 @@ "Response" : { "Transfer-Encoding" : "chunked", "X-Processing-Time" : "284ms", - "MS-CV" : "56aAnaqTiUyDF+mJVWP9Mw.0", + "MS-CV" : "K+Ltgh1E1kiyqiWWRe0S3Q.0", "retry-after" : "0", - "X-Azure-Ref" : "0sXaYXwAAAADIzRnLCkaTSr/N+SHf1mzhREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "06qOYXwAAAACy6bWKoeI3Ta5oOWTMJIjkREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36:17 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\":\"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 @@ -203,13 +239,13 @@ }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "280ms", - "MS-CV" : "kNdGZ6Suj0u/g/C+bWfl6g.0", + "X-Processing-Time" : "331ms", + "MS-CV" : "rycjNJPLzEWM2RBV3fFv3w.0", "retry-after" : "0", - "X-Azure-Ref" : "0snaYXwAAAAB4rxezeiqhTr9Wz8rZ88koREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "07KOYXwAAAAAx31k3PK4kQarpRlY7e8cAREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36:18 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\":\"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 @@ -221,13 +257,13 @@ }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "271ms", - "MS-CV" : "QOGYZ8nndkuloJcJKrcBCQ.0", + "X-Processing-Time" : "385ms", + "MS-CV" : "ZuXr4HIFtE6UWGR/3411Vw.0", "retry-after" : "0", - "X-Azure-Ref" : "0tHaYXwAAAADpu0e0tPAiT41Ioc3BYrBrREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "07aOYXwAAAAA9An47am1kRY45e5a6mHZUREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36:19 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\":\"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 @@ -239,13 +275,13 @@ }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "319ms", - "MS-CV" : "Hs/SqOEXl0SaePe/NuxiDA.0", + "X-Processing-Time" : "355ms", + "MS-CV" : "Dluba6xMUkql/+F6Ci8xmw.0", "retry-after" : "0", - "X-Azure-Ref" : "0tXaYXwAAAACm6OewOodUSY/efZWZjqOaREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "076OYXwAAAAAUXgawLg4uRKMl8KGahmcjREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36:21 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\":\"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 @@ -257,13 +293,13 @@ }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "306ms", - "MS-CV" : "dVqWiJsPTUina2C6/KfDRw.0", + "X-Processing-Time" : "288ms", + "MS-CV" : "JWrM5b6I+EWNV1wGbFPjvA.0", "retry-after" : "0", - "X-Azure-Ref" : "0t3aYXwAAAAAWXMfuOB5HTY9E1NfkghXyREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "08KOYXwAAAAC6aOlT+nenQYIWbED2zexLREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36:22 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\":\"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 @@ -275,13 +311,13 @@ }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "311ms", - "MS-CV" : "nEtwhgIvPUCZsOutAAiyNw.0", + "X-Processing-Time" : "387ms", + "MS-CV" : "bxceYgePg0exXvxbSc2FUg.0", "retry-after" : "0", - "X-Azure-Ref" : "0uHaYXwAAAADJXCvtHmPBQ7b3egGFrDSgREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "08aOYXwAAAAC8RcpEINaaTowSfXzODF3fREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36: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\":\"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 @@ -293,13 +329,13 @@ }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "598ms", - "MS-CV" : "iqyMRs+4j02ulnxvzLDr8Q.0", + "X-Processing-Time" : "567ms", + "MS-CV" : "ZJeAPruvuUOB2ewat2CZbA.0", "retry-after" : "0", - "X-Azure-Ref" : "0uXaYXwAAAABuvcljGhDHRYY+ZeboZqK0REVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "086OYXwAAAAD1tXRlXcfmRqZ+Fgn6oR/2REVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36:25 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\":\"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 @@ -311,13 +347,13 @@ }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "278ms", - "MS-CV" : "KNWV/I+N10C7RpZOfWDniQ.0", + "X-Processing-Time" : "297ms", + "MS-CV" : "mfKe2XJxREiHXjbIgFN1CA.0", "retry-after" : "0", - "X-Azure-Ref" : "0u3aYXwAAAACcJK2RQ2dQQKreTHs8KqM3REVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "09aOYXwAAAAD0a4oVUJfbQriz6b4c1Pc9REVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36:27 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\":\"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 @@ -329,13 +365,13 @@ }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "302ms", - "MS-CV" : "tVvvUuT0J0SQALlyaxr1Fg.0", + "X-Processing-Time" : "287ms", + "MS-CV" : "fdFrbWdSp0SM0ZYY6oZ59g.0", "retry-after" : "0", - "X-Azure-Ref" : "0vHaYXwAAAACDQQ9F0UQTS7/zGJAtLD9vREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "09qOYXwAAAACePbt4kWOySbER6FR6xITGREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36:28 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\":\"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 @@ -348,12 +384,30 @@ "Response" : { "Transfer-Encoding" : "chunked", "X-Processing-Time" : "289ms", - "MS-CV" : "ezjjrq/HVk6arFubnVBO/w.0", + "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" : "0vnaYXwAAAAC7JI7gIErbTKVsu1W+L97VREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0+aOYXwAAAABHUS6vAcF3QauWD0FRHjtMREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36:29 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\":\"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 @@ -365,13 +419,103 @@ }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "415ms", - "MS-CV" : "S1rYMXZeREuq1kuXLRsNiA.0", + "X-Processing-Time" : "581ms", + "MS-CV" : "CawDI5+pD0CjKTxwNFXP9w.0", "retry-after" : "0", - "X-Azure-Ref" : "0v3aYXwAAAAB5xoDmXgDvR5KtfNnh1cvVREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0+qOYXwAAAAAGSqPib7moTpFDw8vkDNlyREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36:31 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\":\"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 @@ -384,12 +528,48 @@ "Response" : { "Transfer-Encoding" : "chunked", "X-Processing-Time" : "289ms", - "MS-CV" : "dRyrCG6exE6bqIs5LZb98Q.0", + "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" : "0wHaYXwAAAAAX1Fwc/MuDSZLJWIF+fcLYREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0BqSYXwAAAABl6+cFTONoTIduG7Qvs1oxREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36:32 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\":\"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 @@ -401,13 +581,13 @@ }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "336ms", - "MS-CV" : "wDcm/7B3wEOtGnAw5IuHwQ.0", + "X-Processing-Time" : "485ms", + "MS-CV" : "lGBXxkaT9UqcWoZGNF9Ppg.0", "retry-after" : "0", - "X-Azure-Ref" : "0wnaYXwAAAAA+Yv7iM8DlRJ7Y47b9rp+nREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0CKSYXwAAAAD+KGRZOXTyQpKzCBumEA3QREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36:33 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\":\"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 @@ -419,13 +599,13 @@ }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "408ms", - "MS-CV" : "mPJw44hhdUaAJ0skKOJxFA.0", + "X-Processing-Time" : "283ms", + "MS-CV" : "YpMfVudN70KVIVGWJL7R/A.0", "retry-after" : "0", - "X-Azure-Ref" : "0w3aYXwAAAADHyWtmItbwTa9JEsXZ1x6eREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0CaSYXwAAAACV4jyJ0GWtR4xjVTRJ7I0IREVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"PurchasePending\",\"phoneNumbers\":[\"+12133285934\",\"+12134592994\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36:35 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\":\"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 @@ -437,13 +617,13 @@ }, "Response" : { "Transfer-Encoding" : "chunked", - "X-Processing-Time" : "313ms", - "MS-CV" : "JS24/Ao2pk2FYrZLZkP0Qw.0", + "X-Processing-Time" : "297ms", + "MS-CV" : "cLWeHx7HY0arBKOchFl0cQ.0", "retry-after" : "0", - "X-Azure-Ref" : "0xXaYXwAAAAC+Q/W/aX8bTpmQUxi/0K+UREVOMDJFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0CqSYXwAAAADOI7TnDoXMRbSGoZR4qkr8REVOMDJFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"searchId\":\"search-id-1\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-27T19:35:16.9674624+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"01432411-5169-4665-b13e-3fa56c10e1d1\"],\"areaCode\":\"213\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Success\",\"phoneNumbers\":[\"+12134592994\",\"+12133285934\"],\"reservationExpiryDate\":\"2020-10-27T19:51:23.9214272+00:00\"}", - "Date" : "Tue, 27 Oct 2020 19:36:36 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\":\"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 From 335c7fd4deabf0709567be2fd87acd788ca70ceb Mon Sep 17 00:00:00 2001 From: Jorge Beauregard Date: Tue, 27 Oct 2020 17:10:04 -0600 Subject: [PATCH 4/5] Added default poll interval constant --- .../administration/PhoneNumberAsyncClient.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 211773d00db2..6cb580e5cd66 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(); @@ -779,7 +780,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(), @@ -851,7 +856,7 @@ public PollerFlux beginPurchaseSearch(String searchId, Duration poll Objects.requireNonNull(searchId, "'searchId' can not be null."); if (pollInterval == null) { - pollInterval = Duration.ofSeconds(5); + pollInterval = defaultPollInterval; } return new PollerFlux(pollInterval, From 10c94d54b61bd57d9fca90f7e17fe24b6e45eb59 Mon Sep 17 00:00:00 2001 From: Jorge Beauregard Date: Wed, 28 Oct 2020 09:23:29 -0600 Subject: [PATCH 5/5] Purchase methods are now private --- .../README.md | 15 +++---------- .../PhoneNumberAsyncClient.java | 8 +++---- .../administration/PhoneNumberClient.java | 22 ------------------- .../administration/ReadmeSamples.java | 9 -------- ...PhoneNumberAsyncClientIntegrationTest.java | 20 ----------------- .../PhoneNumberClientIntegrationTest.java | 14 ------------ .../session-records/purchaseSearch.json | 20 ----------------- .../purchaseSearchWithResponse.json | 20 ----------------- 8 files changed, 6 insertions(+), 122 deletions(-) delete mode 100644 sdk/communication/azure-communication-administration/src/test/resources/session-records/purchaseSearch.json delete mode 100644 sdk/communication/azure-communication-administration/src/test/resources/session-records/purchaseSearchWithResponse.json 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 6cb580e5cd66..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 @@ -736,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); } @@ -747,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 { 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 212e67f86244..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) { 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/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" : [ ] -}