Skip to content

Commit

Permalink
Added number lookup GA
Browse files Browse the repository at this point in the history
  • Loading branch information
guoqing2023 committed Dec 30, 2024
1 parent 64f6997 commit 478f370
Show file tree
Hide file tree
Showing 16 changed files with 2,039 additions and 1 deletion.
12 changes: 11 additions & 1 deletion specification/communication/data-plane/PhoneNumbers/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,19 @@ These are the global settings for the communicationservices.

```yaml
openapi-type: data-plane
tag: package-phonenumber-2022-12-01
tag: package-phonenumber-2025-02-11
```
### Tag: package-phonenumber-2025-02-11
These settings apply only when `--tag=package-phonenumber-2025-02-11` is specified on the command line.

```yaml $(tag) == 'package-phonenumber-2025-02-11'
input-file:
- stable/2025-02-11/phonenumbers.json
title:
Azure Communication Services
```

### Tag: package-phonenumber-2022-12-01

These settings apply only when `--tag=package-phonenumber-2022-12-01` is specified on the command line.
Expand Down
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": {}
}
}
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"
}
]
}
}
}
}
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"
}
]
}
}
}
}
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"
}
}
]
}
}
}
}
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"
}
}
]
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
}
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"
}
}
}
}
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"
}
}
]
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
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"
}
}
]
}
}
}
}
Loading

0 comments on commit 478f370

Please sign in to comment.