Skip to content

Commit

Permalink
[Hub Generated] Publish private branch 'voiceservices/api-release' (#…
Browse files Browse the repository at this point in the history
…23928)

* add or modify files

* Fix up python package and readme

* Update readme.python.md

---------

Co-authored-by: Yuchao Yan <[email protected]>
  • Loading branch information
sebastianrex and msyyc authored May 26, 2023
1 parent ea8a561 commit 1dc3b69
Show file tree
Hide file tree
Showing 34 changed files with 2,744 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ model CommunicationsGateway
@visibility("Read")
@path
name: string;

...ManagedServiceIdentity;
}

@doc("The status of the current CommunicationsGateway resource.")
Expand Down Expand Up @@ -240,6 +242,11 @@ model CommunicationsGatewayProperties is ResourceProperties {
@visibility("read", "update", "create")
onPremMcpEnabled?: boolean = false;

@added(Versions.v2023_04_03)
@doc("Whether an integrated Mobile Control Point is in use.")
@visibility("read", "update", "create")
integratedMcpEnabled?: boolean = false;

@added(Versions.v2023_01_31)
@doc("A list of dial strings used for emergency calling.")
@visibility("read", "update", "create")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"operationId": "NameAvailability_CheckLocal",
"title": "CheckNameAvailability",
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"api-version": "2023-03-01-preview",
"location": "useast",
"body": {
"name": "myname",
"type": "Microsoft.VoiceServices/CommunicationsGateways"
}
},
"responses": {
"200": {
"body": {
"nameAvailable": false,
"reason": "AlreadyExists",
"message": "Some error string"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
{
"operationId": "CommunicationsGateways_CreateOrUpdate",
"title": "CreateCommunicationsGatewayResource",
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "testrg",
"api-version": "2023-04-03",
"name": "myname",
"communicationsGatewayName": "myname",
"resource": {
"location": "useast",
"properties": {
"serviceLocations": [
{
"name": "useast",
"primaryRegionProperties": {
"operatorAddresses": [
"198.51.100.1"
],
"allowedSignalingSourceAddressPrefixes": [
"10.1.1.0/24"
],
"allowedMediaSourceAddressPrefixes": [
"10.1.2.0/24"
]
}
},
{
"name": "useast2",
"primaryRegionProperties": {
"operatorAddresses": [
"198.51.100.2"
],
"allowedSignalingSourceAddressPrefixes": [
"10.2.1.0/24"
],
"allowedMediaSourceAddressPrefixes": [
"10.2.2.0/24"
]
}
}
],
"connectivity": "PublicAddress",
"codecs": [
"PCMA"
],
"e911Type": "Standard",
"platforms": [
"OperatorConnect"
],
"autoGeneratedDomainNameLabelScope": "NoReuse",
"teamsVoicemailPilotNumber": "1234567890"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceServices/communicationsGateways/myname",
"name": "myname",
"type": "Microsoft.VoiceServices/communicationsGateways",
"location": "useast",
"properties": {
"serviceLocations": [
{
"name": "useast",
"primaryRegionProperties": {
"operatorAddresses": [
"198.51.100.1"
],
"allowedSignalingSourceAddressPrefixes": [
"10.1.1.0/24"
],
"allowedMediaSourceAddressPrefixes": [
"10.1.2.0/24"
]
}
},
{
"name": "useast2",
"primaryRegionProperties": {
"operatorAddresses": [
"198.51.100.2"
],
"allowedSignalingSourceAddressPrefixes": [
"10.2.1.0/24"
],
"allowedMediaSourceAddressPrefixes": [
"10.2.2.0/24"
]
}
}
],
"status": "ChangePending",
"connectivity": "PublicAddress",
"codecs": [
"PCMA"
],
"e911Type": "Standard",
"platforms": [
"OperatorConnect"
],
"autoGeneratedDomainNameLabelScope": "NoReuse",
"autoGeneratedDomainNameLabel": "somelabel",
"teamsVoicemailPilotNumber": "1234567890"
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceServices/communicationsGateways/myname",
"name": "myname",
"type": "Microsoft.VoiceServices/communicationsGateways",
"location": "useast",
"properties": {
"status": "ChangePending",
"serviceLocations": [
{
"name": "useast",
"primaryRegionProperties": {
"operatorAddresses": [
"198.51.100.1"
],
"allowedSignalingSourceAddressPrefixes": [
"10.1.1.0/24"
],
"allowedMediaSourceAddressPrefixes": [
"10.1.2.0/24"
]
}
},
{
"name": "useast2",
"primaryRegionProperties": {
"operatorAddresses": [
"198.51.100.2"
],
"allowedSignalingSourceAddressPrefixes": [
"10.2.1.0/24"
],
"allowedMediaSourceAddressPrefixes": [
"10.2.2.0/24"
]
}
}
],
"connectivity": "PublicAddress",
"codecs": [
"PCMA"
],
"e911Type": "Standard",
"platforms": [
"OperatorConnect"
],
"autoGeneratedDomainNameLabelScope": "NoReuse",
"autoGeneratedDomainNameLabel": "somelabel",
"teamsVoicemailPilotNumber": "1234567890"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"operationId": "CommunicationsGateways_Delete",
"title": "DeleteCommunicationsGatewayResource",
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "testrg",
"api-version": "2023-04-03",
"communicationsGatewayName": "myname",
"location": "useast"
},
"responses": {
"200": {},
"202": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"operationId": "CommunicationsGateways_Get",
"title": "GetCommunicationsGatewayResource",
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "testrg",
"api-version": "2023-04-03",
"name": "myname",
"communicationsGatewayName": "myname"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceService/communicationsGateways/myname",
"name": "myname",
"location": "useast",
"type": "Microsoft.VoiceService/communicationsGateways",
"properties": {
"status": "ChangePending",
"serviceLocations": [
{
"name": "useast",
"primaryRegionProperties": {
"operatorAddresses": [
"198.51.100.1"
],
"allowedSignalingSourceAddressPrefixes": [
"10.1.1.0/24"
],
"allowedMediaSourceAddressPrefixes": [
"10.1.2.0/24"
]
}
},
{
"name": "useast2",
"primaryRegionProperties": {
"operatorAddresses": [
"198.51.100.2"
],
"allowedSignalingSourceAddressPrefixes": [
"10.2.1.0/24"
],
"allowedMediaSourceAddressPrefixes": [
"10.2.2.0/24"
]
}
}
],
"connectivity": "PublicAddress",
"codecs": [
"PCMA"
],
"e911Type": "Standard",
"platforms": [
"OperatorConnect"
],
"autoGeneratedDomainNameLabelScope": "NoReuse",
"autoGeneratedDomainNameLabel": "somelabel",
"teamsVoicemailPilotNumber": "1234567890"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"operationId": "CommunicationsGateways_ListByResourceGroup",
"title": "ListCommunicationsGatewayResource",
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "testrg",
"api-version": "2023-04-03"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceService/communicationsGateways/myname",
"name": "myname",
"location": "useast",
"type": "Microsoft.VoiceService/communicationsGateways",
"properties": {
"status": "ChangePending",
"serviceLocations": [
{
"name": "useast",
"primaryRegionProperties": {
"operatorAddresses": [
"198.51.100.1"
],
"allowedSignalingSourceAddressPrefixes": [
"10.1.1.0/24"
],
"allowedMediaSourceAddressPrefixes": [
"10.1.2.0/24"
]
}
},
{
"name": "useast2",
"primaryRegionProperties": {
"operatorAddresses": [
"198.51.100.2"
],
"allowedSignalingSourceAddressPrefixes": [
"10.2.1.0/24"
],
"allowedMediaSourceAddressPrefixes": [
"10.2.2.0/24"
]
}
}
],
"connectivity": "PublicAddress",
"codecs": [
"PCMA"
],
"e911Type": "Standard",
"platforms": [
"OperatorConnect"
],
"autoGeneratedDomainNameLabelScope": "NoReuse",
"autoGeneratedDomainNameLabel": "somelabel",
"teamsVoicemailPilotNumber": "1234567890"
}
}
]
}
}
}
}
Loading

0 comments on commit 1dc3b69

Please sign in to comment.