-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64f6997
commit 478f370
Showing
16 changed files
with
2,039 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
10 changes: 10 additions & 0 deletions
10
...ion/communication/data-plane/PhoneNumbers/stable/2025-02-11/examples/DeleteOperation.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,10 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2025-02-11", | ||
"endpoint": "https://resourcename.communication.azure.com/", | ||
"operationId": "search_my-operation-id" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...cation/communication/data-plane/PhoneNumbers/stable/2025-02-11/examples/GetAreaCodes.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,24 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2025-02-11", | ||
"endpoint": "https://resourcename.communication.azure.com/", | ||
"countryCode": "CA", | ||
"phoneNumberType": "geographic", | ||
"locality": "Vancouver", | ||
"administrativeDivision": "BC" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"areaCodes": [ | ||
{ | ||
"areaCode": "236" | ||
}, | ||
{ | ||
"areaCode": "604" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...cation/communication/data-plane/PhoneNumbers/stable/2025-02-11/examples/GetCountries.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,25 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2025-02-11", | ||
"endpoint": "https://resourcename.communication.azure.com/", | ||
"header": { | ||
"accept-language": "en-US" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"countries": [ | ||
{ | ||
"localizedName": "Canada", | ||
"countryCode": "CA" | ||
}, | ||
{ | ||
"localizedName": "United States", | ||
"countryCode": "US" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...ation/communication/data-plane/PhoneNumbers/stable/2025-02-11/examples/GetLocalities.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,32 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2025-02-11", | ||
"endpoint": "https://resourcename.communication.azure.com/", | ||
"countryCode": "CA", | ||
"header": { | ||
"accept-language": "en-US" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"phoneNumberLocalities": [ | ||
{ | ||
"localizedName": "Vancouver", | ||
"administrativeDivision": { | ||
"localizedName": "British Columbia", | ||
"abbreviatedName": "BC" | ||
} | ||
}, | ||
{ | ||
"localizedName": "Toronto", | ||
"administrativeDivision": { | ||
"localizedName": "Ontario", | ||
"abbreviatedName": "ON" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
57 changes: 57 additions & 0 deletions
57
...cation/communication/data-plane/PhoneNumbers/stable/2025-02-11/examples/GetOfferings.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,57 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2025-02-11", | ||
"endpoint": "https://resourcename.communication.azure.com/", | ||
"countryCode": "CA", | ||
"header": { | ||
"accept-language": "en-US" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"phoneNumberOfferings": [ | ||
{ | ||
"phoneNumberType": "geographic", | ||
"assignmentType": "person", | ||
"availableCapabilities": { | ||
"calling": "outbound", | ||
"sms": "outbound" | ||
}, | ||
"cost": { | ||
"amount": 1.0, | ||
"currencyCode": "USD", | ||
"billingFrequency": "monthly" | ||
} | ||
}, | ||
{ | ||
"phoneNumberType": "geographic", | ||
"assignmentType": "person", | ||
"availableCapabilities": { | ||
"calling": "inbound+outbound", | ||
"sms": "outbound" | ||
}, | ||
"cost": { | ||
"amount": 1.0, | ||
"currencyCode": "USD", | ||
"billingFrequency": "monthly" | ||
} | ||
}, | ||
{ | ||
"phoneNumberType": "tollFree", | ||
"assignmentType": "application", | ||
"availableCapabilities": { | ||
"calling": "none", | ||
"sms": "outbound" | ||
}, | ||
"cost": { | ||
"amount": 2.0, | ||
"currencyCode": "USD", | ||
"billingFrequency": "monthly" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...cation/communication/data-plane/PhoneNumbers/stable/2025-02-11/examples/GetOperation.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,22 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2025-02-11", | ||
"endpoint": "https://resourcename.communication.azure.com/", | ||
"operationId": "search-my-operation-id" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": { | ||
"Location": "/availablePhoneNumbers/searchResults/378ddf60-81be-452a-ba4f-613198ea6c28" | ||
}, | ||
"body": { | ||
"status": "succeeded", | ||
"resourceLocation": "/availablePhoneNumbers/searchResults/378ddf60-81be-452a-ba4f-613198ea6c28", | ||
"createdDateTime": "2020-11-19T16:31:49.048Z", | ||
"id": "search-my-operation-id", | ||
"operationType": "search", | ||
"lastActionDateTime": "2020-11-19T22:31:49.048Z" | ||
} | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...tion/communication/data-plane/PhoneNumbers/stable/2025-02-11/examples/GetPhoneNumber.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,29 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2025-02-11", | ||
"endpoint": "https://resourcename.communication.azure.com/", | ||
"phoneNumber": "+11234567890" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "11234567890", | ||
"phoneNumber": "+11234567890", | ||
"countryCode": "US", | ||
"assignmentType": "person", | ||
"phoneNumberType": "geographic", | ||
"capabilities": { | ||
"calling": "inbound+outbound", | ||
"sms": "inbound" | ||
}, | ||
"purchaseDate": "2020-11-19T16:31:49.048Z", | ||
"cost": { | ||
"amount": 0.8, | ||
"currencyCode": "USD", | ||
"billingFrequency": "monthly" | ||
} | ||
} | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...cation/data-plane/PhoneNumbers/stable/2025-02-11/examples/GetPhoneNumberSearchResult.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,32 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2025-02-11", | ||
"searchId": "378ddf60-81be-452a-ba4f-613198ea6c28", | ||
"endpoint": "https://resourcename.communication.azure.com/" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"searchId": "378ddf60-81be-452a-ba4f-613198ea6c28", | ||
"phoneNumbers": [ | ||
"+18001212121" | ||
], | ||
"phoneNumberType": "tollFree", | ||
"assignmentType": "application", | ||
"capabilities": { | ||
"sms": "inbound+outbound", | ||
"calling": "none" | ||
}, | ||
"cost": { | ||
"amount": 1.2, | ||
"currencyCode": "USD", | ||
"billingFrequency": "monthly" | ||
}, | ||
"searchExpiresBy": "2020-11-19T16:31:49.048Z", | ||
"errorCode": 1000, | ||
"error": "OutOfStock" | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...ion/communication/data-plane/PhoneNumbers/stable/2025-02-11/examples/GetPhoneNumbers.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,33 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2025-02-11", | ||
"endpoint": "https://resourcename.communication.azure.com/", | ||
"phoneNumber": "+11234567890" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"phoneNumbers": [ | ||
{ | ||
"id": "11234567890", | ||
"phoneNumber": "+11234567890", | ||
"countryCode": "US", | ||
"assignmentType": "person", | ||
"phoneNumberType": "geographic", | ||
"capabilities": { | ||
"calling": "inbound+outbound", | ||
"sms": "inbound" | ||
}, | ||
"purchaseDate": "2020-11-19T16:31:49.048Z", | ||
"cost": { | ||
"amount": 0.8, | ||
"currencyCode": "USD", | ||
"billingFrequency": "monthly" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...ommunication/data-plane/PhoneNumbers/stable/2025-02-11/examples/PurchasePhoneNumbers.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,18 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2025-02-11", | ||
"endpoint": "https://resourcename.communication.azure.com/", | ||
"body": { | ||
"searchId": "378ddf60-81be-452a-ba4f-613198ea6c28" | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"Operation-Location": "/phoneNumbers/operations/purchase_378ddf60-81be-452a-ba4f-613198ea6c28", | ||
"operation-id": "purchase_378ddf60-81be-452a-ba4f-613198ea6c28", | ||
"purchase-id": "378ddf60-81be-452a-ba4f-613198ea6c28" | ||
} | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
.../communication/data-plane/PhoneNumbers/stable/2025-02-11/examples/ReleasePhoneNumber.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,16 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2025-02-11", | ||
"phoneNumber": "+11234567890", | ||
"endpoint": "https://resourcename.communication.azure.com/" | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"Operation-Location": "/phoneNumbers/operations/release_378ddf60-81be-452a-ba4f-613198ea6c28", | ||
"operation-id": "release_378ddf60-81be-452a-ba4f-613198ea6c28", | ||
"release-id": "378ddf60-81be-452a-ba4f-613198ea6c28" | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...ication/data-plane/PhoneNumbers/stable/2025-02-11/examples/SearchOperatorInformation.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,34 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2025-02-11", | ||
"endpoint": "https://resourcename.communication.azure.com/", | ||
"body": { | ||
"phoneNumbers": [ | ||
"+11234567899" | ||
], | ||
"options": { | ||
"includeAdditionalOperatorDetails": true | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"values": [ | ||
{ | ||
"phoneNumber": "+11234567899", | ||
"nationalFormat": "+1 (123) 456-7899", | ||
"internationalFormat": "+1 123 456 7899", | ||
"numberType": "mobile", | ||
"isoCountryCode": "US", | ||
"operatorDetails": { | ||
"name": "T-Mobile", | ||
"mobileNetworkCode": "260", | ||
"mobileCountryCode": "310" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.