From f950016f4a804a7b6b3e31bf4ad062632bff1861 Mon Sep 17 00:00:00 2001 From: sebastianrex <107705086+sebastianrex@users.noreply.github.com> Date: Thu, 11 May 2023 11:15:03 +0100 Subject: [PATCH 1/3] add or modify files --- .../cadl/communicationsgateway.cadl | 7 + .../NameAvailability_CheckLocal.json | 22 + ...CommunicationsGateways_CreateOrUpdate.json | 162 ++ .../CommunicationsGateways_Delete.json | 20 + .../CommunicationsGateways_Get.json | 65 + ...nicationsGateways_ListByResourceGroup.json | 67 + ...unicationsGateways_ListBySubscription.json | 66 + .../CommunicationsGateways_Update.json | 66 + .../NameAvailability_CheckLocal.json | 22 + .../examples/2023-04-03/Operations_List.json | 25 + .../2023-04-03/TestLines_CreateOrUpdate.json | 45 + .../examples/2023-04-03/TestLines_Delete.json | 22 + .../examples/2023-04-03/TestLines_Get.json | 26 + ...TestLines_ListByCommunicationsGateway.json | 28 + .../examples/2023-04-03/TestLines_Update.json | 28 + .../cadl/operatorvoicemail.cadl | 63 + .../Microsoft.VoiceServices/cadl/package.json | 1 + .../cadl/voiceservices.cadl | 10 + ...CommunicationsGateways_CreateOrUpdate.json | 162 ++ .../CommunicationsGateways_Delete.json | 20 + .../examples/CommunicationsGateways_Get.json | 65 + ...nicationsGateways_ListByResourceGroup.json | 67 + ...unicationsGateways_ListBySubscription.json | 66 + .../CommunicationsGateways_Update.json | 66 + .../examples/NameAvailability_CheckLocal.json | 22 + .../2023-04-03/examples/Operations_List.json | 25 + .../examples/TestLines_CreateOrUpdate.json | 45 + .../2023-04-03/examples/TestLines_Delete.json | 22 + .../2023-04-03/examples/TestLines_Get.json | 26 + ...TestLines_ListByCommunicationsGateway.json | 28 + .../2023-04-03/examples/TestLines_Update.json | 28 + .../stable/2023-04-03/voiceservices.json | 1345 +++++++++++++++++ .../resource-manager/readme.csharp.md | 4 +- .../voiceservices/resource-manager/readme.md | 20 +- .../resource-manager/readme.python.md | 3 +- 35 files changed, 2754 insertions(+), 5 deletions(-) create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-03-01-preview/NameAvailability_CheckLocal.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_CreateOrUpdate.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_Delete.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_Get.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_ListByResourceGroup.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_ListBySubscription.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_Update.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/NameAvailability_CheckLocal.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/Operations_List.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/TestLines_CreateOrUpdate.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/TestLines_Delete.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/TestLines_Get.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/TestLines_ListByCommunicationsGateway.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/TestLines_Update.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/operatorvoicemail.cadl create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_CreateOrUpdate.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_Delete.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_Get.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_ListByResourceGroup.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_ListBySubscription.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_Update.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/NameAvailability_CheckLocal.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/Operations_List.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/TestLines_CreateOrUpdate.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/TestLines_Delete.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/TestLines_Get.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/TestLines_ListByCommunicationsGateway.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/TestLines_Update.json create mode 100644 specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/voiceservices.json diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/communicationsgateway.cadl b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/communicationsgateway.cadl index 00db85505823..1eec0dbccb20 100644 --- a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/communicationsgateway.cadl +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/communicationsgateway.cadl @@ -101,6 +101,8 @@ model CommunicationsGateway @visibility("Read") @path name: string; + + ...ManagedServiceIdentity; } @doc("The status of the current CommunicationsGateway resource.") @@ -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") diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-03-01-preview/NameAvailability_CheckLocal.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-03-01-preview/NameAvailability_CheckLocal.json new file mode 100644 index 000000000000..cd580caab77b --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-03-01-preview/NameAvailability_CheckLocal.json @@ -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" + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_CreateOrUpdate.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_CreateOrUpdate.json new file mode 100644 index 000000000000..8fc4c71c6cac --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_CreateOrUpdate.json @@ -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" + } + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_Delete.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_Delete.json new file mode 100644 index 000000000000..749f16f32cd5 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_Delete.json @@ -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": {} + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_Get.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_Get.json new file mode 100644 index 000000000000..0dc149d88c44 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_Get.json @@ -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" + } + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_ListByResourceGroup.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_ListByResourceGroup.json new file mode 100644 index 000000000000..a9897405e581 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_ListByResourceGroup.json @@ -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" + } + } + ] + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_ListBySubscription.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_ListBySubscription.json new file mode 100644 index 000000000000..fcc50fbc22b9 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_ListBySubscription.json @@ -0,0 +1,66 @@ +{ + "operationId": "CommunicationsGateways_ListBySubscription", + "title": "ListCommunicationsGatewayResourceSub", + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "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" + } + } + ] + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_Update.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_Update.json new file mode 100644 index 000000000000..388b39e4d952 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/CommunicationsGateways_Update.json @@ -0,0 +1,66 @@ +{ + "operationId": "CommunicationsGateways_Update", + "title": "UpdateCommunicationsGatewayResource", + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "testrg", + "api-version": "2023-04-03", + "communicationsGatewayName": "myname", + "location": "useast", + "properties": {} + }, + "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": { + "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" + } + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/NameAvailability_CheckLocal.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/NameAvailability_CheckLocal.json new file mode 100644 index 000000000000..fbd8fbbec4e0 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/NameAvailability_CheckLocal.json @@ -0,0 +1,22 @@ +{ + "operationId": "NameAvailability_CheckLocal", + "title": "CheckLocalNameAvailability", + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "api-version": "2023-04-03", + "location": "useast", + "body": { + "name": "myname", + "type": "Microsoft.VoiceServices/CommunicationsGateways" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": false, + "reason": "AlreadyExists", + "message": "Some error string" + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/Operations_List.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/Operations_List.json new file mode 100644 index 000000000000..7bc9ccbd9fb8 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/Operations_List.json @@ -0,0 +1,25 @@ +{ + "operationId": "Operations_List", + "title": "OperationsList", + "parameters": { + "api-version": "2023-04-03" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.VoiceService/communicationsGateways/write", + "display": { + "provider": "Microsoft.VoiceService", + "resource": "communicationsGateways", + "operation": "write", + "description": "Write communicationsGateways resource" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/TestLines_CreateOrUpdate.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/TestLines_CreateOrUpdate.json new file mode 100644 index 000000000000..a0aba5e65126 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/TestLines_CreateOrUpdate.json @@ -0,0 +1,45 @@ +{ + "operationId": "TestLines_CreateOrUpdate", + "title": "CreateTestLineResource", + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "testrg", + "api-version": "2023-04-03", + "name": "myline", + "testLineName": "myline", + "communicationsGatewayName": "myname", + "resource": { + "location": "useast", + "properties": { + "phoneNumber": "+1-555-1234", + "purpose": "Automated" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceServices/communicationsGateways/myname/TestLines/myline", + "name": "myline", + "location": "useast", + "type": "Microsoft.VoiceServices/communicationsGateways/testLines", + "properties": { + "phoneNumber": "+1-555-1234", + "purpose": "Automated" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceServices/communicationsGateways/myname/TestLines/myline", + "name": "myline", + "location": "useast", + "type": "Microsoft.VoiceServices/communicationsGateways/testLines", + "properties": { + "phoneNumber": "+1-555-1234", + "purpose": "Automated" + } + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/TestLines_Delete.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/TestLines_Delete.json new file mode 100644 index 000000000000..b7cb6f2ca601 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/TestLines_Delete.json @@ -0,0 +1,22 @@ +{ + "operationId": "TestLines_Delete", + "title": "DeleteTestLineResource", + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "testrg", + "api-version": "2023-04-03", + "name": "myline", + "testLineName": "myline", + "communicationsGatewayName": "myname", + "location": "useast" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": {} + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/TestLines_Get.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/TestLines_Get.json new file mode 100644 index 000000000000..5d4bdf7dc942 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/TestLines_Get.json @@ -0,0 +1,26 @@ +{ + "operationId": "TestLines_Get", + "title": "GetTestLineResource", + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "testrg", + "api-version": "2023-04-03", + "name": "myline", + "testLineName": "myline", + "communicationsGatewayName": "myname" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceServices/communicationsGateways/myname/TestLines/myline", + "name": "myline", + "type": "Microsoft.VoiceServices/communicationsGateways/testLines", + "location": "useast", + "properties": { + "phoneNumber": "+1-555-1234", + "purpose": "Automated" + } + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/TestLines_ListByCommunicationsGateway.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/TestLines_ListByCommunicationsGateway.json new file mode 100644 index 000000000000..a5adb878da14 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/TestLines_ListByCommunicationsGateway.json @@ -0,0 +1,28 @@ +{ + "operationId": "TestLines_ListByCommunicationsGateway", + "title": "ListTestLineResource", + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "testrg", + "api-version": "2023-04-03", + "communicationsGatewayName": "myname" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceServices/communicationsGateways/myname/TestLines/myline", + "name": "myline", + "type": "Microsoft.VoiceServices/communicationsGateways/testLines", + "location": "useast", + "properties": { + "phoneNumber": "+1-555-1234", + "purpose": "Automated" + } + } + ] + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/TestLines_Update.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/TestLines_Update.json new file mode 100644 index 000000000000..b0894bc26c64 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/examples/2023-04-03/TestLines_Update.json @@ -0,0 +1,28 @@ +{ + "operationId": "TestLines_Update", + "title": "UpdateTestLineResource", + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "testrg", + "api-version": "2023-04-03", + "name": "myline", + "testLineName": "myline", + "communicationsGatewayName": "myname", + "location": "useast", + "properties": {} + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceServices/communicationsGateways/myname/TestLines/myline", + "name": "myline", + "location": "useast", + "type": "Microsoft.VoiceServices/communicationsGateways/testLines", + "properties": { + "phoneNumber": "+1-555-1234", + "purpose": "Automated" + } + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/operatorvoicemail.cadl b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/operatorvoicemail.cadl new file mode 100644 index 000000000000..d1a0af776fb7 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/operatorvoicemail.cadl @@ -0,0 +1,63 @@ +// Definitions for the OperatorVoicemailInstance resource + +import "@cadl-lang/openapi"; +import "@cadl-lang/rest"; +import "@azure-tools/cadl-providerhub"; +import "@azure-tools/cadl-autorest"; +import "@azure-tools/cadl-azure-core"; +import "@azure-tools/cadl-azure-resource-manager"; + +namespace Microsoft.VoiceServices; + +using Cadl.Http; +using Cadl.Rest; +using Cadl.Versioning; +using Azure.ResourceManager; + +@doc("A OperatorVoicemailInstance resource") +model OperatorVoicemailInstance is TrackedResource { + @pattern("^[a-zA-Z][a-zA-Z0-9-]{2,23}$") + @key("operatorVoicemailInstanceName") + @segment("operatorVoicemailInstances") + @doc("Unique identifier for this Operator Voicemail deployment") + @visibility("Read") + @path + name: string; + + ...ResourceSku; +} + +@doc("Details of SIP trunk.") +model OperatorVoicemailVoipConnection { + @doc("Domain name of the peer connecting to Azure Operator Voicemail over this SIP trunk. This must match the common name of the TLS certificate presented by the peer.") + @visibility("read", "update", "create") + remoteDomain: string; + + @doc("The allowed source IP address or CIDR ranges for signaling") + @visibility("read", "update", "create") + allowedSignalingSourceAddressPrefixes: string[]; + + @doc("The allowed source IP address or CIDR ranges for media") + @visibility("read", "update", "create") + allowedMediaSourceAddressPrefixes: string[]; +} + +@doc("Details of the OperatorVoicemailInstance resource.") +model OperatorVoicemailInstanceProperties is ResourceProperties { + @doc("The set of SIP trunks to be configured on this deployment") + @OpenAPI.extension("x-ms-identifiers", ["remoteDomain"]) + @visibility("read", "update", "create") + @minItems(1) + voipConnections: OperatorVoicemailVoipConnection[]; +} + +@added(Versions.v2023_03_01_preview) +@removed(Versions.v2023_04_03) +@armResourceOperations +interface OperatorVoicemailInstances + extends ResourceRead, + ResourceCreate, + ResourceDelete, + ResourceListBySubscription, + ResourceListByParent, + ResourceUpdateNoProperties {} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/package.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/package.json index c7f54f794782..016f139bcdf8 100644 --- a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/package.json +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/package.json @@ -13,6 +13,7 @@ "@azure-tools/cadl-azure-resource-manager": "^0.24.0", "@azure-tools/cadl-providerhub": "^0.24.0", "@azure-tools/cadl-providerhub-controller": "^0.24.0", + "@azure-tools/cadl-apiview": "0.3.5", "@cadl-lang/compiler": "^0.38.3", "@cadl-lang/openapi": "^0.38.0", "@cadl-lang/rest": "^0.38.0" diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/voiceservices.cadl b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/voiceservices.cadl index 378e871528dc..cc2ec3358dbe 100644 --- a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/voiceservices.cadl +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/cadl/voiceservices.cadl @@ -24,6 +24,14 @@ using Azure.ResourceManager; [ Versions.v2023_01_31, Azure.ResourceManager.Versions.v1_0_Preview_1 + ], + [ + Versions.v2023_03_01_preview, + Azure.ResourceManager.Versions.v1_0_Preview_1 + ], + [ + Versions.v2023_04_03, + Azure.ResourceManager.Versions.v1_0_Preview_1 ] ] ) @@ -32,6 +40,8 @@ namespace Microsoft.VoiceServices; enum Versions { v2022_12_01_preview: "2022-12-01-preview", v2023_01_31: "2023-01-31", + v2023_03_01_preview: "2023-03-01-preview", + v2023_04_03: "2023-04-03" } interface Operations extends Azure.ResourceManager.Operations {} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_CreateOrUpdate.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_CreateOrUpdate.json new file mode 100644 index 000000000000..8fc4c71c6cac --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_CreateOrUpdate.json @@ -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" + } + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_Delete.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_Delete.json new file mode 100644 index 000000000000..749f16f32cd5 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_Delete.json @@ -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": {} + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_Get.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_Get.json new file mode 100644 index 000000000000..0dc149d88c44 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_Get.json @@ -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" + } + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_ListByResourceGroup.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_ListByResourceGroup.json new file mode 100644 index 000000000000..a9897405e581 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_ListByResourceGroup.json @@ -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" + } + } + ] + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_ListBySubscription.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_ListBySubscription.json new file mode 100644 index 000000000000..fcc50fbc22b9 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_ListBySubscription.json @@ -0,0 +1,66 @@ +{ + "operationId": "CommunicationsGateways_ListBySubscription", + "title": "ListCommunicationsGatewayResourceSub", + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "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" + } + } + ] + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_Update.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_Update.json new file mode 100644 index 000000000000..388b39e4d952 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/CommunicationsGateways_Update.json @@ -0,0 +1,66 @@ +{ + "operationId": "CommunicationsGateways_Update", + "title": "UpdateCommunicationsGatewayResource", + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "testrg", + "api-version": "2023-04-03", + "communicationsGatewayName": "myname", + "location": "useast", + "properties": {} + }, + "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": { + "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" + } + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/NameAvailability_CheckLocal.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/NameAvailability_CheckLocal.json new file mode 100644 index 000000000000..fbd8fbbec4e0 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/NameAvailability_CheckLocal.json @@ -0,0 +1,22 @@ +{ + "operationId": "NameAvailability_CheckLocal", + "title": "CheckLocalNameAvailability", + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "api-version": "2023-04-03", + "location": "useast", + "body": { + "name": "myname", + "type": "Microsoft.VoiceServices/CommunicationsGateways" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": false, + "reason": "AlreadyExists", + "message": "Some error string" + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/Operations_List.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/Operations_List.json new file mode 100644 index 000000000000..7bc9ccbd9fb8 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/Operations_List.json @@ -0,0 +1,25 @@ +{ + "operationId": "Operations_List", + "title": "OperationsList", + "parameters": { + "api-version": "2023-04-03" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.VoiceService/communicationsGateways/write", + "display": { + "provider": "Microsoft.VoiceService", + "resource": "communicationsGateways", + "operation": "write", + "description": "Write communicationsGateways resource" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/TestLines_CreateOrUpdate.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/TestLines_CreateOrUpdate.json new file mode 100644 index 000000000000..a0aba5e65126 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/TestLines_CreateOrUpdate.json @@ -0,0 +1,45 @@ +{ + "operationId": "TestLines_CreateOrUpdate", + "title": "CreateTestLineResource", + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "testrg", + "api-version": "2023-04-03", + "name": "myline", + "testLineName": "myline", + "communicationsGatewayName": "myname", + "resource": { + "location": "useast", + "properties": { + "phoneNumber": "+1-555-1234", + "purpose": "Automated" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceServices/communicationsGateways/myname/TestLines/myline", + "name": "myline", + "location": "useast", + "type": "Microsoft.VoiceServices/communicationsGateways/testLines", + "properties": { + "phoneNumber": "+1-555-1234", + "purpose": "Automated" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceServices/communicationsGateways/myname/TestLines/myline", + "name": "myline", + "location": "useast", + "type": "Microsoft.VoiceServices/communicationsGateways/testLines", + "properties": { + "phoneNumber": "+1-555-1234", + "purpose": "Automated" + } + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/TestLines_Delete.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/TestLines_Delete.json new file mode 100644 index 000000000000..b7cb6f2ca601 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/TestLines_Delete.json @@ -0,0 +1,22 @@ +{ + "operationId": "TestLines_Delete", + "title": "DeleteTestLineResource", + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "testrg", + "api-version": "2023-04-03", + "name": "myline", + "testLineName": "myline", + "communicationsGatewayName": "myname", + "location": "useast" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": {} + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/TestLines_Get.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/TestLines_Get.json new file mode 100644 index 000000000000..5d4bdf7dc942 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/TestLines_Get.json @@ -0,0 +1,26 @@ +{ + "operationId": "TestLines_Get", + "title": "GetTestLineResource", + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "testrg", + "api-version": "2023-04-03", + "name": "myline", + "testLineName": "myline", + "communicationsGatewayName": "myname" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceServices/communicationsGateways/myname/TestLines/myline", + "name": "myline", + "type": "Microsoft.VoiceServices/communicationsGateways/testLines", + "location": "useast", + "properties": { + "phoneNumber": "+1-555-1234", + "purpose": "Automated" + } + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/TestLines_ListByCommunicationsGateway.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/TestLines_ListByCommunicationsGateway.json new file mode 100644 index 000000000000..a5adb878da14 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/TestLines_ListByCommunicationsGateway.json @@ -0,0 +1,28 @@ +{ + "operationId": "TestLines_ListByCommunicationsGateway", + "title": "ListTestLineResource", + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "testrg", + "api-version": "2023-04-03", + "communicationsGatewayName": "myname" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceServices/communicationsGateways/myname/TestLines/myline", + "name": "myline", + "type": "Microsoft.VoiceServices/communicationsGateways/testLines", + "location": "useast", + "properties": { + "phoneNumber": "+1-555-1234", + "purpose": "Automated" + } + } + ] + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/TestLines_Update.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/TestLines_Update.json new file mode 100644 index 000000000000..b0894bc26c64 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/examples/TestLines_Update.json @@ -0,0 +1,28 @@ +{ + "operationId": "TestLines_Update", + "title": "UpdateTestLineResource", + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "testrg", + "api-version": "2023-04-03", + "name": "myline", + "testLineName": "myline", + "communicationsGatewayName": "myname", + "location": "useast", + "properties": {} + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceServices/communicationsGateways/myname/TestLines/myline", + "name": "myline", + "location": "useast", + "type": "Microsoft.VoiceServices/communicationsGateways/testLines", + "properties": { + "phoneNumber": "+1-555-1234", + "purpose": "Automated" + } + } + } + } +} diff --git a/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/voiceservices.json b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/voiceservices.json new file mode 100644 index 000000000000..b6b8e73036e3 --- /dev/null +++ b/specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-04-03/voiceservices.json @@ -0,0 +1,1345 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.VoiceServices", + "version": "2023-04-03", + "x-cadl-generated": [ + { + "emitter": "@azure-tools/cadl-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "TestLines" + }, + { + "name": "CommunicationsGateways" + } + ], + "paths": { + "/providers/Microsoft.VoiceServices/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "OperationsList": { + "$ref": "./examples/Operations_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.VoiceServices/communicationsGateways": { + "get": { + "tags": [ + "CommunicationsGateways" + ], + "operationId": "CommunicationsGateways_ListBySubscription", + "description": "List CommunicationsGateway resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunicationsGatewayListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ListCommunicationsGatewayResourceSub": { + "$ref": "./examples/CommunicationsGateways_ListBySubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.VoiceServices/locations/{location}/checkNameAvailability": { + "post": { + "operationId": "NameAvailability_CheckLocal", + "description": "Check whether the resource name is available in the given region.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "description": "The location in which uniqueness will be verified.", + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "description": "The check availability request body.", + "schema": { + "$ref": "#/definitions/CheckNameAvailabilityRequest" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/CheckNameAvailabilityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CheckLocalNameAvailability": { + "$ref": "./examples/NameAvailability_CheckLocal.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways": { + "get": { + "tags": [ + "CommunicationsGateways" + ], + "operationId": "CommunicationsGateways_ListByResourceGroup", + "description": "List CommunicationsGateway resources by resource group", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunicationsGatewayListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ListCommunicationsGatewayResource": { + "$ref": "./examples/CommunicationsGateways_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}": { + "get": { + "tags": [ + "CommunicationsGateways" + ], + "operationId": "CommunicationsGateways_Get", + "description": "Get a CommunicationsGateway", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communicationsGatewayName", + "in": "path", + "required": true, + "description": "Unique identifier for this deployment", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunicationsGateway" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetCommunicationsGatewayResource": { + "$ref": "./examples/CommunicationsGateways_Get.json" + } + } + }, + "put": { + "tags": [ + "CommunicationsGateways" + ], + "operationId": "CommunicationsGateways_CreateOrUpdate", + "description": "Create a CommunicationsGateway", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communicationsGatewayName", + "in": "path", + "required": true, + "description": "Unique identifier for this deployment", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + }, + { + "name": "resource", + "in": "body", + "required": true, + "description": "Resource create parameters.", + "schema": { + "$ref": "#/definitions/CommunicationsGateway" + } + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunicationsGateway" + } + }, + "201": { + "description": "ARM create operation completed successfully.", + "headers": { + "Retry-After": { + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "type": "integer", + "format": "int32" + } + }, + "schema": { + "$ref": "#/definitions/CommunicationsGateway" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreateCommunicationsGatewayResource": { + "$ref": "./examples/CommunicationsGateways_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "CommunicationsGateways" + ], + "operationId": "CommunicationsGateways_Delete", + "description": "Delete a CommunicationsGateway", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communicationsGatewayName", + "in": "path", + "required": true, + "description": "Unique identifier for this deployment", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Retry-After": { + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "type": "integer", + "format": "int32" + } + } + }, + "204": { + "description": "Resource deleted successfully." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DeleteCommunicationsGatewayResource": { + "$ref": "./examples/CommunicationsGateways_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "CommunicationsGateways" + ], + "operationId": "CommunicationsGateways_Update", + "description": "Update a CommunicationsGateway", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communicationsGatewayName", + "in": "path", + "required": true, + "description": "Unique identifier for this deployment", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + }, + { + "name": "properties", + "in": "body", + "required": true, + "description": "The resource properties to be updated.", + "schema": { + "$ref": "#/definitions/CommunicationsGatewayUpdate" + } + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/CommunicationsGateway" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "UpdateCommunicationsGatewayResource": { + "$ref": "./examples/CommunicationsGateways_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines": { + "get": { + "tags": [ + "TestLines" + ], + "operationId": "TestLines_ListByCommunicationsGateway", + "description": "List TestLine resources by CommunicationsGateway", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communicationsGatewayName", + "in": "path", + "required": true, + "description": "Unique identifier for this deployment", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/TestLineListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ListTestLineResource": { + "$ref": "./examples/TestLines_ListByCommunicationsGateway.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName}": { + "get": { + "tags": [ + "TestLines" + ], + "operationId": "TestLines_Get", + "description": "Get a TestLine", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communicationsGatewayName", + "in": "path", + "required": true, + "description": "Unique identifier for this deployment", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + }, + { + "name": "testLineName", + "in": "path", + "required": true, + "description": "Unique identifier for this test line", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/TestLine" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetTestLineResource": { + "$ref": "./examples/TestLines_Get.json" + } + } + }, + "put": { + "tags": [ + "TestLines" + ], + "operationId": "TestLines_CreateOrUpdate", + "description": "Create a TestLine", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communicationsGatewayName", + "in": "path", + "required": true, + "description": "Unique identifier for this deployment", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + }, + { + "name": "testLineName", + "in": "path", + "required": true, + "description": "Unique identifier for this test line", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + }, + { + "name": "resource", + "in": "body", + "required": true, + "description": "Resource create parameters.", + "schema": { + "$ref": "#/definitions/TestLine" + } + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/TestLine" + } + }, + "201": { + "description": "ARM create operation completed successfully.", + "headers": { + "Retry-After": { + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "type": "integer", + "format": "int32" + } + }, + "schema": { + "$ref": "#/definitions/TestLine" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreateTestLineResource": { + "$ref": "./examples/TestLines_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "TestLines" + ], + "operationId": "TestLines_Delete", + "description": "Delete a TestLine", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communicationsGatewayName", + "in": "path", + "required": true, + "description": "Unique identifier for this deployment", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + }, + { + "name": "testLineName", + "in": "path", + "required": true, + "description": "Unique identifier for this test line", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Retry-After": { + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "type": "integer", + "format": "int32" + } + } + }, + "204": { + "description": "Resource deleted successfully." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DeleteTestLineResource": { + "$ref": "./examples/TestLines_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "TestLines" + ], + "operationId": "TestLines_Update", + "description": "Update a TestLine", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "communicationsGatewayName", + "in": "path", + "required": true, + "description": "Unique identifier for this deployment", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + }, + { + "name": "testLineName", + "in": "path", + "required": true, + "description": "Unique identifier for this test line", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + }, + { + "name": "properties", + "in": "body", + "required": true, + "description": "The resource properties to be updated.", + "schema": { + "$ref": "#/definitions/TestLineUpdate" + } + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/TestLine" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "UpdateTestLineResource": { + "$ref": "./examples/TestLines_Update.json" + } + } + } + } + }, + "definitions": { + "ApiBridgeProperties": { + "type": "object", + "properties": {}, + "description": "Details of API bridge functionality." + }, + "AutoGeneratedDomainNameLabelScope": { + "type": "string", + "description": "Available auto-generated domain name scopes.", + "enum": [ + "TenantReuse", + "SubscriptionReuse", + "ResourceGroupReuse", + "NoReuse" + ], + "x-ms-enum": { + "name": "AutoGeneratedDomainNameLabelScope", + "modelAsString": true + } + }, + "CheckNameAvailabilityReason": { + "type": "string", + "description": "Possible reasons for a name not being available.", + "enum": [ + "Invalid", + "AlreadyExists" + ], + "x-ms-enum": { + "name": "CheckNameAvailabilityReason", + "modelAsString": true + } + }, + "CheckNameAvailabilityRequest": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the resource for which availability needs to be checked." + }, + "type": { + "type": "string", + "description": "The resource type." + } + }, + "description": "The check availability request body." + }, + "CheckNameAvailabilityResponse": { + "type": "object", + "properties": { + "nameAvailable": { + "type": "boolean", + "description": "Indicates if the resource name is available." + }, + "reason": { + "$ref": "#/definitions/CheckNameAvailabilityReason", + "description": "The reason why the given name is not available." + }, + "message": { + "type": "string", + "description": "Detailed reason why the given name is not available." + } + }, + "description": "The check availability result." + }, + "CommunicationsGateway": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/CommunicationsGatewayProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "The managed service identities assigned to this resource." + } + }, + "description": "A CommunicationsGateway resource", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] + }, + "CommunicationsGatewayListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/CommunicationsGateway" + }, + "x-cadl-name": "CommunicationsGateway[]", + "description": "The CommunicationsGateway items on this page" + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items", + "x-cadl-name": "Rest.ResourceLocation" + } + }, + "description": "The response of a CommunicationsGateway list operation.", + "required": [ + "value" + ] + }, + "CommunicationsGatewayProperties": { + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Resource provisioning state.", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/Status", + "description": "The current status of the deployment.", + "readOnly": true + }, + "serviceLocations": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceRegionProperties" + }, + "x-ms-identifiers": [ + "name" + ], + "x-cadl-name": "ServiceRegionProperties[]", + "description": "The regions in which to deploy the resources needed for Teams Calling", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "connectivity": { + "$ref": "#/definitions/Connectivity", + "description": "How to connect back to the operator network, e.g. MAPS", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "codecs": { + "type": "array", + "items": { + "$ref": "#/definitions/TeamsCodecs" + }, + "x-cadl-name": "TeamsCodecs[]", + "description": "Voice codecs to support", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "e911Type": { + "$ref": "#/definitions/E911Type", + "description": "How to handle 911 calls", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "platforms": { + "type": "array", + "items": { + "$ref": "#/definitions/CommunicationsPlatform" + }, + "x-cadl-name": "CommunicationsPlatform[]", + "description": "What platforms to support", + "minItems": 1, + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "apiBridge": { + "$ref": "#/definitions/ApiBridgeProperties", + "description": "Details of API bridge functionality, if required", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "autoGeneratedDomainNameLabelScope": { + "$ref": "#/definitions/AutoGeneratedDomainNameLabelScope", + "description": "The scope at which the auto-generated domain name can be re-used", + "default": "TenantReuse", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "autoGeneratedDomainNameLabel": { + "type": "string", + "description": "The autogenerated label used as part of the FQDNs for accessing the Communications Gateway", + "readOnly": true + }, + "teamsVoicemailPilotNumber": { + "type": "string", + "description": "This number is used in Teams Phone Mobile scenarios for access to the voicemail IVR from the native dialer.", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "onPremMcpEnabled": { + "type": "boolean", + "description": "Whether an on-premises Mobile Control Point is in use.", + "default": false, + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "integratedMcpEnabled": { + "type": "boolean", + "description": "Whether an integrated Mobile Control Point is in use.", + "default": false, + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "emergencyDialStrings": { + "type": "array", + "items": { + "type": "string" + }, + "x-cadl-name": "string[]", + "description": "A list of dial strings used for emergency calling.", + "default": [ + "911", + "933" + ], + "x-ms-mutability": [ + "read", + "update", + "create" + ] + } + }, + "description": "Details of the CommunicationsGateway resource.", + "required": [ + "serviceLocations", + "connectivity", + "codecs", + "e911Type", + "platforms" + ] + }, + "CommunicationsGatewayUpdate": { + "type": "object", + "properties": { + "identity": { + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "The managed service identities assigned to this resource." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-cadl-name": "Record", + "description": "Resource tags." + } + }, + "description": "The type used for update operations of the CommunicationsGateway." + }, + "CommunicationsPlatform": { + "type": "string", + "description": "Available platform types.", + "enum": [ + "OperatorConnect", + "TeamsPhoneMobile" + ], + "x-ms-enum": { + "name": "CommunicationsPlatform", + "modelAsString": true + } + }, + "Connectivity": { + "type": "string", + "description": "How this deployment connects back to the operator network", + "enum": [ + "PublicAddress" + ], + "x-ms-enum": { + "name": "Connectivity", + "modelAsString": true, + "values": [ + { + "name": "PublicAddress", + "value": "PublicAddress", + "description": "This deployment connects to the operator network using a Public IP address, e.g. when using MAPS" + } + ] + } + }, + "E911Type": { + "type": "string", + "description": "The method for terminating emergency calls to the PSTN.", + "enum": [ + "Standard", + "DirectToEsrp" + ], + "x-ms-enum": { + "name": "E911Type", + "modelAsString": true, + "values": [ + { + "name": "Standard", + "value": "Standard", + "description": "Emergency calls are not handled different from other calls" + }, + { + "name": "DirectToEsrp", + "value": "DirectToEsrp", + "description": "Emergency calls are routed directly to the ESRP" + } + ] + } + }, + "PrimaryRegionProperties": { + "type": "object", + "properties": { + "operatorAddresses": { + "type": "array", + "items": { + "type": "string" + }, + "x-cadl-name": "string[]", + "description": "IP address to use to contact the operator network from this region", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "esrpAddresses": { + "type": "array", + "items": { + "type": "string" + }, + "x-cadl-name": "string[]", + "description": "IP address to use to contact the ESRP from this region", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "allowedSignalingSourceAddressPrefixes": { + "type": "array", + "items": { + "type": "string" + }, + "x-cadl-name": "string[]", + "description": "The allowed source IP address or CIDR ranges for signaling", + "default": [], + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "allowedMediaSourceAddressPrefixes": { + "type": "array", + "items": { + "type": "string" + }, + "x-cadl-name": "string[]", + "description": "The allowed source IP address or CIDR ranges for media", + "default": [], + "x-ms-mutability": [ + "read", + "update", + "create" + ] + } + }, + "description": "The configuration used in this region as primary, and other regions as backup.", + "required": [ + "operatorAddresses" + ] + }, + "ProvisioningState": { + "type": "string", + "description": "Provisioning state of the resource.", + "enum": [ + "Succeeded", + "Failed", + "Canceled" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "ServiceRegionProperties": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the region in which the resources needed for Teams Calling will be deployed.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "primaryRegionProperties": { + "$ref": "#/definitions/PrimaryRegionProperties", + "description": "The configuration used in this region as primary, and other regions as backup.", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + } + }, + "description": "The service region configuration needed for Teams Callings.", + "required": [ + "name", + "primaryRegionProperties" + ] + }, + "Status": { + "type": "string", + "description": "The status of the current CommunicationsGateway resource.", + "enum": [ + "ChangePending", + "Complete" + ], + "x-ms-enum": { + "name": "Status", + "modelAsString": true, + "values": [ + { + "name": "ChangePending", + "value": "ChangePending", + "description": "The resource has been created or updated, but the CommunicationsGateway service has not yet been updated to reflect the changes." + }, + { + "name": "Complete", + "value": "Complete", + "description": "The CommunicationsGateway service is up and running with the parameters specified in the resource." + } + ] + } + }, + "TeamsCodecs": { + "type": "string", + "description": "The voice codecs expected for communication with Teams.", + "enum": [ + "PCMA", + "PCMU", + "G722", + "G722_2", + "SILK_8", + "SILK_16" + ], + "x-ms-enum": { + "name": "TeamsCodecs", + "modelAsString": true + } + }, + "TestLine": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/TestLineProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + } + }, + "description": "A TestLine resource", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] + }, + "TestLineListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/TestLine" + }, + "x-cadl-name": "TestLine[]", + "description": "The TestLine items on this page" + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items", + "x-cadl-name": "Rest.ResourceLocation" + } + }, + "description": "The response of a TestLine list operation.", + "required": [ + "value" + ] + }, + "TestLineProperties": { + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Resource provisioning state.", + "readOnly": true + }, + "phoneNumber": { + "type": "string", + "description": "The phone number", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "purpose": { + "$ref": "#/definitions/TestLinePurpose", + "description": "Purpose of this test line, e.g. automated or manual testing", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + } + }, + "description": "Details of the TestLine resource.", + "required": [ + "phoneNumber", + "purpose" + ] + }, + "TestLinePurpose": { + "type": "string", + "description": "The purpose of the TestLine resource.", + "enum": [ + "Manual", + "Automated" + ], + "x-ms-enum": { + "name": "TestLinePurpose", + "modelAsString": true + } + }, + "TestLineUpdate": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-cadl-name": "Record", + "description": "Resource tags." + } + }, + "description": "The type used for update operations of the TestLine." + } + }, + "parameters": {} +} diff --git a/specification/voiceservices/resource-manager/readme.csharp.md b/specification/voiceservices/resource-manager/readme.csharp.md index bd83adb37bf7..ba41e68c20ea 100644 --- a/specification/voiceservices/resource-manager/readme.csharp.md +++ b/specification/voiceservices/resource-manager/readme.csharp.md @@ -10,6 +10,6 @@ csharp: payload-flattening-threshold: 1 clear-output-folder: true client-side-validation: false - namespace: Microsoft.VoiceServices - output-folder: $(csharp-sdks-folder)/voiceservice/management/Microsoft.VoiceServices/GeneratedProtocol + namespace: Azure.ResourceManager.VoiceServices + output-folder: $(csharp-sdks-folder)/voiceservice/management/Azure.ResourceManager.VoiceServices/GeneratedProtocol ``` diff --git a/specification/voiceservices/resource-manager/readme.md b/specification/voiceservices/resource-manager/readme.md index a59cb2e63cbe..b9022aa03227 100644 --- a/specification/voiceservices/resource-manager/readme.md +++ b/specification/voiceservices/resource-manager/readme.md @@ -27,7 +27,7 @@ These are the global settings for the voiceservices. ```yaml openapi-type: arm openapi-subtype: rpaas -tag: package-2023-01-31 +tag: package-2023-04-03 ``` ### Tag: package-2022-12-01-preview @@ -48,6 +48,24 @@ input-file: - Microsoft.VoiceServices/stable/2023-01-31/voiceservices.json ``` +### Tag: package-2023-03-01-preview + +These settings apply only when `--tag=package-2023-03-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2023-03-01-preview' +input-file: + - Microsoft.VoiceServices/preview/2023-03-01-preview/voiceservices.json +``` + +### Tag: package-2023-04-03 + +These settings apply only when `--tag=package-2023-04-03` is specified on the command line. + +```yaml $(tag) == 'package-2023-04-03' +input-file: + - Microsoft.VoiceServices/stable/2023-04-03/voiceservices.json +``` + --- # Code Generation diff --git a/specification/voiceservices/resource-manager/readme.python.md b/specification/voiceservices/resource-manager/readme.python.md index 33585cb4d1ec..61017b066ef1 100644 --- a/specification/voiceservices/resource-manager/readme.python.md +++ b/specification/voiceservices/resource-manager/readme.python.md @@ -4,12 +4,11 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. ``` yaml $(python) -title: VoiceServicesMgmtClient azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION package-name: azure-mgmt-voiceservices namespace: azure.mgmt.voiceservices -package-version: 1.0.0 +package-version: 1.0.0b1 clear-output-folder: true ``` From bcfb1f79f811e0b7d2778493566042de1be027f2 Mon Sep 17 00:00:00 2001 From: Sebastian Rex Date: Thu, 11 May 2023 12:21:53 +0100 Subject: [PATCH 2/3] Fix up python package and readme --- specification/voiceservices/resource-manager/readme.md | 9 --------- .../voiceservices/resource-manager/readme.python.md | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/specification/voiceservices/resource-manager/readme.md b/specification/voiceservices/resource-manager/readme.md index b9022aa03227..c7564dc52612 100644 --- a/specification/voiceservices/resource-manager/readme.md +++ b/specification/voiceservices/resource-manager/readme.md @@ -48,15 +48,6 @@ input-file: - Microsoft.VoiceServices/stable/2023-01-31/voiceservices.json ``` -### Tag: package-2023-03-01-preview - -These settings apply only when `--tag=package-2023-03-01-preview` is specified on the command line. - -```yaml $(tag) == 'package-2023-03-01-preview' -input-file: - - Microsoft.VoiceServices/preview/2023-03-01-preview/voiceservices.json -``` - ### Tag: package-2023-04-03 These settings apply only when `--tag=package-2023-04-03` is specified on the command line. diff --git a/specification/voiceservices/resource-manager/readme.python.md b/specification/voiceservices/resource-manager/readme.python.md index 61017b066ef1..0fca3e61c5b4 100644 --- a/specification/voiceservices/resource-manager/readme.python.md +++ b/specification/voiceservices/resource-manager/readme.python.md @@ -8,7 +8,7 @@ azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION package-name: azure-mgmt-voiceservices namespace: azure.mgmt.voiceservices -package-version: 1.0.0b1 +package-version: 1.0.0 clear-output-folder: true ``` From 9bb7d68c46b26db8835a90ad3bb53905578a6174 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Fri, 26 May 2023 10:26:22 +0800 Subject: [PATCH 3/3] Update readme.python.md --- specification/voiceservices/resource-manager/readme.python.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/voiceservices/resource-manager/readme.python.md b/specification/voiceservices/resource-manager/readme.python.md index 0fca3e61c5b4..33585cb4d1ec 100644 --- a/specification/voiceservices/resource-manager/readme.python.md +++ b/specification/voiceservices/resource-manager/readme.python.md @@ -4,6 +4,7 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. ``` yaml $(python) +title: VoiceServicesMgmtClient azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION package-name: azure-mgmt-voiceservices