From 472dbe43eafe6cfa550d99572d9db37378218dc7 Mon Sep 17 00:00:00 2001 From: Ayodeji Marquis Date: Wed, 24 Aug 2022 10:46:13 -0700 Subject: [PATCH 01/11] Adds base for updating Microsoft.DigitalTwins from version stable/2022-05-31 to version 2022-10-31 --- .../stable/2022-10-31/digitaltwins.json | 2234 +++++++++++++++++ ...talTwinsCheckNameAvailability_example.json | 20 + ...gitalTwinsDelete_WithIdentity_example.json | 70 + .../examples/DigitalTwinsDelete_example.json | 60 + ...nsEndpointDelete_WithIdentity_example.json | 63 + .../DigitalTwinsEndpointDelete_example.json | 63 + ...TwinsEndpointGet_WithIdentity_example.json | 34 + .../DigitalTwinsEndpointGet_example.json | 34 + ...TwinsEndpointPut_WithIdentity_example.json | 70 + .../DigitalTwinsEndpointPut_example.json | 70 + ...winsEndpointsGet_WithIdentity_example.json | 58 + .../DigitalTwinsEndpointsGet_example.json | 58 + .../DigitalTwinsGet_WithIdentity_example.json | 38 + ...WithPrivateEndpointConnection_example.json | 51 + .../examples/DigitalTwinsGet_example.json | 33 + ...gitalTwinsListByResourceGroup_example.json | 58 + .../examples/DigitalTwinsList_example.json | 57 + .../DigitalTwinsOperationsList_example.json | 54 + ...igitalTwinsPatch_WithIdentity_example.json | 72 + ...talTwinsPatch_WithPublicNetworkAccess.json | 72 + .../examples/DigitalTwinsPatch_example.json | 72 + .../DigitalTwinsPut_WithIdentity_example.json | 78 + ...gitalTwinsPut_WithPublicNetworkAccess.json | 67 + .../examples/DigitalTwinsPut_example.json | 67 + ...intConnectionByConnectionName_example.json | 29 + ...ivateEndpointConnectionDelete_example.json | 20 + .../PrivateEndpointConnectionPut_example.json | 64 + ...rivateEndpointConnectionsList_example.json | 32 + ...PrivateLinkResourcesByGroupId_example.json | 27 + .../PrivateLinkResourcesList_example.json | 30 + ...riesDatabaseConnectionsDelete_example.json | 54 + ...eSeriesDatabaseConnectionsGet_example.json | 30 + ...SeriesDatabaseConnectionsList_example.json | 32 + ...eSeriesDatabaseConnectionsPut_example.json | 66 + 34 files changed, 3937 insertions(+) create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsCheckNameAvailability_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsDelete_WithIdentity_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsDelete_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointDelete_WithIdentity_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointDelete_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointGet_WithIdentity_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointGet_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointPut_WithIdentity_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointPut_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointsGet_WithIdentity_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointsGet_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsGet_WithIdentity_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsGet_WithPrivateEndpointConnection_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsGet_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsListByResourceGroup_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsList_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsOperationsList_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPatch_WithIdentity_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPatch_WithPublicNetworkAccess.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPatch_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPut_WithIdentity_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPut_WithPublicNetworkAccess.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPut_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionByConnectionName_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionDelete_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionPut_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionsList_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateLinkResourcesByGroupId_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateLinkResourcesList_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsDelete_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsGet_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsList_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsPut_example.json diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json new file mode 100644 index 000000000000..25fe1871d4d6 --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json @@ -0,0 +1,2234 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-05-31", + "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" + } + } + }, + "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" + }, + "Get a DigitalTwinsInstance resource with identity": { + "$ref": "./examples/DigitalTwinsGet_WithIdentity_example.json" + }, + "Get a DigitalTwinsInstance resource with a private endpoint connection": { + "$ref": "./examples/DigitalTwinsGet_WithPrivateEndpointConnection_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" + }, + "Put a DigitalTwinsInstance resource with identity": { + "$ref": "./examples/DigitalTwinsPut_WithIdentity_example.json" + }, + "Put a DigitalTwinsInstance resource with publicNetworkAccess property": { + "$ref": "./examples/DigitalTwinsPut_WithPublicNetworkAccess.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 when the resource already exists and was updated successfully.", + "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" + }, + "Patch a DigitalTwinsInstance resource with identity": { + "$ref": "./examples/DigitalTwinsPatch_WithIdentity_example.json" + }, + "Patch a DigitalTwinsInstance resource with publicNetworkAccess property": { + "$ref": "./examples/DigitalTwinsPatch_WithPublicNetworkAccess.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" + } + }, + "202": { + "description": "Accepted - Patch request accepted; the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/DigitalTwinsDescription" + } + }, + "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 a DigitalTwinsInstance resource with identity": { + "$ref": "./examples/DigitalTwinsDelete_WithIdentity_example.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/resourceName" + } + ], + "responses": { + "200": { + "description": "Returned if the operation was canceled or failed.", + "schema": { + "$ref": "#/definitions/DigitalTwinsDescription" + } + }, + "202": { + "description": "Accepted - Delete request accepted; the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/DigitalTwinsDescription" + } + }, + "204": { + "description": "Returned when the long running delete operation has finished, or the Digital Twins instance 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}/endpoints": { + "get": { + "tags": [ + "Endpoints" + ], + "description": "Get DigitalTwinsInstance Endpoints.", + "operationId": "DigitalTwinsEndpoint_List", + "x-ms-examples": { + "Get a DigitalTwinsInstance endpoints": { + "$ref": "./examples/DigitalTwinsEndpointsGet_example.json" + }, + "Get a DigitalTwinsInstance endpoints with identity": { + "$ref": "./examples/DigitalTwinsEndpointsGet_WithIdentity_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" + }, + "Get a DigitalTwinsInstance endpoint with identity": { + "$ref": "./examples/DigitalTwinsEndpointGet_WithIdentity_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 DigitalTwinsEndpoint resource": { + "$ref": "./examples/DigitalTwinsEndpointPut_example.json" + }, + "Put a DigitalTwinsEndpoint resource with identity": { + "$ref": "./examples/DigitalTwinsEndpointPut_WithIdentity_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" + }, + "Delete a DigitalTwinsInstance endpoint with identity": { + "$ref": "./examples/DigitalTwinsEndpointDelete_WithIdentity_example.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/resourceName" + }, + { + "$ref": "#/parameters/endpointName" + } + ], + "responses": { + "200": { + "description": "Returned if the operation was canceled or failed.", + "schema": { + "$ref": "#/definitions/DigitalTwinsEndpointResource" + } + }, + "202": { + "description": "Accepted - Delete request accepted; the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/DigitalTwinsEndpointResource" + } + }, + "204": { + "description": "Returned when the long running delete operation has finished, or the egress endpoint does not exist." + }, + "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. If more data is available, the body will contain a link to the next page of items (nextLink).", + "schema": { + "$ref": "#/definitions/DigitalTwinsDescriptionListResult" + } + }, + "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" + }, + "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" + } + } + } + } + }, + "/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" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateLinkResources": { + "get": { + "tags": [ + "PrivateEndpoints" + ], + "description": "List private link resources for given Digital Twin.", + "operationId": "PrivateLinkResources_List", + "x-ms-examples": { + "List private link resources for given Digital Twin": { + "$ref": "./examples/PrivateLinkResourcesList_example.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/resourceName" + } + ], + "responses": { + "200": { + "description": "The body contains the list of private link resources.", + "schema": { + "$ref": "#/definitions/GroupIdInformationResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateLinkResources/{resourceId}": { + "get": { + "tags": [ + "PrivateEndpoints" + ], + "description": "Get the specified private link resource for the given Digital Twin.", + "operationId": "PrivateLinkResources_Get", + "x-ms-examples": { + "Get the specified private link resource for the given Digital Twin": { + "$ref": "./examples/PrivateLinkResourcesByGroupId_example.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/resourceName" + }, + { + "$ref": "#/parameters/resourceId" + } + ], + "responses": { + "200": { + "description": "The body contains the specified of private link resource.", + "schema": { + "$ref": "#/definitions/GroupIdInformation" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections": { + "get": { + "tags": [ + "PrivateEndpoints" + ], + "description": "List private endpoint connection properties.", + "operationId": "PrivateEndpointConnections_List", + "x-ms-examples": { + "List private endpoint connection properties": { + "$ref": "./examples/PrivateEndpointConnectionsList_example.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/resourceName" + } + ], + "responses": { + "200": { + "description": "The body contains the list of private endpoint connection properties.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionsResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}": { + "get": { + "tags": [ + "PrivateEndpoints" + ], + "description": "Get private endpoint connection properties for the given private endpoint.", + "operationId": "PrivateEndpointConnections_Get", + "x-ms-examples": { + "Get private endpoint connection properties for the given private endpoint": { + "$ref": "./examples/PrivateEndpointConnectionByConnectionName_example.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/resourceName" + }, + { + "$ref": "#/parameters/privateEndpointConnectionName" + } + ], + "responses": { + "200": { + "description": "The body contains the private endpoint connection properties.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "PrivateEndpoints" + ], + "description": "Delete private endpoint connection with the specified name.", + "operationId": "PrivateEndpointConnections_Delete", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete private endpoint connection with the specified name": { + "$ref": "./examples/PrivateEndpointConnectionDelete_example.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/resourceName" + }, + { + "$ref": "#/parameters/privateEndpointConnectionName" + } + ], + "responses": { + "200": { + "description": "Returned when the long running delete operation has failed, and has reached a terminal state." + }, + "202": { + "description": "This is a long running operation. The operation returns a 202 if the validation is complete. The response includes an Azure-AsyncOperation header that contains a status URL. Clients are expected to poll the status URL for the status of the operation. The status URL returns 204 No Content when the deletion is complete." + }, + "204": { + "description": "Returned when the long running delete operation has finished, or the private endpoint does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "PrivateEndpoints" + ], + "description": "Update the status of a private endpoint connection with the given name.", + "operationId": "PrivateEndpointConnections_CreateOrUpdate", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update the status of a private endpoint connection with the given name": { + "$ref": "./examples/PrivateEndpointConnectionPut_example.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/resourceName" + }, + { + "$ref": "#/parameters/privateEndpointConnectionName" + }, + { + "name": "privateEndpointConnection", + "in": "body", + "description": "The private endpoint connection with updated properties.", + "required": true, + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + } + ], + "responses": { + "202": { + "description": "This is a long running operation. The operation returns a 202 if the validation is complete. The response includes an Azure-AsyncOperation header that contains a status URL. Clients are expected to poll the status URL for the status of the operation. If successful, the operation returns HTTP status code of 200 (OK).", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + }, + "200": { + "description": "This is returned as a response when the resource already exists and was updated successfully.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/timeSeriesDatabaseConnections": { + "get": { + "tags": [ + "TimeSeriesDatabaseConnections" + ], + "description": "Get all existing time series database connections for this DigitalTwins instance.", + "operationId": "TimeSeriesDatabaseConnections_List", + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/resourceName" + } + ], + "responses": { + "200": { + "description": "List of time series database connections for this DigitalTwins instance.", + "schema": { + "$ref": "#/definitions/TimeSeriesDatabaseConnectionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List time series database connections for a DigitalTwins instance.": { + "$ref": "./examples/TimeSeriesDatabaseConnectionsList_example.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/timeSeriesDatabaseConnections/{timeSeriesDatabaseConnectionName}": { + "get": { + "tags": [ + "TimeSeriesDatabaseConnections" + ], + "description": "Get the description of an existing time series database connection.", + "operationId": "TimeSeriesDatabaseConnections_Get", + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/resourceName" + }, + { + "$ref": "#/parameters/timeSeriesDatabaseConnectionName" + } + ], + "responses": { + "200": { + "description": "Description of the time series connection.", + "schema": { + "$ref": "#/definitions/TimeSeriesDatabaseConnection" + } + }, + "default": { + "description": "Default error response", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get time series database connection for a DigitalTwins instance.": { + "$ref": "./examples/TimeSeriesDatabaseConnectionsGet_example.json" + } + } + }, + "put": { + "tags": [ + "TimeSeriesDatabaseConnections" + ], + "description": "Create or update a time series database connection.", + "operationId": "TimeSeriesDatabaseConnections_CreateOrUpdate", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/resourceName" + }, + { + "$ref": "#/parameters/timeSeriesDatabaseConnectionName" + }, + { + "name": "timeSeriesDatabaseConnectionDescription", + "in": "body", + "description": "The time series database connection description.", + "required": true, + "schema": { + "$ref": "#/definitions/TimeSeriesDatabaseConnection" + } + } + ], + "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/TimeSeriesDatabaseConnection" + } + }, + "201": { + "description": "Created - Put request accepted; the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/TimeSeriesDatabaseConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or replace a time series database connection for a DigitalTwins instance.": { + "$ref": "./examples/TimeSeriesDatabaseConnectionsPut_example.json" + } + } + }, + "delete": { + "tags": [ + "TimeSeriesDatabaseConnections" + ], + "description": "Delete a time series database connection.", + "operationId": "TimeSeriesDatabaseConnections_Delete", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/resourceName" + }, + { + "$ref": "#/parameters/timeSeriesDatabaseConnectionName" + } + ], + "responses": { + "200": { + "description": "Returned if the operation was canceled or failed.", + "schema": { + "$ref": "#/definitions/TimeSeriesDatabaseConnection" + } + }, + "202": { + "description": "Accepted - Delete request accepted; the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/TimeSeriesDatabaseConnection" + } + }, + "204": { + "description": "Returned when the long running delete operation has finished, or the time series database connection does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete a time series database connection for a DigitalTwins instance.": { + "$ref": "./examples/TimeSeriesDatabaseConnectionsDelete_example.json" + } + } + } + } + }, + "definitions": { + "DigitalTwinsPatchProperties": { + "description": "The properties of a DigitalTwinsInstance.", + "type": "object", + "properties": { + "publicNetworkAccess": { + "description": "Public network access for the DigitalTwinsInstance.", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-nullable": true, + "x-ms-enum": { + "name": "publicNetworkAccess", + "modelAsString": true + } + } + } + }, + "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 updated.", + "readOnly": true, + "type": "string", + "format": "date-time" + }, + "provisioningState": { + "description": "The provisioning state.", + "enum": [ + "Provisioning", + "Deleting", + "Updating", + "Succeeded", + "Failed", + "Canceled", + "Deleted", + "Warning", + "Suspending", + "Restoring", + "Moving" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "provisioningState", + "modelAsString": true + } + }, + "hostName": { + "description": "Api endpoint to work with DigitalTwinsInstance.", + "type": "string", + "x-nullable": true, + "readOnly": true + }, + "privateEndpointConnections": { + "description": "The private endpoint connections.", + "type": "array", + "x-nullable": true, + "items": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + }, + "publicNetworkAccess": { + "description": "Public network access for the DigitalTwinsInstance.", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-nullable": true, + "x-ms-enum": { + "name": "publicNetworkAccess", + "modelAsString": true + } + } + } + }, + "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" + } + ] + }, + "DigitalTwinsPatchDescription": { + "description": "The description of the DigitalTwins service.", + "type": "object", + "properties": { + "tags": { + "description": "Instance patch properties", + "type": "object", + "x-nullable": true, + "additionalProperties": { + "type": "string" + } + }, + "identity": { + "description": "The managed identity for the DigitalTwinsInstance.", + "x-nullable": true, + "$ref": "#/definitions/DigitalTwinsIdentity" + }, + "properties": { + "description": "Properties for the DigitalTwinsInstance.", + "x-nullable": true, + "$ref": "#/definitions/DigitalTwinsPatchProperties" + } + } + }, + "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": "^(?!-)[A-Za-z0-9-]{3,63}(? Date: Wed, 24 Aug 2022 10:46:16 -0700 Subject: [PATCH 02/11] Updates readme --- .../digitaltwins/resource-manager/readme.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/specification/digitaltwins/resource-manager/readme.md b/specification/digitaltwins/resource-manager/readme.md index 872fd94dd574..8edbc4b7cc5a 100644 --- a/specification/digitaltwins/resource-manager/readme.md +++ b/specification/digitaltwins/resource-manager/readme.md @@ -26,15 +26,23 @@ These are the global settings for the digitaltwins. ``` yaml openapi-type: arm -tag: package-2022-05 +tag: package-2022-10 ``` +### Tag: package-2022-10 + +These settings apply only when `--tag=package-2022-10` is specified on the command line. + +```yaml $(tag) == 'package-2022-10' +input-file: + - Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json +``` ### Tag: package-2022-05 These settings apply only when `--tag=package-2022-05` is specified on the command line. -```yaml $(tag) == 'package-2022-05' +``` yaml $(tag) == 'package-2022-05' input-file: - Microsoft.DigitalTwins/stable/2022-05-31/digitaltwins.json ``` From 68b88fce508fd7a1209ce4c1a18546ea2610d25f Mon Sep 17 00:00:00 2001 From: Ayodeji Marquis Date: Wed, 24 Aug 2022 10:46:18 -0700 Subject: [PATCH 03/11] Updates API version in new specs and examples --- .../Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json | 2 +- .../examples/DigitalTwinsCheckNameAvailability_example.json | 2 +- .../examples/DigitalTwinsDelete_WithIdentity_example.json | 2 +- .../stable/2022-10-31/examples/DigitalTwinsDelete_example.json | 2 +- .../DigitalTwinsEndpointDelete_WithIdentity_example.json | 2 +- .../2022-10-31/examples/DigitalTwinsEndpointDelete_example.json | 2 +- .../examples/DigitalTwinsEndpointGet_WithIdentity_example.json | 2 +- .../2022-10-31/examples/DigitalTwinsEndpointGet_example.json | 2 +- .../examples/DigitalTwinsEndpointPut_WithIdentity_example.json | 2 +- .../2022-10-31/examples/DigitalTwinsEndpointPut_example.json | 2 +- .../examples/DigitalTwinsEndpointsGet_WithIdentity_example.json | 2 +- .../2022-10-31/examples/DigitalTwinsEndpointsGet_example.json | 2 +- .../examples/DigitalTwinsGet_WithIdentity_example.json | 2 +- .../DigitalTwinsGet_WithPrivateEndpointConnection_example.json | 2 +- .../stable/2022-10-31/examples/DigitalTwinsGet_example.json | 2 +- .../examples/DigitalTwinsListByResourceGroup_example.json | 2 +- .../stable/2022-10-31/examples/DigitalTwinsList_example.json | 2 +- .../2022-10-31/examples/DigitalTwinsOperationsList_example.json | 2 +- .../examples/DigitalTwinsPatch_WithIdentity_example.json | 2 +- .../examples/DigitalTwinsPatch_WithPublicNetworkAccess.json | 2 +- .../stable/2022-10-31/examples/DigitalTwinsPatch_example.json | 2 +- .../examples/DigitalTwinsPut_WithIdentity_example.json | 2 +- .../examples/DigitalTwinsPut_WithPublicNetworkAccess.json | 2 +- .../stable/2022-10-31/examples/DigitalTwinsPut_example.json | 2 +- .../PrivateEndpointConnectionByConnectionName_example.json | 2 +- .../examples/PrivateEndpointConnectionDelete_example.json | 2 +- .../examples/PrivateEndpointConnectionPut_example.json | 2 +- .../examples/PrivateEndpointConnectionsList_example.json | 2 +- .../examples/PrivateLinkResourcesByGroupId_example.json | 2 +- .../2022-10-31/examples/PrivateLinkResourcesList_example.json | 2 +- .../examples/TimeSeriesDatabaseConnectionsDelete_example.json | 2 +- .../examples/TimeSeriesDatabaseConnectionsGet_example.json | 2 +- .../examples/TimeSeriesDatabaseConnectionsList_example.json | 2 +- .../examples/TimeSeriesDatabaseConnectionsPut_example.json | 2 +- 34 files changed, 34 insertions(+), 34 deletions(-) diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json index 25fe1871d4d6..fec2d5b9c080 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-05-31", + "version": "2022-10-31", "title": "AzureDigitalTwinsManagementClient", "description": "Azure Digital Twins Client for managing DigitalTwinsInstance" }, diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsCheckNameAvailability_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsCheckNameAvailability_example.json index d93922f24bea..778c9e0a5221 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsCheckNameAvailability_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsCheckNameAvailability_example.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", "location": "WestUS2", - "api-version": "2022-05-31", + "api-version": "2022-10-31", "digitalTwinsInstanceCheckName": { "name": "myadtinstance", "type": "Microsoft.DigitalTwins/digitalTwinsInstances" diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsDelete_WithIdentity_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsDelete_WithIdentity_example.json index 9284f6b566a8..4f920f2f194c 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsDelete_WithIdentity_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsDelete_WithIdentity_example.json @@ -3,7 +3,7 @@ "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", - "api-version": "2022-05-31" + "api-version": "2022-10-31" }, "responses": { "200": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsDelete_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsDelete_example.json index 62e2262cfded..bd06527e7c53 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsDelete_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsDelete_example.json @@ -3,7 +3,7 @@ "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", - "api-version": "2022-05-31" + "api-version": "2022-10-31" }, "responses": { "200": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointDelete_WithIdentity_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointDelete_WithIdentity_example.json index d07fe8ad4167..7cf40653970c 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointDelete_WithIdentity_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointDelete_WithIdentity_example.json @@ -4,7 +4,7 @@ "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", "endpointName": "myendpoint", - "api-version": "2022-05-31" + "api-version": "2022-10-31" }, "responses": { "200": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointDelete_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointDelete_example.json index 430fe2d333a2..d12343880da7 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointDelete_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointDelete_example.json @@ -4,7 +4,7 @@ "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", "endpointName": "myendpoint", - "api-version": "2022-05-31" + "api-version": "2022-10-31" }, "responses": { "200": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointGet_WithIdentity_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointGet_WithIdentity_example.json index 7e55843c10a3..ae9aa3b4c0a3 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointGet_WithIdentity_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointGet_WithIdentity_example.json @@ -4,7 +4,7 @@ "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", "endpointName": "myServiceBus", - "api-version": "2022-05-31" + "api-version": "2022-10-31" }, "responses": { "200": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointGet_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointGet_example.json index c96d9d5eb139..ce2d9f76bf9c 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointGet_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointGet_example.json @@ -4,7 +4,7 @@ "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", "endpointName": "myServiceBus", - "api-version": "2022-05-31" + "api-version": "2022-10-31" }, "responses": { "200": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointPut_WithIdentity_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointPut_WithIdentity_example.json index ad4238d1ee44..3f7b034e48ba 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointPut_WithIdentity_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointPut_WithIdentity_example.json @@ -3,7 +3,7 @@ "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", - "api-version": "2022-05-31", + "api-version": "2022-10-31", "endpointName": "myServiceBus", "endpointDescription": { "properties": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointPut_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointPut_example.json index b26ea2e9092b..f9f799636117 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointPut_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointPut_example.json @@ -3,7 +3,7 @@ "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", - "api-version": "2022-05-31", + "api-version": "2022-10-31", "endpointName": "myServiceBus", "endpointDescription": { "properties": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointsGet_WithIdentity_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointsGet_WithIdentity_example.json index a8164f71d3bb..547982f0277a 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointsGet_WithIdentity_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointsGet_WithIdentity_example.json @@ -3,7 +3,7 @@ "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", - "api-version": "2022-05-31" + "api-version": "2022-10-31" }, "responses": { "200": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointsGet_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointsGet_example.json index e8eff91cba97..09ec1de5a50f 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointsGet_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointsGet_example.json @@ -3,7 +3,7 @@ "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", - "api-version": "2022-05-31" + "api-version": "2022-10-31" }, "responses": { "200": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsGet_WithIdentity_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsGet_WithIdentity_example.json index 3f53f491032c..d974303fd6b4 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsGet_WithIdentity_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsGet_WithIdentity_example.json @@ -3,7 +3,7 @@ "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", - "api-version": "2022-05-31" + "api-version": "2022-10-31" }, "responses": { "200": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsGet_WithPrivateEndpointConnection_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsGet_WithPrivateEndpointConnection_example.json index bbcbc9535079..d8835b16163e 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsGet_WithPrivateEndpointConnection_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsGet_WithPrivateEndpointConnection_example.json @@ -3,7 +3,7 @@ "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", - "api-version": "2022-05-31" + "api-version": "2022-10-31" }, "responses": { "200": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsGet_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsGet_example.json index 9a89aa86d880..e84291a8e364 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsGet_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsGet_example.json @@ -3,7 +3,7 @@ "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", - "api-version": "2022-05-31" + "api-version": "2022-10-31" }, "responses": { "200": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsListByResourceGroup_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsListByResourceGroup_example.json index fdd21744af30..4037165e934f 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsListByResourceGroup_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsListByResourceGroup_example.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", - "api-version": "2022-05-31", + "api-version": "2022-10-31", "resourceGroupName": "resRg" }, "responses": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsList_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsList_example.json index 99a363dee0b1..ed2fd9bbfd53 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsList_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsList_example.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", - "api-version": "2022-05-31" + "api-version": "2022-10-31" }, "responses": { "200": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsOperationsList_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsOperationsList_example.json index 077f38020b38..562692022c0b 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsOperationsList_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsOperationsList_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-05-31" + "api-version": "2022-10-31" }, "responses": { "200": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPatch_WithIdentity_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPatch_WithIdentity_example.json index 93b9369500ba..f2b89828f87b 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPatch_WithIdentity_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPatch_WithIdentity_example.json @@ -3,7 +3,7 @@ "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", - "api-version": "2022-05-31", + "api-version": "2022-10-31", "digitalTwinsPatchDescription": { "identity": { "type": "None" diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPatch_WithPublicNetworkAccess.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPatch_WithPublicNetworkAccess.json index 3a4d96480121..34e262920e41 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPatch_WithPublicNetworkAccess.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPatch_WithPublicNetworkAccess.json @@ -3,7 +3,7 @@ "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", - "api-version": "2022-05-31", + "api-version": "2022-10-31", "digitalTwinsPatchDescription": { "properties": { "publicNetworkAccess": "Disabled" diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPatch_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPatch_example.json index f908ce78cfe6..e25f8b5ab7e1 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPatch_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPatch_example.json @@ -3,7 +3,7 @@ "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", - "api-version": "2022-05-31", + "api-version": "2022-10-31", "digitalTwinsPatchDescription": { "tags": { "purpose": "dev" diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPut_WithIdentity_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPut_WithIdentity_example.json index c75c54e73f42..0c8c191e8170 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPut_WithIdentity_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPut_WithIdentity_example.json @@ -3,7 +3,7 @@ "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", - "api-version": "2022-05-31", + "api-version": "2022-10-31", "digitalTwinsCreate": { "location": "WestUS2", "identity": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPut_WithPublicNetworkAccess.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPut_WithPublicNetworkAccess.json index a85cd293c301..341962b62ddb 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPut_WithPublicNetworkAccess.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPut_WithPublicNetworkAccess.json @@ -3,7 +3,7 @@ "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", - "api-version": "2022-05-31", + "api-version": "2022-10-31", "digitalTwinsCreate": { "location": "WestUS2", "properties": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPut_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPut_example.json index bcb7a821b26a..84214d0fd926 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPut_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPut_example.json @@ -3,7 +3,7 @@ "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", - "api-version": "2022-05-31", + "api-version": "2022-10-31", "digitalTwinsCreate": { "location": "WestUS2" } diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionByConnectionName_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionByConnectionName_example.json index a4b6c9941f9b..731354a1331c 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionByConnectionName_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionByConnectionName_example.json @@ -3,7 +3,7 @@ "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", - "api-version": "2022-05-31", + "api-version": "2022-10-31", "privateEndpointConnectionName": "myPrivateConnection" }, "responses": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionDelete_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionDelete_example.json index 5a0dc2014fdd..e6199eae0438 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionDelete_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionDelete_example.json @@ -3,7 +3,7 @@ "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", - "api-version": "2022-05-31", + "api-version": "2022-10-31", "privateEndpointConnectionName": "myPrivateConnection" }, "responses": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionPut_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionPut_example.json index 7ba856a57d9c..76657cd80ed4 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionPut_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionPut_example.json @@ -3,7 +3,7 @@ "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", - "api-version": "2022-05-31", + "api-version": "2022-10-31", "privateEndpointConnectionName": "myPrivateConnection", "privateEndpointConnection": { "properties": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionsList_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionsList_example.json index 1696853b3535..989e6e780478 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionsList_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionsList_example.json @@ -3,7 +3,7 @@ "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", - "api-version": "2022-05-31" + "api-version": "2022-10-31" }, "responses": { "200": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateLinkResourcesByGroupId_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateLinkResourcesByGroupId_example.json index 9593f1c66855..7caecc891057 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateLinkResourcesByGroupId_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateLinkResourcesByGroupId_example.json @@ -4,7 +4,7 @@ "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", "resourceId": "subResource", - "api-version": "2022-05-31" + "api-version": "2022-10-31" }, "responses": { "200": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateLinkResourcesList_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateLinkResourcesList_example.json index fdf703c4483c..671274380538 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateLinkResourcesList_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateLinkResourcesList_example.json @@ -3,7 +3,7 @@ "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", - "api-version": "2022-05-31" + "api-version": "2022-10-31" }, "responses": { "200": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsDelete_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsDelete_example.json index 88de1340b815..b216758b2cbd 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsDelete_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsDelete_example.json @@ -4,7 +4,7 @@ "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", "timeSeriesDatabaseConnectionName": "myConnection", - "api-version": "2022-05-31" + "api-version": "2022-10-31" }, "responses": { "200": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsGet_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsGet_example.json index b7f097370bf5..81866530efac 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsGet_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsGet_example.json @@ -4,7 +4,7 @@ "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", "timeSeriesDatabaseConnectionName": "myConnection", - "api-version": "2022-05-31" + "api-version": "2022-10-31" }, "responses": { "200": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsList_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsList_example.json index f5d26bbc99d4..0b876ceed2d6 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsList_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsList_example.json @@ -3,7 +3,7 @@ "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", - "api-version": "2022-05-31" + "api-version": "2022-10-31" }, "responses": { "200": { diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsPut_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsPut_example.json index 3d95d33c3832..fc30cb250c73 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsPut_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsPut_example.json @@ -4,7 +4,7 @@ "resourceGroupName": "resRg", "resourceName": "myDigitalTwinsService", "timeSeriesDatabaseConnectionName": "myConnection", - "api-version": "2022-05-31", + "api-version": "2022-10-31", "timeSeriesDatabaseConnectionDescription": { "properties": { "connectionType": "AzureDataExplorer", From c49d78f230d1d1d4e982e845b767f3cf04914729 Mon Sep 17 00:00:00 2001 From: Ayodeji Marquis Date: Wed, 24 Aug 2022 13:53:09 -0700 Subject: [PATCH 04/11] Introducing 22-10-31 control plane changes for ADt --- .../stable/2022-10-31/digitaltwins.json | 59 ++++++++++++- ...sEndpointPut_WithUserIdentity_example.json | 82 +++++++++++++++++++ .../DigitalTwinsGet_WithIdentity_example.json | 10 ++- .../DigitalTwinsPut_WithIdentity_example.json | 20 ++++- ...nnectionsPut_WithUserIdentity_example.json | 78 ++++++++++++++++++ 5 files changed, 242 insertions(+), 7 deletions(-) create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointPut_WithUserIdentity_example.json create mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsPut_WithUserIdentity_example.json diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json index fec2d5b9c080..9bce6bdbdc8e 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json @@ -1306,7 +1306,9 @@ "type": "string", "enum": [ "None", - "SystemAssigned" + "SystemAssigned", + "UserAssigned", + "SystemAssigned,UserAssigned" ], "x-ms-enum": { "name": "DigitalTwinsIdentityType", @@ -1325,6 +1327,51 @@ "type": "string", "x-nullable": true, "description": "The tenant id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-client-tenant-id header in the PUT request if the resource has a systemAssigned(implicit) identity" + }, + "userAssignedIdentities": { + "type": "object", + "x-nullable": true, + "description": "The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form:\r\n'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.\r\n.", + "additionalProperties": { + "$ref": "#/definitions/UserAssignedIdentity" + } + } + } + }, + "UserAssignedIdentity": { + "description": "The information about the user assigned identity.", + "properties": { + "clientId": { + "readOnly": true, + "type": "string", + "description": "The client id of the User Assigned Identity Resource." + }, + "principalId": { + "readOnly": true, + "type": "string", + "description": "The object id of the User Assigned Identity Resource." + } + } + }, + "ManagedIdentity": { + "description": "The properties of the Managed Identity.", + "type": "object", + "properties": { + "type": { + "description": "The type of managed identity used.", + "enum": [ + "SystemAssigned", + "UserAssigned" + ], + "type": "string", + "x-ms-enum": { + "name": "IdentityType", + "modelAsString": true + } + }, + "userAssignedIdentity": { + "description": "The user identity ARM resource id if the managed identity type is 'UserAssigned'.", + "type": "string" } } }, @@ -1690,6 +1737,11 @@ "description": "Dead letter storage URL for identity-based authentication.", "type": "string", "x-nullable": true + }, + "identity": { + "$ref": "#/definitions/ManagedIdentity", + "description": "Managed identity properties for the endpoint.", + "x-nullable": true } } }, @@ -2055,6 +2107,11 @@ "name": "TimeSeriesDatabaseConnectionState", "modelAsString": true } + }, + "identity": { + "$ref": "#/definitions/ManagedIdentity", + "description": "Managed identity properties for the time series database connection resource.", + "x-nullable": true } } }, diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointPut_WithUserIdentity_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointPut_WithUserIdentity_example.json new file mode 100644 index 000000000000..1eee7e575248 --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointPut_WithUserIdentity_example.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", + "resourceGroupName": "resRg", + "resourceName": "myDigitalTwinsService", + "api-version": "2022-10-31", + "endpointName": "myServiceBus", + "endpointDescription": { + "properties": { + "endpointType": "ServiceBus", + "authenticationType": "IdentityBased", + "endpointUri": "sb://mysb.servicebus.windows.net/", + "entityPath": "mysbtopic", + "identity": { + "type": "UserAssigned", + "userAssignedIdentity": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/endpoints/myServiceBus", + "type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints", + "name": "myServiceBus", + "systemData": { + "createdBy": "user@example.com", + "createdByType": "User", + "createdAt": "2021-03-11T17:13:59.4037715Z", + "lastModifiedBy": "user@example.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-03-11T17:14:02.5281409Z" + }, + "properties": { + "endpointType": "ServiceBus", + "provisioningState": "Provisioning", + "authenticationType": "IdentityBased", + "endpointUri": "sb://mysb.servicebus.windows.net/", + "entityPath": "mysbtopic", + "createdTime": "2019-11-19T01:10:34.350Z", + "identity": { + "type": "UserAssigned", + "userAssignedIdentity": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity" + } + } + } + }, + "201": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/providers/Microsoft.DigitalTwins/locations/westus2/operationStatuses/12345678-1234-1234-123456789012", + "location": "https://management.azure.com/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/providers/Microsoft.DigitalTwins/locations/westus2/operationResults/12345678-1234-1234-123456789012", + "retry-after": "10" + }, + "body": { + "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/endpoints/myServiceBus", + "type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints", + "name": "myServiceBus", + "systemData": { + "createdBy": "user@example.com", + "createdByType": "User", + "createdAt": "2021-03-11T17:13:59.4037715Z", + "lastModifiedBy": "user@example.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-03-11T17:14:02.5281409Z" + }, + "properties": { + "endpointType": "ServiceBus", + "provisioningState": "Provisioning", + "authenticationType": "IdentityBased", + "endpointUri": "sb://mysb.servicebus.windows.net/", + "entityPath": "mysbtopic", + "createdTime": "2019-11-19T01:10:34.350Z", + "identity": { + "type": "UserAssigned", + "userAssignedIdentity": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity" + } + } + } + } + } +} diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsGet_WithIdentity_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsGet_WithIdentity_example.json index d974303fd6b4..42812f39e2ae 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsGet_WithIdentity_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsGet_WithIdentity_example.json @@ -13,9 +13,15 @@ "type": "Microsoft.DigitalTwins/digitalTwinsInstances", "name": "myDigitalTwinsService", "identity": { - "type": "SystemAssigned", + "type": "SystemAssigned,UserAssigned", "principalId": "544215a9-21d8-4fb5-8094-8efbcc311dd0", - "tenantId": "544215a9-21d8-4fb5-8094-8efbcc311dd0" + "tenantId": "544215a9-21d8-4fb5-8094-8efbcc311dd0", + "userAssignedIdentities": { + "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity": { + "clientId": "544215a9-21d8-4fb5-8094-8efbcc311dd0", + "principalId": "50016170-c839-41ba-a724-51e9df440b9e" + } + } }, "systemData": { "createdBy": "user@example.com", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPut_WithIdentity_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPut_WithIdentity_example.json index 0c8c191e8170..2feadc63ba47 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPut_WithIdentity_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPut_WithIdentity_example.json @@ -7,7 +7,10 @@ "digitalTwinsCreate": { "location": "WestUS2", "identity": { - "type": "SystemAssigned" + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity": {} + } } } }, @@ -22,9 +25,15 @@ "purpose": "dev" }, "identity": { - "type": "SystemAssigned", + "type": "SystemAssigned,UserAssigned", "principalId": "544215a9-21d8-4fb5-8094-8efbcc311dd0", - "tenantId": "544215a9-21d8-4fb5-8094-8efbcc311dd0" + "tenantId": "544215a9-21d8-4fb5-8094-8efbcc311dd0", + "userAssignedIdentities": { + "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity": { + "clientId": "544215a9-21d8-4fb5-8094-8efbcc311dd0", + "principalId": "50016170-c839-41ba-a724-51e9df440b9e" + } + } }, "systemData": { "createdBy": "user@example.com", @@ -55,7 +64,10 @@ "type": "Microsoft.DigitalTwins/digitalTwinsInstances", "name": "myDigitalTwinsService", "identity": { - "type": "SystemAssigned" + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity": {} + } }, "systemData": { "createdBy": "user@example.com", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsPut_WithUserIdentity_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsPut_WithUserIdentity_example.json new file mode 100644 index 000000000000..5630ea7bb2ca --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsPut_WithUserIdentity_example.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", + "resourceGroupName": "resRg", + "resourceName": "myDigitalTwinsService", + "timeSeriesDatabaseConnectionName": "myConnection", + "api-version": "2022-10-31", + "timeSeriesDatabaseConnectionDescription": { + "properties": { + "connectionType": "AzureDataExplorer", + "adxEndpointUri": "https://mycluster.kusto.windows.net", + "adxResourceId": "/subscriptions/c493073e-2460-45ba-a403-f3e0df1e9feg/resourceGroups/testrg/providers/Microsoft.Kusto/clusters/mycluster", + "adxDatabaseName": "myDatabase", + "adxTableName": "myTable", + "eventHubEndpointUri": "sb://myeh.servicebus.windows.net/", + "eventHubNamespaceResourceId": "/subscriptions/c493073e-2460-45ba-a403-f3e0df1e9feg/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/myeh", + "eventHubEntityPath": "myeh", + "identity": { + "type": "UserAssigned", + "userAssignedIdentity": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity" + } + } + } + }, + "responses": { + "201": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/providers/Microsoft.DigitalTwins/locations/westus2/operationStatuses/12345678-1234-1234-123456789012", + "location": "https://management.azure.com/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/providers/Microsoft.DigitalTwins/locations/westus2/operationResults/12345678-1234-1234-123456789012", + "retry-after": "10" + }, + "body": { + "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/timeSeriesDatabaseConnections/myConnection", + "type": "Microsoft.DigitalTwins/digitalTwinsInstances/timeSeriesDatabaseConnections", + "name": "myConnection", + "properties": { + "connectionType": "AzureDataExplorer", + "provisioningState": "Provisioning", + "adxEndpointUri": "https://mycluster.kusto.windows.net", + "adxResourceId": "/subscriptions/c493073e-2460-45ba-a403-f3e0df1e9feg/resourceGroups/testrg/providers/Microsoft.Kusto/clusters/mycluster", + "adxDatabaseName": "myDatabase", + "adxTableName": "myTable", + "eventHubEndpointUri": "sb://myeh.servicebus.windows.net/", + "eventHubNamespaceResourceId": "/subscriptions/c493073e-2460-45ba-a403-f3e0df1e9feg/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/myeh", + "eventHubEntityPath": "myeh", + "eventHubConsumerGroup": "$Default", + "identity": { + "type": "UserAssigned", + "userAssignedIdentity": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity" + } + } + } + }, + "200": { + "body": { + "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/timeSeriesDatabaseConnections/myConnection", + "type": "Microsoft.DigitalTwins/digitalTwinsInstances/timeSeriesDatabaseConnections", + "name": "myConnection", + "properties": { + "connectionType": "AzureDataExplorer", + "provisioningState": "Succeeded", + "adxEndpointUri": "https://mycluster.kusto.windows.net", + "adxResourceId": "/subscriptions/c493073e-2460-45ba-a403-f3e0df1e9feg/resourceGroups/testrg/providers/Microsoft.Kusto/clusters/mycluster", + "adxDatabaseName": "myDatabase", + "adxTableName": "myTable", + "eventHubEndpointUri": "sb://myeh.servicebus.windows.net/", + "eventHubEntityPath": "myeh", + "eventHubConsumerGroup": "$Default", + "eventHubNamespaceResourceId": "/subscriptions/c493073e-2460-45ba-a403-f3e0df1e9feg/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/myeh", + "identity": { + "type": "UserAssigned", + "userAssignedIdentity": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity" + } + } + } + } + } +} From a5da349c851488270d3cb22262a64035eebec286 Mon Sep 17 00:00:00 2001 From: Ayodeji Marquis Date: Wed, 24 Aug 2022 14:39:26 -0700 Subject: [PATCH 05/11] Fixing validation errors --- .../stable/2022-10-31/digitaltwins.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json index 9bce6bdbdc8e..12e188a8eaaa 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json @@ -367,6 +367,9 @@ }, "Put a DigitalTwinsEndpoint resource with identity": { "$ref": "./examples/DigitalTwinsEndpointPut_WithIdentity_example.json" + }, + "Put a DigitalTwinsEndpoint resource with user assigned identity": { + "$ref": "./examples/DigitalTwinsEndpointPut_WithUserIdentity_example.json" } }, "parameters": [ @@ -1063,6 +1066,9 @@ "x-ms-examples": { "Create or replace a time series database connection for a DigitalTwins instance.": { "$ref": "./examples/TimeSeriesDatabaseConnectionsPut_example.json" + }, + "Create or replace a time series database connection for a DigitalTwins instance with user assigned identity.": { + "$ref": "./examples/TimeSeriesDatabaseConnectionsPut_WithUserIdentity_example.json" } } }, @@ -1340,6 +1346,7 @@ }, "UserAssignedIdentity": { "description": "The information about the user assigned identity.", + "type": "object", "properties": { "clientId": { "readOnly": true, From 7d1b6200a3ae49380922a0e43e58a19351ad14dc Mon Sep 17 00:00:00 2001 From: Ayodeji Marquis Date: Thu, 25 Aug 2022 14:50:42 -0700 Subject: [PATCH 06/11] making userAssignedIdentity rx id nullable --- .../Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json index 12e188a8eaaa..ad300723ae72 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json @@ -1378,7 +1378,8 @@ }, "userAssignedIdentity": { "description": "The user identity ARM resource id if the managed identity type is 'UserAssigned'.", - "type": "string" + "type": "string", + "x-nullable": true } } }, From 9c3900c422aed98f98320c6e8c59aa38b3995051 Mon Sep 17 00:00:00 2001 From: Ayodeji Marquis Date: Mon, 29 Aug 2022 09:50:56 -0700 Subject: [PATCH 07/11] PR feedback --- .../Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json index ad300723ae72..f5541a817759 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json @@ -1320,7 +1320,7 @@ "name": "DigitalTwinsIdentityType", "modelAsString": true }, - "description": "The type of Managed Identity used by the DigitalTwinsInstance. Only SystemAssigned is supported." + "description": "The type of Managed Identity used by the DigitalTwinsInstance." }, "principalId": { "readOnly": true, From 339589c7cbb8221d64af7287255ddb06334930db Mon Sep 17 00:00:00 2001 From: Ayodeji Marquis Date: Wed, 31 Aug 2022 12:51:32 -0700 Subject: [PATCH 08/11] using common-types --- .../stable/2022-10-31/digitaltwins.json | 59 +------------------ 1 file changed, 2 insertions(+), 57 deletions(-) diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json index f5541a817759..32443b9863e6 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json @@ -1245,7 +1245,7 @@ "identity": { "description": "The managed identity for the DigitalTwinsInstance.", "x-nullable": true, - "$ref": "#/definitions/DigitalTwinsIdentity" + "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity" }, "properties": { "description": "Properties for the DigitalTwinsInstance.", @@ -1292,7 +1292,7 @@ "identity": { "description": "The managed identity for the DigitalTwinsInstance.", "x-nullable": true, - "$ref": "#/definitions/DigitalTwinsIdentity" + "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity" }, "systemData": { "description": "Metadata pertaining to creation and last modification of the DigitalTwinsInstance.", @@ -1305,61 +1305,6 @@ "location" ] }, - "DigitalTwinsIdentity": { - "description": "The managed identity for the DigitalTwinsInstance.", - "properties": { - "type": { - "type": "string", - "enum": [ - "None", - "SystemAssigned", - "UserAssigned", - "SystemAssigned,UserAssigned" - ], - "x-ms-enum": { - "name": "DigitalTwinsIdentityType", - "modelAsString": true - }, - "description": "The type of Managed Identity used by the DigitalTwinsInstance." - }, - "principalId": { - "readOnly": true, - "type": "string", - "x-nullable": true, - "description": "The object id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-identity-principal-id header in the PUT request if the resource has a systemAssigned(implicit) identity" - }, - "tenantId": { - "readOnly": true, - "type": "string", - "x-nullable": true, - "description": "The tenant id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-client-tenant-id header in the PUT request if the resource has a systemAssigned(implicit) identity" - }, - "userAssignedIdentities": { - "type": "object", - "x-nullable": true, - "description": "The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form:\r\n'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.\r\n.", - "additionalProperties": { - "$ref": "#/definitions/UserAssignedIdentity" - } - } - } - }, - "UserAssignedIdentity": { - "description": "The information about the user assigned identity.", - "type": "object", - "properties": { - "clientId": { - "readOnly": true, - "type": "string", - "description": "The client id of the User Assigned Identity Resource." - }, - "principalId": { - "readOnly": true, - "type": "string", - "description": "The object id of the User Assigned Identity Resource." - } - } - }, "ManagedIdentity": { "description": "The properties of the Managed Identity.", "type": "object", From 7bfcb73d145b5814603f960c56737ccf047ad73c Mon Sep 17 00:00:00 2001 From: Ayodeji Marquis Date: Wed, 31 Aug 2022 14:31:47 -0700 Subject: [PATCH 09/11] Revert "using common-types" This reverts commit 339589c7cbb8221d64af7287255ddb06334930db. --- .../stable/2022-10-31/digitaltwins.json | 59 ++++++++++++++++++- 1 file changed, 57 insertions(+), 2 deletions(-) diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json index 32443b9863e6..f5541a817759 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json @@ -1245,7 +1245,7 @@ "identity": { "description": "The managed identity for the DigitalTwinsInstance.", "x-nullable": true, - "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity" + "$ref": "#/definitions/DigitalTwinsIdentity" }, "properties": { "description": "Properties for the DigitalTwinsInstance.", @@ -1292,7 +1292,7 @@ "identity": { "description": "The managed identity for the DigitalTwinsInstance.", "x-nullable": true, - "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity" + "$ref": "#/definitions/DigitalTwinsIdentity" }, "systemData": { "description": "Metadata pertaining to creation and last modification of the DigitalTwinsInstance.", @@ -1305,6 +1305,61 @@ "location" ] }, + "DigitalTwinsIdentity": { + "description": "The managed identity for the DigitalTwinsInstance.", + "properties": { + "type": { + "type": "string", + "enum": [ + "None", + "SystemAssigned", + "UserAssigned", + "SystemAssigned,UserAssigned" + ], + "x-ms-enum": { + "name": "DigitalTwinsIdentityType", + "modelAsString": true + }, + "description": "The type of Managed Identity used by the DigitalTwinsInstance." + }, + "principalId": { + "readOnly": true, + "type": "string", + "x-nullable": true, + "description": "The object id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-identity-principal-id header in the PUT request if the resource has a systemAssigned(implicit) identity" + }, + "tenantId": { + "readOnly": true, + "type": "string", + "x-nullable": true, + "description": "The tenant id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-client-tenant-id header in the PUT request if the resource has a systemAssigned(implicit) identity" + }, + "userAssignedIdentities": { + "type": "object", + "x-nullable": true, + "description": "The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form:\r\n'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.\r\n.", + "additionalProperties": { + "$ref": "#/definitions/UserAssignedIdentity" + } + } + } + }, + "UserAssignedIdentity": { + "description": "The information about the user assigned identity.", + "type": "object", + "properties": { + "clientId": { + "readOnly": true, + "type": "string", + "description": "The client id of the User Assigned Identity Resource." + }, + "principalId": { + "readOnly": true, + "type": "string", + "description": "The object id of the User Assigned Identity Resource." + } + } + }, "ManagedIdentity": { "description": "The properties of the Managed Identity.", "type": "object", From ce92d28ad2cccd5b57a0c06c241a4a655a44cd6e Mon Sep 17 00:00:00 2001 From: Ayodeji Marquis Date: Tue, 6 Sep 2022 12:16:18 -0700 Subject: [PATCH 10/11] ManagedIdentity -> ManagedIdentityReference --- .../stable/2022-10-31/digitaltwins.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json index f5541a817759..e4c8f518530f 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json @@ -1360,7 +1360,7 @@ } } }, - "ManagedIdentity": { + "ManagedIdentityReference": { "description": "The properties of the Managed Identity.", "type": "object", "properties": { @@ -1747,7 +1747,7 @@ "x-nullable": true }, "identity": { - "$ref": "#/definitions/ManagedIdentity", + "$ref": "#/definitions/ManagedIdentityReference", "description": "Managed identity properties for the endpoint.", "x-nullable": true } @@ -2117,7 +2117,7 @@ } }, "identity": { - "$ref": "#/definitions/ManagedIdentity", + "$ref": "#/definitions/ManagedIdentityReference", "description": "Managed identity properties for the time series database connection resource.", "x-nullable": true } From 1486f5ab4c7a9f726fd42aeb6512af2f8f0ba304 Mon Sep 17 00:00:00 2001 From: Ayodeji Marquis Date: Sun, 11 Sep 2022 13:04:04 -0700 Subject: [PATCH 11/11] Add default table and consumer groups --- .../stable/2022-10-31/digitaltwins.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json index e4c8f518530f..55db9c506036 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/digitaltwins.json @@ -2169,8 +2169,9 @@ "type": "string" }, "adxTableName": { - "description": "The name of the Azure Data Explorer table.", + "description": "The name of the Azure Data Explorer table. Defaults to AdtPropertyEvents.", "type": "string", + "default": "AdtPropertyEvents", "x-nullable": true }, "eventHubEndpointUri": { @@ -2188,6 +2189,7 @@ "eventHubConsumerGroup": { "description": "The EventHub consumer group to use when ADX reads from EventHub. Defaults to $Default.", "type": "string", + "default": "$Default", "x-nullable": true } }