From ddbc9f968e9aad8496cd227ba846e334ff6ada3a Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 22 Nov 2022 02:29:24 +0000 Subject: [PATCH] CodeGen from PR 20374 in Azure/azure-rest-api-specs [Hub Generated] Review request for Microsoft.DigitalTwins to add version stable/2022-10-31 (#20374) * Adds base for updating Microsoft.DigitalTwins from version stable/2022-05-31 to version 2022-10-31 * Updates readme * Updates API version in new specs and examples * Introducing 22-10-31 control plane changes for ADt * Fixing validation errors * making userAssignedIdentity rx id nullable * PR feedback * using common-types * Revert "using common-types" This reverts commit 339589c7cbb8221d64af7287255ddb06334930db. * ManagedIdentity -> ManagedIdentityReference * Add default table and consumer groups Co-authored-by: Ayodeji Marquis --- .../2022-10-31/Microsoft.DigitalTwins.json | 804 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 12 + 2 files changed, 816 insertions(+) create mode 100644 schemas/2022-10-31/Microsoft.DigitalTwins.json diff --git a/schemas/2022-10-31/Microsoft.DigitalTwins.json b/schemas/2022-10-31/Microsoft.DigitalTwins.json new file mode 100644 index 0000000000..64b84db3d3 --- /dev/null +++ b/schemas/2022-10-31/Microsoft.DigitalTwins.json @@ -0,0 +1,804 @@ +{ + "id": "https://schema.management.azure.com/schemas/2022-10-31/Microsoft.DigitalTwins.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.DigitalTwins", + "description": "Microsoft DigitalTwins Resource Types", + "resourceDefinitions": { + "digitalTwinsInstances": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-10-31" + ] + }, + "identity": { + "oneOf": [ + { + "$ref": "#/definitions/DigitalTwinsIdentity" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The managed identity for the DigitalTwinsInstance." + }, + "location": { + "type": "string", + "description": "The resource location." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^(?!-)[A-Za-z0-9-]{3,63}(?