Skip to content

Commit 02fce64

Browse files
authored
Creates a new swagger file to implement the 2022-01-11-preview2 SDK version. (#16884)
Co-authored-by: Lucas Santos <lucassantos@microsoft.com>
1 parent 691920c commit 02fce64

File tree

11 files changed

+1166
-0
lines changed

11 files changed

+1166
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-01-11-preview2",
4+
"endpoint": "https://resourcename.communication.azure.com/",
5+
"operationId": "search_my-operation-id"
6+
},
7+
"responses": {
8+
"204": {}
9+
}
10+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-01-11-preview2",
4+
"endpoint": "https://resourcename.communication.azure.com/",
5+
"operationId": "search-my-operation-id"
6+
},
7+
"responses": {
8+
"200": {
9+
"headers": {
10+
"Location": "/availablePhoneNumbers/searchResults/378ddf60-81be-452a-ba4f-613198ea6c28"
11+
},
12+
"body": {
13+
"status": "succeeded",
14+
"resourceLocation": "",
15+
"createdDateTime": "2020-11-19T16:31:49.048Z",
16+
"id": "search-my-operation-id",
17+
"operationType": "search",
18+
"lastActionDateTime": "2020-11-19T22:31:49.048Z"
19+
}
20+
}
21+
}
22+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-01-11-preview2",
4+
"endpoint": "https://resourcename.communication.azure.com/",
5+
"phoneNumber": "+11234567890"
6+
},
7+
"responses": {
8+
"200": {
9+
"headers": {},
10+
"body": {
11+
"id": "11234567890",
12+
"phoneNumber": "+11234567890",
13+
"countryCode": "US",
14+
"assignmentType": "user",
15+
"phoneNumberType": "geographic",
16+
"capabilities": {
17+
"calling": "inbound+outbound",
18+
"sms": "inbound"
19+
},
20+
"purchaseDate": "2020-11-19T16:31:49.048Z",
21+
"cost": {
22+
"amount": 0.8,
23+
"currencyCode": "USD",
24+
"billingFrequency": "monthly"
25+
}
26+
}
27+
}
28+
}
29+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-01-11-preview2",
4+
"searchId": "378ddf60-81be-452a-ba4f-613198ea6c28",
5+
"endpoint": "https://resourcename.communication.azure.com/"
6+
},
7+
"responses": {
8+
"200": {
9+
"headers": {},
10+
"body": {
11+
"searchId": "378ddf60-81be-452a-ba4f-613198ea6c28",
12+
"phoneNumbers": [
13+
"+18001212121"
14+
],
15+
"phoneNumberType": "tollFree",
16+
"assignmentType": "application",
17+
"capabilities": {
18+
"sms": "inbound+outbound",
19+
"calling": "none"
20+
},
21+
"cost": {
22+
"amount": 1.2,
23+
"currencyCode": "USD",
24+
"billingFrequency": "monthly"
25+
},
26+
"searchExpiresBy": "2020-11-19T16:31:49.048Z"
27+
}
28+
}
29+
}
30+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-01-11-preview2",
4+
"endpoint": "https://resourcename.communication.azure.com/",
5+
"phoneNumber": "+11234567890"
6+
},
7+
"responses": {
8+
"200": {
9+
"headers": {},
10+
"body": {
11+
"phoneNumbers": [
12+
{
13+
"id": "11234567890",
14+
"phoneNumber": "+11234567890",
15+
"countryCode": "US",
16+
"assignmentType": "user",
17+
"phoneNumberType": "geographic",
18+
"capabilities": {
19+
"calling": "inbound+outbound",
20+
"sms": "inbound"
21+
},
22+
"purchaseDate": "2020-11-19T16:31:49.048Z",
23+
"cost": {
24+
"amount": 0.8,
25+
"currencyCode": "USD",
26+
"billingFrequency": "monthly"
27+
}
28+
}
29+
]
30+
}
31+
}
32+
}
33+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-01-11-preview2",
4+
"endpoint": "https://resourcename.communication.azure.com/",
5+
"body": {
6+
"searchId": "378ddf60-81be-452a-ba4f-613198ea6c28"
7+
}
8+
},
9+
"responses": {
10+
"202": {
11+
"headers": {
12+
"Operation-Location": "/phoneNumbers/operations/purchase_378ddf60-81be-452a-ba4f-613198ea6c28",
13+
"operation-id": "purchase_378ddf60-81be-452a-ba4f-613198ea6c28",
14+
"purchase-id": "378ddf60-81be-452a-ba4f-613198ea6c28"
15+
}
16+
}
17+
}
18+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-01-11-preview2",
4+
"phoneNumber": "+11234567890",
5+
"endpoint": "https://resourcename.communication.azure.com/"
6+
},
7+
"responses": {
8+
"202": {
9+
"headers": {
10+
"Operation-Location": "/phoneNumbers/operations/release_378ddf60-81be-452a-ba4f-613198ea6c28",
11+
"operation-id": "release_378ddf60-81be-452a-ba4f-613198ea6c28",
12+
"release-id": "378ddf60-81be-452a-ba4f-613198ea6c28"
13+
}
14+
}
15+
}
16+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-01-11-preview2",
4+
"body": {
5+
"phoneNumberType": "tollFree",
6+
"assignmentType": "application",
7+
"capabilities": {
8+
"sms": "inbound+outbound",
9+
"calling": "none"
10+
},
11+
"areaCode": "425",
12+
"quantity": 1
13+
},
14+
"countryCode": "US",
15+
"endpoint": "https://resourcename.communication.azure.com/"
16+
},
17+
"responses": {
18+
"202": {
19+
"headers": {
20+
"Operation-Location": "/phoneNumbers/operations/search_378ddf60-81be-452a-ba4f-613198ea6c28",
21+
"Location": "/availablePhoneNumbers/searchResults/378ddf60-81be-452a-ba4f-613198ea6c28",
22+
"operation-id": "search_378ddf60-81be-452a-ba4f-613198ea6c28",
23+
"search-id": "378ddf60-81be-452a-ba4f-613198ea6c28"
24+
},
25+
"body": {
26+
"searchId": "378ddf60-81be-452a-ba4f-613198ea6c28",
27+
"phoneNumbers": [
28+
"+18001212121"
29+
],
30+
"phoneNumberType": "tollFree",
31+
"assignmentType": "application",
32+
"capabilities": {
33+
"sms": "inbound+outbound",
34+
"calling": "none"
35+
},
36+
"cost": {
37+
"amount": 1.2,
38+
"currencyCode": "USD",
39+
"billingFrequency": "monthly"
40+
},
41+
"searchExpiresBy": "2020-11-19T16:31:49.048Z"
42+
}
43+
}
44+
}
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-01-11-preview2",
4+
"endpoint": "https://resourcename.communication.azure.com/",
5+
"phoneNumber": "+14792000102",
6+
"body": {
7+
"calling": "inbound+outbound",
8+
"sms": "none"
9+
}
10+
},
11+
"responses": {
12+
"202": {
13+
"headers": {
14+
"Operation-Location": "/phoneNumbers/operations/capabilities_378ddf60-81be-452a-ba4f-613198ea6c28",
15+
"Location": "/phoneNumbers/%2b14792000102",
16+
"operation-id": "capabilities_378ddf60-81be-452a-ba4f-613198ea6c28",
17+
"capabilities-id": "378ddf60-81be-452a-ba4f-613198ea6c28"
18+
},
19+
"body": {
20+
"id": "14792000102",
21+
"phoneNumber": "+14792000102",
22+
"countryCode": "US",
23+
"assignmentType": "person",
24+
"phoneNumberType": "geographic",
25+
"capabilities": {
26+
"calling": "inbound+outbound",
27+
"sms": "none"
28+
},
29+
"purchaseDate": "2020-11-19T16:31:49.048Z",
30+
"cost": {
31+
"amount": 0.8,
32+
"currencyCode": "USD",
33+
"billingFrequency": "monthly"
34+
}
35+
}
36+
}
37+
}
38+
}

0 commit comments

Comments
 (0)