-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Microsoft.Communication resource manager version 2020-08-20 (#13024)
* Add Microsoft.Communication resource manager version 2020-08-20 * Fix mistyped API version from 2020-80-20 to 2020-08-20 * Fix linter errors and bring in more GA changes - Remove 3 instances of ARM violation R4009 by including systemData field - Change resource update to take a CommunicationServiceResource instead of a TaggedResource - Remove custom definition for OperationList and use the common-types version instead - Validate resource names
- Loading branch information
1 parent
086ecb2
commit fba158f
Showing
18 changed files
with
1,312 additions
and
3 deletions.
There are no files selected for viewing
965 changes: 965 additions & 0 deletions
965
...tion/resource-manager/Microsoft.Communication/stable/2020-08-20/CommunicationService.json
Large diffs are not rendered by default.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
...er/Microsoft.Communication/stable/2020-08-20/examples/checkNameAvailabilityAvailable.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345", | ||
"api-version": "2020-08-20", | ||
"nameAvailabilityParameters": { | ||
"type": "Microsoft.Communication/CommunicationServices", | ||
"name": "MyCommunicationService" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": true, | ||
"reason": "NameAvailable", | ||
"message": "Requested name is available for the requested type" | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
.../Microsoft.Communication/stable/2020-08-20/examples/checkNameAvailabilityUnavailable.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345", | ||
"api-version": "2020-08-20", | ||
"nameAvailabilityParameters": { | ||
"type": "Microsoft.Communication/CommunicationServices", | ||
"name": "MyCommunicationService" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": false, | ||
"reason": "AlreadyExists", | ||
"message": "Requested name is unavailable for the requested type" | ||
} | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...n/resource-manager/Microsoft.Communication/stable/2020-08-20/examples/createOrUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345", | ||
"resourceGroupName": "MyResourceGroup", | ||
"communicationServiceName": "MyCommunicationResource", | ||
"api-version": "2020-08-20", | ||
"parameters": { | ||
"location": "Global", | ||
"properties": { | ||
"dataLocation": "United States" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/12345/resourceGroups/MyResourceGroup/providers/Microsoft.Communication/CommunicationServices/MyCommunicationResource", | ||
"name": "MyCommunicationResource", | ||
"type": "Microsoft.Communication/CommunicationServices", | ||
"location": "Global", | ||
"properties": { | ||
"dataLocation": "United States", | ||
"provisioningState": "Succeeded", | ||
"hostName": "mycommunicationresource.communications.azure.com" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"headers": { | ||
"Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Communication/locations/westus/operationStatuses/ed5d502c-acaa-42ec-ad61-0d8488a9fd1d" | ||
}, | ||
"body": { | ||
"id": "/subscriptions/12345/resourceGroups/MyResourceGroup/providers/Microsoft.Communication/CommunicationServices/MyCommunicationResource", | ||
"name": "MyCommunicationResource", | ||
"type": "Microsoft.Communication/CommunicationServices", | ||
"location": "Global", | ||
"properties": { | ||
"dataLocation": "United States", | ||
"provisioningState": "Accepted" | ||
} | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...unication/resource-manager/Microsoft.Communication/stable/2020-08-20/examples/delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345", | ||
"resourceGroupName": "MyResourceGroup", | ||
"communicationServiceName": "MyCommunicationResource", | ||
"api-version": "2020-08-20" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": { | ||
"headers": { | ||
"Location": "https://management.azure.com/providers/Microsoft.Communication/locations/westus/operationStatuses/ed5d502c-acaa-42ec-ad61-0d8488a9fd1d" | ||
} | ||
}, | ||
"204": {} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...ommunication/resource-manager/Microsoft.Communication/stable/2020-08-20/examples/get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345", | ||
"resourceGroupName": "MyResourceGroup", | ||
"communicationServiceName": "MyCommunicationResource", | ||
"api-version": "2020-08-20" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/12345/resourceGroups/MyResourceGroup/providers/Microsoft.Communication/CommunicationServices/MyCommunicationResource", | ||
"name": "MyCommunicationResource", | ||
"type": "Microsoft.Communication/CommunicationServices", | ||
"location": "Global", | ||
"properties": { | ||
"dataLocation": "United States", | ||
"provisioningState": "Running", | ||
"hostName": "mycommunicationservice.comms.azure.net", | ||
"version": "0.2.0" | ||
} | ||
} | ||
}, | ||
"default": { | ||
"body": { | ||
"error": { | ||
"code": "ResourceNotFound", | ||
"message": "The requested resource was not found" | ||
} | ||
} | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...source-manager/Microsoft.Communication/stable/2020-08-20/examples/getOperationStatus.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"parameters": { | ||
"location": "westus2", | ||
"operationId": "db5f291f-284d-46e9-9152-d5c83f7c14b8", | ||
"api-version": "2020-08-20" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "db5f291f-284d-46e9-9152-d5c83f7c14b8", | ||
"status": "Succeeded", | ||
"startTime": "2020-07-06T17:06:26.100Z", | ||
"endTime": "2020-07-06T17:06:42.800Z", | ||
"percentComplete": 100 | ||
} | ||
}, | ||
"default": { | ||
"body": { | ||
"error": { | ||
"code": "OperationNotFound", | ||
"message": "The requested async operation was not found" | ||
} | ||
} | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...ource-manager/Microsoft.Communication/stable/2020-08-20/examples/linkNotificationHub.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345", | ||
"resourceGroupName": "MyResourceGroup", | ||
"communicationServiceName": "MyCommunicationResource", | ||
"api-version": "2020-08-20", | ||
"linkNotificationHubParameters": { | ||
"resourceId": "/subscriptions/12345/resourceGroups/MyOtherResourceGroup/providers/Microsoft.NotificationHubs/namespaces/MyNamespace/notificationHubs/MyHub", | ||
"connectionString": "Endpoint=sb://MyNamespace.servicebus.windows.net/;SharedAccessKey=abcd1234" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"resourceId": "/subscriptions/12345/resourceGroups/MyOtherResourceGroup/providers/Microsoft.NotificationHubs/namespaces/MyNamespace/notificationHubs/MyHub" | ||
} | ||
}, | ||
"default": { | ||
"body": { | ||
"error": { | ||
"code": "WrongSubscription", | ||
"message": "The notification hub must be in the same subscription as the communication service" | ||
} | ||
} | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...ource-manager/Microsoft.Communication/stable/2020-08-20/examples/listByResourceGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345", | ||
"resourceGroupName": "MyResourceGroup", | ||
"api-version": "2020-08-20" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"properties": { | ||
"provisioningState": "Running", | ||
"dataLocation": "United States", | ||
"hostName": "mycommunicationservice.comms.azure.net", | ||
"version": "0.2.0" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...source-manager/Microsoft.Communication/stable/2020-08-20/examples/listBySubscription.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345", | ||
"api-version": "2020-08-20" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"properties": { | ||
"provisioningState": "Running", | ||
"dataLocation": "United States", | ||
"hostName": "mycommunicationservice.comms.azure.net", | ||
"version": "0.2.0" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...ication/resource-manager/Microsoft.Communication/stable/2020-08-20/examples/listKeys.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345", | ||
"resourceGroupName": "MyResourceGroup", | ||
"communicationServiceName": "MyCommunicationResource", | ||
"api-version": "2020-08-20" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"primaryKey": "<primaryKey>", | ||
"secondaryKey": "<secondaryKey>" | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...on/resource-manager/Microsoft.Communication/stable/2020-08-20/examples/regenerateKey.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345", | ||
"resourceGroupName": "MyResourceGroup", | ||
"communicationServiceName": "MyCommunicationResource", | ||
"api-version": "2020-08-20", | ||
"parameters": { | ||
"keyType": "Primary" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"primaryKey": "1234", | ||
"primaryConnectionString": "endpoint=http://example.com;accesskey=1234" | ||
} | ||
}, | ||
"201": { | ||
"body": {} | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...unication/resource-manager/Microsoft.Communication/stable/2020-08-20/examples/update.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345", | ||
"resourceGroupName": "MyResourceGroup", | ||
"communicationServiceName": "MyCommunicationResource", | ||
"api-version": "2020-08-20", | ||
"parameters": { | ||
"tags": { | ||
"newTag": "newVal" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/12345/resourceGroups/MyResourceGroup/providers/Microsoft.Communication/CommunicationServices/MyCommunicationResource", | ||
"name": "MyCommunicationResource", | ||
"type": "Microsoft.Communication/CommunicationServices", | ||
"location": "Global", | ||
"tags": { | ||
"newTag": "newVal" | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"dataLocation": "United States", | ||
"hostName": "mycommunicationresource.communications.azure.com", | ||
"version": "0.2.0" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.