forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Communication - Added Phone Number Administration Create Search LRO (A…
…zure#15998) * Added create search LRO * Addressed PR comments * Addressed Ankit's comments * Cleaned poll operation * Removed SUCCESS as a terminal state * Test redone to use async responses
- Loading branch information
1 parent
5cb484c
commit 97c9e9b
Showing
5 changed files
with
188 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
...re-communication-administration/src/test/resources/session-records/beginCreateSearch.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"networkCallRecords" : [ { | ||
"Method" : "POST", | ||
"Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches?api-version=2020-07-20-preview1", | ||
"Headers" : { | ||
"User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Windows 10; 10.0)", | ||
"Content-Type" : "application/json" | ||
}, | ||
"Response" : { | ||
"Transfer-Encoding" : "chunked", | ||
"X-Processing-Time" : "2106ms", | ||
"MS-CV" : "AudA+TBsSkC2dy5EORj0jg.0", | ||
"retry-after" : "0", | ||
"X-Azure-Ref" : "0/598XwAAAABNqI5PZ5BrTocglFXesDJDREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", | ||
"StatusCode" : "201", | ||
"Body" : "{\"searchId\":\"44b70e2f-6521-454e-a8ea-67ab95927a13\"}", | ||
"Date" : "Tue, 06 Oct 2020 16:49:05 GMT", | ||
"Content-Type" : "application/json; charset=utf-8" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "GET", | ||
"Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/44b70e2f-6521-454e-a8ea-67ab95927a13?api-version=2020-07-20-preview1", | ||
"Headers" : { | ||
"User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Windows 10; 10.0)" | ||
}, | ||
"Response" : { | ||
"Transfer-Encoding" : "chunked", | ||
"X-Processing-Time" : "351ms", | ||
"MS-CV" : "UsgvNonyy0W78Wb+YlAR/Q.0", | ||
"retry-after" : "0", | ||
"X-Azure-Ref" : "0B6B8XwAAAABJLU8C50vpQr8eJDv7BnURREVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", | ||
"StatusCode" : "200", | ||
"Body" : "{\"searchId\":\"44b70e2f-6521-454e-a8ea-67ab95927a13\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-06T16:49:05.1044519+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Pending\",\"phoneNumbers\":[]}", | ||
"Date" : "Tue, 06 Oct 2020 16:49:11 GMT", | ||
"Content-Type" : "application/json; charset=utf-8" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "GET", | ||
"Uri" : "https://REDACTED.communication.azure.com/administration/phonenumbers/searches/44b70e2f-6521-454e-a8ea-67ab95927a13?api-version=2020-07-20-preview1", | ||
"Headers" : { | ||
"User-Agent" : "azsdk-java-azure-communication-administration/1.0.0-beta.1 (11.0.8; Windows 10; 10.0)" | ||
}, | ||
"Response" : { | ||
"Transfer-Encoding" : "chunked", | ||
"X-Processing-Time" : "292ms", | ||
"MS-CV" : "rgPQQ3XR50SFtXr68Qefqw.0", | ||
"retry-after" : "0", | ||
"X-Azure-Ref" : "0DaB8XwAAAADdZnkaYhXqS76qjA9LTed8REVOMDJFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", | ||
"StatusCode" : "200", | ||
"Body" : "{\"searchId\":\"44b70e2f-6521-454e-a8ea-67ab95927a13\",\"displayName\":\"testsearch20200014\",\"createdAt\":\"2020-10-06T16:49:05.1044519+00:00\",\"description\":\"testsearch20200014\",\"phonePlanIds\":[\"27b53eec-8ff4-4070-8900-fbeaabfd158a\"],\"areaCode\":\"323\",\"quantity\":2,\"locationOptions\":[],\"status\":\"Reserved\",\"phoneNumbers\":[\"+13234866789\",\"+13234866792\"],\"reservationExpiryDate\":\"2020-10-06T17:05:13.5997531+00:00\"}", | ||
"Date" : "Tue, 06 Oct 2020 16:49:16 GMT", | ||
"Content-Type" : "application/json; charset=utf-8" | ||
}, | ||
"Exception" : null | ||
} ], | ||
"variables" : [ ] | ||
} |