Skip to content

Commit

Permalink
Creates a new swagger file to implement the 2022-01-11-preview2 SDK v…
Browse files Browse the repository at this point in the history
…ersion. (Azure#16884)

Co-authored-by: Lucas Santos <lucassantos@microsoft.com>
  • Loading branch information
2 people authored and LeiWang3 committed Mar 31, 2022
1 parent dbb13fe commit 4f4f9f7
Show file tree
Hide file tree
Showing 11 changed files with 1,166 additions and 0 deletions.
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": {}
}
}
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"
}
}
}
}
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"
}
}
}
}
}
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"
}
}
}
}
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"
}
}
]
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
}
Loading

0 comments on commit 4f4f9f7

Please sign in to comment.