Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.DigitalTwins to add vers…
Browse files Browse the repository at this point in the history
…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
sjiherzig authored and nitegupt committed Sep 25, 2020
1 parent cf721f5 commit e6f42e1
Show file tree
Hide file tree
Showing 18 changed files with 1,712 additions and 4 deletions.

Large diffs are not rendered by default.

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"
}
}
}
}
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": {}
}
}
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": {}
}
}
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"
}
}
}
}
}
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"
}
}
}
}
}
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"
}
}
]
}
}
}
}
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"
}
}
}
}
}
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
}
}
]
}
}
}
}
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
}
}
]
}
}
}
}
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
}
]
}
}
}
}
Loading

0 comments on commit e6f42e1

Please sign in to comment.