From 911b97c7c6d20acf9b8d94041dd7ed26e3a6b5df Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 15 Feb 2023 06:42:07 +0000 Subject: [PATCH] CodeGen from PR 22416 in Azure/azure-rest-api-specs Adding User Assigned MI Support for Azure Databricks Access Connector (#22416) * Adding new API Version base line commit * Adding UA MI Public Preview Changes --- .../Microsoft.Databricks.json | 199 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 3 + 2 files changed, 202 insertions(+) create mode 100644 schemas/2022-10-01-preview/Microsoft.Databricks.json diff --git a/schemas/2022-10-01-preview/Microsoft.Databricks.json b/schemas/2022-10-01-preview/Microsoft.Databricks.json new file mode 100644 index 0000000000..eb36fa43ce --- /dev/null +++ b/schemas/2022-10-01-preview/Microsoft.Databricks.json @@ -0,0 +1,199 @@ +{ + "id": "https://schema.management.azure.com/schemas/2022-10-01-preview/Microsoft.Databricks.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Databricks", + "description": "Microsoft Databricks Resource Types", + "resourceDefinitions": { + "accessConnectors": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-10-01-preview" + ] + }, + "identity": { + "oneOf": [ + { + "$ref": "#/definitions/ManagedServiceIdentity" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Managed service identity (system assigned and/or user assigned identities)" + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "type": "string", + "minLength": 3, + "maxLength": 64, + "description": "The name of the azure databricks accessConnector." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AccessConnectorProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "systemData": { + "oneOf": [ + { + "$ref": "#/definitions/SystemData" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Metadata pertaining to creation and last modification of the resource." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Databricks/accessConnectors" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.Databricks/accessConnectors" + } + }, + "definitions": { + "AccessConnectorProperties": { + "type": "object", + "properties": {} + }, + "ManagedServiceIdentity": { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "None", + "SystemAssigned", + "UserAssigned", + "SystemAssigned,UserAssigned" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "userAssignedIdentities": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/UserAssignedIdentity" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests." + } + }, + "required": [ + "type" + ], + "description": "Managed service identity (system assigned and/or user assigned identities)" + }, + "SystemData": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource creation (UTC)." + }, + "createdBy": { + "type": "string", + "description": "The identity that created the resource." + }, + "createdByType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The type of identity that created the resource." + }, + "lastModifiedAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource last modification (UTC)" + }, + "lastModifiedBy": { + "type": "string", + "description": "The identity that last modified the resource." + }, + "lastModifiedByType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The type of identity that last modified the resource." + } + }, + "description": "Metadata pertaining to creation and last modification of the resource." + }, + "UserAssignedIdentity": { + "type": "object", + "properties": {}, + "description": "User assigned identity properties" + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 27f7492fa7..58aa7100c2 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -7768,6 +7768,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2022-04-01-preview/Microsoft.Databricks.json#/resourceDefinitions/workspaces_virtualNetworkPeerings" }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-10-01-preview/Microsoft.Databricks.json#/resourceDefinitions/accessConnectors" + }, { "$ref": "https://schema.management.azure.com/schemas/2023-02-01/Microsoft.Databricks.json#/resourceDefinitions/workspaces" },