diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/digitaltwins.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/digitaltwins.json index 72a050350988..cc2a0f7354a7 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/digitaltwins.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/digitaltwins.json @@ -29,7 +29,7 @@ "flow": "implicit", "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "impersonate your user account" + "user_impersonation": "Impersonate your user account" } } }, @@ -362,10 +362,10 @@ "operationId": "DigitalTwinsEndpoint_CreateOrUpdate", "x-ms-long-running-operation": true, "x-ms-examples": { - "Put a DigitalTwinsInstance resource": { + "Put a DigitalTwinsEndpoint resource": { "$ref": "./examples/DigitalTwinsEndpointPut_example.json" }, - "Put a DigitalTwinsInstance resource with identity": { + "Put a DigitalTwinsEndpoint resource with identity": { "$ref": "./examples/DigitalTwinsEndpointPut_WithIdentity_example.json" } }, @@ -917,6 +917,208 @@ } } } + }, + "/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": { @@ -984,7 +1186,9 @@ "readOnly": true }, "privateEndpointConnections": { + "description": "The private endpoint connections.", "type": "array", + "x-nullable": true, "items": { "$ref": "#/definitions/PrivateEndpointConnection" } @@ -1083,6 +1287,11 @@ "description": "The managed identity for the DigitalTwinsInstance.", "x-nullable": true, "$ref": "#/definitions/DigitalTwinsIdentity" + }, + "systemData": { + "description": "Metadata pertaining to creation and last modification of the DigitalTwinsInstance.", + "readOnly": true, + "$ref": "#/definitions/SystemData" } }, "x-ms-azure-resource": true, @@ -1212,6 +1421,16 @@ "readOnly": true, "type": "boolean", "description": "If the operation is a data action (for data plane rbac)." + }, + "properties": { + "readOnly": true, + "type": "object", + "x-ms-client-flatten": true, + "additionalProperties": { + "type": "object" + }, + "x-nullable": true, + "description": "Operation properties." } } }, @@ -1222,22 +1441,22 @@ "provider": { "readOnly": true, "type": "string", - "description": "Service provider: Microsoft DigitalTwins" + "description": "Service provider: Microsoft DigitalTwins." }, "resource": { "readOnly": true, "type": "string", - "description": "Resource Type: DigitalTwinsInstances" + "description": "Resource Type: DigitalTwinsInstances." }, "operation": { "readOnly": true, "type": "string", - "description": "Name of the operation" + "description": "Name of the operation." }, "description": { "readOnly": true, "type": "string", - "description": "Friendly description for the operation," + "description": "Friendly description for the operation." } } }, @@ -1294,6 +1513,65 @@ }, "description": "The result returned from a check name availability request." }, + "SystemData": { + "description": "Metadata pertaining to creation and last modification of the resource.", + "type": "object", + "readOnly": true, + "properties": { + "createdBy": { + "type": "string", + "description": "The identity that created the resource.", + "x-nullable": true + }, + "createdByType": { + "type": "string", + "description": "The type of identity that created the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "createdByType", + "modelAsString": true + }, + "x-nullable": true + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource creation (UTC).", + "x-nullable": true + }, + "lastModifiedBy": { + "type": "string", + "description": "The identity that last modified the resource.", + "x-nullable": true + }, + "lastModifiedByType": { + "type": "string", + "description": "The type of identity that last modified the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "createdByType", + "modelAsString": true + }, + "x-nullable": true + }, + "lastModifiedAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource last modification (UTC)", + "x-nullable": true + } + } + }, "ExternalResource": { "description": "Definition of a resource.", "type": "object", @@ -1314,6 +1592,11 @@ "readOnly": true, "type": "string", "description": "The resource type." + }, + "systemData": { + "description": "Metadata pertaining to creation and last modification of the resource.", + "readOnly": true, + "$ref": "#/definitions/SystemData" } } }, @@ -1385,7 +1668,7 @@ "readOnly": true }, "authenticationType": { - "description": "Specifies the authentication type being used for connecting to the endpoint.", + "description": "Specifies the authentication type being used for connecting to the endpoint. Defaults to 'KeyBased'. If 'KeyBased' is selected, a connection string must be specified (at least the primary connection string). If 'IdentityBased' is select, the endpointUri and entityPath properties must be specified.", "enum": [ "KeyBased", "IdentityBased" @@ -1412,74 +1695,70 @@ "ServiceBus": { "description": "Properties related to ServiceBus.", "x-ms-discriminator-value": "ServiceBus", + "type": "object", "allOf": [ { "$ref": "#/definitions/DigitalTwinsEndpointResourceProperties" + } + ], + "properties": { + "primaryConnectionString": { + "x-ms-secret": true, + "description": "PrimaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read.", + "type": "string", + "x-nullable": true }, - { - "type": "object", - "properties": { - "primaryConnectionString": { - "x-ms-secret": true, - "description": "PrimaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read.", - "type": "string", - "x-nullable": true - }, - "secondaryConnectionString": { - "x-ms-secret": true, - "description": "SecondaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read.", - "type": "string", - "x-nullable": true - }, - "endpointUri": { - "description": "The URL of the ServiceBus namespace for identity-based authentication. It must include the protocol sb://", - "type": "string", - "x-nullable": true - }, - "entityPath": { - "description": "The ServiceBus Topic name for identity-based authentication", - "type": "string", - "x-nullable": true - } - } + "secondaryConnectionString": { + "x-ms-secret": true, + "description": "SecondaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read.", + "type": "string", + "x-nullable": true + }, + "endpointUri": { + "description": "The URL of the ServiceBus namespace for identity-based authentication. It must include the protocol 'sb://'.", + "type": "string", + "x-nullable": true + }, + "entityPath": { + "description": "The ServiceBus Topic name for identity-based authentication.", + "type": "string", + "x-nullable": true } - ] + } }, "EventHub": { "description": "Properties related to EventHub.", "x-ms-discriminator-value": "EventHub", + "type": "object", "allOf": [ { "$ref": "#/definitions/DigitalTwinsEndpointResourceProperties" + } + ], + "properties": { + "connectionStringPrimaryKey": { + "x-ms-secret": true, + "description": "PrimaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read.", + "type": "string", + "x-nullable": true }, - { - "type": "object", - "properties": { - "connectionStringPrimaryKey": { - "x-ms-secret": true, - "description": "PrimaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read.", - "type": "string", - "x-nullable": true - }, - "connectionStringSecondaryKey": { - "x-ms-secret": true, - "description": "SecondaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read.", - "type": "string", - "x-nullable": true - }, - "endpointUri": { - "description": "The URL of the EventHub namespace for identity-based authentication. It must include the protocol sb://", - "type": "string", - "x-nullable": true - }, - "entityPath": { - "description": "The EventHub name in the EventHub namespace for identity-based authentication.", - "type": "string", - "x-nullable": true - } - } + "connectionStringSecondaryKey": { + "x-ms-secret": true, + "description": "SecondaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read.", + "type": "string", + "x-nullable": true + }, + "endpointUri": { + "description": "The URL of the EventHub namespace for identity-based authentication. It must include the protocol 'sb://'.", + "type": "string", + "x-nullable": true + }, + "entityPath": { + "description": "The EventHub name in the EventHub namespace for identity-based authentication.", + "type": "string", + "x-nullable": true } - ] + } }, "EventGrid": { "description": "Properties related to EventGrid.", @@ -1488,32 +1767,30 @@ "accessKey1" ], "x-ms-discriminator-value": "EventGrid", + "type": "object", "allOf": [ { "$ref": "#/definitions/DigitalTwinsEndpointResourceProperties" + } + ], + "properties": { + "TopicEndpoint": { + "description": "EventGrid Topic Endpoint.", + "type": "string" }, - { - "type": "object", - "properties": { - "TopicEndpoint": { - "description": "EventGrid Topic Endpoint", - "type": "string" - }, - "accessKey1": { - "x-ms-secret": true, - "description": "EventGrid secondary accesskey. Will be obfuscated during read.", - "type": "string", - "x-nullable": true - }, - "accessKey2": { - "x-ms-secret": true, - "description": "EventGrid secondary accesskey. Will be obfuscated during read.", - "type": "string", - "x-nullable": true - } - } + "accessKey1": { + "x-ms-secret": true, + "description": "EventGrid secondary accesskey. Will be obfuscated during read.", + "type": "string", + "x-nullable": true + }, + "accessKey2": { + "x-ms-secret": true, + "description": "EventGrid secondary accesskey. Will be obfuscated during read.", + "type": "string", + "x-nullable": true } - ] + } }, "DigitalTwinsEndpointResourceListResult": { "description": "A list of DigitalTwinsInstance Endpoints with a next link.", @@ -1539,7 +1816,7 @@ "properties": { "groupId": { "type": "string", - "description": "The group id" + "description": "The group id." }, "requiredMembers": { "description": "The required members for a specific group id.", @@ -1562,11 +1839,8 @@ "type": "object", "properties": { "properties": { - "allOf": [ - { - "$ref": "#/definitions/GroupIdInformationProperties" - } - ] + "description": "The group information properties.", + "$ref": "#/definitions/GroupIdInformationProperties" }, "id": { "description": "The resource identifier.", @@ -1683,11 +1957,8 @@ } }, "privateEndpoint": { - "allOf": [ - { - "$ref": "#/definitions/PrivateEndpoint" - } - ] + "description": "The private endpoint.", + "$ref": "#/definitions/PrivateEndpoint" }, "groupIds": { "description": "The list of group ids for the private endpoint connection.", @@ -1697,6 +1968,7 @@ } }, "privateLinkServiceConnectionState": { + "description": "The connection state.", "allOf": [ { "$ref": "#/definitions/ConnectionState" @@ -1727,16 +1999,149 @@ "description": "The resource type." }, "properties": { - "allOf": [ - { - "$ref": "#/definitions/ConnectionProperties" - } - ] + "description": "The connection properties.", + "$ref": "#/definitions/ConnectionProperties" + }, + "systemData": { + "description": "Metadata pertaining to creation and last modification of the private endpoint connection.", + "readOnly": true, + "x-nullable": true, + "$ref": "#/definitions/SystemData" } }, "required": [ "properties" ] + }, + "TimeSeriesDatabaseConnectionProperties": { + "description": "Properties of a time series database connection resource.", + "discriminator": "connectionType", + "required": [ + "connectionType" + ], + "type": "object", + "properties": { + "connectionType": { + "description": "The type of time series connection resource.", + "enum": [ + "AzureDataExplorer" + ], + "x-ms-enum": { + "name": "connectionType", + "modelAsString": true + }, + "type": "string" + }, + "provisioningState": { + "description": "The provisioning state.", + "enum": [ + "Provisioning", + "Deleting", + "Succeeded", + "Failed", + "Canceled", + "Deleted", + "Warning", + "Suspending", + "Restoring", + "Moving", + "Disabled" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "TimeSeriesDatabaseConnectionState", + "modelAsString": true + } + } + } + }, + "TimeSeriesDatabaseConnection": { + "description": "Describes a time series database connection resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ExternalResource" + } + ], + "properties": { + "properties": { + "description": "Properties of a specific time series database connection.", + "$ref": "#/definitions/TimeSeriesDatabaseConnectionProperties" + } + } + }, + "AzureDataExplorerConnectionProperties": { + "description": "Properties of a time series database connection to Azure Data Explorer with data being sent via an EventHub.", + "x-ms-discriminator-value": "AzureDataExplorer", + "required": [ + "adxEndpointUri", + "adxResourceId", + "adxDatabaseName", + "eventHubEndpointUri", + "eventHubEntityPath", + "eventHubNamespaceResourceId" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TimeSeriesDatabaseConnectionProperties" + } + ], + "properties": { + "adxResourceId": { + "description": "The resource ID of the Azure Data Explorer cluster.", + "type": "string" + }, + "adxEndpointUri": { + "description": "The URI of the Azure Data Explorer endpoint.", + "type": "string" + }, + "adxDatabaseName": { + "description": "The name of the Azure Data Explorer database.", + "type": "string" + }, + "adxTableName": { + "description": "The name of the Azure Data Explorer table.", + "type": "string", + "x-nullable": true + }, + "eventHubEndpointUri": { + "description": "The URL of the EventHub namespace for identity-based authentication. It must include the protocol sb://", + "type": "string" + }, + "eventHubEntityPath": { + "description": "The EventHub name in the EventHub namespace for identity-based authentication.", + "type": "string" + }, + "eventHubNamespaceResourceId": { + "description": "The resource ID of the EventHub namespace.", + "type": "string" + }, + "eventHubConsumerGroup": { + "description": "The EventHub consumer group to use when ADX reads from EventHub. Defaults to $Default.", + "type": "string", + "x-nullable": true + } + } + }, + "TimeSeriesDatabaseConnectionListResult": { + "description": "A pageable list of time series database connection resources.", + "type": "object", + "properties": { + "nextLink": { + "description": "The link used to get the next page of results.", + "type": "string", + "x-nullable": true + }, + "value": { + "description": "A list of time series database connection resources.", + "type": "array", + "items": { + "$ref": "#/definitions/TimeSeriesDatabaseConnection" + } + } + } } }, "parameters": { @@ -1749,9 +2154,6 @@ }, "api-version": { "name": "api-version", - "enum": [ - "2021-06-30-preview" - ], "in": "query", "description": "Version of the DigitalTwinsInstance Management API.", "required": true, @@ -1814,6 +2216,17 @@ "required": true, "type": "string", "x-ms-parameter-location": "method" + }, + "timeSeriesDatabaseConnectionName": { + "name": "timeSeriesDatabaseConnectionName", + "in": "path", + "description": "Name of time series database connection.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "pattern": "^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$", + "minLength": 2, + "maxLength": 49 } } } diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsDelete_WithIdentity_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsDelete_WithIdentity_example.json index 7e94bc2ad0b5..b6331e84f5ba 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsDelete_WithIdentity_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsDelete_WithIdentity_example.json @@ -17,6 +17,14 @@ "principalId": "544215a9-21d8-4fb5-8094-8efbcc311dd0", "tenantId": "544215a9-21d8-4fb5-8094-8efbcc311dd0" }, + "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": { "createdTime": "2019-11-19T12:55:05.229Z", "lastUpdatedTime": "2019-12-06T12:21:58.610Z", @@ -36,6 +44,14 @@ "principalId": "544215a9-21d8-4fb5-8094-8efbcc311dd0", "tenantId": "544215a9-21d8-4fb5-8094-8efbcc311dd0" }, + "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": { "createdTime": "2019-11-19T12:55:05.229Z", "lastUpdatedTime": "2019-12-06T12:21:58.610Z", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsDelete_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsDelete_example.json index 178180c2f87b..e26d64c86c17 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsDelete_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsDelete_example.json @@ -12,6 +12,14 @@ "location": "westus2", "type": "Microsoft.DigitalTwins/digitalTwinsInstances", "name": "myDigitalTwinsService", + "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": { "createdTime": "2019-11-19T12:55:05.229Z", "lastUpdatedTime": "2019-12-06T12:21:58.610Z", @@ -26,6 +34,14 @@ "location": "westus2", "type": "Microsoft.DigitalTwins/digitalTwinsInstances", "name": "myDigitalTwinsService", + "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": { "createdTime": "2019-11-19T12:55:05.229Z", "lastUpdatedTime": "2019-12-06T12:21:58.610Z", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointDelete_WithIdentity_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointDelete_WithIdentity_example.json index 33029a166dff..ece941505c82 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointDelete_WithIdentity_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointDelete_WithIdentity_example.json @@ -12,6 +12,14 @@ "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/endpoints/myServiceBus", "type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints", "name": "myendpoint", + "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", "authenticationType": "KeyBased", @@ -27,6 +35,14 @@ "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/endpoints/myServiceBus", "type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints", "name": "myendpoint", + "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", "authenticationType": "IdentityBased", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointDelete_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointDelete_example.json index c606e66b5aef..5aaedb847eaf 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointDelete_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointDelete_example.json @@ -12,6 +12,14 @@ "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/endpoints/myServiceBus", "type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints", "name": "myendpoint", + "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": { "authenticationType": "KeyBased", "endpointType": "ServiceBus", @@ -27,6 +35,14 @@ "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/endpoints/myServiceBus", "type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints", "name": "myendpoint", + "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": { "authenticationType": "KeyBased", "endpointType": "ServiceBus", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointGet_WithIdentity_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointGet_WithIdentity_example.json index 7296d4a95488..8e05a99211d5 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointGet_WithIdentity_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointGet_WithIdentity_example.json @@ -12,6 +12,14 @@ "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", "authenticationType": "IdentityBased", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointGet_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointGet_example.json index 20dddb6770ad..4e29d7ce0419 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointGet_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointGet_example.json @@ -12,6 +12,14 @@ "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", "authenticationType": "KeyBased", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointPut_WithIdentity_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointPut_WithIdentity_example.json index 23955d778435..a31b61c283bf 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointPut_WithIdentity_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointPut_WithIdentity_example.json @@ -20,6 +20,14 @@ "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", @@ -35,6 +43,14 @@ "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", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointPut_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointPut_example.json index 4a5e7d0d40ed..e42749f49aa1 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointPut_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointPut_example.json @@ -20,6 +20,14 @@ "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", "authenticationType": "KeyBased", @@ -35,6 +43,14 @@ "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", "authenticationType": "KeyBased", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointsGet_WithIdentity_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointsGet_WithIdentity_example.json index 311fb4791511..5f7ad69b290b 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointsGet_WithIdentity_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointsGet_WithIdentity_example.json @@ -13,6 +13,14 @@ "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", "authenticationType": "IdentityBased", @@ -26,6 +34,14 @@ "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": "EventHub", "authenticationType": "KeyBased", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointsGet_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointsGet_example.json index 8f59379d7191..9b25154cdfb3 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointsGet_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointsGet_example.json @@ -13,6 +13,14 @@ "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/endpoints/myServiceBus", "type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints", "name": "myendpoint1", + "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", "authenticationType": "KeyBased", @@ -26,6 +34,14 @@ "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/endpoints/myServiceBus", "type": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints", "name": "myendpoint2", + "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": "EventHub", "authenticationType": "KeyBased", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsGet_WithIdentity_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsGet_WithIdentity_example.json index 34f55fe013f3..b243fdfd7fd4 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsGet_WithIdentity_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsGet_WithIdentity_example.json @@ -17,6 +17,14 @@ "principalId": "544215a9-21d8-4fb5-8094-8efbcc311dd0", "tenantId": "544215a9-21d8-4fb5-8094-8efbcc311dd0" }, + "systemData": { + "createdBy": "user@example.com", + "createdByType": "User", + "createdAt": "2021-03-11T17:13:59.4037715Z", + "lastModifiedBy": "d2baee3d-44c0-41b6-9961-92563de66a97", + "lastModifiedByType": "Application", + "lastModifiedAt": "2021-03-11T17:14:02.5281409Z" + }, "properties": { "createdTime": "2019-11-19T12:55:05.229Z", "lastUpdatedTime": "2019-12-06T12:21:58.610Z", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsGet_WithPrivateEndpointConnection_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsGet_WithPrivateEndpointConnection_example.json index cd2c8d1a6fd3..7c7d81431484 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsGet_WithPrivateEndpointConnection_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsGet_WithPrivateEndpointConnection_example.json @@ -12,6 +12,14 @@ "location": "westus2", "type": "Microsoft.DigitalTwins/digitalTwinsInstances", "name": "myDigitalTwinsService", + "systemData": { + "createdBy": "user@example.com", + "createdByType": "User", + "createdAt": "2021-03-11T17:13:59.4037715Z", + "lastModifiedBy": "d2baee3d-44c0-41b6-9961-92563de66a97", + "lastModifiedByType": "Application", + "lastModifiedAt": "2021-03-11T17:14:02.5281409Z" + }, "properties": { "createdTime": "2019-11-19T12:55:05.229Z", "lastUpdatedTime": "2019-12-06T12:21:58.610Z", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsGet_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsGet_example.json index 9827ba09bc9f..2b5b8862dc95 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsGet_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsGet_example.json @@ -12,6 +12,14 @@ "location": "westus2", "type": "Microsoft.DigitalTwins/digitalTwinsInstances", "name": "myDigitalTwinsService", + "systemData": { + "createdBy": "user@example.com", + "createdByType": "User", + "createdAt": "2021-03-11T17:13:59.4037715Z", + "lastModifiedBy": "d2baee3d-44c0-41b6-9961-92563de66a97", + "lastModifiedByType": "Application", + "lastModifiedAt": "2021-03-11T17:14:02.5281409Z" + }, "properties": { "createdTime": "2019-11-19T12:55:05.229Z", "lastUpdatedTime": "2019-12-06T12:21:58.610Z", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsListByResourceGroup_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsListByResourceGroup_example.json index 48c9200ebe8f..747585c3e27e 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsListByResourceGroup_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsListByResourceGroup_example.json @@ -14,6 +14,14 @@ "location": "westus2", "type": "Microsoft.DigitalTwins/digitalTwinsInstances", "name": "myDigitalTwinsService", + "systemData": { + "createdBy": "user@example.com", + "createdByType": "User", + "createdAt": "2021-03-11T17:13:59.4037715Z", + "lastModifiedBy": "d2baee3d-44c0-41b6-9961-92563de66a97", + "lastModifiedByType": "Application", + "lastModifiedAt": "2021-03-11T17:14:02.5281409Z" + }, "properties": { "createdTime": "2019-11-19T12:55:05.229Z", "lastUpdatedTime": "2019-11-19T12:51:05.229Z", @@ -27,6 +35,14 @@ "location": "westus2", "type": "Microsoft.DigitalTwins/digitalTwinsInstances", "name": "myDigitalTwinsService2", + "systemData": { + "createdBy": "user@example.com", + "createdByType": "User", + "createdAt": "2021-03-11T17:14:59.4037715Z", + "lastModifiedBy": "429f7e65-6d99-455e-a469-7a885be68642", + "lastModifiedByType": "Application", + "lastModifiedAt": "2021-03-11T17:15:02.5281409Z" + }, "properties": { "createdTime": "2019-11-19T12:55:07.229Z", "lastUpdatedTime": "2019-11-19T12:55:07.229Z", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsList_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsList_example.json index 85447f52ab0f..69a4c904e8bc 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsList_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsList_example.json @@ -13,6 +13,14 @@ "location": "westus2", "type": "Microsoft.DigitalTwins/digitalTwinsInstances", "name": "myDigitalTwinsService", + "systemData": { + "createdBy": "user@example.com", + "createdByType": "User", + "createdAt": "2021-03-11T17:13:59.4037715Z", + "lastModifiedBy": "d2baee3d-44c0-41b6-9961-92563de66a97", + "lastModifiedByType": "Application", + "lastModifiedAt": "2021-03-11T17:14:02.5281409Z" + }, "properties": { "createdTime": "2019-11-19T12:55:05.229Z", "lastUpdatedTime": "2019-11-19T12:55:07.229Z", @@ -26,6 +34,14 @@ "location": "westus2", "type": "Microsoft.DigitalTwins/digitalTwinsInstances", "name": "myDigitalTwinsService2", + "systemData": { + "createdBy": "user@example.com", + "createdByType": "User", + "createdAt": "2021-03-11T17:14:59.4037715Z", + "lastModifiedBy": "429f7e65-6d99-455e-a469-7a885be68642", + "lastModifiedByType": "Application", + "lastModifiedAt": "2021-03-11T17:15:02.5281409Z" + }, "properties": { "createdTime": "2019-11-19T12:55:05.229Z", "lastUpdatedTime": "2019-11-19T12:55:07.229Z", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPatch_WithIdentity_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPatch_WithIdentity_example.json index 8c12e789540e..865a399bb8b9 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPatch_WithIdentity_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPatch_WithIdentity_example.json @@ -20,6 +20,14 @@ "tags": { "purpose": "dev" }, + "systemData": { + "createdBy": "user@example.com", + "createdByType": "User", + "createdAt": "2021-03-11T17:14:59.4037715Z", + "lastModifiedBy": "user@example.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-03-11T17:15:02.5281409Z" + }, "properties": { "createdTime": "2019-11-19T12:55:05.229Z", "lastUpdatedTime": "2019-12-06T12:21:58.610Z", @@ -38,6 +46,14 @@ "tags": { "purpose": "dev" }, + "systemData": { + "createdBy": "user@example.com", + "createdByType": "User", + "createdAt": "2021-03-11T17:14:59.4037715Z", + "lastModifiedBy": "user@example.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-03-11T17:15:02.5281409Z" + }, "properties": { "createdTime": "2019-11-19T12:55:05.229Z", "lastUpdatedTime": "2019-12-06T12:21:58.610Z", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPatch_WithPublicNetworkAccess.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPatch_WithPublicNetworkAccess.json index 1e8fb66f9d11..697a4d16031e 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPatch_WithPublicNetworkAccess.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPatch_WithPublicNetworkAccess.json @@ -20,6 +20,14 @@ "tags": { "purpose": "dev" }, + "systemData": { + "createdBy": "user@example.com", + "createdByType": "User", + "createdAt": "2021-03-11T17:14:59.4037715Z", + "lastModifiedBy": "user@example.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-03-11T17:15:02.5281409Z" + }, "properties": { "createdTime": "2019-11-19T12:55:05.229Z", "lastUpdatedTime": "2019-12-06T12:21:58.610Z", @@ -38,6 +46,14 @@ "tags": { "purpose": "dev" }, + "systemData": { + "createdBy": "user@example.com", + "createdByType": "User", + "createdAt": "2021-03-11T17:14:59.4037715Z", + "lastModifiedBy": "user@example.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-03-11T17:15:02.5281409Z" + }, "properties": { "createdTime": "2019-11-19T12:55:05.229Z", "lastUpdatedTime": "2019-12-06T12:21:58.610Z", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPatch_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPatch_example.json index ab1807d9c553..30de60c0913e 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPatch_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPatch_example.json @@ -20,6 +20,14 @@ "tags": { "purpose": "dev" }, + "systemData": { + "createdBy": "user@example.com", + "createdByType": "User", + "createdAt": "2021-03-11T17:14:59.4037715Z", + "lastModifiedBy": "user@example.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-03-11T17:15:02.5281409Z" + }, "properties": { "createdTime": "2019-11-19T12:55:05.229Z", "lastUpdatedTime": "2019-12-06T12:21:58.610Z", @@ -38,6 +46,14 @@ "tags": { "purpose": "dev" }, + "systemData": { + "createdBy": "user@example.com", + "createdByType": "User", + "createdAt": "2021-03-11T17:14:59.4037715Z", + "lastModifiedBy": "user@example.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-03-11T17:15:02.5281409Z" + }, "properties": { "createdTime": "2019-11-19T12:55:05.229Z", "lastUpdatedTime": "2019-12-06T12:21:58.610Z", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPut_WithIdentity_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPut_WithIdentity_example.json index efeb0f9e9467..13eb2661d3c6 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPut_WithIdentity_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPut_WithIdentity_example.json @@ -26,6 +26,14 @@ "principalId": "544215a9-21d8-4fb5-8094-8efbcc311dd0", "tenantId": "544215a9-21d8-4fb5-8094-8efbcc311dd0" }, + "systemData": { + "createdBy": "user@example.com", + "createdByType": "User", + "createdAt": "2021-03-11T17:14:59.4037715Z", + "lastModifiedBy": "user@example.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-03-11T17:15:02.5281409Z" + }, "properties": { "createdTime": "2019-11-19T12:55:05.229Z", "lastUpdatedTime": "2019-12-06T12:21:58.610Z", @@ -44,6 +52,14 @@ "identity": { "type": "SystemAssigned" }, + "systemData": { + "createdBy": "user@example.com", + "createdByType": "User", + "createdAt": "2021-03-11T17:14:59.4037715Z", + "lastModifiedBy": "user@example.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-03-11T17:14:59.4037715Z" + }, "properties": { "createdTime": "2019-11-19T12:55:05.229Z", "lastUpdatedTime": "2019-11-19T12:55:05.229Z", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPut_WithPublicNetworkAccess.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPut_WithPublicNetworkAccess.json index cf5d2419699a..3e37fd3c1286 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPut_WithPublicNetworkAccess.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPut_WithPublicNetworkAccess.json @@ -18,6 +18,14 @@ "location": "westus2", "type": "Microsoft.DigitalTwins/digitalTwinsInstances", "name": "myDigitalTwinsService", + "systemData": { + "createdBy": "user@example.com", + "createdByType": "User", + "createdAt": "2021-03-11T17:14:59.4037715Z", + "lastModifiedBy": "user@example.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-03-11T17:15:02.5281409Z" + }, "properties": { "createdTime": "2019-11-19T12:55:05.229Z", "lastUpdatedTime": "2019-12-06T12:21:58.610Z", @@ -33,6 +41,14 @@ "location": "westus2", "type": "Microsoft.DigitalTwins/digitalTwinsInstances", "name": "myDigitalTwinsService", + "systemData": { + "createdBy": "user@example.com", + "createdByType": "User", + "createdAt": "2021-03-11T17:14:59.4037715Z", + "lastModifiedBy": "user@example.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-03-11T17:14:59.4037715Z" + }, "properties": { "createdTime": "2019-11-19T12:55:05.229Z", "lastUpdatedTime": "2019-11-19T12:55:05.229Z", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPut_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPut_example.json index 568d6e588918..3f9593900c6a 100644 --- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPut_example.json +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPut_example.json @@ -18,6 +18,14 @@ "tags": { "purpose": "dev" }, + "systemData": { + "createdBy": "user@example.com", + "createdByType": "User", + "createdAt": "2021-03-11T17:14:59.4037715Z", + "lastModifiedBy": "user@example.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-03-11T17:15:02.5281409Z" + }, "properties": { "createdTime": "2019-11-19T12:55:05.229Z", "lastUpdatedTime": "2019-12-06T12:21:58.610Z", @@ -33,6 +41,14 @@ "location": "westus2", "type": "Microsoft.DigitalTwins/digitalTwinsInstances", "name": "myDigitalTwinsService", + "systemData": { + "createdBy": "user@example.com", + "createdByType": "User", + "createdAt": "2021-03-11T17:14:59.4037715Z", + "lastModifiedBy": "user@example.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-03-11T17:14:59.4037715Z" + }, "properties": { "createdTime": "2019-11-19T12:55:05.229Z", "lastUpdatedTime": "2019-11-19T12:55:05.229Z", diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/TimeSeriesDatabaseConnectionsDelete_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/TimeSeriesDatabaseConnectionsDelete_example.json new file mode 100644 index 000000000000..ccf5b0c234d6 --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/TimeSeriesDatabaseConnectionsDelete_example.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", + "resourceGroupName": "resRg", + "resourceName": "myDigitalTwinsService", + "timeSeriesDatabaseConnectionName": "myConnection", + "api-version": "2021-06-30-preview" + }, + "responses": { + "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": "Failed", + "adxEndpointUri": "https://mycluster.kusto.windows.net", + "adxResourceId": "/subscriptions/c493073e-2460-45ba-a403-f3e0df1e9feg/resourceGroups/testrg/providers/Microsoft.Kusto/clusters/mycluster", + "adxDatabaseName": "myDatabase", + "eventHubEndpointUri": "sb://myeh.servicebus.windows.net/", + "eventHubEntityPath": "myeh", + "eventHubConsumerGroup": "$Default", + "eventHubNamespaceResourceId": "/subscriptions/c493073e-2460-45ba-a403-f3e0df1e9feg/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/myeh" + } + } + }, + "202": { + "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": "Deleting", + "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" + } + } + }, + "204": {} + } +} diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/TimeSeriesDatabaseConnectionsGet_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/TimeSeriesDatabaseConnectionsGet_example.json new file mode 100644 index 000000000000..735755e0a2ac --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/TimeSeriesDatabaseConnectionsGet_example.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", + "resourceGroupName": "resRg", + "resourceName": "myDigitalTwinsService", + "timeSeriesDatabaseConnectionName": "myConnection", + "api-version": "2021-06-30-preview" + }, + "responses": { + "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" + } + } + } + } +} diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/TimeSeriesDatabaseConnectionsList_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/TimeSeriesDatabaseConnectionsList_example.json new file mode 100644 index 000000000000..4d3c92e0be30 --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/TimeSeriesDatabaseConnectionsList_example.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", + "resourceGroupName": "resRg", + "resourceName": "myDigitalTwinsService", + "api-version": "2021-06-30-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "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", + "eventHubNamespaceResourceId": "/subscriptions/c493073e-2460-45ba-a403-f3e0df1e9feg/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/myeh" + } + } + ] + } + } + } +} diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/TimeSeriesDatabaseConnectionsPut_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/TimeSeriesDatabaseConnectionsPut_example.json new file mode 100644 index 000000000000..8e8d6fec5316 --- /dev/null +++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/TimeSeriesDatabaseConnectionsPut_example.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e", + "resourceGroupName": "resRg", + "resourceName": "myDigitalTwinsService", + "timeSeriesDatabaseConnectionName": "myConnection", + "api-version": "2021-06-30-preview", + "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" + } + } + }, + "responses": { + "201": { + "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" + } + } + }, + "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" + } + } + } + } +} diff --git a/specification/digitaltwins/resource-manager/readme.azureresourceschema.md b/specification/digitaltwins/resource-manager/readme.azureresourceschema.md index 6826e9d534e0..69a6169b3b5c 100644 --- a/specification/digitaltwins/resource-manager/readme.azureresourceschema.md +++ b/specification/digitaltwins/resource-manager/readme.azureresourceschema.md @@ -6,6 +6,7 @@ These settings apply only when `--azureresourceschema` is specified on the comma ``` yaml $(azureresourceschema) && $(multiapi) batch: + - tag: schema-digitaltwins-2021-06-30-preview - tag: schema-digitaltwins-2020-12-01 - tag: schema-digitaltwins-2020-10-31 - tag: schema-digitaltwins-2020-03-01-preview @@ -14,6 +15,17 @@ batch: Please also specify `--azureresourceschema-folder=`. +### Tag: schema-digitaltwins-2021-06-30-preview and azureresourceschema + +``` yaml $(tag) == 'schema-digitaltwins-2021-06-30-preview' && $(azureresourceschema) +output-folder: $(azureresourceschema-folder)/schemas + +# all the input files in this apiVersion +input-file: + - Microsoft.DigitalTwins/preview/2021-06-30-preview/digitaltwins.json + +``` + ### Tag: schema-digitaltwins-2020-12-01 and azureresourceschema ``` yaml $(tag) == 'schema-digitaltwins-2020-12-01' && $(azureresourceschema) diff --git a/specification/digitaltwins/resource-manager/readme.go.md b/specification/digitaltwins/resource-manager/readme.go.md index 99e7838eb217..91802e7bf1c8 100644 --- a/specification/digitaltwins/resource-manager/readme.go.md +++ b/specification/digitaltwins/resource-manager/readme.go.md @@ -13,11 +13,22 @@ go: ``` yaml $(go) && $(multiapi) batch: + - tag: package-2021-06-30-preview - tag: package-2020-12 - tag: package-2020-10 - tag: package-2020-03-01-preview ``` +### Tag: package-2021-06-30-preview and go + +These settings apply only when `--tag=package-2021-06-30-preview --go` is specified on the command line. +Please also specify `--go-sdks-folder=digitaltwins`. + +```yaml $(tag) == 'package-2021-06-30-preview' && $(go) +namespace: digitaltwins +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2021-06-30-preview/$(namespace) +``` + ### Tag: package-2020-12 and go These settings apply only when `--tag=package-2020-12 --go` is specified on the command line. diff --git a/specification/digitaltwins/resource-manager/readme.java.md b/specification/digitaltwins/resource-manager/readme.java.md index d2ac1dc6a6ab..b57b0d63671d 100644 --- a/specification/digitaltwins/resource-manager/readme.java.md +++ b/specification/digitaltwins/resource-manager/readme.java.md @@ -16,11 +16,25 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-digitaltwins ``` yaml $(java) && $(multiapi) batch: + - tag: package-2021-06-30-preview - tag: package-2020-12 - tag: package-2020-10 - tag: package-2020-03-01-preview ``` +### Tag: package-2021-06-30-preview and java + +These settings apply only when `--tag=package-2021-06-30-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2021-06-30-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.digitaltwins.v2021_06_30_preview + output-folder: $(azure-libraries-for-java-folder)/sdk/digitaltwins/mgmt-v2021_06_30_preview +regenerate-manager: true +generate-interface: true +``` + ### Tag: package-2020-12 and java These settings apply only when `--tag=package-2020-12 --java` is specified on the command line. diff --git a/specification/digitaltwins/resource-manager/readme.md b/specification/digitaltwins/resource-manager/readme.md index f1fde4974cdb..e40ce31584ef 100644 --- a/specification/digitaltwins/resource-manager/readme.md +++ b/specification/digitaltwins/resource-manager/readme.md @@ -26,18 +26,19 @@ These are the global settings for the digitaltwins. ``` yaml openapi-type: arm -tag: package-preview-2021-06 +tag: package-2021-06-30-preview ``` -### Tag: package-preview-2021-06 +### Tag: package-2021-06-30-preview -These settings apply only when `--tag=package-preview-2021-06` is specified on the command line. +These settings apply only when `--tag=package-2021-06-30-preview` is specified on the command line. -```yaml $(tag) == 'package-preview-2021-06' +```yaml $(tag) == 'package-2021-06-30-preview' input-file: - Microsoft.DigitalTwins/preview/2021-06-30-preview/digitaltwins.json ``` + ### Tag: package-2020-12 These settings apply only when `--tag=package-2020-12` is specified on the command line. @@ -120,12 +121,21 @@ See configuration in [readme.azureresourceschema.md](./readme.azureresourceschem ``` yaml directive: + - suppress: DefinitionsPropertiesNamesCamelCase + where: $.definitions.EventGrid.properties.TopicEndpoint + from: digitaltwins.json + reason: This property has existed in previous API versions with the same spelling, and is a required property. Renaming it to "topicEndpoint" introduces a breaking change. - suppress: AvoidNestedProperties where: $.definitions.DigitalTwinsEndpointResource.properties.properties from: digitaltwins.json reason: |- Flattening properties generates SDK (using autorest) that does not support polymorphism. In this case DigitalTwinsEndpointResourceProperties is used as a base class for EventGrid, EventHub and ServiceBus. Flattening DigitalTwinsEndpointResourceProperties removes the link between DigitalTwinsEndpointResource and resources above. + - suppress: AvoidNestedProperties + where: $.definitions.TimeSeriesDatabaseConnection.properties.properties + from: digitaltwins.json + reason: |- + Flattening properties generates SDK (using autorest) that does not support polymorphism. - suppress: TrackedResourceListByImmediateParent where: $.definitions from: digitaltwins.json @@ -135,22 +145,19 @@ directive: from: digitaltwins.json reason: The value will always be a boolean. - suppress: SECRET_PROPERTY - where: '$.definitions.ServiceBus.allOf["1"].properties.primaryConnectionString' + where: '$.definitions.ServiceBus.properties.primaryConnectionString' from: digitaltwins.json reason: 'Secrets are obfuscated on GETs. E.g., "Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***". This is to allow customers to identify the namespace of the resource.' - suppress: SECRET_PROPERTY - where: '$.definitions.ServiceBus.allOf["1"].properties.secondaryConnectionString' + where: '$.definitions.ServiceBus.properties.secondaryConnectionString' from: digitaltwins.json reason: Secrets are obfuscated on read. - suppress: SECRET_PROPERTY - where: '$.definitions.EventHub.allOf["1"].properties.connectionStringPrimaryKey' + where: '$.definitions.EventHub.properties.connectionStringPrimaryKey' from: digitaltwins.json reason: Secrets are obfuscated on read. - suppress: SECRET_PROPERTY - where: '$.definitions.EventHub.allOf["1"].properties.connectionStringSecondaryKey' + where: '$.definitions.EventHub.properties.connectionStringSecondaryKey' from: digitaltwins.json reason: Secrets are obfuscated on read. - - suppress: R4009 - from: digitaltwins.json - reason: Warning raised to error while PR was being reviewed. Will implement in next version. ``` diff --git a/specification/digitaltwins/resource-manager/readme.python.md b/specification/digitaltwins/resource-manager/readme.python.md index 30479183cacc..7a0e35dfb0ff 100644 --- a/specification/digitaltwins/resource-manager/readme.python.md +++ b/specification/digitaltwins/resource-manager/readme.python.md @@ -8,7 +8,6 @@ azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.mgmt.digitaltwins package-name: azure-mgmt-digitaltwins -package-version: 1.0.0 clear-output-folder: true no-namespace-folders: true ``` @@ -18,7 +17,9 @@ no-namespace-folders: true Generate all API versions currently shipped for this package ```yaml $(python) && $(multiapi) && $(track2) +clear-output-folder: true batch: + - tag: package-2021-06-30-preview - tag: package-2020-12 - tag: package-2020-10 - tag: package-2020-03-01-preview @@ -31,6 +32,15 @@ clear-output-folder: false perform-load: false ``` +### Tag: package-2021-06-30-preview and python + +These settings apply only when `--tag=package-2021-06-30-preview --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2021-06-30-preview' && $(python) +namespace: azure.mgmt.digitaltwins.v2021_06_30_preview +output-folder: $(python-sdks-folder)/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2021_06_30_preview +``` ### Tag: package-2020-12 and python