forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Review request for Microsoft.DigitalTwins to add vers…
…ion stable/2020-10-31 (Azure#10653) * Adds base for updating Microsoft.DigitalTwins from version preview/2020-03-01-preview to version 2020-10-31 * Updates readme * Updates API version in new specs and examples * Aligned descriptions with GA controller models, and regex patterns in parameters * Update nullable attribute to x-nullable * Latest updates * Add x-ms-secret = true for endpoint PUT * Latest changes * Fix reference issue * Simplify operationResults * Update required property name * Update examples * Update provisioning states * Add 200OK response to delete endpoints * Adds suppression to readme * Adds suppression to readme * Fix operation list example * Add additional provisioning state for endpoints * Remove tags from endpoint * Address internal reviewer comments * Update x-ms-secret properties to be nullable * Adds suppression to readme * Update examples with more realistic obfuscated connection strings * Adds suppression to readme * Adds suppression to readme * Adds suppression to readme * Run npm prettier on changes * Updated readmes
- Loading branch information
Showing
18 changed files
with
1,712 additions
and
4 deletions.
There are no files selected for viewing
1,162 changes: 1,162 additions & 0 deletions
1,162
.../digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2020-10-31/digitaltwins.json
Large diffs are not rendered by default.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
...ft.DigitalTwins/stable/2020-10-31/examples/DigitalTwinsCheckNameAvailability_example.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,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", | ||
"location": "WestUS", | ||
"api-version": "2020-10-31", | ||
"digitalTwinsInstanceCheckName": { | ||
"name": "myadtinstance", | ||
"type": "Microsoft.DigitalTwins/digitalTwinsInstances" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": false, | ||
"message": "Name 'myadtinstance' is already taken. Please specify a different name", | ||
"reason": "AlreadyExists" | ||
} | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...manager/Microsoft.DigitalTwins/stable/2020-10-31/examples/DigitalTwinsDelete_example.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,39 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", | ||
"resourceGroupName": "resRg", | ||
"resourceName": "myDigitalTwinsService", | ||
"api-version": "2020-10-31" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService", | ||
"location": "westus", | ||
"type": "Microsoft.DigitalTwins/digitalTwinsInstances", | ||
"name": "myDigitalTwinsService", | ||
"properties": { | ||
"createdTime": "2019-11-19T12:55:05.229Z", | ||
"lastUpdatedTime": "2019-12-06T12:21:58.610Z", | ||
"provisioningState": "Failed", | ||
"hostName": "https://myDigitalTwinsService.api.wus2.ss.azuredigitaltwins-test.net" | ||
} | ||
} | ||
}, | ||
"202": { | ||
"body": { | ||
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService", | ||
"location": "westus", | ||
"type": "Microsoft.DigitalTwins/digitalTwinsInstances", | ||
"name": "myDigitalTwinsService", | ||
"properties": { | ||
"createdTime": "2019-11-19T12:55:05.229Z", | ||
"lastUpdatedTime": "2019-12-06T12:21:58.610Z", | ||
"provisioningState": "Deleting", | ||
"hostName": "https://myDigitalTwinsService.api.wus2.ss.azuredigitaltwins-test.net" | ||
} | ||
} | ||
}, | ||
"204": {} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...Microsoft.DigitalTwins/stable/2020-10-31/examples/DigitalTwinsEndpointDelete_example.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,40 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", | ||
"resourceGroupName": "resRg", | ||
"resourceName": "myDigitalTwinsService", | ||
"endpointName": "myendpoint", | ||
"api-version": "2020-10-31" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService/endpoints/myServiceBus", | ||
"type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints", | ||
"name": "myendpoint", | ||
"properties": { | ||
"endpointType": "ServiceBus", | ||
"provisioningState": "Failed", | ||
"primaryConnectionString": "Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***", | ||
"secondaryConnectionString": "Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***", | ||
"createdTime": "2019-11-19T01:10:34.350Z" | ||
} | ||
} | ||
}, | ||
"202": { | ||
"body": { | ||
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService/endpoints/myServiceBus", | ||
"type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints", | ||
"name": "myendpoint", | ||
"properties": { | ||
"endpointType": "ServiceBus", | ||
"provisioningState": "Deleting", | ||
"primaryConnectionString": "Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***", | ||
"secondaryConnectionString": "Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***", | ||
"createdTime": "2019-11-19T01:10:34.350Z" | ||
} | ||
} | ||
}, | ||
"204": {} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...er/Microsoft.DigitalTwins/stable/2020-10-31/examples/DigitalTwinsEndpointGet_example.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,25 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", | ||
"resourceGroupName": "resRg", | ||
"resourceName": "myDigitalTwinsService", | ||
"endpointName": "myServiceBus", | ||
"api-version": "2020-10-31" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService/endpoints/myServiceBus", | ||
"type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints", | ||
"name": "myendpoint", | ||
"properties": { | ||
"endpointType": "ServiceBus", | ||
"provisioningState": "Succeeded", | ||
"primaryConnectionString": "Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***", | ||
"secondaryConnectionString": "Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***", | ||
"createdTime": "2019-11-19T01:10:34.350Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
...er/Microsoft.DigitalTwins/stable/2020-10-31/examples/DigitalTwinsEndpointPut_example.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,46 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", | ||
"resourceGroupName": "resRg", | ||
"resourceName": "myDigitalTwinsService", | ||
"api-version": "2020-10-31", | ||
"endpointName": "myServiceBus", | ||
"endpointDescription": { | ||
"properties": { | ||
"endpointType": "ServiceBus", | ||
"primaryConnectionString": "Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=xyzxyzoX4=", | ||
"secondaryConnectionString": "Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=xyzxyzoX4=" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService/endpoints/myServiceBus", | ||
"type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints", | ||
"name": "myServiceBus", | ||
"properties": { | ||
"endpointType": "ServiceBus", | ||
"provisioningState": "Succeeded", | ||
"primaryConnectionString": "Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***", | ||
"secondaryConnectionString": "Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***", | ||
"createdTime": "2019-11-19T01:10:34.350Z" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService/endpoints/myServiceBus", | ||
"type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints", | ||
"name": "myServiceBus", | ||
"properties": { | ||
"endpointType": "ServiceBus", | ||
"provisioningState": "Provisioning", | ||
"primaryConnectionString": "Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***", | ||
"secondaryConnectionString": "Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***", | ||
"createdTime": "2019-11-19T01:10:34.350Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...r/Microsoft.DigitalTwins/stable/2020-10-31/examples/DigitalTwinsEndpointsGet_example.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,40 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", | ||
"resourceGroupName": "resRg", | ||
"resourceName": "myDigitalTwinsService", | ||
"api-version": "2020-10-31" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService/endpoints/myServiceBus", | ||
"type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints", | ||
"name": "myendpoint1", | ||
"properties": { | ||
"endpointType": "ServiceBus", | ||
"primaryConnectionString": "Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***", | ||
"secondaryConnectionString": "Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***", | ||
"provisioningState": "Succeeded", | ||
"createdTime": "2019-11-19T01:10:34.350Z" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService/endpoints/myServiceBus", | ||
"type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints", | ||
"name": "myendpoint2", | ||
"properties": { | ||
"endpointType": "EventHub", | ||
"connectionStringPrimaryKey": "************", | ||
"connectionStringSecondaryKey": "************", | ||
"provisioningState": "Succeeded", | ||
"createdTime": "2019-11-19T01:10:34.350Z" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...ce-manager/Microsoft.DigitalTwins/stable/2020-10-31/examples/DigitalTwinsGet_example.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,24 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", | ||
"resourceGroupName": "resRg", | ||
"resourceName": "myDigitalTwinsService", | ||
"api-version": "2020-10-31" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService", | ||
"location": "westus", | ||
"type": "Microsoft.DigitalTwins/digitalTwinsInstances", | ||
"name": "myDigitalTwinsService", | ||
"properties": { | ||
"createdTime": "2019-11-19T12:55:05.229Z", | ||
"lastUpdatedTime": "2019-12-06T12:21:58.610Z", | ||
"provisioningState": "Succeeded", | ||
"hostName": "https://myDigitalTwinsService.api.wus2.ss.azuredigitaltwins-test.net" | ||
} | ||
} | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...soft.DigitalTwins/stable/2020-10-31/examples/DigitalTwinsListByResourceGroup_example.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,40 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", | ||
"api-version": "2020-10-31", | ||
"resourceGroupName": "resRg" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService", | ||
"location": "westus", | ||
"type": "Microsoft.DigitalTwins/digitalTwinsInstances", | ||
"name": "myDigitalTwinsService", | ||
"properties": { | ||
"createdTime": "2019-11-19T12:55:05.229Z", | ||
"lastUpdatedTime": "2019-11-19T12:51:05.229Z", | ||
"provisioningState": "Succeeded", | ||
"hostName": "https://myDigitalTwinsService.api.wus2.ss.azuredigitaltwins-test.net" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService2", | ||
"location": "westus", | ||
"type": "Microsoft.DigitalTwins/digitalTwinsInstances", | ||
"name": "myDigitalTwinsService2", | ||
"properties": { | ||
"createdTime": "2019-11-19T12:55:07.229Z", | ||
"lastUpdatedTime": "2019-11-19T12:55:07.229Z", | ||
"provisioningState": "Provisioning", | ||
"hostName": null | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...e-manager/Microsoft.DigitalTwins/stable/2020-10-31/examples/DigitalTwinsList_example.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,39 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", | ||
"api-version": "2020-10-31" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService", | ||
"location": "westus", | ||
"type": "Microsoft.DigitalTwins/digitalTwinsInstances", | ||
"name": "myDigitalTwinsService", | ||
"properties": { | ||
"createdTime": "2019-11-19T12:55:05.229Z", | ||
"lastUpdatedTime": "2019-11-19T12:55:07.229Z", | ||
"provisioningState": "Succeeded", | ||
"hostName": "https://myDigitalTwinsService.api.wus2.ss.azuredigitaltwins-test.net" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg2/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService2", | ||
"location": "westus", | ||
"type": "Microsoft.DigitalTwins/digitalTwinsInstances", | ||
"name": "myDigitalTwinsService2", | ||
"properties": { | ||
"createdTime": "2019-11-19T12:55:05.229Z", | ||
"lastUpdatedTime": "2019-11-19T12:55:07.229Z", | ||
"provisioningState": "Provisioning", | ||
"hostName": null | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
...Microsoft.DigitalTwins/stable/2020-10-31/examples/DigitalTwinsOperationsList_example.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,54 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-10-31" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Microsoft.DigitalTwins/models/read", | ||
"display": { | ||
"provider": "Azure Digital Twins", | ||
"resource": "Model", | ||
"operation": "Read Model", | ||
"description": "Read any Model" | ||
}, | ||
"isDataAction": true | ||
}, | ||
{ | ||
"name": "Microsoft.DigitalTwins/digitalTwinsInstances/write", | ||
"display": { | ||
"provider": "Microsoft.DigitalTwins", | ||
"resource": "digitalTwinsInstances", | ||
"operation": "Create or update a Digital Twins Service instance.", | ||
"description": "Create or update a Digital Twins Service instance." | ||
}, | ||
"isDataAction": false | ||
}, | ||
{ | ||
"name": "Microsoft.DigitalTwins/digitalTwinsInstances/read", | ||
"display": { | ||
"provider": "Microsoft.DigitalTwins", | ||
"resource": "digitalTwinsInstances", | ||
"operation": "Get a Digital Twins Service instance.", | ||
"description": "Get a Digital Twins Service instance." | ||
}, | ||
"isDataAction": false | ||
}, | ||
{ | ||
"name": "Microsoft.DigitalTwins/digitalTwinsInstances/delete", | ||
"display": { | ||
"provider": "Microsoft.DigitalTwins", | ||
"resource": "digitalTwinsInstances", | ||
"operation": "Delete a Digital Twins Service instance.", | ||
"description": "Delete a Digital Twins Service instance." | ||
}, | ||
"isDataAction": false | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.