forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creates a new swagger file to implement the 2022-01-11-preview2 SDK v…
…ersion. (Azure#16884) Co-authored-by: Lucas Santos <lucassantos@microsoft.com>
- Loading branch information
Showing
11 changed files
with
1,166 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
...ication/data-plane/PhoneNumbers/preview/2022-01-11-preview2/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": "2022-01-11-preview2", | ||
"endpoint": "https://resourcename.communication.azure.com/", | ||
"operationId": "search_my-operation-id" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...munication/data-plane/PhoneNumbers/preview/2022-01-11-preview2/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": "2022-01-11-preview2", | ||
"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": "", | ||
"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
...nication/data-plane/PhoneNumbers/preview/2022-01-11-preview2/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": "2022-01-11-preview2", | ||
"endpoint": "https://resourcename.communication.azure.com/", | ||
"phoneNumber": "+11234567890" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "11234567890", | ||
"phoneNumber": "+11234567890", | ||
"countryCode": "US", | ||
"assignmentType": "user", | ||
"phoneNumberType": "geographic", | ||
"capabilities": { | ||
"calling": "inbound+outbound", | ||
"sms": "inbound" | ||
}, | ||
"purchaseDate": "2020-11-19T16:31:49.048Z", | ||
"cost": { | ||
"amount": 0.8, | ||
"currencyCode": "USD", | ||
"billingFrequency": "monthly" | ||
} | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...a-plane/PhoneNumbers/preview/2022-01-11-preview2/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,30 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-01-11-preview2", | ||
"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" | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...ication/data-plane/PhoneNumbers/preview/2022-01-11-preview2/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": "2022-01-11-preview2", | ||
"endpoint": "https://resourcename.communication.azure.com/", | ||
"phoneNumber": "+11234567890" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"phoneNumbers": [ | ||
{ | ||
"id": "11234567890", | ||
"phoneNumber": "+11234567890", | ||
"countryCode": "US", | ||
"assignmentType": "user", | ||
"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
...on/data-plane/PhoneNumbers/preview/2022-01-11-preview2/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": "2022-01-11-preview2", | ||
"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
...tion/data-plane/PhoneNumbers/preview/2022-01-11-preview2/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": "2022-01-11-preview2", | ||
"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" | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...tion/data-plane/PhoneNumbers/preview/2022-01-11-preview2/examples/SearchPhoneNumbers.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,45 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-01-11-preview2", | ||
"body": { | ||
"phoneNumberType": "tollFree", | ||
"assignmentType": "application", | ||
"capabilities": { | ||
"sms": "inbound+outbound", | ||
"calling": "none" | ||
}, | ||
"areaCode": "425", | ||
"quantity": 1 | ||
}, | ||
"countryCode": "US", | ||
"endpoint": "https://resourcename.communication.azure.com/" | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"Operation-Location": "/phoneNumbers/operations/search_378ddf60-81be-452a-ba4f-613198ea6c28", | ||
"Location": "/availablePhoneNumbers/searchResults/378ddf60-81be-452a-ba4f-613198ea6c28", | ||
"operation-id": "search_378ddf60-81be-452a-ba4f-613198ea6c28", | ||
"search-id": "378ddf60-81be-452a-ba4f-613198ea6c28" | ||
}, | ||
"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" | ||
} | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...lane/PhoneNumbers/preview/2022-01-11-preview2/examples/UpdatePhoneNumberCapabilities.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,38 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-01-11-preview2", | ||
"endpoint": "https://resourcename.communication.azure.com/", | ||
"phoneNumber": "+14792000102", | ||
"body": { | ||
"calling": "inbound+outbound", | ||
"sms": "none" | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"Operation-Location": "/phoneNumbers/operations/capabilities_378ddf60-81be-452a-ba4f-613198ea6c28", | ||
"Location": "/phoneNumbers/%2b14792000102", | ||
"operation-id": "capabilities_378ddf60-81be-452a-ba4f-613198ea6c28", | ||
"capabilities-id": "378ddf60-81be-452a-ba4f-613198ea6c28" | ||
}, | ||
"body": { | ||
"id": "14792000102", | ||
"phoneNumber": "+14792000102", | ||
"countryCode": "US", | ||
"assignmentType": "person", | ||
"phoneNumberType": "geographic", | ||
"capabilities": { | ||
"calling": "inbound+outbound", | ||
"sms": "none" | ||
}, | ||
"purchaseDate": "2020-11-19T16:31:49.048Z", | ||
"cost": { | ||
"amount": 0.8, | ||
"currencyCode": "USD", | ||
"billingFrequency": "monthly" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.