Skip to content

Commit

Permalink
CodeGen from PR 16042 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[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
  • Loading branch information
SDKAuto committed Sep 18, 2021
1 parent 66900e1 commit 028ecf1
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions schemas/2021-06-01-preview/Microsoft.KeyVault.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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": [
{
Expand All @@ -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": {
Expand Down

0 comments on commit 028ecf1

Please sign in to comment.