From 0f8ad882aeb7b6afedffe0dcd63776c37befd609 Mon Sep 17 00:00:00 2001 From: Supradha Sankaran Date: Thu, 9 Jan 2020 12:19:40 -0800 Subject: [PATCH 01/13] New Readme Config File --- .../digitaltwins/resource-manager/readme.md | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 specification/digitaltwins/resource-manager/readme.md diff --git a/specification/digitaltwins/resource-manager/readme.md b/specification/digitaltwins/resource-manager/readme.md new file mode 100644 index 000000000000..e589477aa5b0 --- /dev/null +++ b/specification/digitaltwins/resource-manager/readme.md @@ -0,0 +1,79 @@ +# digitaltwins + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for digitaltwins. + +## Getting Started + +To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: + +> `autorest readme.md` + +To see additional help and options, run: + +> `autorest --help` + +For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. + +--- + +## Configuration + +### Basic Information + +These are the global settings for the digitaltwins. + +```yaml +openapi-type: arm +tag: package-2020-03-01-preview +``` + +### Tag: package-2020-03-01-preview + +These settings apply only when `--tag=package-2020-03-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2020-03-01-preview' +input-file: + - Microsoft.DigitalTwins/preview/2020-03-01-preview/digitaltwins.json +``` + +--- + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +```yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go + - repo: azure-sdk-for-js + - repo: azure-sdk-for-ruby + after_scripts: + - bundle install && rake arm:regen_all_profiles['azure_mgmt_digitaltwins'] +``` + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Python + +See configuration in [readme.python.md](./readme.python.md) + +## Ruby + +See configuration in [readme.ruby.md](./readme.ruby.md) + +## TypeScript + +See configuration in [readme.typescript.md](./readme.typescript.md) + +## CSharp + +See configuration in [readme.csharp.md](./readme.csharp.md) From 11d0247fccda17cf7ab72cb68edae5c3eb421623 Mon Sep 17 00:00:00 2001 From: Supradha Sankaran Date: Thu, 9 Jan 2020 12:19:41 -0800 Subject: [PATCH 02/13] New Go Language Readme Config File --- .../resource-manager/readme.go.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 specification/digitaltwins/resource-manager/readme.go.md diff --git a/specification/digitaltwins/resource-manager/readme.go.md b/specification/digitaltwins/resource-manager/readme.go.md new file mode 100644 index 000000000000..0172a16a2725 --- /dev/null +++ b/specification/digitaltwins/resource-manager/readme.go.md @@ -0,0 +1,19 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +```yaml $(go) +go: + license-header: MICROSOFT_APACHE_NO_VERSION + clear-output-folder: true +``` + +### Tag: package-2020-03-01-preview and go + +These settings apply only when `--tag=package-2020-03-01-preview --go` is specified on the command line. +Please also specify `--go-sdks-folder=`. + +```yaml $(tag) == 'package-2020-03-01-preview' && $(go) +namespace: Microsoft.DigitalTwins +output-folder: $(go-sdks-folder)/digitaltwins/Generated +``` From fee216469c0269120b919fa4eb961a640c52cefa Mon Sep 17 00:00:00 2001 From: Supradha Sankaran Date: Thu, 9 Jan 2020 12:19:42 -0800 Subject: [PATCH 03/13] New Typescript Language Readme Config File --- .../resource-manager/readme.typescript.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 specification/digitaltwins/resource-manager/readme.typescript.md diff --git a/specification/digitaltwins/resource-manager/readme.typescript.md b/specification/digitaltwins/resource-manager/readme.typescript.md new file mode 100644 index 000000000000..3154decaf68e --- /dev/null +++ b/specification/digitaltwins/resource-manager/readme.typescript.md @@ -0,0 +1,13 @@ +## TypeScript + +These settings apply only when `--typescript` is specified on the command line. +Please also specify `--typescript-sdks-folder=`. + +```yaml $(typescript) +typescript: + azure-arm: true + package-name: "digitaltwins" + output-folder: "$(typescript-sdks-folder)/packages/digitaltwins" + payload-flattening-threshold: 1 + generate-metadata: true +``` From b634626bf987d229a3f9c4cee020b5b7a648c0f3 Mon Sep 17 00:00:00 2001 From: Supradha Sankaran Date: Thu, 9 Jan 2020 12:19:43 -0800 Subject: [PATCH 04/13] New Python Language Readme Config File --- .../resource-manager/readme.python.md | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 specification/digitaltwins/resource-manager/readme.python.md diff --git a/specification/digitaltwins/resource-manager/readme.python.md b/specification/digitaltwins/resource-manager/readme.python.md new file mode 100644 index 000000000000..e17563d2181a --- /dev/null +++ b/specification/digitaltwins/resource-manager/readme.python.md @@ -0,0 +1,21 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +```yaml $(python) +python: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + namespace: Microsoft.DigitalTwins + package-name: digitaltwins + package-version: 2020-03-01-preview + clear-output-folder: true +``` + +```yaml $(python) +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/azure-mgmt/digitaltwins +``` From b27ac7e85052fc02b1f424a29498d68669dcc713 Mon Sep 17 00:00:00 2001 From: Supradha Sankaran Date: Thu, 9 Jan 2020 12:19:44 -0800 Subject: [PATCH 05/13] New C# Language Readme Config File --- .../resource-manager/readme.csharp.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 specification/digitaltwins/resource-manager/readme.csharp.md diff --git a/specification/digitaltwins/resource-manager/readme.csharp.md b/specification/digitaltwins/resource-manager/readme.csharp.md new file mode 100644 index 000000000000..e27768ab73b1 --- /dev/null +++ b/specification/digitaltwins/resource-manager/readme.csharp.md @@ -0,0 +1,15 @@ +## C + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +```yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 1 + clear-output-folder: true + client-side-validation: false + namespace: Microsoft.DigitalTwins + output-folder: $(csharp-sdks-folder)/digitaltwins/management/Microsoft.DigitalTwins/GeneratedProtocol +``` From d702b6b48d3a92b276eb111608b3b1f014407385 Mon Sep 17 00:00:00 2001 From: Supradha Sankaran Date: Thu, 9 Jan 2020 12:19:45 -0800 Subject: [PATCH 06/13] New Ruby Language Readme Config File --- .../resource-manager/readme.ruby.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 specification/digitaltwins/resource-manager/readme.ruby.md diff --git a/specification/digitaltwins/resource-manager/readme.ruby.md b/specification/digitaltwins/resource-manager/readme.ruby.md new file mode 100644 index 000000000000..31f23b70c07d --- /dev/null +++ b/specification/digitaltwins/resource-manager/readme.ruby.md @@ -0,0 +1,19 @@ +## Ruby + +These settings apply only when `--ruby` is specified on the command line. + +```yaml +package-name: azure_mgmt_digitaltwins +package-version: 2020-03-01-preview +azure-arm: true +``` + +### Tag: package-2020-03-01-preview and ruby + +These settings apply only when `--tag=package-2020-03-01-preview --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +```yaml $(tag) == 'package-2020-03-01-preview' && $(ruby) +namespace: Microsoft.DigitalTwins +output-folder: $(ruby-sdks-folder)/digitaltwins +``` From aff6be8587e171aa766b0a4bb1029720c7352289 Mon Sep 17 00:00:00 2001 From: Supradha Sankaran Date: Thu, 9 Jan 2020 12:19:46 -0800 Subject: [PATCH 07/13] New Swagger Spec File --- .../2020-03-01-preview/digitaltwins.json | 132 ++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/digitaltwins.json diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/digitaltwins.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/digitaltwins.json new file mode 100644 index 000000000000..aa756164cdc9 --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/digitaltwins.json @@ -0,0 +1,132 @@ +{ + "swagger": "2.0", + "info": { + "version": "2020-03-01-preview", + "title": "digitaltwins", + "description": "Description of the new service", + "x-ms-code-generation-settings": { + "name": "digitaltwinsClient" + } + }, + "host": "management.azure.com", + "schemes": ["https"], + "consumes": ["application/json"], + "produces": ["application/json"], + "security": [ + { + "azure_auth": ["user_impersonation"] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/operations": { + "get": { + "tags": ["Tag1"], + "operationId": "OperationGroup_Get", + "x-ms-examples": { + "BatchAccountDelete": { "$ref": "./examples/OperationGroupGet.json" } + }, + "description": "This is a sample get operation, please see guidelines in azure-rest-api-specs repository for more info", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/Result" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "Result": { + "description": "Sample result definition", + "properties": { + "sampleProperty": { + "type": "string", + "description": "Sample property of type string" + } + } + }, + "ErrorResponse": { + "description": "Error response.", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDefinition", + "description": "The error details." + } + } + }, + "ErrorDefinition": { + "description": "Error definition.", + "properties": { + "code": { + "description": "Service specific error code which serves as the substatus for the HTTP error code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Description of the error.", + "type": "string", + "readOnly": true + }, + "details": { + "description": "Internal error details.", + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDefinition" + }, + "readOnly": true + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)" + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to be used with the HTTP request." + } + } +} From 11f982ab0e2d4273c71c7b99a39e62bb0184717c Mon Sep 17 00:00:00 2001 From: Supradha Sankaran Date: Thu, 9 Jan 2020 12:19:47 -0800 Subject: [PATCH 08/13] New Swagger Example Spec File --- .../examples/OperationGroupGet.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/OperationGroupGet.json diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/OperationGroupGet.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/OperationGroupGet.json new file mode 100644 index 000000000000..5871f3726315 --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/OperationGroupGet.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "accountName": "sampleacct", + "resourceGroupName": "digitaltwinsClient", + "api-version": "2020-03-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "sampleProperty": "sampleProperty" + } + } + } +} From f54289ffa96f16e90d706f8c6f5b6f8c54413a28 Mon Sep 17 00:00:00 2001 From: Supradha Sankaran Date: Thu, 9 Jan 2020 12:25:18 -0800 Subject: [PATCH 09/13] Added DT API --- custom-words.txt | 1 + .../2020-03-01-preview/digitaltwins.json | 1347 +++++++++++++++-- ...talTwinsCheckNameAvailability_example.json | 21 + .../examples/DigitalTwinsDelete_example.json | 29 + .../DigitalTwinsEndpointDelete_example.json | 27 + .../DigitalTwinsEndpointGet_example.json | 25 + .../DigitalTwinsEndpointPut_example.json | 45 + .../DigitalTwinsEndpointsGet_example.json | 40 + .../examples/DigitalTwinsGet_example.json | 27 + .../DigitalTwinsIoTHubDelete_example.json | 23 + .../DigitalTwinsIoTHubGet_example.json | 21 + .../DigitalTwinsIoTHubPut_example.json | 26 + .../DigitalTwinsIoTHubsGet_example.json | 36 + ...gitalTwinsListByResourceGroup_example.json | 44 + .../examples/DigitalTwinsList_example.json | 43 + .../DigitalTwinsOperationsList_example.json | 50 + .../examples/DigitalTwinsPatch_example.json | 36 + .../examples/DigitalTwinsPut_example.json | 50 + .../examples/OperationGroupGet.json | 15 - 19 files changed, 1794 insertions(+), 112 deletions(-) create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsCheckNameAvailability_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsDelete_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointDelete_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointGet_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointPut_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointsGet_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsGet_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubDelete_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubGet_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubPut_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubsGet_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsListByResourceGroup_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsList_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsOperationsList_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPatch_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPut_example.json delete mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/OperationGroupGet.json diff --git a/custom-words.txt b/custom-words.txt index 196478d40f1e..62e1095f516d 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -423,6 +423,7 @@ devtestlab devtestlabs dhcp diagnosticcontext +digitaltwins DIMM disableautoscale disablescheduling diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/digitaltwins.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/digitaltwins.json index aa756164cdc9..33fb41280425 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/digitaltwins.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/digitaltwins.json @@ -1,132 +1,1285 @@ { - "swagger": "2.0", - "info": { - "version": "2020-03-01-preview", - "title": "digitaltwins", - "description": "Description of the new service", - "x-ms-code-generation-settings": { - "name": "digitaltwinsClient" - } + "swagger" : "2.0", + "info" : { + "version" : "2020-03-01-preview", + "title" : "AzureDigitalTwinsManagementClient", + "description" : "Azure Digital Twins Client for managing DigitalTwinsInstance" }, - "host": "management.azure.com", - "schemes": ["https"], - "consumes": ["application/json"], - "produces": ["application/json"], - "security": [ - { - "azure_auth": ["user_impersonation"] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" + "host" : "management.azure.com", + "schemes" : [ "https" ], + "consumes" : [ "application/json" ], + "produces" : [ "application/json" ], + "security" : [ { + "azure_auth" : [ "user_impersonation" ] + } ], + "securityDefinitions" : { + "azure_auth" : { + "type" : "oauth2", + "authorizationUrl" : "https://login.microsoftonline.com/common/oauth2/authorize", + "flow" : "implicit", + "description" : "Azure Active Directory OAuth2 Flow", + "scopes" : { + "user_impersonation" : "impersonate your user account" } } }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/operations": { - "get": { - "tags": ["Tag1"], - "operationId": "OperationGroup_Get", - "x-ms-examples": { - "BatchAccountDelete": { "$ref": "./examples/OperationGroupGet.json" } + "paths" : { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}" : { + "get" : { + "tags" : [ "DigitalTwinsInstance" ], + "description" : "Get DigitalTwinsInstances resource.", + "operationId" : "DigitalTwins_Get", + "x-ms-examples" : { + "Get a DigitalTwinsInstance resource" : { + "$ref" : "./examples/DigitalTwinsGet_example.json" + } + }, + "parameters" : [ { + "$ref" : "#/parameters/api-version" + }, { + "$ref" : "#/parameters/subscriptionId" + }, { + "$ref" : "#/parameters/resourceGroupName" + }, { + "$ref" : "#/parameters/resourceName" + } ], + "responses" : { + "200" : { + "description" : "The body contains all the non-security properties of the DigitalTwinsInstance. Security-related properties are set to null.", + "schema" : { + "$ref" : "#/definitions/DigitalTwinsDescription" + } + }, + "default" : { + "description" : "Error response describing why the operation failed.", + "schema" : { + "$ref" : "#/definitions/ErrorResponse" + } + } + } + }, + "put" : { + "tags" : [ "DigitalTwinsInstance" ], + "description" : "Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance.", + "operationId" : "DigitalTwins_CreateOrUpdate", + "x-ms-long-running-operation" : true, + "x-ms-examples" : { + "Put a DigitalTwinsInstance resource" : { + "$ref" : "./examples/DigitalTwinsPut_example.json" + } + }, + "parameters" : [ { + "$ref" : "#/parameters/api-version" + }, { + "$ref" : "#/parameters/subscriptionId" + }, { + "$ref" : "#/parameters/resourceGroupName" + }, { + "$ref" : "#/parameters/resourceName" + }, { + "name" : "digitalTwinsCreate", + "in" : "body", + "description" : "The DigitalTwinsInstance and security metadata.", + "required" : true, + "schema" : { + "$ref" : "#/definitions/DigitalTwinsDescription" + } + } ], + "responses" : { + "200" : { + "description" : "This is returned as a response to the status polling request for the create or update operation. The body contains the resource representation that indicates a transitional provisioning state.", + "schema" : { + "$ref" : "#/definitions/DigitalTwinsDescription" + } + }, + "201" : { + "description" : "Created - Put request accepted; the operation will complete asynchronously.", + "schema" : { + "$ref" : "#/definitions/DigitalTwinsDescription" + } + }, + "default" : { + "description" : "Error response describing why the operation failed.", + "schema" : { + "$ref" : "#/definitions/ErrorResponse" + } + } + } + }, + "patch" : { + "tags" : [ "DigitalTwinsInstance" ], + "description" : "Update metadata of DigitalTwinsInstance.", + "operationId" : "DigitalTwins_Update", + "x-ms-long-running-operation" : true, + "x-ms-examples" : { + "Patch a DigitalTwinsInstance resource" : { + "$ref" : "./examples/DigitalTwinsPatch_example.json" + } + }, + "parameters" : [ { + "$ref" : "#/parameters/api-version" + }, { + "$ref" : "#/parameters/subscriptionId" + }, { + "$ref" : "#/parameters/resourceGroupName" + }, { + "$ref" : "#/parameters/resourceName" + }, { + "name" : "digitalTwinsPatchDescription", + "in" : "body", + "description" : "The DigitalTwinsInstance and security metadata.", + "required" : true, + "schema" : { + "$ref" : "#/definitions/DigitalTwinsPatchDescription" + } + } ], + "responses" : { + "200" : { + "description" : "This is returned as a response to the status polling request for the create or update operation. The body contains the resource representation that indicates a transitional provisioning state.", + "schema" : { + "$ref" : "#/definitions/DigitalTwinsDescription" + } + }, + "201" : { + "description" : "Accepted - Put request accepted; the operation will complete asynchronously." + }, + "default" : { + "description" : "Error response describing why the operation failed.", + "schema" : { + "$ref" : "#/definitions/ErrorResponse" + } + } + } + }, + "delete" : { + "tags" : [ "DigitalTwinsInstance" ], + "description" : "Delete a DigitalTwinsInstance.", + "operationId" : "DigitalTwins_Delete", + "x-ms-long-running-operation" : true, + "x-ms-examples" : { + "Delete a DigitalTwinsInstance resource" : { + "$ref" : "./examples/DigitalTwinsDelete_example.json" + } + }, + "parameters" : [ { + "$ref" : "#/parameters/api-version" + }, { + "$ref" : "#/parameters/subscriptionId" + }, { + "$ref" : "#/parameters/resourceGroupName" + }, { + "$ref" : "#/parameters/resourceName" + } ], + "responses" : { + "200" : { + "description" : "This is returned as a response to the status polling request for the delete operation. The body contains the resource representation that indicates a transitional provisioning state." + }, + "202" : { + "description" : "Accepted - Delete request accepted; the operation will complete asynchronously.", + "schema" : { + "$ref" : "#/definitions/DigitalTwinsDescription" + } + }, + "204" : { + "description" : "Once the long running delete operation completes successfully, a 204 No Content status code is returned when the status polling request finds the DigitalTwins service metadata in the service and the status of the delete operation is set to a completed state." + }, + "default" : { + "description" : "Error response describing why the operation failed.", + "schema" : { + "$ref" : "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints" : { + "get" : { + "tags" : [ "Endpoints" ], + "description" : "Get DigitalTwinsInstance Endpoints.", + "operationId" : "DigitalTwinsEndpoints_List", + "x-ms-examples" : { + "Get a DigitalTwinsInstance endpoints" : { + "$ref" : "./examples/DigitalTwinsEndpointsGet_example.json" + } + }, + "x-ms-pageable" : { + "nextLinkName" : "nextLink" + }, + "parameters" : [ { + "$ref" : "#/parameters/api-version" + }, { + "$ref" : "#/parameters/subscriptionId" + }, { + "$ref" : "#/parameters/resourceGroupName" + }, { + "$ref" : "#/parameters/resourceName" + } ], + "responses" : { + "200" : { + "description" : "The body contains all the non-security properties of the DigitalTwinsInstance. Security-related properties are set to null.", + "schema" : { + "$ref" : "#/definitions/DigitalTwinsEndpointResourceListResult" + } + }, + "default" : { + "description" : "Error response describing why the operation failed.", + "schema" : { + "$ref" : "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints/{endpointName}" : { + "get" : { + "tags" : [ "Endpoints" ], + "description" : "Get DigitalTwinsInstances Endpoint.", + "operationId" : "DigitalTwinsEndpoint_Get", + "x-ms-examples" : { + "Get a DigitalTwinsInstance endpoint" : { + "$ref" : "./examples/DigitalTwinsEndpointGet_example.json" + } + }, + "parameters" : [ { + "$ref" : "#/parameters/api-version" + }, { + "$ref" : "#/parameters/subscriptionId" + }, { + "$ref" : "#/parameters/resourceGroupName" + }, { + "$ref" : "#/parameters/resourceName" + }, { + "$ref" : "#/parameters/endpointName" + } ], + "responses" : { + "200" : { + "description" : "The body contains all the non-security properties of the DigitalTwinsInstance. Security-related properties are set to null.", + "schema" : { + "$ref" : "#/definitions/DigitalTwinsEndpointResource" + } + }, + "default" : { + "description" : "Default error response", + "schema" : { + "$ref" : "#/definitions/ErrorResponse" + } + } + } + }, + "put" : { + "tags" : [ "Endpoints" ], + "description" : "Create or update DigitalTwinsInstance endpoint.", + "operationId" : "DigitalTwinsEndpoint_CreateOrUpdate", + "x-ms-long-running-operation" : true, + "x-ms-examples" : { + "Put a DigitalTwinsInstance resource" : { + "$ref" : "./examples/DigitalTwinsEndpointPut_example.json" + } + }, + "parameters" : [ { + "$ref" : "#/parameters/api-version" + }, { + "$ref" : "#/parameters/subscriptionId" + }, { + "$ref" : "#/parameters/resourceGroupName" + }, { + "$ref" : "#/parameters/resourceName" + }, { + "$ref" : "#/parameters/endpointName" + }, { + "name" : "endpointDescription", + "in" : "body", + "description" : "The DigitalTwinsInstance endpoint metadata and security metadata.", + "required" : true, + "schema" : { + "$ref" : "#/definitions/DigitalTwinsEndpointResource" + } + } ], + "responses" : { + "200" : { + "description" : "This is returned as a response to the status polling request for the create or update operation. The body contains the resource representation that indicates a transitional provisioning state.", + "schema" : { + "$ref" : "#/definitions/DigitalTwinsEndpointResource" + } + }, + "201" : { + "description" : "Created - Put request accepted; the operation will complete asynchronously.", + "schema" : { + "$ref" : "#/definitions/DigitalTwinsEndpointResource" + } + }, + "default" : { + "description" : "Error response describing why the operation failed.", + "schema" : { + "$ref" : "#/definitions/ErrorResponse" + } + } + } + }, + "delete" : { + "tags" : [ "Endpoints" ], + "description" : "Delete a DigitalTwinsInstance endpoint.", + "operationId" : "DigitalTwinsEndpoint_Delete", + "x-ms-long-running-operation" : true, + "x-ms-examples" : { + "Delete a DigitalTwinsInstance endpoint" : { + "$ref" : "./examples/DigitalTwinsEndpointDelete_example.json" + } + }, + "parameters" : [ { + "$ref" : "#/parameters/api-version" + }, { + "$ref" : "#/parameters/subscriptionId" + }, { + "$ref" : "#/parameters/resourceGroupName" + }, { + "$ref" : "#/parameters/resourceName" + }, { + "$ref" : "#/parameters/endpointName" + } ], + "responses" : { + "200" : { + "description" : "This is returned as a response to the status polling request for the delete operation. The body contains the resource representation that indicates a transitional provisioning state." + }, + "202" : { + "description" : "Accepted - Delete request accepted; the operation will complete asynchronously.", + "schema" : { + "$ref" : "#/definitions/DigitalTwinsEndpointResource" + } + }, + "204" : { + "description" : "Once the long running delete operation completes successfully, a 204 No Content status code is returned when the status polling request finds the DigitalTwins service metadata in the service and the status of the delete operation is set to a completed state." + }, + "default" : { + "description" : "Error response describing why the operation failed.", + "schema" : { + "$ref" : "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DigitalTwins/digitalTwinsInstances" : { + "get" : { + "tags" : [ "DigitalTwinsInstance" ], + "description" : "Get all the DigitalTwinsInstances in a subscription.", + "operationId" : "DigitalTwins_List", + "x-ms-examples" : { + "Get DigitalTwinsInstance resources by subscription" : { + "$ref" : "./examples/DigitalTwinsList_example.json" + } + }, + "x-ms-pageable" : { + "nextLinkName" : "nextLink" + }, + "parameters" : [ { + "$ref" : "#/parameters/api-version" + }, { + "$ref" : "#/parameters/subscriptionId" + } ], + "responses" : { + "200" : { + "description" : "This is a synchronous operation. The body contains a JSON-serialized array of the metadata from all the DigitalTwinsInstances in the subscription.", + "schema" : { + "$ref" : "#/definitions/DigitalTwinsDescriptionListResult" + } + }, + "default" : { + "description" : "Error response describing why the operation failed.", + "schema" : { + "$ref" : "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances" : { + "get" : { + "tags" : [ "DigitalTwinsInstance" ], + "description" : "Get all the DigitalTwinsInstances in a resource group.", + "operationId" : "DigitalTwins_ListByResourceGroup", + "x-ms-examples" : { + "Get DigitalTwinsInstance resources by resource group" : { + "$ref" : "./examples/DigitalTwinsListByResourceGroup_example.json" + } + }, + "x-ms-pageable" : { + "nextLinkName" : "nextLink" + }, + "parameters" : [ { + "$ref" : "#/parameters/api-version" + }, { + "$ref" : "#/parameters/subscriptionId" + }, { + "$ref" : "#/parameters/resourceGroupName" + } ], + "responses" : { + "200" : { + "description" : "This is a synchronous operation. The body contains a JSON-serialized array of the metadata from all the DigitalTwinsInstances in the resource group.", + "schema" : { + "$ref" : "#/definitions/DigitalTwinsDescriptionListResult" + } + }, + "default" : { + "description" : "Error response describing why the operation failed.", + "schema" : { + "$ref" : "#/definitions/ErrorResponse" + } + } + } + } + }, + "/{scope}/providers/Microsoft.DigitalTwins/integrationResources/{integrationResourceName}" : { + "get" : { + "tags" : [ "IoTHub Integration" ], + "description" : "Gets properties of an IoTHub Integration.", + "operationId" : "IoTHub_Get", + "x-ms-examples" : { + "Get IoTHub by DigitalTwinsInstance" : { + "$ref" : "./examples/DigitalTwinsIoTHubGet_example.json" + } + }, + "parameters" : [ { + "$ref" : "#/parameters/scope" + }, { + "$ref" : "#/parameters/integrationResourceName" + } ], + "responses" : { + "200" : { + "description" : "This is a synchronous operation. The body contains metadata about IoTHub and DigitalTwinsInstance Integration.", + "schema" : { + "$ref" : "#/definitions/IntegrationResource" + } + }, + "default" : { + "description" : "Error response describing why the operation failed.", + "schema" : { + "$ref" : "#/definitions/ErrorResponse" + } + } + } + }, + "put" : { + "tags" : [ "IoTHub Integration" ], + "description" : "Creates or Updates an IoTHub Integration with DigitalTwinsInstances.", + "operationId" : "IoTHub_CreateOrUpdate", + "x-ms-examples" : { + "Connect IoTHub with DigitalTwinsInstance" : { + "$ref" : "./examples/DigitalTwinsIoTHubPut_example.json" + } + }, + "parameters" : [ { + "$ref" : "#/parameters/scope" + }, { + "$ref" : "#/parameters/integrationResourceName" + }, { + "name" : "iotHubDescription", + "in" : "body", + "description" : "The IoTHub metadata.", + "required" : true, + "schema" : { + "$ref" : "#/definitions/IntegrationResource" + } + } ], + "responses" : { + "201" : { + "description" : "This is an asynchronous operation. The body contains metadata about IoTHub and DigitalTwinsInstance Integration.", + "schema" : { + "$ref" : "#/definitions/IntegrationResource" + } + }, + "default" : { + "description" : "Error response describing why the operation failed.", + "schema" : { + "$ref" : "#/definitions/ErrorResponse" + } + } + } + }, + "delete" : { + "tags" : [ "IoTHub Integration" ], + "description" : "Deletes a DigitalTwinsInstance link with IoTHub.", + "operationId" : "IoTHub_Delete", + "x-ms-examples" : { + "Connect IoTHub with DigitalTwinsInstance" : { + "$ref" : "./examples/DigitalTwinsIoTHubDelete_example.json" + } + }, + "x-ms-long-running-operation" : true, + "parameters" : [ { + "$ref" : "#/parameters/scope" + }, { + "$ref" : "#/parameters/integrationResourceName" + } ], + "responses" : { + "200" : { + "description" : "OK. DigitalTwinsInstance IoTHub link has been Deleted." + }, + "202" : { + "description" : "Accepted. Response includes a Location header which points to the DigitalTwins and IoTHub Integration resource.", + "schema" : { + "$ref" : "#/definitions/IntegrationResource" + } + }, + "204" : { + "description" : "NoContent. DigitalTwinsInstance IoTHub link does not exist." + }, + "default" : { + "description" : "Error response describing why the operation failed.", + "schema" : { + "$ref" : "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/integrationResources" : { + "get" : { + "tags" : [ "IoTHub Integration" ], + "description" : "Get DigitalTwinsInstance IoTHubs.", + "operationId" : "DigitalTwinsIoTHubs_List", + "x-ms-examples" : { + "Get a DigitalTwinsInstance IoTHubs" : { + "$ref" : "./examples/DigitalTwinsIoTHubsGet_example.json" + } + }, + "x-ms-pageable" : { + "nextLinkName" : "nextLink" + }, + "parameters" : [ { + "$ref" : "#/parameters/api-version" + }, { + "$ref" : "#/parameters/subscriptionId" + }, { + "$ref" : "#/parameters/resourceGroupName" + }, { + "$ref" : "#/parameters/resourceName" + } ], + "responses" : { + "200" : { + "description" : "The body contains all the non-security properties of the DigitalTwinsInstance. Security-related properties are set to null.", + "schema" : { + "$ref" : "#/definitions/DigitalTwinsIntegrationResourceListResult" + } + }, + "default" : { + "description" : "Error response describing why the operation failed.", + "schema" : { + "$ref" : "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.DigitalTwins/operations" : { + "get" : { + "tags" : [ "Operations" ], + "description" : "Lists all of the available DigitalTwins service REST API operations.", + "operationId" : "Operations_List", + "x-ms-examples" : { + "Get available operations" : { + "$ref" : "./examples/DigitalTwinsOperationsList_example.json" + } + }, + "x-ms-pageable" : { + "nextLinkName" : "nextLink" }, - "description": "This is a sample get operation, please see guidelines in azure-rest-api-specs repository for more info", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" + "parameters" : [ { + "$ref" : "#/parameters/api-version" + } ], + "responses" : { + "200" : { + "description" : "OK. The request has succeeded.", + "schema" : { + "$ref" : "#/definitions/OperationListResult" + } }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" + "default" : { + "description" : "Error response describing why the operation failed.", + "schema" : { + "$ref" : "#/definitions/ErrorResponse" + } } - ], - "responses": { - "200": { - "description": "Describe the result of a successful operation.", - "schema": { - "$ref": "#/definitions/Result" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DigitalTwins/locations/{location}/checkNameAvailability" : { + "post" : { + "tags" : [ "CheckNameAvailability" ], + "description" : "Check if a DigitalTwinsInstance name is available.", + "operationId" : "DigitalTwins_CheckNameAvailability", + "x-ms-examples" : { + "Check name Availability" : { + "$ref" : "./examples/DigitalTwinsCheckNameAvailability_example.json" + } + }, + "parameters" : [ { + "$ref" : "#/parameters/api-version" + }, { + "$ref" : "#/parameters/subscriptionId" + }, { + "$ref" : "#/parameters/location" + }, { + "name" : "digitalTwinsInstanceCheckName", + "in" : "body", + "description" : "Set the name parameter in the DigitalTwinsInstanceCheckName structure to the name of the DigitalTwinsInstance to check.", + "required" : true, + "schema" : { + "$ref" : "#/definitions/CheckNameRequest" + } + } ], + "responses" : { + "200" : { + "description" : "This is a synchronous operation. The body contains a JSON-serialized response that specifies whether the DigitalTwins service name is available. If the name is not available, the body contains the reason.", + "schema" : { + "$ref" : "#/definitions/CheckNameResult" } }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" + "default" : { + "description" : "Error response describing why the operation failed.", + "schema" : { + "$ref" : "#/definitions/ErrorResponse" } } } } } }, - "definitions": { - "Result": { - "description": "Sample result definition", - "properties": { - "sampleProperty": { - "type": "string", - "description": "Sample property of type string" + "definitions" : { + "DigitalTwinsProperties" : { + "description" : "The properties of a DigitalTwinsInstance.", + "type" : "object", + "properties" : { + "createdTime" : { + "description" : "Time when DigitalTwinsInstance was created.", + "readOnly" : true, + "type" : "string", + "format" : "date-time" + }, + "lastUpdatedTime" : { + "description" : "Time when DigitalTwinsInstance was created.", + "readOnly" : true, + "type" : "string", + "format" : "date-time" + }, + "provisioningState" : { + "description" : "The provisioning state.", + "enum" : [ "Provisioning", "Deleting", "Succeeded", "Failed", "Canceled" ], + "type" : "string", + "readOnly" : true, + "x-ms-enum" : { + "name" : "provisioningState", + "modelAsString" : true + } + }, + "hostName" : { + "description" : "Api endpoint to work with DigitalTwinsInstance.", + "type" : "string", + "readOnly" : true } } }, - "ErrorResponse": { - "description": "Error response.", - "properties": { - "error": { - "$ref": "#/definitions/ErrorDefinition", - "description": "The error details." + "DigitalTwinsSkuInfo" : { + "description" : "Information about the SKU of the DigitalTwinsInstance.", + "type" : "object", + "properties" : { + "name" : { + "description" : "The name of the SKU.", + "enum" : [ "F1" ], + "type" : "string", + "x-ms-enum" : { + "name" : "DigitalTwinsSku", + "modelAsString" : true + } + } + }, + "required" : [ "name" ] + }, + "DigitalTwinsDescription" : { + "description" : "The description of the DigitalTwins service.", + "type" : "object", + "properties" : { + "properties" : { + "x-ms-client-flatten": true, + "description" : "DigitalTwins instance properties.", + "$ref" : "#/definitions/DigitalTwinsProperties" + } + }, + "allOf" : [ { + "$ref" : "#/definitions/DigitalTwinsResource" + } ], + "required" : [ "sku" ] + }, + "DigitalTwinsPatchDescription" : { + "description" : "The description of the DigitalTwins service.", + "type" : "object", + "properties" : { + "tags" : { + "description" : "Instance tags", + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + } + } + }, + "DigitalTwinsResource" : { + "description" : "The common properties of a DigitalTwinsInstance.", + "properties" : { + "id" : { + "readOnly" : true, + "type" : "string", + "description" : "The resource identifier." + }, + "name" : { + "readOnly" : true, + "type" : "string", + "description" : "The resource name.", + "pattern" : "^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$" + }, + "type" : { + "readOnly" : true, + "type" : "string", + "description" : "The resource type." + }, + "location" : { + "type" : "string", + "description" : "The resource location.", + "x-ms-mutability" : [ "create", "read" ] + }, + "tags" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + }, + "description" : "The resource tags." + }, + "sku" : { + "description" : "The resource sku.", + "$ref" : "#/definitions/DigitalTwinsSkuInfo" + } + }, + "x-ms-azure-resource" : true, + "required" : [ "location" ] + }, + "ErrorResponse" : { + "description" : "Error response.", + "properties" : { + "error" : { + "description" : "Error description", + "$ref" : "#/definitions/ErrorDefinition" } } }, - "ErrorDefinition": { - "description": "Error definition.", + "ErrorDefinition" : { + "description" : "Error definition.", + "properties" : { + "code" : { + "description" : "Service specific error code which serves as the substatus for the HTTP error code.", + "type" : "string", + "readOnly" : true + }, + "message" : { + "description" : "Description of the error.", + "type" : "string", + "readOnly" : true + }, + "details" : { + "description" : "Internal error details.", + "type" : "array", + "items" : { + "$ref" : "#/definitions/ErrorDefinition" + }, + "readOnly" : true + } + } + }, + "DigitalTwinsDescriptionListResult" : { + "description" : "A list of DigitalTwins description objects with a next link.", + "type" : "object", + "properties" : { + "nextLink" : { + "description" : "The link used to get the next page of DigitalTwins description objects.", + "type" : "string" + }, + "value" : { + "description" : "A list of DigitalTwins description objects.", + "type" : "array", + "items" : { + "$ref" : "#/definitions/DigitalTwinsDescription" + } + } + } + }, + "OperationListResult" : { + "description" : "A list of DigitalTwins service operations. It contains a list of operations and a URL link to get the next set of results.", + "type" : "object", + "properties" : { + "nextLink" : { + "description" : "The link used to get the next page of DigitalTwins description objects.", + "type" : "string" + }, + "value" : { + "description" : "A list of DigitalTwins operations supported by the Microsoft.DigitalTwins resource provider.", + "type" : "array", + "readOnly" : true, + "items" : { + "$ref" : "#/definitions/Operation" + } + } + } + }, + "Operation" : { + "description" : "DigitalTwins service REST API operation", + "type" : "object", + "properties" : { + "name" : { + "readOnly" : true, + "type" : "string", + "description" : "Operation name: {provider}/{resource}/{read | write | action | delete}" + }, + "display" : { + "description" : "Operation properities display", + "$ref" : "#/definitions/OperationDisplay" + } + } + }, + "OperationDisplay" : { + "description" : "The object that represents the operation.", + "type" : "object", + "properties" : { + "provider" : { + "readOnly" : true, + "type" : "string", + "description" : "Service provider: Microsoft DigitalTwins" + }, + "resource" : { + "readOnly" : true, + "type" : "string", + "description" : "Resource Type: DigitalTwinsInstances" + }, + "operation" : { + "readOnly" : true, + "type" : "string", + "description" : "Name of the operation" + }, + "description" : { + "readOnly" : true, + "type" : "string", + "description" : "Friendly description for the operation," + } + } + }, + "CheckNameRequest": { + "type": "object", "properties": { - "code": { - "description": "Service specific error code which serves as the substatus for the HTTP error code.", + "name": { + "type": "string", + "description": "Resource name." + }, + "type": { "type": "string", - "readOnly": true + "enum": [ + "Microsoft.DigitalTwins/digitalTwinsInstances" + ], + "x-ms-enum": { + "name": "Type", + "modelAsString": false + }, + "description": "The type of resource, for instance Microsoft.DigitalTwins/digitalTwinsInstances." + } + }, + "required": [ + "name", + "type" + ], + "description": "The result returned from a database check name availability request." + }, + "CheckNameResult": { + "type": "object", + "properties": { + "nameAvailable": { + "type": "boolean", + "description": "Specifies a Boolean value that indicates if the name is available." + }, + "name": { + "type": "string", + "description": "The name that was checked." }, "message": { - "description": "Description of the error.", "type": "string", - "readOnly": true + "description": "Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated." }, - "details": { - "description": "Internal error details.", - "type": "array", - "items": { - "$ref": "#/definitions/ErrorDefinition" + "reason": { + "type": "string", + "enum": [ + "Invalid", + "AlreadyExists" + ], + "x-ms-enum": { + "name": "reason", + "modelAsString": true + }, + "description": "Message providing the reason why the given name is invalid." + } + }, + "description": "The result returned from a check name availability request." + }, + "ExternalResource" : { + "description" : "Definition of a Resource.", + "type" : "object", + "properties" : { + "id" : { + "readOnly" : true, + "type" : "string", + "description" : "The resource identifier." + }, + "name" : { + "readOnly" : true, + "type" : "string", + "description" : "Extension resource name.", + "pattern" : "^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$" + }, + "type" : { + "readOnly" : true, + "type" : "string", + "description" : "The resource type." + } + } + }, + "IntegrationResourceUpdateProperties" : { + "description" : "Updatable properties related to the IoTHub DigitalTwinsInstance Integration Resource.", + "type" : "object", + "allOf" : [ { + "$ref" : "#/definitions/IntegrationResourceState" + } ] + }, + "IntegrationResourceProperties" : { + "description" : "Properties related to the IoTHub DigitalTwinsInstance Integration Resource.", + "type" : "object", + "properties" : { + "resourceId" : { + "description" : "Fully qualified resource identifier of the DigitalTwins Azure resource.", + "type" : "string" + }, + "createdTime" : { + "description" : "Time when the IoTHub was added to DigitalTwinsInstance.", + "type" : "string", + "format" : "date-time", + "readOnly" : true + } + }, + "allOf" : [ { + "$ref" : "#/definitions/IntegrationResourceState" + } ] + }, + "IntegrationResource" : { + "description" : "IoTHub integration resource.", + "type" : "object", + "allOf" : [ { + "$ref" : "#/definitions/ExternalResource" + } ], + "properties" : { + "properties" : { + "description" : "IoTHub integration resource properties.", + "x-ms-client-flatten" : true, + "$ref" : "#/definitions/IntegrationResourceProperties" + } + } + }, + "IntegrationResourceUpdateInfo" : { + "description" : "IoTHub integration resource.", + "type" : "object", + "allOf" : [ { + "$ref" : "#/definitions/ExternalResource" + } ], + "properties" : { + "properties" : { + "x-ms-client-flatten" : true, + "description" : "IoTHub integration resource properties to be updated.", + "$ref" : "#/definitions/IntegrationResourceUpdateProperties" + } + } + }, + "IntegrationResourceState" : { + "description" : "Properties related to the IoTHub DigitalTwinsInstance Integration Resource.", + "type" : "object", + "properties" : { + "provisioningState" : { + "description" : "DigitalTwinsInstance - IoTHub link state.", + "enum" : [ "Provisioning", "Deleting", "Succeeded", "Failed", "Canceled" ], + "type" : "string", + "readOnly" : true, + "x-ms-enum" : { + "name" : "IntegrationResourceState", + "modelAsString" : true + } + } + } + }, + "DigitalTwinsEndpointResource" : { + "description" : "DigitalTwinsInstance endpoint resource.", + "x-ms-azure-resource" : true, + "allOf" : [ { + "$ref" : "#/definitions/ExternalResource" + } ], + "properties" : { + "properties" : { + "x-ms-client-flatten" : true, + "description" : "DigitalTwinsInstance endpoint resource properties.", + "$ref" : "#/definitions/DigitalTwinsEndpointResourceProperties" + } + } + }, + "DigitalTwinsEndpointResourceProperties" : { + "description" : "Properties related to Digital Twins Endpoint", + "discriminator" : "endpointType", + "required" : [ "endpointType" ], + "properties" : { + "endpointType" : { + "description" : "The type of Digital Twins endpoint", + "enum": [ + "EventHub", + "EventGrid", + "ServiceBus" + ], + "x-ms-enum": { + "name": "endpointType", + "modelAsString": true + }, + "type" : "string" + }, + "provisioningState" : { + "description" : "The provisioning state.", + "enum" : [ "Provisioning", "Deleting", "Succeeded", "Failed", "Canceled" ], + "type" : "string", + "readOnly" : true, + "x-ms-enum" : { + "name" : "EndpointProvisioningState", + "modelAsString" : true + } + }, + "createdTime" : { + "description" : "Time when the Endpoint was added to DigitalTwinsInstance.", + "type" : "string", + "format" : "date-time", + "readOnly" : true + }, + "tags" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + }, + "description" : "The resource tags." + } + } + }, + "ServiceBus" : { + "description" : "properties related to servicebus.", + "required": [ + "primaryConnectionString", + "secondaryConnectionString" + ], + "x-ms-discriminator-value": "ServiceBus", + "allOf" : [ { + "$ref" : "#/definitions/DigitalTwinsEndpointResourceProperties" + }, + { + "type" : "object", + "properties" : { + "primaryConnectionString" : { + "description" : "PrimaryConnectionString of the endpoint. Will be obfuscated during read", + "type" : "string" }, - "readOnly": true + "secondaryConnectionString" : { + "description" : "SecondaryConnectionString of the endpoint. Will be obfuscated during read", + "type" : "string" + } + } + } ] + }, + "EventHub" : { + "description" : "properties related to eventhub.", + "required": [ + "connectionString-PrimaryKey", + "connectionString-SecondaryKey" + ], + "x-ms-discriminator-value": "EventHub", + "allOf" : [ { + "type" : "object", + "properties": { + "connectionString-PrimaryKey" : { + "description" : "PrimaryConnectionString of the endpoint. Will be obfuscated during read", + "type" : "string" + }, + "connectionString-SecondaryKey" : { + "description" : "SecondaryConnectionString of the endpoint. Will be obfuscated during read", + "type" : "string" + } + } + }, + { + "$ref" : "#/definitions/DigitalTwinsEndpointResourceProperties" + } ] + }, + "EventGrid" : { + "description" : "properties related to eventgrid.", + "required": [ + "accessKey1", + "accessKey2" + ], + "x-ms-discriminator-value": "EventGrid", + "allOf" : [ { + "$ref" : "#/definitions/DigitalTwinsEndpointResourceProperties" + }, + { + "type" : "object", + "properties" : { + "TopicEndpoint" : { + "description" : "EventGrid Topic Endpoint", + "type" : "string" + }, + "accessKey1" : { + "description" : "EventGrid secondary accesskey. Will be obfuscated during read", + "type" : "string" + }, + "accessKey2" : { + "description" : "EventGrid secondary accesskey. Will be obfuscated during read", + "type" : "string" + } + } + } ] + }, + "DigitalTwinsEndpointResourceListResult" : { + "description" : "A list of DigitalTwinsInstance Endpoints with a next link.", + "type" : "object", + "properties" : { + "nextLink" : { + "description" : "The link used to get the next page of DigitalTwinsInstance Endpoints.", + "type" : "string" + }, + "value" : { + "description" : "A list of DigitalTwinsInstance Endpoints.", + "type" : "array", + "items" : { + "$ref" : "#/definitions/DigitalTwinsEndpointResource" + } + } + } + }, + "DigitalTwinsIntegrationResourceListResult" : { + "description" : "A list of DigitalTwinsInstance IoTHubs with a next link.", + "type" : "object", + "properties" : { + "nextLink" : { + "description" : "The link used to get the next page of DigitalTwinsInstance IoTHubs.", + "type" : "string" + }, + "value" : { + "description" : "A list of DigitalTwinsInstance IoTHubs.", + "type" : "array", + "items" : { + "$ref" : "#/definitions/IntegrationResource" + } } } } }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)" - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to be used with the HTTP request." + "parameters" : { + "subscriptionId" : { + "name" : "subscriptionId", + "in" : "path", + "description" : "The subscription identifier.", + "required" : true, + "type" : "string", + "format" : "uuid" + }, + "api-version" : { + "name" : "api-version", + "enum" : [ "2020-03-01-preview" ], + "in" : "query", + "description" : "Version of the DigitalTwinsInstance Management API.", + "required" : true, + "type" : "string", + "minLength" : 10 + }, + "resourceGroupName" : { + "name" : "resourceGroupName", + "in" : "path", + "description" : "The name of the resource group that contains the DigitalTwinsInstance.", + "required" : true, + "type" : "string", + "x-ms-parameter-location" : "method", + "minLength" : 1, + "maxLength" : 64 + }, + "resourceName" : { + "name" : "resourceName", + "in" : "path", + "description" : "The name of the DigitalTwinsInstance.", + "required" : true, + "type" : "string", + "x-ms-parameter-location" : "method", + "minLength" : 1, + "maxLength" : 64 + }, + "location" : { + "name" : "location", + "in" : "path", + "description" : "Location of DigitalTwinsInstance.", + "x-ms-parameter-location" : "method", + "required" : true, + "type" : "string", + "minLength" : 3 + }, + "integrationResourceName" : { + "name" : "integrationResourceName", + "in" : "path", + "description" : "Name of IoTHub and DigitalTwinsInstance integration instance.", + "required" : true, + "type" : "string", + "x-ms-parameter-location" : "method", + "minLength" : 1, + "maxLength" : 64 + }, + "integrationResourceInfo" : { + "name" : "integrationResourceInfo", + "in" : "body", + "description" : "The DigitalTwinsInstance and security metadata.", + "x-ms-parameter-location" : "method", + "required" : true, + "schema" : { + "$ref" : "#/definitions/IntegrationResource" + } + }, + "integrationResourceUpdateInfo" : { + "name" : "integrationResourceUpdateInfo", + "in" : "body", + "description" : "The Integration Resource and security metadata.", + "x-ms-parameter-location" : "method", + "required" : true, + "schema" : { + "$ref" : "#/definitions/IntegrationResourceUpdateInfo" + } + }, + "scope" : { + "name" : "scope", + "in" : "path", + "description" : "The scope of the Digital Twins Integration. The scope has to be an IoTHub resource. For example, /{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IoTHubs/{resourceName}.", + "x-ms-parameter-location" : "method", + "required" : true, + "type" : "string" + }, + "endpointName" : { + "name" : "endpointName", + "in" : "path", + "description" : "Name of Endpoint Resource.", + "required" : true, + "type" : "string", + "x-ms-parameter-location" : "method", + "pattern" : "^[A-Za-z0-9-._]{1,64}$", + "minLength" : 1, + "maxLength" : 64 } } -} +} \ No newline at end of file diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsCheckNameAvailability_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsCheckNameAvailability_example.json new file mode 100644 index 000000000000..e4ffd55e6711 --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsCheckNameAvailability_example.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", + "location": "WestUS", + "api-version": "2020-03-01-preview", + "digitalTwinsInstanceCheckName": { + "name": "myadtinstance", + "type": "Microsoft.DigitalTwins/digitalTwinsInstances" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": false, + "name": "myadtinstance", + "message": "Name 'myadtinstance' is already taken. Please specify a different name", + "reason": "AlreadyExists" + } + } + } +} \ No newline at end of file diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsDelete_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsDelete_example.json new file mode 100644 index 000000000000..861b66c7ad69 --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsDelete_example.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", + "resourceGroupName": "resRg", + "resourceName": "myDigitalTwinsService", + "api-version": "2020-03-01-preview" + }, + "responses": { + "200": {}, + "202": { + "body": { + "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService", + "location": "westus", + "type": "Microsoft.DigitalTwins/DigitalTwinsInstance", + "name": "myDigitalTwinsService", + "sku": { + "name": "F1" + }, + "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": {} + } +} \ No newline at end of file diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointDelete_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointDelete_example.json new file mode 100644 index 000000000000..18f2c5355958 --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointDelete_example.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", + "resourceGroupName": "resRg", + "resourceName": "myDigitalTwinsService", + "endpointName": "myendpoint", + "api-version": "2020-03-01-preview" + }, + "responses": { + "200": {}, + "202": { + "body": { + "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService/endpoints/myServiceBus", + "type": "Microsoft.DigitalTwins/digitalTwinsInstance/endpoints", + "name": "myendpoint", + "properties": { + "endpointType": "ServiceBus", + "provisioningState": "Deleting", + "primaryConnectionString": "************", + "secondaryConnectionString": "************", + "createdTime": "2019-11-19T01:10:34.350Z" + } + } + }, + "204": {} + } +} \ No newline at end of file diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointGet_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointGet_example.json new file mode 100644 index 000000000000..a052aec07208 --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointGet_example.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", + "resourceGroupName": "resRg", + "resourceName": "myDigitalTwinsService", + "endpointName": "myServiceBus", + "api-version": "2020-03-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService/endpoints/myServiceBus", + "type": "Microsoft.DigitalTwins/digitalTwinsInstance/endpoints", + "name": "myendpoint", + "properties": { + "endpointType": "ServiceBus", + "provisioningState": "Provisioned", + "primaryConnectionString": "************", + "secondaryConnectionString": "************", + "createdTime": "2019-11-19T01:10:34.350Z" + } + } + } + } +} \ No newline at end of file diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointPut_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointPut_example.json new file mode 100644 index 000000000000..03bdbe8ec4c4 --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointPut_example.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", + "resourceGroupName": "resRg", + "resourceName": "myDigitalTwinsService", + "api-version": "2020-03-01-preview", + "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/digitalTwinsInstance/endpoints", + "name": "myServiceBus", + "properties": { + "endpointType": "ServiceBus", + "primaryConnectionString": "************", + "secondaryConnectionString": "************", + "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/digitalTwinsInstance/endpoints", + "name": "myendpoint", + "properties": { + "endpointType": "ServiceBus", + "provisioningState": "Provisioning", + "primaryConnectionString": "************", + "secondaryConnectionString": "************", + "createdTime": "2019-11-19T01:10:34.350Z" + } + } + } + } +} \ No newline at end of file diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointsGet_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointsGet_example.json new file mode 100644 index 000000000000..70896e74ffa7 --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointsGet_example.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", + "resourceGroupName": "resRg", + "resourceName": "myDigitalTwinsService", + "api-version": "2020-03-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService/endpoints/myServiceBus", + "type": "Microsoft.DigitalTwins/digitalTwinsInstance/endpoints", + "name": "myendpoint1", + "properties": { + "endpointType": "ServiceBus", + "provisioningState": "Provisioned", + "primaryConnectionString": "************", + "secondaryConnectionString": "************", + "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/digitalTwinsInstance/endpoints", + "name": "myendpoint2", + "properties": { + "endpointType": "EventHub", + "provisioningState": "Provisioned", + "connectionString-PrimaryKey": "************", + "connectionString-SecondaryKey": "************", + "createdTime": "2019-11-19T01:10:34.350Z" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsGet_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsGet_example.json new file mode 100644 index 000000000000..3a9cf43ae00e --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsGet_example.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", + "resourceGroupName": "resRg", + "resourceName": "myDigitalTwinsService", + "api-version": "2020-03-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService", + "location": "westus", + "type": "Microsoft.DigitalTwins/DigitalTwinsInstance", + "name": "myDigitalTwinsService", + "sku": { + "name": "F1" + }, + "properties": { + "createdTime": "2019-11-19T12:55:05.229Z", + "lastUpdatedTime": "2019-12-06T12:21:58.610Z", + "provisioningState": "Provisioning", + "hostName": "https://myDigitalTwinsService.api.wus2.ss.azuredigitaltwins-test.net" + } + } + } + } +} \ No newline at end of file diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubDelete_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubDelete_example.json new file mode 100644 index 000000000000..233bd9f35481 --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubDelete_example.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "scope": "subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.Devices/IoTHubs/myIoTHub", + "integrationResourceName": "myIoTHubLink", + "api-version": "2020-03-01-preview" + }, + "responses": { + "200": {}, + "202": { + "body": { + "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.Devices/IoTHubs/myIoTHub/provider/Microsoft.DigitalTwins/integrationResources/myIoTHubLink", + "type": "Microsoft.DigitalTwins/integrationResources", + "name": "myIoTHubLink", + "properties": { + "provisioningState": "Deleting", + "resourceId": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwins/myAdt", + "createdTime": "2019-11-19T12:57:15.452Z" + } + } + }, + "204": {} + } +} \ No newline at end of file diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubGet_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubGet_example.json new file mode 100644 index 000000000000..5206ddf33edb --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubGet_example.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "scope": "subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.Devices/IoTHubs/myIoTHub", + "integrationResourceName": "myIoTHubLink", + "api-version": "2020-03-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.Devices/IoTHubs/myIoTHub/provider/Microsoft.DigitalTwins/integrationResources/myIoTHubLink", + "type": "Microsoft.DigitalTwins/integrationResources", + "name": "myIoTHubLink", + "properties": { + "provisioningState": "Provisioned", + "resourceId": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwins/myAdt", + "createdTime": "2019-11-19T12:57:15.452Z" + } + } + } + } +} \ No newline at end of file diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubPut_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubPut_example.json new file mode 100644 index 000000000000..8787113c6de2 --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubPut_example.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "scope": "subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.Devices/IoTHubs/myIoTHub", + "integrationResourceName": "myIoTHubLink", + "api-version": "2020-03-01-preview", + "iotHubDescription": { + "properties": { + "resourceId": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.Devices/iotHubs/myih" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.Devices/IoTHubs/myIoTHub/provider/Microsoft.DigitalTwins/integrationResources/myIoTHubLink", + "type": "Microsoft.DigitalTwins/integrationResources", + "name": "myIoTHubLink", + "properties": { + "provisioningState": "Provisioning", + "resourceId": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwins/myAdt", + "createdTime": "2019-11-19T12:57:15.452Z" + } + } + } + } +} \ No newline at end of file diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubsGet_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubsGet_example.json new file mode 100644 index 000000000000..b486b170186c --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubsGet_example.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", + "resourceGroupName": "resRg", + "resourceName": "myAdt", + "api-version": "2020-03-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.Devices/IoTHubs/firstIh/Microsoft.DigitalTwins/integrationResources/myIoTHubLink1", + "type": "Microsoft.DigitalTwins/integrationResources", + "name": "myIoTHubLink1", + "properties": { + "provisioningState": "Provisioned", + "resourceId": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwins/myAdt", + "createdTime": "2019-11-19T12:57:15.452Z" + } + }, + { + "id": "/subscriptions/f2bc87c8-fa5d-4c74-822e-7fd480f8df00/resourcegroups/anotherrg/providers/Microsoft.Devices/IoTHubs/secondIh/Microsoft.DigitalTwins/integrationResources/myIoTHubLink2", + "type": "Microsoft.DigitalTwins/integrationResources", + "name": "myIoTHubLink2", + "properties": { + "provisioningState": "Provisioned", + "resourceId": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwins/myAdt", + "createdTime": "2019-12-29T12:57:15.452Z" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsListByResourceGroup_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsListByResourceGroup_example.json new file mode 100644 index 000000000000..e0ee69a00d9c --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsListByResourceGroup_example.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", + "api-version": "2020-03-01-preview", + "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/DigitalTwinsInstance", + "name": "myDigitalTwinsService", + "sku": { + "name": "F1" + }, + "properties": { + "createdTime": "2019-11-19T12:55:05.229Z", + "provisioningState": "Provisioning", + "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/DigitalTwinsInstance", + "name": "myDigitalTwinsService2", + "sku": { + "name": "F1" + }, + "properties": { + "createdTime": "2019-11-19T12:55:05.229Z", + "provisioningState": "Provisioning", + "hostName": "https://myDigitalTwinsService2.api.wus2.ss.azuredigitaltwins-test.net" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsList_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsList_example.json new file mode 100644 index 000000000000..fbff9d408b9a --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsList_example.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", + "api-version": "2020-03-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService", + "location": "westus", + "type": "Microsoft.DigitalTwins/DigitalTwinsInstance", + "name": "myDigitalTwinsService", + "sku": { + "name": "F1" + }, + "properties": { + "createdTime": "2019-11-19T12:55:05.229Z", + "provisioningState": "Provisioning", + "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/DigitalTwinsInstance", + "name": "myDigitalTwinsService2", + "sku": { + "name": "F1" + }, + "properties": { + "createdTime": "2019-11-19T12:55:05.229Z", + "provisioningState": "Provisioning", + "hostName": "https://myDigitalTwinsService2.api.wus2.ss.azuredigitaltwins-test.net" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsOperationsList_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsOperationsList_example.json new file mode 100644 index 000000000000..ad3636234d1f --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsOperationsList_example.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2020-03-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "Microsoft.DigitalTwins/checkNameAvailability/action", + "display": { + "provider": "Microsoft Digital Twins Service", + "resource": "Microsoft Digital Twins Service instance", + "operation": "Check Digital Twins Service name availability.", + "description": "Check Digital Twins Service name availability." + } + }, + { + "name": "Microsoft.DigitalTwins/DigitalTwinsInstance/write", + "display": { + "provider": "Microsoft Digital Twins Service", + "resource": "Microsoft Digital Twins Service instance", + "operation": "Create or update a Digital Twins Service instance.", + "description": "Create or update a Digital Twins Service instance." + } + }, + { + "name": "Microsoft.DigitalTwins/DigitalTwinsInstance/read", + "display": { + "provider": "Microsoft Digital Twins Service", + "resource": "Microsoft Digital Twins Service instance", + "operation": "Get a Digital Twins Service instance.", + "description": "Get a Digital Twins Service instance." + } + }, + { + "name": "Microsoft.DigitalTwins/DigitalTwinsInstance/delete", + "display": { + "provider": "Microsoft Digital Twins Service", + "resource": "Microsoft Digital Twins Service instance", + "operation": "Delete a Digital Twins Service instance.", + "description": "Delete a Digital Twins Service instance." + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPatch_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPatch_example.json new file mode 100644 index 000000000000..cf664c3f0173 --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPatch_example.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", + "resourceGroupName": "resRg", + "resourceName": "myDigitalTwinsService", + "api-version": "2020-03-01-preview", + "digitalTwinsPatchDescription": { + "tags": { + "purpose": "dev" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService", + "location": "westus", + "type": "Microsoft.DigitalTwins/DigitalTwinsInstance", + "name": "myDigitalTwinsService", + "sku": { + "name": "F1" + }, + "tags": { + "purpose": "dev" + }, + "properties": { + "createdTime": "2019-11-19T12:55:05.229Z", + "lastUpdatedTime": "2019-12-06T12:21:58.610Z", + "provisioningState": "Provisioning", + "hostName": "https://myDigitalTwinsService.api.wus2.ss.azuredigitaltwins-test.net" + } + } + }, + "201": {} + } +} \ No newline at end of file diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPut_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPut_example.json new file mode 100644 index 000000000000..12109800f13f --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPut_example.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", + "resourceGroupName": "resRg", + "resourceName": "myDigitalTwinsService", + "api-version": "2020-03-01-preview", + "digitalTwinsCreate": { + "location": "WestUS", + "sku": { + "name": "F1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService", + "location": "westus", + "type": "Microsoft.DigitalTwins/DigitalTwinsInstance", + "name": "myDigitalTwinsService", + "sku": { + "name": "F1" + }, + "properties": { + "createdTime": "2019-11-19T12:55:05.229Z", + "lastUpdatedTime": "2019-12-06T12:21:58.610Z", + "provisioningState": "Provisioning", + "hostName": "https://myDigitalTwinsService.api.wus2.ss.azuredigitaltwins-test.net" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService", + "location": "westus", + "type": "Microsoft.DigitalTwins/DigitalTwinsInstance", + "name": "myDigitalTwinsService", + "sku": { + "name": "F1" + }, + "properties": { + "createdTime": "2019-11-19T12:55:05.229Z", + "lastUpdatedTime": "2019-12-06T12:21:58.610Z", + "provisioningState": "Provisioning", + "hostName": "https://myDigitalTwinsService.api.wus2.ss.azuredigitaltwins-test.net" + } + } + } + } +} \ No newline at end of file diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/OperationGroupGet.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/OperationGroupGet.json deleted file mode 100644 index 5871f3726315..000000000000 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/OperationGroupGet.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "accountName": "sampleacct", - "resourceGroupName": "digitaltwinsClient", - "api-version": "2020-03-01-preview", - "subscriptionId": "subid" - }, - "responses": { - "200": { - "body": { - "sampleProperty": "sampleProperty" - } - } - } -} From 5a1eacd9ca5402bd46ec46077ef4a3c8fbfb6057 Mon Sep 17 00:00:00 2001 From: Supradha Sankaran Date: Thu, 9 Jan 2020 13:26:56 -0800 Subject: [PATCH 10/13] prettier fixes --- custom-words.txt | 1 + .../2020-03-01-preview/digitaltwins.json | 2016 +++++++++-------- ...talTwinsCheckNameAvailability_example.json | 2 +- .../examples/DigitalTwinsDelete_example.json | 2 +- .../DigitalTwinsEndpointDelete_example.json | 2 +- .../DigitalTwinsEndpointGet_example.json | 2 +- .../DigitalTwinsEndpointPut_example.json | 24 +- .../DigitalTwinsEndpointsGet_example.json | 2 +- .../examples/DigitalTwinsGet_example.json | 2 +- .../DigitalTwinsIoTHubDelete_example.json | 6 +- .../DigitalTwinsIoTHubGet_example.json | 2 +- .../DigitalTwinsIoTHubPut_example.json | 4 +- .../DigitalTwinsIoTHubsGet_example.json | 2 +- ...gitalTwinsListByResourceGroup_example.json | 2 +- .../examples/DigitalTwinsList_example.json | 2 +- .../DigitalTwinsOperationsList_example.json | 2 +- .../examples/DigitalTwinsPatch_example.json | 4 +- .../examples/DigitalTwinsPut_example.json | 2 +- 18 files changed, 1124 insertions(+), 955 deletions(-) diff --git a/custom-words.txt b/custom-words.txt index 62e1095f516d..307dd6169402 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -7,6 +7,7 @@ ABFS Accel ACCELCONTAINER acceptors +accesskey accesspoint accountid accountname diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/digitaltwins.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/digitaltwins.json index 33fb41280425..04beed751e0f 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/digitaltwins.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/digitaltwins.json @@ -1,872 +1,1008 @@ { - "swagger" : "2.0", - "info" : { - "version" : "2020-03-01-preview", - "title" : "AzureDigitalTwinsManagementClient", - "description" : "Azure Digital Twins Client for managing DigitalTwinsInstance" + "swagger": "2.0", + "info": { + "version": "2020-03-01-preview", + "title": "AzureDigitalTwinsManagementClient", + "description": "Azure Digital Twins Client for managing DigitalTwinsInstance" }, - "host" : "management.azure.com", - "schemes" : [ "https" ], - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "security" : [ { - "azure_auth" : [ "user_impersonation" ] - } ], - "securityDefinitions" : { - "azure_auth" : { - "type" : "oauth2", - "authorizationUrl" : "https://login.microsoftonline.com/common/oauth2/authorize", - "flow" : "implicit", - "description" : "Azure Active Directory OAuth2 Flow", - "scopes" : { - "user_impersonation" : "impersonate your user account" + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" } } }, - "paths" : { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}" : { - "get" : { - "tags" : [ "DigitalTwinsInstance" ], - "description" : "Get DigitalTwinsInstances resource.", - "operationId" : "DigitalTwins_Get", - "x-ms-examples" : { - "Get a DigitalTwinsInstance resource" : { - "$ref" : "./examples/DigitalTwinsGet_example.json" + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}": { + "get": { + "tags": [ + "DigitalTwinsInstance" + ], + "description": "Get DigitalTwinsInstances resource.", + "operationId": "DigitalTwins_Get", + "x-ms-examples": { + "Get a DigitalTwinsInstance resource": { + "$ref": "./examples/DigitalTwinsGet_example.json" } }, - "parameters" : [ { - "$ref" : "#/parameters/api-version" - }, { - "$ref" : "#/parameters/subscriptionId" - }, { - "$ref" : "#/parameters/resourceGroupName" - }, { - "$ref" : "#/parameters/resourceName" - } ], - "responses" : { - "200" : { - "description" : "The body contains all the non-security properties of the DigitalTwinsInstance. Security-related properties are set to null.", - "schema" : { - "$ref" : "#/definitions/DigitalTwinsDescription" + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/resourceName" + } + ], + "responses": { + "200": { + "description": "The body contains all the non-security properties of the DigitalTwinsInstance. Security-related properties are set to null.", + "schema": { + "$ref": "#/definitions/DigitalTwinsDescription" } }, - "default" : { - "description" : "Error response describing why the operation failed.", - "schema" : { - "$ref" : "#/definitions/ErrorResponse" + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } } } }, - "put" : { - "tags" : [ "DigitalTwinsInstance" ], - "description" : "Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance.", - "operationId" : "DigitalTwins_CreateOrUpdate", - "x-ms-long-running-operation" : true, - "x-ms-examples" : { - "Put a DigitalTwinsInstance resource" : { - "$ref" : "./examples/DigitalTwinsPut_example.json" + "put": { + "tags": [ + "DigitalTwinsInstance" + ], + "description": "Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance.", + "operationId": "DigitalTwins_CreateOrUpdate", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Put a DigitalTwinsInstance resource": { + "$ref": "./examples/DigitalTwinsPut_example.json" } }, - "parameters" : [ { - "$ref" : "#/parameters/api-version" - }, { - "$ref" : "#/parameters/subscriptionId" - }, { - "$ref" : "#/parameters/resourceGroupName" - }, { - "$ref" : "#/parameters/resourceName" - }, { - "name" : "digitalTwinsCreate", - "in" : "body", - "description" : "The DigitalTwinsInstance and security metadata.", - "required" : true, - "schema" : { - "$ref" : "#/definitions/DigitalTwinsDescription" + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/resourceName" + }, + { + "name": "digitalTwinsCreate", + "in": "body", + "description": "The DigitalTwinsInstance and security metadata.", + "required": true, + "schema": { + "$ref": "#/definitions/DigitalTwinsDescription" + } } - } ], - "responses" : { - "200" : { - "description" : "This is returned as a response to the status polling request for the create or update operation. The body contains the resource representation that indicates a transitional provisioning state.", - "schema" : { - "$ref" : "#/definitions/DigitalTwinsDescription" + ], + "responses": { + "200": { + "description": "This is returned as a response to the status polling request for the create or update operation. The body contains the resource representation that indicates a transitional provisioning state.", + "schema": { + "$ref": "#/definitions/DigitalTwinsDescription" } }, - "201" : { - "description" : "Created - Put request accepted; the operation will complete asynchronously.", - "schema" : { - "$ref" : "#/definitions/DigitalTwinsDescription" + "201": { + "description": "Created - Put request accepted; the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/DigitalTwinsDescription" } }, - "default" : { - "description" : "Error response describing why the operation failed.", - "schema" : { - "$ref" : "#/definitions/ErrorResponse" + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } } } }, - "patch" : { - "tags" : [ "DigitalTwinsInstance" ], - "description" : "Update metadata of DigitalTwinsInstance.", - "operationId" : "DigitalTwins_Update", - "x-ms-long-running-operation" : true, - "x-ms-examples" : { - "Patch a DigitalTwinsInstance resource" : { - "$ref" : "./examples/DigitalTwinsPatch_example.json" + "patch": { + "tags": [ + "DigitalTwinsInstance" + ], + "description": "Update metadata of DigitalTwinsInstance.", + "operationId": "DigitalTwins_Update", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Patch a DigitalTwinsInstance resource": { + "$ref": "./examples/DigitalTwinsPatch_example.json" } }, - "parameters" : [ { - "$ref" : "#/parameters/api-version" - }, { - "$ref" : "#/parameters/subscriptionId" - }, { - "$ref" : "#/parameters/resourceGroupName" - }, { - "$ref" : "#/parameters/resourceName" - }, { - "name" : "digitalTwinsPatchDescription", - "in" : "body", - "description" : "The DigitalTwinsInstance and security metadata.", - "required" : true, - "schema" : { - "$ref" : "#/definitions/DigitalTwinsPatchDescription" + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/resourceName" + }, + { + "name": "digitalTwinsPatchDescription", + "in": "body", + "description": "The DigitalTwinsInstance and security metadata.", + "required": true, + "schema": { + "$ref": "#/definitions/DigitalTwinsPatchDescription" + } } - } ], - "responses" : { - "200" : { - "description" : "This is returned as a response to the status polling request for the create or update operation. The body contains the resource representation that indicates a transitional provisioning state.", - "schema" : { - "$ref" : "#/definitions/DigitalTwinsDescription" + ], + "responses": { + "200": { + "description": "This is returned as a response to the status polling request for the create or update operation. The body contains the resource representation that indicates a transitional provisioning state.", + "schema": { + "$ref": "#/definitions/DigitalTwinsDescription" } }, - "201" : { - "description" : "Accepted - Put request accepted; the operation will complete asynchronously." + "201": { + "description": "Accepted - Put request accepted; the operation will complete asynchronously." }, - "default" : { - "description" : "Error response describing why the operation failed.", - "schema" : { - "$ref" : "#/definitions/ErrorResponse" + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } } } }, - "delete" : { - "tags" : [ "DigitalTwinsInstance" ], - "description" : "Delete a DigitalTwinsInstance.", - "operationId" : "DigitalTwins_Delete", - "x-ms-long-running-operation" : true, - "x-ms-examples" : { - "Delete a DigitalTwinsInstance resource" : { - "$ref" : "./examples/DigitalTwinsDelete_example.json" + "delete": { + "tags": [ + "DigitalTwinsInstance" + ], + "description": "Delete a DigitalTwinsInstance.", + "operationId": "DigitalTwins_Delete", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a DigitalTwinsInstance resource": { + "$ref": "./examples/DigitalTwinsDelete_example.json" } }, - "parameters" : [ { - "$ref" : "#/parameters/api-version" - }, { - "$ref" : "#/parameters/subscriptionId" - }, { - "$ref" : "#/parameters/resourceGroupName" - }, { - "$ref" : "#/parameters/resourceName" - } ], - "responses" : { - "200" : { - "description" : "This is returned as a response to the status polling request for the delete operation. The body contains the resource representation that indicates a transitional provisioning state." - }, - "202" : { - "description" : "Accepted - Delete request accepted; the operation will complete asynchronously.", - "schema" : { - "$ref" : "#/definitions/DigitalTwinsDescription" + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/resourceName" + } + ], + "responses": { + "200": { + "description": "This is returned as a response to the status polling request for the delete operation. The body contains the resource representation that indicates a transitional provisioning state." + }, + "202": { + "description": "Accepted - Delete request accepted; the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/DigitalTwinsDescription" } }, - "204" : { - "description" : "Once the long running delete operation completes successfully, a 204 No Content status code is returned when the status polling request finds the DigitalTwins service metadata in the service and the status of the delete operation is set to a completed state." + "204": { + "description": "Once the long running delete operation completes successfully, a 204 No Content status code is returned when the status polling request finds the DigitalTwins service metadata in the service and the status of the delete operation is set to a completed state." }, - "default" : { - "description" : "Error response describing why the operation failed.", - "schema" : { - "$ref" : "#/definitions/ErrorResponse" + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints" : { - "get" : { - "tags" : [ "Endpoints" ], - "description" : "Get DigitalTwinsInstance Endpoints.", - "operationId" : "DigitalTwinsEndpoints_List", - "x-ms-examples" : { - "Get a DigitalTwinsInstance endpoints" : { - "$ref" : "./examples/DigitalTwinsEndpointsGet_example.json" + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints": { + "get": { + "tags": [ + "Endpoints" + ], + "description": "Get DigitalTwinsInstance Endpoints.", + "operationId": "DigitalTwinsEndpoints_List", + "x-ms-examples": { + "Get a DigitalTwinsInstance endpoints": { + "$ref": "./examples/DigitalTwinsEndpointsGet_example.json" } }, - "x-ms-pageable" : { - "nextLinkName" : "nextLink" + "x-ms-pageable": { + "nextLinkName": "nextLink" }, - "parameters" : [ { - "$ref" : "#/parameters/api-version" - }, { - "$ref" : "#/parameters/subscriptionId" - }, { - "$ref" : "#/parameters/resourceGroupName" - }, { - "$ref" : "#/parameters/resourceName" - } ], - "responses" : { - "200" : { - "description" : "The body contains all the non-security properties of the DigitalTwinsInstance. Security-related properties are set to null.", - "schema" : { - "$ref" : "#/definitions/DigitalTwinsEndpointResourceListResult" + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/resourceName" + } + ], + "responses": { + "200": { + "description": "The body contains all the non-security properties of the DigitalTwinsInstance. Security-related properties are set to null.", + "schema": { + "$ref": "#/definitions/DigitalTwinsEndpointResourceListResult" } }, - "default" : { - "description" : "Error response describing why the operation failed.", - "schema" : { - "$ref" : "#/definitions/ErrorResponse" + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints/{endpointName}" : { - "get" : { - "tags" : [ "Endpoints" ], - "description" : "Get DigitalTwinsInstances Endpoint.", - "operationId" : "DigitalTwinsEndpoint_Get", - "x-ms-examples" : { - "Get a DigitalTwinsInstance endpoint" : { - "$ref" : "./examples/DigitalTwinsEndpointGet_example.json" + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints/{endpointName}": { + "get": { + "tags": [ + "Endpoints" + ], + "description": "Get DigitalTwinsInstances Endpoint.", + "operationId": "DigitalTwinsEndpoint_Get", + "x-ms-examples": { + "Get a DigitalTwinsInstance endpoint": { + "$ref": "./examples/DigitalTwinsEndpointGet_example.json" } }, - "parameters" : [ { - "$ref" : "#/parameters/api-version" - }, { - "$ref" : "#/parameters/subscriptionId" - }, { - "$ref" : "#/parameters/resourceGroupName" - }, { - "$ref" : "#/parameters/resourceName" - }, { - "$ref" : "#/parameters/endpointName" - } ], - "responses" : { - "200" : { - "description" : "The body contains all the non-security properties of the DigitalTwinsInstance. Security-related properties are set to null.", - "schema" : { - "$ref" : "#/definitions/DigitalTwinsEndpointResource" + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/resourceName" + }, + { + "$ref": "#/parameters/endpointName" + } + ], + "responses": { + "200": { + "description": "The body contains all the non-security properties of the DigitalTwinsInstance. Security-related properties are set to null.", + "schema": { + "$ref": "#/definitions/DigitalTwinsEndpointResource" } }, - "default" : { - "description" : "Default error response", - "schema" : { - "$ref" : "#/definitions/ErrorResponse" + "default": { + "description": "Default error response", + "schema": { + "$ref": "#/definitions/ErrorResponse" } } } }, - "put" : { - "tags" : [ "Endpoints" ], - "description" : "Create or update DigitalTwinsInstance endpoint.", - "operationId" : "DigitalTwinsEndpoint_CreateOrUpdate", - "x-ms-long-running-operation" : true, - "x-ms-examples" : { - "Put a DigitalTwinsInstance resource" : { - "$ref" : "./examples/DigitalTwinsEndpointPut_example.json" + "put": { + "tags": [ + "Endpoints" + ], + "description": "Create or update DigitalTwinsInstance endpoint.", + "operationId": "DigitalTwinsEndpoint_CreateOrUpdate", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Put a DigitalTwinsInstance resource": { + "$ref": "./examples/DigitalTwinsEndpointPut_example.json" } }, - "parameters" : [ { - "$ref" : "#/parameters/api-version" - }, { - "$ref" : "#/parameters/subscriptionId" - }, { - "$ref" : "#/parameters/resourceGroupName" - }, { - "$ref" : "#/parameters/resourceName" - }, { - "$ref" : "#/parameters/endpointName" - }, { - "name" : "endpointDescription", - "in" : "body", - "description" : "The DigitalTwinsInstance endpoint metadata and security metadata.", - "required" : true, - "schema" : { - "$ref" : "#/definitions/DigitalTwinsEndpointResource" + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/resourceName" + }, + { + "$ref": "#/parameters/endpointName" + }, + { + "name": "endpointDescription", + "in": "body", + "description": "The DigitalTwinsInstance endpoint metadata and security metadata.", + "required": true, + "schema": { + "$ref": "#/definitions/DigitalTwinsEndpointResource" + } } - } ], - "responses" : { - "200" : { - "description" : "This is returned as a response to the status polling request for the create or update operation. The body contains the resource representation that indicates a transitional provisioning state.", - "schema" : { - "$ref" : "#/definitions/DigitalTwinsEndpointResource" + ], + "responses": { + "200": { + "description": "This is returned as a response to the status polling request for the create or update operation. The body contains the resource representation that indicates a transitional provisioning state.", + "schema": { + "$ref": "#/definitions/DigitalTwinsEndpointResource" } }, - "201" : { - "description" : "Created - Put request accepted; the operation will complete asynchronously.", - "schema" : { - "$ref" : "#/definitions/DigitalTwinsEndpointResource" + "201": { + "description": "Created - Put request accepted; the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/DigitalTwinsEndpointResource" } }, - "default" : { - "description" : "Error response describing why the operation failed.", - "schema" : { - "$ref" : "#/definitions/ErrorResponse" + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } } } }, - "delete" : { - "tags" : [ "Endpoints" ], - "description" : "Delete a DigitalTwinsInstance endpoint.", - "operationId" : "DigitalTwinsEndpoint_Delete", - "x-ms-long-running-operation" : true, - "x-ms-examples" : { - "Delete a DigitalTwinsInstance endpoint" : { - "$ref" : "./examples/DigitalTwinsEndpointDelete_example.json" + "delete": { + "tags": [ + "Endpoints" + ], + "description": "Delete a DigitalTwinsInstance endpoint.", + "operationId": "DigitalTwinsEndpoint_Delete", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a DigitalTwinsInstance endpoint": { + "$ref": "./examples/DigitalTwinsEndpointDelete_example.json" } }, - "parameters" : [ { - "$ref" : "#/parameters/api-version" - }, { - "$ref" : "#/parameters/subscriptionId" - }, { - "$ref" : "#/parameters/resourceGroupName" - }, { - "$ref" : "#/parameters/resourceName" - }, { - "$ref" : "#/parameters/endpointName" - } ], - "responses" : { - "200" : { - "description" : "This is returned as a response to the status polling request for the delete operation. The body contains the resource representation that indicates a transitional provisioning state." - }, - "202" : { - "description" : "Accepted - Delete request accepted; the operation will complete asynchronously.", - "schema" : { - "$ref" : "#/definitions/DigitalTwinsEndpointResource" + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/resourceName" + }, + { + "$ref": "#/parameters/endpointName" + } + ], + "responses": { + "200": { + "description": "This is returned as a response to the status polling request for the delete operation. The body contains the resource representation that indicates a transitional provisioning state." + }, + "202": { + "description": "Accepted - Delete request accepted; the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/DigitalTwinsEndpointResource" } }, - "204" : { - "description" : "Once the long running delete operation completes successfully, a 204 No Content status code is returned when the status polling request finds the DigitalTwins service metadata in the service and the status of the delete operation is set to a completed state." + "204": { + "description": "Once the long running delete operation completes successfully, a 204 No Content status code is returned when the status polling request finds the DigitalTwins service metadata in the service and the status of the delete operation is set to a completed state." }, - "default" : { - "description" : "Error response describing why the operation failed.", - "schema" : { - "$ref" : "#/definitions/ErrorResponse" + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DigitalTwins/digitalTwinsInstances" : { - "get" : { - "tags" : [ "DigitalTwinsInstance" ], - "description" : "Get all the DigitalTwinsInstances in a subscription.", - "operationId" : "DigitalTwins_List", - "x-ms-examples" : { - "Get DigitalTwinsInstance resources by subscription" : { - "$ref" : "./examples/DigitalTwinsList_example.json" + "/subscriptions/{subscriptionId}/providers/Microsoft.DigitalTwins/digitalTwinsInstances": { + "get": { + "tags": [ + "DigitalTwinsInstance" + ], + "description": "Get all the DigitalTwinsInstances in a subscription.", + "operationId": "DigitalTwins_List", + "x-ms-examples": { + "Get DigitalTwinsInstance resources by subscription": { + "$ref": "./examples/DigitalTwinsList_example.json" } }, - "x-ms-pageable" : { - "nextLinkName" : "nextLink" + "x-ms-pageable": { + "nextLinkName": "nextLink" }, - "parameters" : [ { - "$ref" : "#/parameters/api-version" - }, { - "$ref" : "#/parameters/subscriptionId" - } ], - "responses" : { - "200" : { - "description" : "This is a synchronous operation. The body contains a JSON-serialized array of the metadata from all the DigitalTwinsInstances in the subscription.", - "schema" : { - "$ref" : "#/definitions/DigitalTwinsDescriptionListResult" + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + } + ], + "responses": { + "200": { + "description": "This is a synchronous operation. The body contains a JSON-serialized array of the metadata from all the DigitalTwinsInstances in the subscription.", + "schema": { + "$ref": "#/definitions/DigitalTwinsDescriptionListResult" } }, - "default" : { - "description" : "Error response describing why the operation failed.", - "schema" : { - "$ref" : "#/definitions/ErrorResponse" + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances" : { - "get" : { - "tags" : [ "DigitalTwinsInstance" ], - "description" : "Get all the DigitalTwinsInstances in a resource group.", - "operationId" : "DigitalTwins_ListByResourceGroup", - "x-ms-examples" : { - "Get DigitalTwinsInstance resources by resource group" : { - "$ref" : "./examples/DigitalTwinsListByResourceGroup_example.json" + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances": { + "get": { + "tags": [ + "DigitalTwinsInstance" + ], + "description": "Get all the DigitalTwinsInstances in a resource group.", + "operationId": "DigitalTwins_ListByResourceGroup", + "x-ms-examples": { + "Get DigitalTwinsInstance resources by resource group": { + "$ref": "./examples/DigitalTwinsListByResourceGroup_example.json" } }, - "x-ms-pageable" : { - "nextLinkName" : "nextLink" + "x-ms-pageable": { + "nextLinkName": "nextLink" }, - "parameters" : [ { - "$ref" : "#/parameters/api-version" - }, { - "$ref" : "#/parameters/subscriptionId" - }, { - "$ref" : "#/parameters/resourceGroupName" - } ], - "responses" : { - "200" : { - "description" : "This is a synchronous operation. The body contains a JSON-serialized array of the metadata from all the DigitalTwinsInstances in the resource group.", - "schema" : { - "$ref" : "#/definitions/DigitalTwinsDescriptionListResult" + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + } + ], + "responses": { + "200": { + "description": "This is a synchronous operation. The body contains a JSON-serialized array of the metadata from all the DigitalTwinsInstances in the resource group.", + "schema": { + "$ref": "#/definitions/DigitalTwinsDescriptionListResult" } }, - "default" : { - "description" : "Error response describing why the operation failed.", - "schema" : { - "$ref" : "#/definitions/ErrorResponse" + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } } } } }, - "/{scope}/providers/Microsoft.DigitalTwins/integrationResources/{integrationResourceName}" : { - "get" : { - "tags" : [ "IoTHub Integration" ], - "description" : "Gets properties of an IoTHub Integration.", - "operationId" : "IoTHub_Get", - "x-ms-examples" : { - "Get IoTHub by DigitalTwinsInstance" : { - "$ref" : "./examples/DigitalTwinsIoTHubGet_example.json" + "/{scope}/providers/Microsoft.DigitalTwins/integrationResources/{integrationResourceName}": { + "get": { + "tags": [ + "IoTHub Integration" + ], + "description": "Gets properties of an IoTHub Integration.", + "operationId": "IoTHub_Get", + "x-ms-examples": { + "Get IoTHub by DigitalTwinsInstance": { + "$ref": "./examples/DigitalTwinsIoTHubGet_example.json" } }, - "parameters" : [ { - "$ref" : "#/parameters/scope" - }, { - "$ref" : "#/parameters/integrationResourceName" - } ], - "responses" : { - "200" : { - "description" : "This is a synchronous operation. The body contains metadata about IoTHub and DigitalTwinsInstance Integration.", - "schema" : { - "$ref" : "#/definitions/IntegrationResource" + "parameters": [ + { + "$ref": "#/parameters/scope" + }, + { + "$ref": "#/parameters/integrationResourceName" + } + ], + "responses": { + "200": { + "description": "This is a synchronous operation. The body contains metadata about IoTHub and DigitalTwinsInstance Integration.", + "schema": { + "$ref": "#/definitions/IntegrationResource" } }, - "default" : { - "description" : "Error response describing why the operation failed.", - "schema" : { - "$ref" : "#/definitions/ErrorResponse" + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } } } }, - "put" : { - "tags" : [ "IoTHub Integration" ], - "description" : "Creates or Updates an IoTHub Integration with DigitalTwinsInstances.", - "operationId" : "IoTHub_CreateOrUpdate", - "x-ms-examples" : { - "Connect IoTHub with DigitalTwinsInstance" : { - "$ref" : "./examples/DigitalTwinsIoTHubPut_example.json" + "put": { + "tags": [ + "IoTHub Integration" + ], + "description": "Creates or Updates an IoTHub Integration with DigitalTwinsInstances.", + "operationId": "IoTHub_CreateOrUpdate", + "x-ms-examples": { + "Connect IoTHub with DigitalTwinsInstance": { + "$ref": "./examples/DigitalTwinsIoTHubPut_example.json" } }, - "parameters" : [ { - "$ref" : "#/parameters/scope" - }, { - "$ref" : "#/parameters/integrationResourceName" - }, { - "name" : "iotHubDescription", - "in" : "body", - "description" : "The IoTHub metadata.", - "required" : true, - "schema" : { - "$ref" : "#/definitions/IntegrationResource" + "parameters": [ + { + "$ref": "#/parameters/scope" + }, + { + "$ref": "#/parameters/integrationResourceName" + }, + { + "name": "iotHubDescription", + "in": "body", + "description": "The IoTHub metadata.", + "required": true, + "schema": { + "$ref": "#/definitions/IntegrationResource" + } } - } ], - "responses" : { - "201" : { - "description" : "This is an asynchronous operation. The body contains metadata about IoTHub and DigitalTwinsInstance Integration.", - "schema" : { - "$ref" : "#/definitions/IntegrationResource" + ], + "responses": { + "201": { + "description": "This is an asynchronous operation. The body contains metadata about IoTHub and DigitalTwinsInstance Integration.", + "schema": { + "$ref": "#/definitions/IntegrationResource" } }, - "default" : { - "description" : "Error response describing why the operation failed.", - "schema" : { - "$ref" : "#/definitions/ErrorResponse" + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } } } }, - "delete" : { - "tags" : [ "IoTHub Integration" ], - "description" : "Deletes a DigitalTwinsInstance link with IoTHub.", - "operationId" : "IoTHub_Delete", - "x-ms-examples" : { - "Connect IoTHub with DigitalTwinsInstance" : { - "$ref" : "./examples/DigitalTwinsIoTHubDelete_example.json" + "delete": { + "tags": [ + "IoTHub Integration" + ], + "description": "Deletes a DigitalTwinsInstance link with IoTHub.", + "operationId": "IoTHub_Delete", + "x-ms-examples": { + "Connect IoTHub with DigitalTwinsInstance": { + "$ref": "./examples/DigitalTwinsIoTHubDelete_example.json" } }, - "x-ms-long-running-operation" : true, - "parameters" : [ { - "$ref" : "#/parameters/scope" - }, { - "$ref" : "#/parameters/integrationResourceName" - } ], - "responses" : { - "200" : { - "description" : "OK. DigitalTwinsInstance IoTHub link has been Deleted." - }, - "202" : { - "description" : "Accepted. Response includes a Location header which points to the DigitalTwins and IoTHub Integration resource.", - "schema" : { - "$ref" : "#/definitions/IntegrationResource" + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/scope" + }, + { + "$ref": "#/parameters/integrationResourceName" + } + ], + "responses": { + "200": { + "description": "OK. DigitalTwinsInstance IoTHub link has been Deleted." + }, + "202": { + "description": "Accepted. Response includes a Location header which points to the DigitalTwins and IoTHub Integration resource.", + "schema": { + "$ref": "#/definitions/IntegrationResource" } }, - "204" : { - "description" : "NoContent. DigitalTwinsInstance IoTHub link does not exist." + "204": { + "description": "NoContent. DigitalTwinsInstance IoTHub link does not exist." }, - "default" : { - "description" : "Error response describing why the operation failed.", - "schema" : { - "$ref" : "#/definitions/ErrorResponse" + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/integrationResources" : { - "get" : { - "tags" : [ "IoTHub Integration" ], - "description" : "Get DigitalTwinsInstance IoTHubs.", - "operationId" : "DigitalTwinsIoTHubs_List", - "x-ms-examples" : { - "Get a DigitalTwinsInstance IoTHubs" : { - "$ref" : "./examples/DigitalTwinsIoTHubsGet_example.json" + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/integrationResources": { + "get": { + "tags": [ + "IoTHub Integration" + ], + "description": "Get DigitalTwinsInstance IoTHubs.", + "operationId": "DigitalTwinsIoTHubs_List", + "x-ms-examples": { + "Get a DigitalTwinsInstance IoTHubs": { + "$ref": "./examples/DigitalTwinsIoTHubsGet_example.json" } }, - "x-ms-pageable" : { - "nextLinkName" : "nextLink" + "x-ms-pageable": { + "nextLinkName": "nextLink" }, - "parameters" : [ { - "$ref" : "#/parameters/api-version" - }, { - "$ref" : "#/parameters/subscriptionId" - }, { - "$ref" : "#/parameters/resourceGroupName" - }, { - "$ref" : "#/parameters/resourceName" - } ], - "responses" : { - "200" : { - "description" : "The body contains all the non-security properties of the DigitalTwinsInstance. Security-related properties are set to null.", - "schema" : { - "$ref" : "#/definitions/DigitalTwinsIntegrationResourceListResult" + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/resourceName" + } + ], + "responses": { + "200": { + "description": "The body contains all the non-security properties of the DigitalTwinsInstance. Security-related properties are set to null.", + "schema": { + "$ref": "#/definitions/DigitalTwinsIntegrationResourceListResult" } }, - "default" : { - "description" : "Error response describing why the operation failed.", - "schema" : { - "$ref" : "#/definitions/ErrorResponse" + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } } } } }, - "/providers/Microsoft.DigitalTwins/operations" : { - "get" : { - "tags" : [ "Operations" ], - "description" : "Lists all of the available DigitalTwins service REST API operations.", - "operationId" : "Operations_List", - "x-ms-examples" : { - "Get available operations" : { - "$ref" : "./examples/DigitalTwinsOperationsList_example.json" + "/providers/Microsoft.DigitalTwins/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available DigitalTwins service REST API operations.", + "operationId": "Operations_List", + "x-ms-examples": { + "Get available operations": { + "$ref": "./examples/DigitalTwinsOperationsList_example.json" } }, - "x-ms-pageable" : { - "nextLinkName" : "nextLink" + "x-ms-pageable": { + "nextLinkName": "nextLink" }, - "parameters" : [ { - "$ref" : "#/parameters/api-version" - } ], - "responses" : { - "200" : { - "description" : "OK. The request has succeeded.", - "schema" : { - "$ref" : "#/definitions/OperationListResult" + "parameters": [ + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" } }, - "default" : { - "description" : "Error response describing why the operation failed.", - "schema" : { - "$ref" : "#/definitions/ErrorResponse" + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DigitalTwins/locations/{location}/checkNameAvailability" : { - "post" : { - "tags" : [ "CheckNameAvailability" ], - "description" : "Check if a DigitalTwinsInstance name is available.", - "operationId" : "DigitalTwins_CheckNameAvailability", - "x-ms-examples" : { - "Check name Availability" : { - "$ref" : "./examples/DigitalTwinsCheckNameAvailability_example.json" + "/subscriptions/{subscriptionId}/providers/Microsoft.DigitalTwins/locations/{location}/checkNameAvailability": { + "post": { + "tags": [ + "CheckNameAvailability" + ], + "description": "Check if a DigitalTwinsInstance name is available.", + "operationId": "DigitalTwins_CheckNameAvailability", + "x-ms-examples": { + "Check name Availability": { + "$ref": "./examples/DigitalTwinsCheckNameAvailability_example.json" } }, - "parameters" : [ { - "$ref" : "#/parameters/api-version" - }, { - "$ref" : "#/parameters/subscriptionId" - }, { - "$ref" : "#/parameters/location" - }, { - "name" : "digitalTwinsInstanceCheckName", - "in" : "body", - "description" : "Set the name parameter in the DigitalTwinsInstanceCheckName structure to the name of the DigitalTwinsInstance to check.", - "required" : true, - "schema" : { - "$ref" : "#/definitions/CheckNameRequest" + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/location" + }, + { + "name": "digitalTwinsInstanceCheckName", + "in": "body", + "description": "Set the name parameter in the DigitalTwinsInstanceCheckName structure to the name of the DigitalTwinsInstance to check.", + "required": true, + "schema": { + "$ref": "#/definitions/CheckNameRequest" + } } - } ], - "responses" : { - "200" : { - "description" : "This is a synchronous operation. The body contains a JSON-serialized response that specifies whether the DigitalTwins service name is available. If the name is not available, the body contains the reason.", - "schema" : { - "$ref" : "#/definitions/CheckNameResult" + ], + "responses": { + "200": { + "description": "This is a synchronous operation. The body contains a JSON-serialized response that specifies whether the DigitalTwins service name is available. If the name is not available, the body contains the reason.", + "schema": { + "$ref": "#/definitions/CheckNameResult" } }, - "default" : { - "description" : "Error response describing why the operation failed.", - "schema" : { - "$ref" : "#/definitions/ErrorResponse" + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } } } } } }, - "definitions" : { - "DigitalTwinsProperties" : { - "description" : "The properties of a DigitalTwinsInstance.", - "type" : "object", - "properties" : { - "createdTime" : { - "description" : "Time when DigitalTwinsInstance was created.", - "readOnly" : true, - "type" : "string", - "format" : "date-time" + "definitions": { + "DigitalTwinsProperties": { + "description": "The properties of a DigitalTwinsInstance.", + "type": "object", + "properties": { + "createdTime": { + "description": "Time when DigitalTwinsInstance was created.", + "readOnly": true, + "type": "string", + "format": "date-time" }, - "lastUpdatedTime" : { - "description" : "Time when DigitalTwinsInstance was created.", - "readOnly" : true, - "type" : "string", - "format" : "date-time" + "lastUpdatedTime": { + "description": "Time when DigitalTwinsInstance was created.", + "readOnly": true, + "type": "string", + "format": "date-time" }, - "provisioningState" : { - "description" : "The provisioning state.", - "enum" : [ "Provisioning", "Deleting", "Succeeded", "Failed", "Canceled" ], - "type" : "string", - "readOnly" : true, - "x-ms-enum" : { - "name" : "provisioningState", - "modelAsString" : true + "provisioningState": { + "description": "The provisioning state.", + "enum": [ + "Provisioning", + "Deleting", + "Succeeded", + "Failed", + "Canceled" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "provisioningState", + "modelAsString": true } }, - "hostName" : { - "description" : "Api endpoint to work with DigitalTwinsInstance.", - "type" : "string", - "readOnly" : true + "hostName": { + "description": "Api endpoint to work with DigitalTwinsInstance.", + "type": "string", + "readOnly": true } } }, - "DigitalTwinsSkuInfo" : { - "description" : "Information about the SKU of the DigitalTwinsInstance.", - "type" : "object", - "properties" : { - "name" : { - "description" : "The name of the SKU.", - "enum" : [ "F1" ], - "type" : "string", - "x-ms-enum" : { - "name" : "DigitalTwinsSku", - "modelAsString" : true + "DigitalTwinsSkuInfo": { + "description": "Information about the SKU of the DigitalTwinsInstance.", + "type": "object", + "properties": { + "name": { + "description": "The name of the SKU.", + "enum": [ + "F1" + ], + "type": "string", + "x-ms-enum": { + "name": "DigitalTwinsSku", + "modelAsString": true } } }, - "required" : [ "name" ] + "required": [ + "name" + ] }, - "DigitalTwinsDescription" : { - "description" : "The description of the DigitalTwins service.", - "type" : "object", - "properties" : { - "properties" : { + "DigitalTwinsDescription": { + "description": "The description of the DigitalTwins service.", + "type": "object", + "properties": { + "properties": { "x-ms-client-flatten": true, - "description" : "DigitalTwins instance properties.", - "$ref" : "#/definitions/DigitalTwinsProperties" + "description": "DigitalTwins instance properties.", + "$ref": "#/definitions/DigitalTwinsProperties" } }, - "allOf" : [ { - "$ref" : "#/definitions/DigitalTwinsResource" - } ], - "required" : [ "sku" ] + "allOf": [ + { + "$ref": "#/definitions/DigitalTwinsResource" + } + ], + "required": [ + "sku" + ] }, - "DigitalTwinsPatchDescription" : { - "description" : "The description of the DigitalTwins service.", - "type" : "object", - "properties" : { - "tags" : { - "description" : "Instance tags", - "type" : "object", - "additionalProperties" : { - "type" : "string" + "DigitalTwinsPatchDescription": { + "description": "The description of the DigitalTwins service.", + "type": "object", + "properties": { + "tags": { + "description": "Instance tags", + "type": "object", + "additionalProperties": { + "type": "string" } } } }, - "DigitalTwinsResource" : { - "description" : "The common properties of a DigitalTwinsInstance.", - "properties" : { - "id" : { - "readOnly" : true, - "type" : "string", - "description" : "The resource identifier." + "DigitalTwinsResource": { + "description": "The common properties of a DigitalTwinsInstance.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The resource identifier." }, - "name" : { - "readOnly" : true, - "type" : "string", - "description" : "The resource name.", - "pattern" : "^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$" + "name": { + "readOnly": true, + "type": "string", + "description": "The resource name.", + "pattern": "^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$" }, - "type" : { - "readOnly" : true, - "type" : "string", - "description" : "The resource type." + "type": { + "readOnly": true, + "type": "string", + "description": "The resource type." }, - "location" : { - "type" : "string", - "description" : "The resource location.", - "x-ms-mutability" : [ "create", "read" ] + "location": { + "type": "string", + "description": "The resource location.", + "x-ms-mutability": [ + "create", + "read" + ] }, - "tags" : { - "type" : "object", - "additionalProperties" : { - "type" : "string" + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" }, - "description" : "The resource tags." + "description": "The resource tags." }, - "sku" : { - "description" : "The resource sku.", - "$ref" : "#/definitions/DigitalTwinsSkuInfo" + "sku": { + "description": "The resource sku.", + "$ref": "#/definitions/DigitalTwinsSkuInfo" } }, - "x-ms-azure-resource" : true, - "required" : [ "location" ] + "x-ms-azure-resource": true, + "required": [ + "location" + ] }, - "ErrorResponse" : { - "description" : "Error response.", - "properties" : { - "error" : { - "description" : "Error description", - "$ref" : "#/definitions/ErrorDefinition" + "ErrorResponse": { + "description": "Error response.", + "properties": { + "error": { + "description": "Error description", + "$ref": "#/definitions/ErrorDefinition" } } }, - "ErrorDefinition" : { - "description" : "Error definition.", - "properties" : { - "code" : { - "description" : "Service specific error code which serves as the substatus for the HTTP error code.", - "type" : "string", - "readOnly" : true + "ErrorDefinition": { + "description": "Error definition.", + "properties": { + "code": { + "description": "Service specific error code which serves as the substatus for the HTTP error code.", + "type": "string", + "readOnly": true }, - "message" : { - "description" : "Description of the error.", - "type" : "string", - "readOnly" : true + "message": { + "description": "Description of the error.", + "type": "string", + "readOnly": true }, - "details" : { - "description" : "Internal error details.", - "type" : "array", - "items" : { - "$ref" : "#/definitions/ErrorDefinition" + "details": { + "description": "Internal error details.", + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDefinition" }, - "readOnly" : true + "readOnly": true } } }, - "DigitalTwinsDescriptionListResult" : { - "description" : "A list of DigitalTwins description objects with a next link.", - "type" : "object", - "properties" : { - "nextLink" : { - "description" : "The link used to get the next page of DigitalTwins description objects.", - "type" : "string" + "DigitalTwinsDescriptionListResult": { + "description": "A list of DigitalTwins description objects with a next link.", + "type": "object", + "properties": { + "nextLink": { + "description": "The link used to get the next page of DigitalTwins description objects.", + "type": "string" }, - "value" : { - "description" : "A list of DigitalTwins description objects.", - "type" : "array", - "items" : { - "$ref" : "#/definitions/DigitalTwinsDescription" + "value": { + "description": "A list of DigitalTwins description objects.", + "type": "array", + "items": { + "$ref": "#/definitions/DigitalTwinsDescription" } } } }, - "OperationListResult" : { - "description" : "A list of DigitalTwins service operations. It contains a list of operations and a URL link to get the next set of results.", - "type" : "object", - "properties" : { - "nextLink" : { - "description" : "The link used to get the next page of DigitalTwins description objects.", - "type" : "string" + "OperationListResult": { + "description": "A list of DigitalTwins service operations. It contains a list of operations and a URL link to get the next set of results.", + "type": "object", + "properties": { + "nextLink": { + "description": "The link used to get the next page of DigitalTwins description objects.", + "type": "string" }, - "value" : { - "description" : "A list of DigitalTwins operations supported by the Microsoft.DigitalTwins resource provider.", - "type" : "array", - "readOnly" : true, - "items" : { - "$ref" : "#/definitions/Operation" + "value": { + "description": "A list of DigitalTwins operations supported by the Microsoft.DigitalTwins resource provider.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Operation" } } } }, - "Operation" : { - "description" : "DigitalTwins service REST API operation", - "type" : "object", - "properties" : { - "name" : { - "readOnly" : true, - "type" : "string", - "description" : "Operation name: {provider}/{resource}/{read | write | action | delete}" + "Operation": { + "description": "DigitalTwins service REST API operation", + "type": "object", + "properties": { + "name": { + "readOnly": true, + "type": "string", + "description": "Operation name: {provider}/{resource}/{read | write | action | delete}" }, - "display" : { - "description" : "Operation properities display", - "$ref" : "#/definitions/OperationDisplay" + "display": { + "description": "Operation properties display", + "$ref": "#/definitions/OperationDisplay" } } }, - "OperationDisplay" : { - "description" : "The object that represents the operation.", - "type" : "object", - "properties" : { - "provider" : { - "readOnly" : true, - "type" : "string", - "description" : "Service provider: Microsoft DigitalTwins" + "OperationDisplay": { + "description": "The object that represents the operation.", + "type": "object", + "properties": { + "provider": { + "readOnly": true, + "type": "string", + "description": "Service provider: Microsoft DigitalTwins" }, - "resource" : { - "readOnly" : true, - "type" : "string", - "description" : "Resource Type: DigitalTwinsInstances" + "resource": { + "readOnly": true, + "type": "string", + "description": "Resource Type: DigitalTwinsInstances" }, - "operation" : { - "readOnly" : true, - "type" : "string", - "description" : "Name of the operation" + "operation": { + "readOnly": true, + "type": "string", + "description": "Name of the operation" }, - "description" : { - "readOnly" : true, - "type" : "string", - "description" : "Friendly description for the operation," + "description": { + "readOnly": true, + "type": "string", + "description": "Friendly description for the operation," } } }, @@ -925,119 +1061,137 @@ }, "description": "The result returned from a check name availability request." }, - "ExternalResource" : { - "description" : "Definition of a Resource.", - "type" : "object", - "properties" : { - "id" : { - "readOnly" : true, - "type" : "string", - "description" : "The resource identifier." + "ExternalResource": { + "description": "Definition of a Resource.", + "type": "object", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The resource identifier." }, - "name" : { - "readOnly" : true, - "type" : "string", - "description" : "Extension resource name.", - "pattern" : "^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$" + "name": { + "readOnly": true, + "type": "string", + "description": "Extension resource name.", + "pattern": "^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$" }, - "type" : { - "readOnly" : true, - "type" : "string", - "description" : "The resource type." + "type": { + "readOnly": true, + "type": "string", + "description": "The resource type." } } }, - "IntegrationResourceUpdateProperties" : { - "description" : "Updatable properties related to the IoTHub DigitalTwinsInstance Integration Resource.", - "type" : "object", - "allOf" : [ { - "$ref" : "#/definitions/IntegrationResourceState" - } ] + "IntegrationResourceUpdateProperties": { + "description": "Updatable properties related to the IoTHub DigitalTwinsInstance Integration Resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/IntegrationResourceState" + } + ] }, - "IntegrationResourceProperties" : { - "description" : "Properties related to the IoTHub DigitalTwinsInstance Integration Resource.", - "type" : "object", - "properties" : { - "resourceId" : { - "description" : "Fully qualified resource identifier of the DigitalTwins Azure resource.", - "type" : "string" + "IntegrationResourceProperties": { + "description": "Properties related to the IoTHub DigitalTwinsInstance Integration Resource.", + "type": "object", + "properties": { + "resourceId": { + "description": "Fully qualified resource identifier of the DigitalTwins Azure resource.", + "type": "string" }, - "createdTime" : { - "description" : "Time when the IoTHub was added to DigitalTwinsInstance.", - "type" : "string", - "format" : "date-time", - "readOnly" : true + "createdTime": { + "description": "Time when the IoTHub was added to DigitalTwinsInstance.", + "type": "string", + "format": "date-time", + "readOnly": true } }, - "allOf" : [ { - "$ref" : "#/definitions/IntegrationResourceState" - } ] + "allOf": [ + { + "$ref": "#/definitions/IntegrationResourceState" + } + ] }, - "IntegrationResource" : { - "description" : "IoTHub integration resource.", - "type" : "object", - "allOf" : [ { - "$ref" : "#/definitions/ExternalResource" - } ], - "properties" : { - "properties" : { - "description" : "IoTHub integration resource properties.", - "x-ms-client-flatten" : true, - "$ref" : "#/definitions/IntegrationResourceProperties" + "IntegrationResource": { + "description": "IoTHub integration resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ExternalResource" + } + ], + "properties": { + "properties": { + "description": "IoTHub integration resource properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/IntegrationResourceProperties" } } }, - "IntegrationResourceUpdateInfo" : { - "description" : "IoTHub integration resource.", - "type" : "object", - "allOf" : [ { - "$ref" : "#/definitions/ExternalResource" - } ], - "properties" : { - "properties" : { - "x-ms-client-flatten" : true, - "description" : "IoTHub integration resource properties to be updated.", - "$ref" : "#/definitions/IntegrationResourceUpdateProperties" + "IntegrationResourceUpdateInfo": { + "description": "IoTHub integration resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ExternalResource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "IoTHub integration resource properties to be updated.", + "$ref": "#/definitions/IntegrationResourceUpdateProperties" } } }, - "IntegrationResourceState" : { - "description" : "Properties related to the IoTHub DigitalTwinsInstance Integration Resource.", - "type" : "object", - "properties" : { - "provisioningState" : { - "description" : "DigitalTwinsInstance - IoTHub link state.", - "enum" : [ "Provisioning", "Deleting", "Succeeded", "Failed", "Canceled" ], - "type" : "string", - "readOnly" : true, - "x-ms-enum" : { - "name" : "IntegrationResourceState", - "modelAsString" : true + "IntegrationResourceState": { + "description": "Properties related to the IoTHub DigitalTwinsInstance Integration Resource.", + "type": "object", + "properties": { + "provisioningState": { + "description": "DigitalTwinsInstance - IoTHub link state.", + "enum": [ + "Provisioning", + "Deleting", + "Succeeded", + "Failed", + "Canceled" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "IntegrationResourceState", + "modelAsString": true } } } }, - "DigitalTwinsEndpointResource" : { - "description" : "DigitalTwinsInstance endpoint resource.", - "x-ms-azure-resource" : true, - "allOf" : [ { - "$ref" : "#/definitions/ExternalResource" - } ], - "properties" : { - "properties" : { - "x-ms-client-flatten" : true, - "description" : "DigitalTwinsInstance endpoint resource properties.", - "$ref" : "#/definitions/DigitalTwinsEndpointResourceProperties" + "DigitalTwinsEndpointResource": { + "description": "DigitalTwinsInstance endpoint resource.", + "x-ms-azure-resource": true, + "allOf": [ + { + "$ref": "#/definitions/ExternalResource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "DigitalTwinsInstance endpoint resource properties.", + "$ref": "#/definitions/DigitalTwinsEndpointResourceProperties" } } }, - "DigitalTwinsEndpointResourceProperties" : { - "description" : "Properties related to Digital Twins Endpoint", - "discriminator" : "endpointType", - "required" : [ "endpointType" ], - "properties" : { - "endpointType" : { - "description" : "The type of Digital Twins endpoint", + "DigitalTwinsEndpointResourceProperties": { + "description": "Properties related to Digital Twins Endpoint", + "discriminator": "endpointType", + "required": [ + "endpointType" + ], + "properties": { + "endpointType": { + "description": "The type of Digital Twins endpoint", "enum": [ "EventHub", "EventGrid", @@ -1047,239 +1201,253 @@ "name": "endpointType", "modelAsString": true }, - "type" : "string" + "type": "string" }, - "provisioningState" : { - "description" : "The provisioning state.", - "enum" : [ "Provisioning", "Deleting", "Succeeded", "Failed", "Canceled" ], - "type" : "string", - "readOnly" : true, - "x-ms-enum" : { - "name" : "EndpointProvisioningState", - "modelAsString" : true + "provisioningState": { + "description": "The provisioning state.", + "enum": [ + "Provisioning", + "Deleting", + "Succeeded", + "Failed", + "Canceled" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "EndpointProvisioningState", + "modelAsString": true } }, - "createdTime" : { - "description" : "Time when the Endpoint was added to DigitalTwinsInstance.", - "type" : "string", - "format" : "date-time", - "readOnly" : true + "createdTime": { + "description": "Time when the Endpoint was added to DigitalTwinsInstance.", + "type": "string", + "format": "date-time", + "readOnly": true }, - "tags" : { - "type" : "object", - "additionalProperties" : { - "type" : "string" + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" }, - "description" : "The resource tags." + "description": "The resource tags." } } }, - "ServiceBus" : { - "description" : "properties related to servicebus.", + "ServiceBus": { + "description": "properties related to servicebus.", "required": [ "primaryConnectionString", "secondaryConnectionString" ], "x-ms-discriminator-value": "ServiceBus", - "allOf" : [ { - "$ref" : "#/definitions/DigitalTwinsEndpointResourceProperties" - }, - { - "type" : "object", - "properties" : { - "primaryConnectionString" : { - "description" : "PrimaryConnectionString of the endpoint. Will be obfuscated during read", - "type" : "string" - }, - "secondaryConnectionString" : { - "description" : "SecondaryConnectionString of the endpoint. Will be obfuscated during read", - "type" : "string" + "allOf": [ + { + "$ref": "#/definitions/DigitalTwinsEndpointResourceProperties" + }, + { + "type": "object", + "properties": { + "primaryConnectionString": { + "description": "PrimaryConnectionString of the endpoint. Will be obfuscated during read", + "type": "string" + }, + "secondaryConnectionString": { + "description": "SecondaryConnectionString of the endpoint. Will be obfuscated during read", + "type": "string" + } } } - } ] + ] }, - "EventHub" : { - "description" : "properties related to eventhub.", + "EventHub": { + "description": "properties related to eventhub.", "required": [ "connectionString-PrimaryKey", "connectionString-SecondaryKey" ], "x-ms-discriminator-value": "EventHub", - "allOf" : [ { - "type" : "object", - "properties": { - "connectionString-PrimaryKey" : { - "description" : "PrimaryConnectionString of the endpoint. Will be obfuscated during read", - "type" : "string" - }, - "connectionString-SecondaryKey" : { - "description" : "SecondaryConnectionString of the endpoint. Will be obfuscated during read", - "type" : "string" + "allOf": [ + { + "type": "object", + "properties": { + "connectionString-PrimaryKey": { + "description": "PrimaryConnectionString of the endpoint. Will be obfuscated during read", + "type": "string" + }, + "connectionString-SecondaryKey": { + "description": "SecondaryConnectionString of the endpoint. Will be obfuscated during read", + "type": "string" + } } + }, + { + "$ref": "#/definitions/DigitalTwinsEndpointResourceProperties" } - }, - { - "$ref" : "#/definitions/DigitalTwinsEndpointResourceProperties" - } ] + ] }, - "EventGrid" : { - "description" : "properties related to eventgrid.", + "EventGrid": { + "description": "properties related to eventgrid.", "required": [ "accessKey1", "accessKey2" ], "x-ms-discriminator-value": "EventGrid", - "allOf" : [ { - "$ref" : "#/definitions/DigitalTwinsEndpointResourceProperties" - }, - { - "type" : "object", - "properties" : { - "TopicEndpoint" : { - "description" : "EventGrid Topic Endpoint", - "type" : "string" - }, - "accessKey1" : { - "description" : "EventGrid secondary accesskey. Will be obfuscated during read", - "type" : "string" - }, - "accessKey2" : { - "description" : "EventGrid secondary accesskey. Will be obfuscated during read", - "type" : "string" + "allOf": [ + { + "$ref": "#/definitions/DigitalTwinsEndpointResourceProperties" + }, + { + "type": "object", + "properties": { + "TopicEndpoint": { + "description": "EventGrid Topic Endpoint", + "type": "string" + }, + "accessKey1": { + "description": "EventGrid secondary accesskey. Will be obfuscated during read", + "type": "string" + }, + "accessKey2": { + "description": "EventGrid secondary accesskey. Will be obfuscated during read", + "type": "string" + } } } - } ] + ] }, - "DigitalTwinsEndpointResourceListResult" : { - "description" : "A list of DigitalTwinsInstance Endpoints with a next link.", - "type" : "object", - "properties" : { - "nextLink" : { - "description" : "The link used to get the next page of DigitalTwinsInstance Endpoints.", - "type" : "string" + "DigitalTwinsEndpointResourceListResult": { + "description": "A list of DigitalTwinsInstance Endpoints with a next link.", + "type": "object", + "properties": { + "nextLink": { + "description": "The link used to get the next page of DigitalTwinsInstance Endpoints.", + "type": "string" }, - "value" : { - "description" : "A list of DigitalTwinsInstance Endpoints.", - "type" : "array", - "items" : { - "$ref" : "#/definitions/DigitalTwinsEndpointResource" + "value": { + "description": "A list of DigitalTwinsInstance Endpoints.", + "type": "array", + "items": { + "$ref": "#/definitions/DigitalTwinsEndpointResource" } } } }, - "DigitalTwinsIntegrationResourceListResult" : { - "description" : "A list of DigitalTwinsInstance IoTHubs with a next link.", - "type" : "object", - "properties" : { - "nextLink" : { - "description" : "The link used to get the next page of DigitalTwinsInstance IoTHubs.", - "type" : "string" + "DigitalTwinsIntegrationResourceListResult": { + "description": "A list of DigitalTwinsInstance IoTHubs with a next link.", + "type": "object", + "properties": { + "nextLink": { + "description": "The link used to get the next page of DigitalTwinsInstance IoTHubs.", + "type": "string" }, - "value" : { - "description" : "A list of DigitalTwinsInstance IoTHubs.", - "type" : "array", - "items" : { - "$ref" : "#/definitions/IntegrationResource" + "value": { + "description": "A list of DigitalTwinsInstance IoTHubs.", + "type": "array", + "items": { + "$ref": "#/definitions/IntegrationResource" } } } } }, - "parameters" : { - "subscriptionId" : { - "name" : "subscriptionId", - "in" : "path", - "description" : "The subscription identifier.", - "required" : true, - "type" : "string", - "format" : "uuid" + "parameters": { + "subscriptionId": { + "name": "subscriptionId", + "in": "path", + "description": "The subscription identifier.", + "required": true, + "type": "string", + "format": "uuid" }, - "api-version" : { - "name" : "api-version", - "enum" : [ "2020-03-01-preview" ], - "in" : "query", - "description" : "Version of the DigitalTwinsInstance Management API.", - "required" : true, - "type" : "string", - "minLength" : 10 + "api-version": { + "name": "api-version", + "enum": [ + "2020-03-01-preview" + ], + "in": "query", + "description": "Version of the DigitalTwinsInstance Management API.", + "required": true, + "type": "string", + "minLength": 10 }, - "resourceGroupName" : { - "name" : "resourceGroupName", - "in" : "path", - "description" : "The name of the resource group that contains the DigitalTwinsInstance.", - "required" : true, - "type" : "string", - "x-ms-parameter-location" : "method", - "minLength" : 1, - "maxLength" : 64 + "resourceGroupName": { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group that contains the DigitalTwinsInstance.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "minLength": 1, + "maxLength": 64 }, - "resourceName" : { - "name" : "resourceName", - "in" : "path", - "description" : "The name of the DigitalTwinsInstance.", - "required" : true, - "type" : "string", - "x-ms-parameter-location" : "method", - "minLength" : 1, - "maxLength" : 64 + "resourceName": { + "name": "resourceName", + "in": "path", + "description": "The name of the DigitalTwinsInstance.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "minLength": 1, + "maxLength": 64 }, - "location" : { - "name" : "location", - "in" : "path", - "description" : "Location of DigitalTwinsInstance.", - "x-ms-parameter-location" : "method", - "required" : true, - "type" : "string", - "minLength" : 3 + "location": { + "name": "location", + "in": "path", + "description": "Location of DigitalTwinsInstance.", + "x-ms-parameter-location": "method", + "required": true, + "type": "string", + "minLength": 3 }, - "integrationResourceName" : { - "name" : "integrationResourceName", - "in" : "path", - "description" : "Name of IoTHub and DigitalTwinsInstance integration instance.", - "required" : true, - "type" : "string", - "x-ms-parameter-location" : "method", - "minLength" : 1, - "maxLength" : 64 + "integrationResourceName": { + "name": "integrationResourceName", + "in": "path", + "description": "Name of IoTHub and DigitalTwinsInstance integration instance.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "minLength": 1, + "maxLength": 64 }, - "integrationResourceInfo" : { - "name" : "integrationResourceInfo", - "in" : "body", - "description" : "The DigitalTwinsInstance and security metadata.", - "x-ms-parameter-location" : "method", - "required" : true, - "schema" : { - "$ref" : "#/definitions/IntegrationResource" + "integrationResourceInfo": { + "name": "integrationResourceInfo", + "in": "body", + "description": "The DigitalTwinsInstance and security metadata.", + "x-ms-parameter-location": "method", + "required": true, + "schema": { + "$ref": "#/definitions/IntegrationResource" } }, - "integrationResourceUpdateInfo" : { - "name" : "integrationResourceUpdateInfo", - "in" : "body", - "description" : "The Integration Resource and security metadata.", - "x-ms-parameter-location" : "method", - "required" : true, - "schema" : { - "$ref" : "#/definitions/IntegrationResourceUpdateInfo" + "integrationResourceUpdateInfo": { + "name": "integrationResourceUpdateInfo", + "in": "body", + "description": "The Integration Resource and security metadata.", + "x-ms-parameter-location": "method", + "required": true, + "schema": { + "$ref": "#/definitions/IntegrationResourceUpdateInfo" } }, - "scope" : { - "name" : "scope", - "in" : "path", - "description" : "The scope of the Digital Twins Integration. The scope has to be an IoTHub resource. For example, /{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IoTHubs/{resourceName}.", - "x-ms-parameter-location" : "method", - "required" : true, - "type" : "string" + "scope": { + "name": "scope", + "in": "path", + "description": "The scope of the Digital Twins Integration. The scope has to be an IoTHub resource. For example, /{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IoTHubs/{resourceName}.", + "x-ms-parameter-location": "method", + "required": true, + "type": "string" }, - "endpointName" : { - "name" : "endpointName", - "in" : "path", - "description" : "Name of Endpoint Resource.", - "required" : true, - "type" : "string", - "x-ms-parameter-location" : "method", - "pattern" : "^[A-Za-z0-9-._]{1,64}$", - "minLength" : 1, - "maxLength" : 64 + "endpointName": { + "name": "endpointName", + "in": "path", + "description": "Name of Endpoint Resource.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "pattern": "^[A-Za-z0-9-._]{1,64}$", + "minLength": 1, + "maxLength": 64 } } -} \ No newline at end of file +} diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsCheckNameAvailability_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsCheckNameAvailability_example.json index e4ffd55e6711..57e83ec4c7c3 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsCheckNameAvailability_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsCheckNameAvailability_example.json @@ -18,4 +18,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsDelete_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsDelete_example.json index 861b66c7ad69..605145c989a6 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsDelete_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsDelete_example.json @@ -26,4 +26,4 @@ }, "204": {} } -} \ No newline at end of file +} diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointDelete_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointDelete_example.json index 18f2c5355958..8fc0949a930b 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointDelete_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointDelete_example.json @@ -24,4 +24,4 @@ }, "204": {} } -} \ No newline at end of file +} diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointGet_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointGet_example.json index a052aec07208..e697f45cba39 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointGet_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointGet_example.json @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointPut_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointPut_example.json index 03bdbe8ec4c4..84a81d99d476 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointPut_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointPut_example.json @@ -16,19 +16,19 @@ "responses": { "200": { "body": { - "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService/endpoints/myServiceBus", - "type": "Microsoft.DigitalTwins/digitalTwinsInstance/endpoints", - "name": "myServiceBus", - "properties": { - "endpointType": "ServiceBus", - "primaryConnectionString": "************", - "secondaryConnectionString": "************", - "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/digitalTwinsInstance/endpoints", + "name": "myServiceBus", + "properties": { + "endpointType": "ServiceBus", + "primaryConnectionString": "************", + "secondaryConnectionString": "************", + "createdTime": "2019-11-19T01:10:34.350Z" + } + } }, "201": { - "body": { + "body": { "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/DigitalTwinsInstance/myDigitalTwinsService/endpoints/myServiceBus", "type": "Microsoft.DigitalTwins/digitalTwinsInstance/endpoints", "name": "myendpoint", @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointsGet_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointsGet_example.json index 70896e74ffa7..b7de375a7741 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointsGet_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsEndpointsGet_example.json @@ -37,4 +37,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsGet_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsGet_example.json index 3a9cf43ae00e..d6faad9e8c2c 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsGet_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsGet_example.json @@ -24,4 +24,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubDelete_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubDelete_example.json index 233bd9f35481..acab4629b39f 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubDelete_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubDelete_example.json @@ -7,7 +7,7 @@ "responses": { "200": {}, "202": { - "body": { + "body": { "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.Devices/IoTHubs/myIoTHub/provider/Microsoft.DigitalTwins/integrationResources/myIoTHubLink", "type": "Microsoft.DigitalTwins/integrationResources", "name": "myIoTHubLink", @@ -19,5 +19,5 @@ } }, "204": {} - } -} \ No newline at end of file + } +} diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubGet_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubGet_example.json index 5206ddf33edb..03699f96fb84 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubGet_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubGet_example.json @@ -18,4 +18,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubPut_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubPut_example.json index 8787113c6de2..ab331abe06e2 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubPut_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubPut_example.json @@ -11,7 +11,7 @@ }, "responses": { "201": { - "body": { + "body": { "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.Devices/IoTHubs/myIoTHub/provider/Microsoft.DigitalTwins/integrationResources/myIoTHubLink", "type": "Microsoft.DigitalTwins/integrationResources", "name": "myIoTHubLink", @@ -23,4 +23,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubsGet_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubsGet_example.json index b486b170186c..1371105ee9a4 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubsGet_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubsGet_example.json @@ -33,4 +33,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsListByResourceGroup_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsListByResourceGroup_example.json index e0ee69a00d9c..7c75885d58bc 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsListByResourceGroup_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsListByResourceGroup_example.json @@ -41,4 +41,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsList_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsList_example.json index fbff9d408b9a..63dca7f9958e 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsList_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsList_example.json @@ -40,4 +40,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsOperationsList_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsOperationsList_example.json index ad3636234d1f..4356bafad941 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsOperationsList_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsOperationsList_example.json @@ -47,4 +47,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPatch_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPatch_example.json index cf664c3f0173..7c3d30d0dc1a 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPatch_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPatch_example.json @@ -5,7 +5,7 @@ "resourceName": "myDigitalTwinsService", "api-version": "2020-03-01-preview", "digitalTwinsPatchDescription": { - "tags": { + "tags": { "purpose": "dev" } } @@ -33,4 +33,4 @@ }, "201": {} } -} \ No newline at end of file +} diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPut_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPut_example.json index 12109800f13f..ff35dd81a970 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPut_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPut_example.json @@ -47,4 +47,4 @@ } } } -} \ No newline at end of file +} From 08f4fac9181d6ae35ca4caa801f065216c33eceb Mon Sep 17 00:00:00 2001 From: Supradha Sankaran Date: Mon, 13 Jan 2020 10:47:13 -0800 Subject: [PATCH 11/13] fixing go sdk per comments --- specification/digitaltwins/resource-manager/readme.go.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/digitaltwins/resource-manager/readme.go.md b/specification/digitaltwins/resource-manager/readme.go.md index 0172a16a2725..7d7d1ae707a8 100644 --- a/specification/digitaltwins/resource-manager/readme.go.md +++ b/specification/digitaltwins/resource-manager/readme.go.md @@ -11,9 +11,9 @@ go: ### Tag: package-2020-03-01-preview and go These settings apply only when `--tag=package-2020-03-01-preview --go` is specified on the command line. -Please also specify `--go-sdks-folder=`. +Please also specify `--go-sdks-folder=digitaltwins`. ```yaml $(tag) == 'package-2020-03-01-preview' && $(go) namespace: Microsoft.DigitalTwins -output-folder: $(go-sdks-folder)/digitaltwins/Generated +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2020-03-01-preview/$(namespace) ``` From 8d2dd17a06d8039d336256215356a872c9393abe Mon Sep 17 00:00:00 2001 From: Supradha Sankaran Date: Mon, 13 Jan 2020 21:32:14 -0800 Subject: [PATCH 12/13] java sdk fix --- .../preview/2020-03-01-preview/digitaltwins.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/digitaltwins.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/digitaltwins.json index 04beed751e0f..dd60faec5208 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/digitaltwins.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/digitaltwins.json @@ -238,7 +238,7 @@ "Endpoints" ], "description": "Get DigitalTwinsInstance Endpoints.", - "operationId": "DigitalTwinsEndpoints_List", + "operationId": "DigitalTwinsEndpoint_List", "x-ms-examples": { "Get a DigitalTwinsInstance endpoints": { "$ref": "./examples/DigitalTwinsEndpointsGet_example.json" From dec2f607cb1fe38ee5ef2c6fc9f95feb90ca3481 Mon Sep 17 00:00:00 2001 From: Supradha Sankaran Date: Mon, 13 Jan 2020 22:13:57 -0800 Subject: [PATCH 13/13] changing go sdk namespace to digitaltwins --- specification/digitaltwins/resource-manager/readme.go.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/digitaltwins/resource-manager/readme.go.md b/specification/digitaltwins/resource-manager/readme.go.md index 7d7d1ae707a8..111d623ddb80 100644 --- a/specification/digitaltwins/resource-manager/readme.go.md +++ b/specification/digitaltwins/resource-manager/readme.go.md @@ -14,6 +14,6 @@ These settings apply only when `--tag=package-2020-03-01-preview --go` is specif Please also specify `--go-sdks-folder=digitaltwins`. ```yaml $(tag) == 'package-2020-03-01-preview' && $(go) -namespace: Microsoft.DigitalTwins +namespace: digitaltwins output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2020-03-01-preview/$(namespace) ```