From 028ecf111237e32ab6828be71c6045cd0cf7e2c8 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Sat, 18 Sep 2021 02:26:07 +0000 Subject: [PATCH] CodeGen from PR 16042 in Azure/azure-rest-api-specs [Hub Generated] Review request for Microsoft.KeyVault to add version preview/2021-06-01-preview (#16042) * Added exportable attribute and release policy to CP Swagger doc * Specify type as object for ReleasePolicy * Address code review comments * Add suppression code for camelCase * Prettier check --- .../Microsoft.KeyVault.json | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/schemas/2021-06-01-preview/Microsoft.KeyVault.json b/schemas/2021-06-01-preview/Microsoft.KeyVault.json index 94b2482df0..d921a38a60 100644 --- a/schemas/2021-06-01-preview/Microsoft.KeyVault.json +++ b/schemas/2021-06-01-preview/Microsoft.KeyVault.json @@ -592,6 +592,17 @@ ], "description": "Expiry date in seconds since 1970-01-01T00:00:00Z." }, + "exportable": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates if the private key can be exported." + }, "nbf": { "oneOf": [ { @@ -687,6 +698,16 @@ ], "description": "The type of the key. For valid values, see JsonWebKeyType." }, + "release_policy": { + "oneOf": [ + { + "$ref": "#/definitions/KeyReleasePolicy" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, "rotationPolicy": { "oneOf": [ { @@ -700,6 +721,21 @@ }, "description": "The properties of the key." }, + "KeyReleasePolicy": { + "type": "object", + "properties": { + "contentType": { + "type": "string", + "default": "application/json; charset=utf-8", + "description": "Content type and version of key release policy" + }, + "data": { + "type": "string", + "format": "base64url", + "description": "Blob encoding the policy rules under which the key can be released." + } + } + }, "KeyRotationPolicyAttributes": { "type": "object", "properties": {