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-12-01 (Azure#10996)

* Adds base for updating Microsoft.DigitalTwins from version stable/2020-10-31 to version 2020-12-01

* Updates readme

* Updates API version in new specs and examples

* Update swagger spec

* Modify SDK build configs

* Fix example filename reference

* Rename example file

* Fix validation errors

* Updated examples

* Revert change to behavior of async op

* Modify discriminators

* Enable two discriminators

* Fix delete endpoint example

* Attempted fix with discriminator

* Added westus2, change discriminator enum type name

* Decouple allOf from properties

* Bugfixes

* Modify response to fix validation errors

* Fix examples

* Change private link type names to be smaller

* Fix validation errors in private links

* Fix validation error related to private links

* Reference private link example

* Add public network access

* Align with GA swagger

* Update private links / private endpoints

* Fix example to use actual response status code

* Remove unused example

* Unmark private endpoint connection to be an azure resource

* Add type and name to private endpoint connection resource

* Mark id as read-only

* Fix return types for endpoint connections

* Align return of DELETE

* Fix validation errors

* Fix version tag in python.md; remove body from DELETE endpoint connection DELETE responses

* Synchronize swagger with 2020-10-31 version

* Increase resource group name max length to 90 characters

* Make publicNetworkAccess nullable

* Add publicNetworkAccess flag to PATCH request

* Fixed typo

* Fix placing of example for endpoints

* Update operation ids

* Added suppression message
  • Loading branch information
sjiherzig authored and josuh committed Jan 6, 2021
1 parent 680640a commit e4e6dac
Show file tree
Hide file tree
Showing 36 changed files with 3,046 additions and 2 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": "WestUS2",
"api-version": "2020-12-01",
"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,49 @@
{
"parameters": {
"subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e",
"resourceGroupName": "resRg",
"resourceName": "myDigitalTwinsService",
"api-version": "2020-12-01"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService",
"location": "westus2",
"type": "Microsoft.DigitalTwins/digitalTwinsInstances",
"name": "myDigitalTwinsService",
"identity": {
"type": "SystemAssigned",
"principalId": "544215a9-21d8-4fb5-8094-8efbcc311dd0",
"tenantId": "544215a9-21d8-4fb5-8094-8efbcc311dd0"
},
"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/digitalTwinsInstances/myDigitalTwinsService",
"location": "westus2",
"type": "Microsoft.DigitalTwins/digitalTwinsInstances",
"name": "myDigitalTwinsService",
"identity": {
"type": "SystemAssigned",
"principalId": "544215a9-21d8-4fb5-8094-8efbcc311dd0",
"tenantId": "544215a9-21d8-4fb5-8094-8efbcc311dd0"
},
"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,39 @@
{
"parameters": {
"subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e",
"resourceGroupName": "resRg",
"resourceName": "myDigitalTwinsService",
"api-version": "2020-12-01"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService",
"location": "westus2",
"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/digitalTwinsInstances/myDigitalTwinsService",
"location": "westus2",
"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,42 @@
{
"parameters": {
"subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e",
"resourceGroupName": "resRg",
"resourceName": "myDigitalTwinsService",
"endpointName": "myendpoint",
"api-version": "2020-12-01"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/endpoints/myServiceBus",
"type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints",
"name": "myendpoint",
"properties": {
"endpointType": "ServiceBus",
"authenticationType": "KeyBased",
"provisioningState": "Failed",
"endpointUri": "sb://mysb.servicebus.windows.net/",
"entityPath": "mysbtopic",
"createdTime": "2019-11-19T01:10:34.350Z"
}
}
},
"202": {
"body": {
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/endpoints/myServiceBus",
"type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints",
"name": "myendpoint",
"properties": {
"endpointType": "ServiceBus",
"authenticationType": "IdentityBased",
"provisioningState": "Deleting",
"endpointUri": "sb://mysb.servicebus.windows.net/",
"entityPath": "mysbtopic",
"createdTime": "2019-11-19T01:10:34.350Z"
}
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e",
"resourceGroupName": "resRg",
"resourceName": "myDigitalTwinsService",
"endpointName": "myendpoint",
"api-version": "2020-12-01"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/endpoints/myServiceBus",
"type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints",
"name": "myendpoint",
"properties": {
"authenticationType": "KeyBased",
"endpointType": "ServiceBus",
"provisioningState": "Failed",
"primaryConnectionString": "Endpoint=sb://***/;SharedAccessKeyName=***;SharedAccessKey=***;EntityPath=***",
"secondaryConnectionString": "Endpoint=sb://***/;SharedAccessKeyName=***;SharedAccessKey=***;EntityPath=***",
"createdTime": "2019-11-19T01:10:34.350Z"
}
}
},
"202": {
"body": {
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/endpoints/myServiceBus",
"type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints",
"name": "myendpoint",
"properties": {
"authenticationType": "KeyBased",
"endpointType": "ServiceBus",
"provisioningState": "Deleting",
"primaryConnectionString": "Endpoint=sb://***/;SharedAccessKeyName=***;SharedAccessKey=***;EntityPath=***",
"secondaryConnectionString": "Endpoint=sb://***/;SharedAccessKeyName=***;SharedAccessKey=***;EntityPath=***",
"createdTime": "2019-11-19T01:10:34.350Z"
}
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e",
"resourceGroupName": "resRg",
"resourceName": "myDigitalTwinsService",
"endpointName": "myServiceBus",
"api-version": "2020-12-01"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/endpoints/myServiceBus",
"type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints",
"name": "myServiceBus",
"properties": {
"endpointType": "ServiceBus",
"authenticationType": "IdentityBased",
"provisioningState": "Succeeded",
"endpointUri": "sb://mysb.servicebus.windows.net/",
"entityPath": "mysbtopic",
"createdTime": "2019-11-19T01:10:34.350Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e",
"resourceGroupName": "resRg",
"resourceName": "myDigitalTwinsService",
"endpointName": "myServiceBus",
"api-version": "2020-12-01"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/endpoints/myServiceBus",
"type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints",
"name": "myServiceBus",
"properties": {
"endpointType": "ServiceBus",
"authenticationType": "KeyBased",
"provisioningState": "Succeeded",
"primaryConnectionString": "Endpoint=sb://***/;SharedAccessKeyName=***;SharedAccessKey=***;EntityPath=***",
"secondaryConnectionString": "Endpoint=sb://***/;SharedAccessKeyName=***;SharedAccessKey=***;EntityPath=***",
"createdTime": "2019-11-19T01:10:34.350Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"parameters": {
"subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e",
"resourceGroupName": "resRg",
"resourceName": "myDigitalTwinsService",
"api-version": "2020-12-01",
"endpointName": "myServiceBus",
"endpointDescription": {
"properties": {
"endpointType": "ServiceBus",
"authenticationType": "IdentityBased",
"endpointUri": "sb://mysb.servicebus.windows.net/",
"entityPath": "mysbtopic"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/endpoints/myServiceBus",
"type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints",
"name": "myServiceBus",
"properties": {
"endpointType": "ServiceBus",
"provisioningState": "Provisioning",
"authenticationType": "IdentityBased",
"endpointUri": "sb://mysb.servicebus.windows.net/",
"entityPath": "mysbtopic",
"createdTime": "2019-11-19T01:10:34.350Z"
}
}
},
"201": {
"body": {
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/endpoints/myServiceBus",
"type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints",
"name": "myServiceBus",
"properties": {
"endpointType": "ServiceBus",
"provisioningState": "Provisioning",
"authenticationType": "IdentityBased",
"endpointUri": "sb://mysb.servicebus.windows.net/",
"entityPath": "mysbtopic",
"createdTime": "2019-11-19T01:10:34.350Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"parameters": {
"subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e",
"resourceGroupName": "resRg",
"resourceName": "myDigitalTwinsService",
"api-version": "2020-12-01",
"endpointName": "myServiceBus",
"endpointDescription": {
"properties": {
"endpointType": "ServiceBus",
"authenticationType": "KeyBased",
"primaryConnectionString": "Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=xyzxyzoX4=;EntityPath=abcabc",
"secondaryConnectionString": "Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=xyzxyzoX4=;EntityPath=abcabc"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/endpoints/myServiceBus",
"type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints",
"name": "myServiceBus",
"properties": {
"endpointType": "ServiceBus",
"authenticationType": "KeyBased",
"provisioningState": "Succeeded",
"primaryConnectionString": "Endpoint=sb://***/;SharedAccessKeyName=***;SharedAccessKey=***;EntityPath=***",
"secondaryConnectionString": "Endpoint=sb://***/;SharedAccessKeyName=***;SharedAccessKey=***;EntityPath=***",
"createdTime": "2019-11-19T01:10:34.350Z"
}
}
},
"201": {
"body": {
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/endpoints/myServiceBus",
"type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints",
"name": "myServiceBus",
"properties": {
"endpointType": "ServiceBus",
"authenticationType": "KeyBased",
"provisioningState": "Provisioning",
"primaryConnectionString": "",
"secondaryConnectionString": "",
"createdTime": "2019-11-19T01:10:34.350Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e",
"resourceGroupName": "resRg",
"resourceName": "myDigitalTwinsService",
"api-version": "2020-12-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/endpoints/myServiceBus",
"type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints",
"name": "myServiceBus",
"properties": {
"endpointType": "ServiceBus",
"authenticationType": "IdentityBased",
"provisioningState": "Succeeded",
"endpointUri": "sb://mysb.servicebus.windows.net/",
"entityPath": "mysbtopic",
"createdTime": "2019-11-19T01:10:34.350Z"
}
},
{
"id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/endpoints/myServiceBus",
"type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints",
"name": "myServiceBus",
"properties": {
"endpointType": "EventHub",
"authenticationType": "KeyBased",
"connectionStringPrimaryKey": "************",
"connectionStringSecondaryKey": "************",
"provisioningState": "Succeeded",
"createdTime": "2019-11-19T01:10:34.350Z"
}
}
]
}
}
}
}
Loading

0 comments on commit e4e6dac

Please sign in to comment.