From cc66515d6e25c450fae30d1b1e7aaa05694d69a9 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Sat, 9 Oct 2021 03:08:50 +0000 Subject: [PATCH] CodeGen from PR 16139 in Azure/azure-rest-api-specs [Hub Generated] Review request for Microsoft.IoTCentral to add version stable/2021-06-01 (#16139) * [IoT-Central] Added identity request and response objects for IoT Central APIs to support Managed Identities * Updated model as string * Updated case for none * Updated ArmIdentity to ManagedIdentity * Added description and title for ManagedIdentity * Updated casing for mI type * Reset casing for MI type * Updated comments for principalId and tenantId * Use common-types for supported system-assigned managed identities Co-authored-by: Ganesh Viswanathan --- schemas/2021-06-01/Microsoft.IotCentral.json | 34 ++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/schemas/2021-06-01/Microsoft.IotCentral.json b/schemas/2021-06-01/Microsoft.IotCentral.json index f7c75639e4..ad95293ee9 100644 --- a/schemas/2021-06-01/Microsoft.IotCentral.json +++ b/schemas/2021-06-01/Microsoft.IotCentral.json @@ -13,6 +13,17 @@ "2021-06-01" ] }, + "identity": { + "oneOf": [ + { + "$ref": "#/definitions/SystemAssignedServiceIdentity" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Managed service identity (either system assigned, or none)" + }, "location": { "type": "string", "description": "The resource location." @@ -134,6 +145,29 @@ "name" ], "description": "Information about the SKU of the IoT Central application." + }, + "SystemAssignedServiceIdentity": { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "None", + "SystemAssigned" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + } + }, + "required": [ + "type" + ], + "description": "Managed service identity (either system assigned, or none)" } } } \ No newline at end of file