Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Communication - Telephony Service] Trunk status API #19233

Merged
merged 31 commits into from
Dec 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
56cf100
trunkstatus 2022-07-01 preview
dzeliar May 26, 2022
dd95387
fix nextLink
dzeliar May 27, 2022
bd68d46
remove pageable, fix sdk typo
dzeliar Jun 28, 2022
2c5227d
add port to trunk properties
dzeliar Jul 12, 2022
caaf21a
replace by health endpoint
dzeliar Jul 19, 2022
5c97922
fix overallHealth property
dzeliar Jul 19, 2022
03047a8
fix enums
dzeliar Jul 19, 2022
09f7542
update enum and add descriptive properties
dzeliar Jul 28, 2022
6d7cc29
enums to camelcase
dzeliar Jul 28, 2022
03b094c
remove trunkstatus folder
dzeliar Aug 3, 2022
43bdeb2
add health to trunk properties
dzeliar Aug 3, 2022
c8730aa
create new preview
dzeliar Aug 3, 2022
977b610
address review comments
dzeliar Aug 10, 2022
2ab02c0
fix example
dzeliar Aug 10, 2022
4ebf435
the latest api version swaggers are in the default tag
dzeliar Aug 10, 2022
59d5339
remove unused response codes from example
dzeliar Aug 10, 2022
5dbcf40
fix prettier
dzeliar Aug 10, 2022
1f7dbc1
update python and ruby tag to the latest version
dzeliar Aug 18, 2022
2e157c7
Unify naming SBC->Trunk, move Extended to beginning of Trunk and SipC…
dzeliar Sep 15, 2022
7166fb6
bump up version
dzeliar Dec 6, 2022
7776450
Merge branch 'main' into dusanzeliar/trunkstatus-2022-07-01
dzeliar Dec 6, 2022
a8b7b5a
bump up the swagger version
dzeliar Dec 6, 2022
1a9fa38
fix errors missing enabled property
dzeliar Dec 6, 2022
a4201a8
revert error code version back to new
dzeliar Dec 13, 2022
61f29ba
fix typo and duplicate definition in previous reamdme versions
dzeliar Dec 13, 2022
4bdad89
fix typo
dzeliar Dec 13, 2022
fdb8142
address comments
dzeliar Dec 14, 2022
5752013
update ping description
dzeliar Dec 14, 2022
a682d6a
shuffle object definition to help APIview render document properly
dzeliar Dec 16, 2022
bbe7333
Revert "shuffle object definition to help APIview render document pro…
dzeliar Dec 16, 2022
4642bf0
remove redundant type:object on
dzeliar Dec 19, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parameters": {
"api-version": "2023-01-01-preview",
"endpoint": "https://resourcename.communication.azure.com/"
},
"responses": {
"200": {
"headers": {},
"body": {
"domains": {
"xyz.biz": {
"enabled": true
},
"abc.biz": {
"enabled": true
}
},
"trunks": {
"vendor.xyz.biz": {
"sipSignalingPort": 5061,
"enabled": true
},
"vendor.abc.biz": {
"sipSignalingPort": 5061,
"enabled": true
}
},
"routes": [
{
"name": "LocalRoute",
"numberPattern": "^\\+1[0-9]{10}$"
},
{
"name": "VendorXYZ",
"description": "External route XYZ",
"numberPattern": "^\\+?\\d+$",
"trunks": [
"vendor.xyz.biz"
]
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"parameters": {
"api-version": "2023-01-01-preview",
"endpoint": "https://resourcename.communication.azure.com/",
"expand": "trunks/health"
},
"responses": {
"200": {
"headers": {},
"body": {
"domains": {
"xyz.biz": {
"enabled": true
},
"abc.biz": {
"enabled": true
}
},
"trunks": {
"vendor.xyz.biz": {
"sipSignalingPort": 5061,
"enabled": true,
"health": {
"tls": {
"status": "unknown"
},
"ping": {
"status": "unknown"
},
"overall": {
"status": "unknown"
}
}
},
"vendor.abc.biz": {
"sipSignalingPort": 5061,
"enabled": true,
"health": {
"tls": {
"status": "certExpiring"
},
"ping": {
"status": "ok"
},
"overall": {
"status": "inactive",
"reason": "noRecentCalls"
}
}
}
},
"routes": [
{
"name": "LocalRoute",
"numberPattern": "^\\+1[0-9]{10}$"
},
{
"name": "VendorXYZ",
"description": "External route XYZ",
"numberPattern": "^\\+?\\d+$",
"trunks": [
"vendor.xyz.biz"
]
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"parameters": {
"api-version": "2023-01-01-preview",
"domains": {
"xyz.biz": {
"type": "Custom"
}
},
"body": {
"domains": {
"xyz.biz": {
"enabled": true
},
"abc.biz": {
"enabled": true
}
},
"trunks": {
"vendor.xyz.biz": {
"sipSignalingPort": 5061,
"enabled": true
}
},
"routes": [
{
"name": "VendorXYZ",
"description": "External route XYZ",
"numberPattern": "^\\+?\\d+$",
"trunks": [
"vendor.xyz.biz"
]
}
]
},
"endpoint": "https://resourcename.communication.azure.com/"
},
"responses": {
"200": {
"headers": {},
"body": {
"domains": {
"xyz.biz": {
"enabled": true
},
"abc.biz": {
"enabled": true
}
},
"trunks": {
"vendor.xyz.biz": {
"sipSignalingPort": 5061,
"enabled": true
}
},
"routes": [
{
"name": "VendorXYZ",
"description": "External route XYZ",
"numberPattern": "^\\+?\\d+$",
"trunks": [
"vendor.xyz.biz"
]
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{
"parameters": {
"api-version": "2023-01-01-preview",
"endpoint": "https://resourcename.communication.azure.com/",
"targetPhoneNumber": "+14251234567",
"sipConfiguration": {
"domains": {
"contoso.com": {
"enabled": true
}
},
"trunks": {
"seattle.contoso.com": {
"sipSignalingPort": 5011,
"enabled": true
},
"us1.contoso.com": {
"sipSignalingPort": 5012,
"enabled": true
},
"us2.contoso.com": {
"sipSignalingPort": 5013,
"enabled": true
},
"russia.contoso.com": {
"sipSignalingPort": 5014,
"enabled": true
},
"global.contoso.com": {
"sipSignalingPort": 5015,
"enabled": true
}
},
"routes": [
{
"name": "Seattle",
"description": "Seattle route",
"numberPattern": "^\\+1(425|206)\\d{7}$",
"trunks": [
"seattle.contoso.com"
]
},
{
"name": "US",
"description": "US route",
"numberPattern": "^\\+1\\d{10}$",
"trunks": [
"us1.contoso.com",
"us2.contoso.com"
]
},
{
"name": "Russia",
"description": "Russian route",
"numberPattern": "^\\+7\\d+$",
"trunks": [
"russia.contoso.com"
]
},
{
"name": "Global",
"description": "Fallback route",
"numberPattern": "^\\+\\d+$",
"trunks": [
"global.contoso.com"
]
}
]
}
},
"responses": {
"200": {
"headers": {},
"body": {
"matchingRoutes": [
{
"description": "Seattle route",
"name": "Seattle",
"numberPattern": "^\\+1(425|206)\\d{7}$",
"trunks": [
"seattle.contoso.com"
]
},
{
"description": "US route",
"name": "US",
"numberPattern": "^\\+1\\d{10}$",
"trunks": [
"us1.contoso.com",
"us2.contoso.com"
]
},
{
"description": "Fallback route",
"name": "Global",
"numberPattern": "^\\+\\d+$",
"trunks": [
"global.contoso.com"
]
}
]
}
}
}
}
24 changes: 12 additions & 12 deletions specification/communication/data-plane/SipRouting/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,18 @@ These are the global settings for the communicationservices.

```yaml
openapi-type: data-plane
tag: package-2022-10-01-preview
tag: package-2023-01-01-preview
```

### Tag: package-2023-01-01-preview

These settings apply only when `--tag=package-2023-01-01-preview` is specified on the command line.

```yaml $(tag) == 'package-2023-01-01-preview'
input-file:
- preview/2023-01-01-preview/communicationservicessiprouting.json
title:
Azure Communication Services
```

### Tag: package-2022-10-01-preview
Expand Down Expand Up @@ -63,17 +74,6 @@ title:
Azure Communication Services
```

### Tag: package-2022-10-01-preview

These settings apply only when `--tag=package-2022-05-01-preview` is specified on the command line.

```yaml $(tag) == 'package-2022-10-01-preview'
input-file:
- preview/2022-10-01-preview/communicationservicessiprouting.json
title:
Azure Communication Services
```

---

# Code Generation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ python:
payload-flattening-threshold: 2
namespace: Microsoft.CommunicationServices
package-name: communicationservices
package-version: 2022-10-01-preview
package-version: 2023-01-01-preview
clear-output-folder: true
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,27 @@

These settings apply only when `--ruby` is specified on the command line.

### Tag: package-2023-01-01-preview and ruby

These settings apply only when `--tag=package-2023-01-01-preview --ruby` is specified on the command line.
Please also specify `--ruby-sdks-folder=<path to the root directory of your azure-sdk-for-ruby clone>`.

```yaml $(tag) == 'package-2023-01-01-preview' && $(ruby)
package-name: azure_mgmt_communicationservices
package-version: 2023-01-01-preview
azure-arm: true
namespace: Microsoft.CommunicationServices
output-folder: $(ruby-sdks-folder)/communicationservices
```
### Tag: package-2022-10-01-preview and ruby
These settings apply only when `--tag=package-2022-10-01-preview --ruby` is specified on the command line.
Please also specify `--ruby-sdks-folder=<path to the root directory of your azure-sdk-for-ruby clone>`.

```yaml $(tag) == 'package-2022-10-01-preview' && $(ruby)
package-name: azure_mgmt_communicationservices
package-version: 2021-10-01-preview
package-version: 2022-10-01-preview
azure-arm: true
namespace: Microsoft.CommunicationServices
output-folder: $(ruby-sdks-folder)/communicationservices
Expand All @@ -22,7 +35,7 @@ Please also specify `--ruby-sdks-folder=<path to the root directory of your azur

```yaml $(tag) == 'package-2022-09-01-preview' && $(ruby)
package-name: azure_mgmt_communicationservices
package-version: 2021-09-01-preview
package-version: 2022-09-01-preview
azure-arm: true
namespace: Microsoft.CommunicationServices
output-folder: $(ruby-sdks-folder)/communicationservices
Expand All @@ -39,4 +52,4 @@ package-version: 2021-05-01-preview
azure-arm: true
namespace: Microsoft.CommunicationServices
output-folder: $(ruby-sdks-folder)/communicationservices
```
```