From 00491cbad73cff732cd5eb82a5e5b40fb89ae62b Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 1 Nov 2022 00:12:17 +0000 Subject: [PATCH] =?UTF-8?q?CodeGen=20from=20PR=2021274=20in=20Azure/azure-?= =?UTF-8?q?rest-api-specs=20Azure=20Databricks=20-=20Managed=20Disk=20Encr?= =?UTF-8?q?yption=20-=20Critical=20API=20Version=20Cha=E2=80=A6=20(#21274)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Azure Databricks - Managed Disk Encryption - Critical API Version Changes * Updated json files with prettier * Updated Readme and fixed header issues in two files * Fixed remaining response header issues and fixed OperationListResult * Removed explicit type declarations and updated python sdk title * Reverted back to non camel case to avoid breaking changes * Fixing Swagger validation errors * Update readme.python.md * Address review comments by * Updated SDK client name * Removed minor difference between ErrorInfo models Co-authored-by: Mahender Sarangam Co-authored-by: Yuchao Yan --- .../Microsoft.Databricks.json | 95 +++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/schemas/2022-04-01-preview/Microsoft.Databricks.json b/schemas/2022-04-01-preview/Microsoft.Databricks.json index ddd223a604..c1536ea032 100644 --- a/schemas/2022-04-01-preview/Microsoft.Databricks.json +++ b/schemas/2022-04-01-preview/Microsoft.Databricks.json @@ -305,6 +305,17 @@ "EncryptionEntitiesDefinition": { "type": "object", "properties": { + "managedDisk": { + "oneOf": [ + { + "$ref": "#/definitions/ManagedDiskEncryption" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The object that contains details of encryption used on the workspace." + }, "managedServices": { "oneOf": [ { @@ -400,6 +411,75 @@ ], "description": "Identity for the resource." }, + "ManagedDiskEncryption": { + "type": "object", + "properties": { + "keySource": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Microsoft.Keyvault" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Keyvault" + }, + "keyVaultProperties": { + "oneOf": [ + { + "$ref": "#/definitions/ManagedDiskEncryptionKeyVaultProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Key Vault input properties for encryption." + }, + "rotationToLatestKeyVersionEnabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicate whether the latest key version should be automatically used for Managed Disk Encryption." + } + }, + "required": [ + "keySource", + "keyVaultProperties" + ], + "description": "The object that contains details of encryption used on the workspace." + }, + "ManagedDiskEncryptionKeyVaultProperties": { + "type": "object", + "properties": { + "keyName": { + "type": "string", + "description": "The name of KeyVault key." + }, + "keyVaultUri": { + "type": "string", + "description": "The URI of KeyVault." + }, + "keyVersion": { + "type": "string", + "description": "The version of KeyVault key." + } + }, + "required": [ + "keyName", + "keyVaultUri", + "keyVersion" + ], + "description": "Key Vault input properties for encryption." + }, "ManagedIdentityConfiguration": { "type": "object", "properties": {}, @@ -929,6 +1009,10 @@ "format": "date-time", "description": "The date and time stamp when the workspace was created." }, + "diskEncryptionSetId": { + "type": "string", + "description": "The resource Id of the managed disk encryption set." + }, "encryption": { "oneOf": [ { @@ -940,6 +1024,17 @@ ], "description": "Encryption properties for databricks workspace" }, + "managedDiskIdentity": { + "oneOf": [ + { + "$ref": "#/definitions/ManagedIdentityConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Managed Identity details for storage account." + }, "managedResourceGroupId": { "type": "string", "description": "The managed resource group Id."