Skip to content

Commit 07e4cb1

Browse files
authored
Implements the new public preview version of the Phone Number SDK. (Azure#25832)
* Implements the new public preview version of the Phone Number SDK. * Includes a suppression to workaround pipeline failures. * Updates the recording files after running live tests. * Updates the API version and the test recording files. * Updates the swagger readme.md file URL to the Azure API Spec repo one. * Updates the CHANGELOG.md of azure-communication-phonenumbers SDK. * Updates the API version and the test recording files. * Updates the swagger readme.md file URL to the Azure API Spec repo one. * Updates the CHANGELOG.md of azure-communication-phonenumbers SDK. * Addresses reviewer's comment. * Changes the CHANGELOG.md text to be in accordance with the other SDKs.
1 parent be4e507 commit 07e4cb1

File tree

21 files changed

+1669
-1157
lines changed

21 files changed

+1669
-1157
lines changed

sdk/communication/azure-communication-phonenumbers/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Release History
22

3-
## 1.1.0-beta.1 (Unreleased)
3+
## 1.1.0-beta.1 (2022-01-24)
44

55
### Features Added
6+
- Users can now purchase United Kingdom (GB) toll free and geographic phone numbers for PSTN Calling
7+
- Users can now purchase Denmark (DK) toll free and geographic phone numbers for PSTN Calling
68

79
### Breaking Changes
810

sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/implementation/PhoneNumberAdminClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public PhoneNumbersImpl getPhoneNumbers() {
103103
this.httpPipeline = httpPipeline;
104104
this.serializerAdapter = serializerAdapter;
105105
this.endpoint = endpoint;
106-
this.apiVersion = "2021-03-07";
106+
this.apiVersion = "2022-01-11-preview2";
107107
this.phoneNumbers = new PhoneNumbersImpl(this);
108108
}
109109
}

sdk/communication/azure-communication-phonenumbers/src/test/resources/session-records/PhoneNumbersAsyncClientIntegrationTest.beginPurchaseandReleasePhoneNumbers[1].json

Lines changed: 339 additions & 225 deletions
Large diffs are not rendered by default.

sdk/communication/azure-communication-phonenumbers/src/test/resources/session-records/PhoneNumbersAsyncClientIntegrationTest.beginSearchAvailablePhoneNumbersWithoutOptions[1].json

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,96 @@
11
{
22
"networkCallRecords" : [ {
33
"Method" : "POST",
4-
"Uri" : "https://REDACTED.communication.azure.com/availablePhoneNumbers/countries/US/:search?api-version=2021-03-07",
4+
"Uri" : "https://REDACTED.communication.azure.com/availablePhoneNumbers/countries/US/:search?api-version=2022-01-11-preview2",
55
"Headers" : {
6-
"User-Agent" : "azsdk-java-azure-communication-phonenumbers/1.1.0-beta.1 (11.0.7; Windows 10; 10.0)",
7-
"x-ms-client-request-id" : "73230ca2-b91f-4676-ac74-d6bf4db581ac",
6+
"User-Agent" : "azsdk-java-azure-communication-phonenumbers/1.1.0-beta.1 (17.0.1; Windows 10; 10.0)",
7+
"x-ms-client-request-id" : "929b5c65-705a-4fd7-bfaa-22083207ebab",
88
"Content-Type" : "application/json"
99
},
1010
"Response" : {
1111
"X-Cache" : "CONFIG_NOCACHE",
1212
"content-length" : "0",
13-
"api-supported-versions" : "2021-03-07",
14-
"operation-id" : "search_22f5f295-ebe8-4e07-963a-2453dc6ff032",
13+
"api-supported-versions" : "2021-03-07, 2022-01-11-preview2",
14+
"operation-id" : "search_b3ecabb3-3d0d-4a91-8135-d2d53e19ae53",
1515
"retry-after" : "0",
1616
"StatusCode" : "202",
17-
"Date" : "Fri, 11 Jun 2021 19:51:01 GMT",
17+
"Date" : "Fri, 14 Jan 2022 17:38:39 GMT",
1818
"Access-Control-Expose-Headers" : "Location,Operation-Location,operation-id,search-id",
19-
"X-Processing-Time" : "3108ms",
20-
"MS-CV" : "U2jkUHYwZU+FZpWrqnNq6Q.0",
21-
"search-id" : "22f5f295-ebe8-4e07-963a-2453dc6ff032",
22-
"X-Azure-Ref" : "0or7DYAAAAABRJahojBUDQbJtC0FoMaT+WVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=",
23-
"Operation-Location" : "/phoneNumbers/operations/search_22f5f295-ebe8-4e07-963a-2453dc6ff032?api-version=2021-03-07",
24-
"Location" : "/availablePhoneNumbers/searchResults/22f5f295-ebe8-4e07-963a-2453dc6ff032?api-version=2021-03-07",
19+
"X-Processing-Time" : "4677ms",
20+
"MS-CV" : "AxCOf1IWR02d+tT/NW5WHA.0",
21+
"search-id" : "b3ecabb3-3d0d-4a91-8135-d2d53e19ae53",
22+
"X-Azure-Ref" : "0G7XhYQAAAAB7E/ff6grHSKxYn8gnk9gyU0FPMDNFREdFMDkwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=",
23+
"Operation-Location" : "/phoneNumbers/operations/search_b3ecabb3-3d0d-4a91-8135-d2d53e19ae53?api-version=2022-01-11-preview2",
24+
"Location" : "/availablePhoneNumbers/searchResults/b3ecabb3-3d0d-4a91-8135-d2d53e19ae53?api-version=2022-01-11-preview2",
2525
"Request-Context" : "appId="
2626
},
2727
"Exception" : null
2828
}, {
2929
"Method" : "GET",
30-
"Uri" : "https://REDACTED.communication.azure.com/phoneNumbers/operations/search_22f5f295-ebe8-4e07-963a-2453dc6ff032?api-version=2021-03-07",
30+
"Uri" : "https://REDACTED.communication.azure.com/phoneNumbers/operations/search_b3ecabb3-3d0d-4a91-8135-d2d53e19ae53?api-version=2022-01-11-preview2",
3131
"Headers" : {
32-
"User-Agent" : "azsdk-java-azure-communication-phonenumbers/1.1.0-beta.1 (11.0.7; Windows 10; 10.0)",
33-
"x-ms-client-request-id" : "f27c7cea-4b05-4ea2-8a9c-a6278d1214fc"
32+
"User-Agent" : "azsdk-java-azure-communication-phonenumbers/1.1.0-beta.1 (17.0.1; Windows 10; 10.0)",
33+
"x-ms-client-request-id" : "dba8ddc1-45a4-4f4e-a5fc-74049ac9298a"
3434
},
3535
"Response" : {
3636
"Transfer-Encoding" : "chunked",
3737
"X-Cache" : "CONFIG_NOCACHE",
38-
"api-supported-versions" : "2021-03-07",
38+
"api-supported-versions" : "2021-03-07, 2022-01-11-preview2",
3939
"retry-after" : "0",
4040
"StatusCode" : "200",
41-
"Date" : "Fri, 11 Jun 2021 19:51:02 GMT",
41+
"Date" : "Fri, 14 Jan 2022 17:38:59 GMT",
4242
"Access-Control-Expose-Headers" : "Location",
43-
"X-Processing-Time" : "584ms",
44-
"MS-CV" : "1pBblnFLa0yT0Vr1cegGSw.0",
45-
"X-Azure-Ref" : "0pb7DYAAAAABEa/EV5PY7RIbd/Dj1Wo02WVZSMzBFREdFMDQxMwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=",
46-
"Body" : "{\"status\":\"notStarted\",\"resourceLocation\":\"/availablePhoneNumbers/searchResults/22f5f295-ebe8-4e07-963a-2453dc6ff032?api-version=2021-03-07\",\"createdDateTime\":\"2021-06-11T19:51:00.997128+00:00\",\"id\":\"REDACTED\",\"operationType\":\"search\",\"lastActionDateTime\":\"0001-01-01T00:00:00+00:00\"}",
43+
"X-Processing-Time" : "18461ms",
44+
"MS-CV" : "YlYErvF48USdGWOuOG512g.0",
45+
"X-Azure-Ref" : "0ILXhYQAAAABp7IxoOtWBQZgzkLkWwmJ9U0FPMDNFREdFMDkyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=",
46+
"Body" : "{\"operationType\":\"search\",\"status\":\"succeeded\",\"resourceLocation\":\"/availablePhoneNumbers/searchResults/b3ecabb3-3d0d-4a91-8135-d2d53e19ae53?api-version=2022-01-11-preview2\",\"createdDateTime\":\"2022-01-14T17:38:38.9863274+00:00\",\"id\":\"REDACTED\",\"lastActionDateTime\":\"0001-01-01T00:00:00+00:00\"}",
4747
"Content-Type" : "application/json; charset=utf-8",
48-
"Location" : "/availablePhoneNumbers/searchResults/22f5f295-ebe8-4e07-963a-2453dc6ff032?api-version=2021-03-07",
48+
"Location" : "/availablePhoneNumbers/searchResults/b3ecabb3-3d0d-4a91-8135-d2d53e19ae53?api-version=2022-01-11-preview2",
4949
"Request-Context" : "appId="
5050
},
5151
"Exception" : null
5252
}, {
5353
"Method" : "GET",
54-
"Uri" : "https://REDACTED.communication.azure.com/phoneNumbers/operations/search_22f5f295-ebe8-4e07-963a-2453dc6ff032?api-version=2021-03-07",
54+
"Uri" : "https://REDACTED.communication.azure.com/phoneNumbers/operations/search_b3ecabb3-3d0d-4a91-8135-d2d53e19ae53?api-version=2022-01-11-preview2",
5555
"Headers" : {
56-
"User-Agent" : "azsdk-java-azure-communication-phonenumbers/1.1.0-beta.1 (11.0.7; Windows 10; 10.0)",
57-
"x-ms-client-request-id" : "2841ada1-c9d7-47c7-bf4b-64d09d53cd66"
56+
"User-Agent" : "azsdk-java-azure-communication-phonenumbers/1.1.0-beta.1 (17.0.1; Windows 10; 10.0)",
57+
"x-ms-client-request-id" : "a2d3e54b-efd5-43ac-8989-2fb8955c5f12"
5858
},
5959
"Response" : {
6060
"Transfer-Encoding" : "chunked",
6161
"X-Cache" : "CONFIG_NOCACHE",
62-
"api-supported-versions" : "2021-03-07",
62+
"api-supported-versions" : "2021-03-07, 2022-01-11-preview2",
6363
"retry-after" : "0",
6464
"StatusCode" : "200",
65-
"Date" : "Fri, 11 Jun 2021 19:51:04 GMT",
65+
"Date" : "Fri, 14 Jan 2022 17:39:01 GMT",
6666
"Access-Control-Expose-Headers" : "Location",
67-
"X-Processing-Time" : "360ms",
68-
"MS-CV" : "PZcfqdECqUWux3jQWEpOBw.0",
69-
"X-Azure-Ref" : "0qL7DYAAAAAD2nQWmgqfiTrPJBvQUzIeUWVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=",
70-
"Body" : "{\"status\":\"succeeded\",\"resourceLocation\":\"/availablePhoneNumbers/searchResults/22f5f295-ebe8-4e07-963a-2453dc6ff032?api-version=2021-03-07\",\"createdDateTime\":\"2021-06-11T19:51:00.997128+00:00\",\"id\":\"REDACTED\",\"operationType\":\"search\",\"lastActionDateTime\":\"0001-01-01T00:00:00+00:00\"}",
67+
"X-Processing-Time" : "1347ms",
68+
"MS-CV" : "4a0hCmwTsk6FhigS+/cOuA.0",
69+
"X-Azure-Ref" : "0NLXhYQAAAACQiwpGPN9CSop9SNnRR1RhU0FPMDNFREdFMDkwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=",
70+
"Body" : "{\"operationType\":\"search\",\"status\":\"succeeded\",\"resourceLocation\":\"/availablePhoneNumbers/searchResults/b3ecabb3-3d0d-4a91-8135-d2d53e19ae53?api-version=2022-01-11-preview2\",\"createdDateTime\":\"2022-01-14T17:38:38.9863274+00:00\",\"id\":\"REDACTED\",\"lastActionDateTime\":\"0001-01-01T00:00:00+00:00\"}",
7171
"Content-Type" : "application/json; charset=utf-8",
72-
"Location" : "/availablePhoneNumbers/searchResults/22f5f295-ebe8-4e07-963a-2453dc6ff032?api-version=2021-03-07",
72+
"Location" : "/availablePhoneNumbers/searchResults/b3ecabb3-3d0d-4a91-8135-d2d53e19ae53?api-version=2022-01-11-preview2",
7373
"Request-Context" : "appId="
7474
},
7575
"Exception" : null
7676
}, {
7777
"Method" : "GET",
78-
"Uri" : "https://REDACTED.communication.azure.com/availablePhoneNumbers/searchResults/22f5f295-ebe8-4e07-963a-2453dc6ff032?api-version=2021-03-07",
78+
"Uri" : "https://REDACTED.communication.azure.com/availablePhoneNumbers/searchResults/b3ecabb3-3d0d-4a91-8135-d2d53e19ae53?api-version=2022-01-11-preview2",
7979
"Headers" : {
80-
"User-Agent" : "azsdk-java-azure-communication-phonenumbers/1.1.0-beta.1 (11.0.7; Windows 10; 10.0)",
81-
"x-ms-client-request-id" : "c0977159-fba6-4232-ad17-63734a896e53"
80+
"User-Agent" : "azsdk-java-azure-communication-phonenumbers/1.1.0-beta.1 (17.0.1; Windows 10; 10.0)",
81+
"x-ms-client-request-id" : "42e74c67-2c59-4cfd-98d7-72ff962e123c"
8282
},
8383
"Response" : {
8484
"Transfer-Encoding" : "chunked",
8585
"X-Cache" : "CONFIG_NOCACHE",
86-
"api-supported-versions" : "2021-03-07",
87-
"X-Processing-Time" : "1276ms",
88-
"MS-CV" : "Na9oO+l+8UmP+oAvwUr92Q.0",
86+
"api-supported-versions" : "2021-03-07, 2022-01-11-preview2",
87+
"X-Processing-Time" : "1856ms",
88+
"MS-CV" : "1yhBzIsyZ0yHvQxZvbNE7Q.0",
8989
"retry-after" : "0",
90-
"X-Azure-Ref" : "0qL7DYAAAAAAaRw032WZCQqD87FaEitFLWVZSMzBFREdFMDQxMwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=",
90+
"X-Azure-Ref" : "0NbXhYQAAAACpbFemVXe9SI63NpvYC5ssU0FPMDNFREdFMDkyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=",
9191
"StatusCode" : "200",
92-
"Body" : "{\"searchId\":\"22f5f295-ebe8-4e07-963a-2453dc6ff032\",\"phoneNumbers\":[\"+18335802150\"],\"phoneNumberType\":\"tollFree\",\"assignmentType\":\"application\",\"capabilities\":{\"calling\":\"inbound\",\"sms\":\"inbound+outbound\"},\"cost\":{\"amount\":2.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"},\"searchExpiresBy\":\"2021-06-11T20:07:03.1133299+00:00\"}",
93-
"Date" : "Fri, 11 Jun 2021 19:51:05 GMT",
92+
"Body" : "{\"searchId\":\"b3ecabb3-3d0d-4a91-8135-d2d53e19ae53\",\"phoneNumbers\":[\"+REDACTED\"],\"phoneNumberType\":\"tollFree\",\"assignmentType\":\"application\",\"capabilities\":{\"calling\":\"inbound\",\"sms\":\"inbound+outbound\"},\"cost\":{\"amount\":2.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"},\"searchExpiresBy\":\"2022-01-14T17:54:45.4393051+00:00\"}",
93+
"Date" : "Fri, 14 Jan 2022 17:39:03 GMT",
9494
"Content-Type" : "application/json; charset=utf-8",
9595
"Request-Context" : "appId="
9696
},

0 commit comments

Comments
 (0)