Skip to content

Commit 035fd78

Browse files
rlupton20-msftRichard Lupton
andauthored
ACG provisioning platform API spec (#25878)
Co-authored-by: Richard Lupton <rdl@ad.datcon.co.uk>
1 parent ded6244 commit 035fd78

File tree

12 files changed

+1485
-0
lines changed

12 files changed

+1485
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# AzureCommunicationsGateway Provisioning Platform
2+
3+
> see https://aka.ms/autorest
4+
5+
This is the AutoRest configuration file for AzureCommunicationsGateway Provisioning Platform.
6+
7+
## Getting Started
8+
9+
To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run:
10+
11+
> `autorest readme.md`
12+
13+
To see additional help and options, run:
14+
15+
> `autorest --help`
16+
17+
For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page.
18+
19+
---
20+
21+
## Configuration
22+
23+
### Basic Information
24+
25+
These are the global settings for the Azure Communications Gateway Provisioning Platform.
26+
27+
```yaml
28+
openapi-type: dataplane
29+
tag: package-2023-10-01
30+
title: AcgProvisioningPlatform
31+
```
32+
33+
### Tag: package-2023-10-01
34+
35+
These settings apply only when `--tag=package-2023-10-01` is specified on the command line.
36+
37+
```yaml $(tag) == 'package-2023-10-01'
38+
input-file:
39+
- stable/2023-10-01/swagger.json
40+
```
41+
42+
# Code Generation
43+
44+
## Swagger to SDK
45+
46+
This section describes what SDK should be generated by the automatic system.
47+
This is not used by Autorest itself.
48+
49+
```yaml $(swagger-to-sdk)
50+
swagger-to-sdk: []
51+
```
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"parameters": {
3+
"accountName": "contoso",
4+
"api-version": "2023-10-01",
5+
"body": {
6+
"numbers": [
7+
{
8+
"details": {
9+
"configuration": {
10+
"customSipHeader": "YhdVlLzhM1WdwX0d5-mXl6jihKglThsKWE3SmW"
11+
},
12+
"services": {
13+
"teamsDrEnabled": true,
14+
"teamsOcEnabled": false,
15+
"zoomEnabled": false
16+
}
17+
},
18+
"phoneNumber": "+44012345123001"
19+
},
20+
{
21+
"details": {
22+
"configuration": {
23+
"customSipHeader": "YhdVlLzhM1WdwX0d5-mXl6jihKglThsKWE3SmW"
24+
},
25+
"services": {
26+
"teamsDrEnabled": false,
27+
"teamsOcEnabled": false,
28+
"zoomEnabled": false
29+
}
30+
},
31+
"phoneNumber": "+44123451230012"
32+
}
33+
]
34+
}
35+
},
36+
"responses": {
37+
"200": {
38+
"body": {
39+
"numbers": [
40+
{
41+
"etag": "000000001",
42+
"accountName": "contoso",
43+
"details": {
44+
"configuration": {
45+
"customSipHeader": "YhdVlLzhM1WdwX0d5-mXl6jihKglThsKWE3SmW"
46+
},
47+
"services": {
48+
"teamsDrEnabled": true,
49+
"teamsOcEnabled": false,
50+
"zoomEnabled": false
51+
}
52+
},
53+
"phoneNumber": "+44012345123001"
54+
},
55+
{
56+
"accountName": "contoso",
57+
"details": {
58+
"configuration": {
59+
"customSipHeader": "YhdVlLzhM1WdwX0d5-mXl6jihKglThsKWE3SmW"
60+
},
61+
"services": {
62+
"teamsDrEnabled": false,
63+
"teamsOcEnabled": false,
64+
"zoomEnabled": false
65+
}
66+
},
67+
"phoneNumber": "+44123451230012"
68+
}
69+
]
70+
}
71+
}
72+
}
73+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"parameters": {
3+
"accountName": "contoso",
4+
"api-version": "2023-10-01"
5+
},
6+
"responses": {
7+
"204": {}
8+
}
9+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"accountName": "contoso",
4+
"phoneNumber": "+4412345123001",
5+
"api-version": "2023-10-01"
6+
},
7+
"responses": {
8+
"204": {}
9+
}
10+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"parameters": {
3+
"accountName": "contoso",
4+
"api-version": "2023-10-01"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"etag": "000000000001",
10+
"details": {
11+
"directRouting": {
12+
"callScreening": true,
13+
"subdomain": "cqmJ5UYhx0",
14+
"subdomainTokens": {
15+
"region1Token": "dnjWL23TBMwt2S66UcPpglP_jH8tO3yXcrEeMD2Fj65mTzC6EFC4lFS",
16+
"region2Token": "DMLD1iNu3tLdxT0i4vMkS0wLI6O-lK1VhJpEe3RGs71xG79yg9oTFjqe1nbzyRYX_Je"
17+
}
18+
}
19+
},
20+
"name": "contoso",
21+
"directRoutingProvisioningState": {
22+
"subdomainTokens": {
23+
"region1Token": "dnjWL23TBMwt2S66UcPpglP_jH8tO3yXcrEeMD2Fj65mTzC6EFC4lFS",
24+
"region2Token": "DMLD1iNu3tLdxT0i4vMkS0wLI6O-lK1VhJpEe3RGs71xG79yg9oTFjqe1nbzyRYX_Je"
25+
},
26+
"subdomainStatus": "Provisioned"
27+
}
28+
}
29+
}
30+
}
31+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"parameters": {
3+
"accountName": "contoso",
4+
"api-version": "2023-10-01",
5+
"maxpagesize": 20,
6+
"skip": "40"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"etag": "000000001",
14+
"accountName": "contoso",
15+
"details": {
16+
"configuration": {
17+
"customSipHeader": "2wiNBHiPrHIe48eRQKqZVGqgSHmLVpqDPdc7DlME2yNxZoOCm1y1OYdJg_IpytD_AVv79e-6"
18+
},
19+
"services": {
20+
"teamsDrEnabled": true,
21+
"teamsOcEnabled": false,
22+
"zoomEnabled": false
23+
}
24+
},
25+
"phoneNumber": "012345234345"
26+
}
27+
]
28+
}
29+
}
30+
}
31+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-10-01",
4+
"maxpagesize": 20,
5+
"skip": "40"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"etag": "000000001",
13+
"details": {
14+
"directRouting": {
15+
"callScreening": true,
16+
"subdomain": "XZUhK6hp",
17+
"subdomainTokens": {
18+
"region1Token": "3EhS8ArBii9PQpPptmngonn76e-xhahJG9pMhxDHUnfbL2IRghS4ho9-8v7QgIa",
19+
"region2Token": "nPX1izmHO"
20+
}
21+
}
22+
},
23+
"name": "contoso"
24+
}
25+
]
26+
}
27+
}
28+
}
29+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"parameters": {
3+
"accountName": "contoso",
4+
"phoneNumber": "+4412345123000",
5+
"api-version": "2023-10-01"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"etag": "00000000001",
11+
"accountName": "contoso",
12+
"details": {
13+
"configuration": {
14+
"customSipHeader": "g9nKebUNYbu_P3b3hHyScVWVFBqNnDO3x2bnvW0eTNt5tsQ835iUqMtvHoZP7jog7g"
15+
},
16+
"services": {
17+
"teamsDrEnabled": true,
18+
"teamsOcEnabled": false,
19+
"zoomEnabled": false
20+
}
21+
},
22+
"phoneNumber": "+4412345123000"
23+
}
24+
}
25+
}
26+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"parameters": {
3+
"accountName": "contoso",
4+
"api-version": "2023-10-01"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"etag": "0000000001",
12+
"accountName": "contoso",
13+
"details": {
14+
"configuration": {
15+
"customSipHeader": "Oh3eu_1N6Wo4LQlN4YhwxB3oogVezZALls3CQveJc6nGjAH43fGNPmve2QXIQj5XwP4Y7rgpQ2qrzWNig"
16+
},
17+
"services": {
18+
"teamsDrEnabled": true,
19+
"teamsOcEnabled": false,
20+
"zoomEnabled": false
21+
}
22+
},
23+
"phoneNumber": "+4412345123000"
24+
}
25+
]
26+
}
27+
}
28+
}
29+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"parameters": {
3+
"accountName": "contoso",
4+
"api-version": "2023-10-01",
5+
"body": {
6+
"directRouting": {
7+
"callScreening": true,
8+
"subdomain": "ctKwigZxTf",
9+
"subdomainTokens": {
10+
"region1Token": "G4EMh8k9tzcVgMYj5p",
11+
"region2Token": "5iLKew3Vgo3q0zvxq"
12+
}
13+
}
14+
}
15+
},
16+
"responses": {
17+
"200": {
18+
"body": {
19+
"etag": "000000000001",
20+
"details": {
21+
"directRouting": {
22+
"callScreening": true,
23+
"subdomain": "ctKwigZxTf",
24+
"subdomainTokens": {
25+
"region1Token": "G4EMh8k9tzcVgMYj5p",
26+
"region2Token": "5iLKew3Vgo3q0zvxq"
27+
}
28+
}
29+
},
30+
"name": "contoso"
31+
}
32+
},
33+
"201": {
34+
"body": {
35+
"etag": "000000000001",
36+
"details": {
37+
"directRouting": {
38+
"callScreening": true,
39+
"subdomain": "ctKwigZxTf",
40+
"subdomainTokens": {
41+
"region1Token": "G4EMh8k9tzcVgMYj5p",
42+
"region2Token": "5iLKew3Vgo3q0zvxq"
43+
}
44+
}
45+
},
46+
"name": "contoso"
47+
}
48+
}
49+
}
50+
}

0 commit comments

Comments
 (0)