Skip to content

Commit c566c79

Browse files
authored
[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
1 parent a09d5d3 commit c566c79

File tree

2 files changed

+26
-2
lines changed
  • specification/keyvault/resource-manager

2 files changed

+26
-2
lines changed

specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-06-01-preview/keys.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,10 @@
423423
"rotationPolicy": {
424424
"$ref": "#/definitions/RotationPolicy",
425425
"description": "Key rotation policy in response. It will be used for both output and input. Omitted if empty"
426+
},
427+
"release_policy": {
428+
"$ref": "#/definitions/KeyReleasePolicy",
429+
"description": "Key release policy in response. It will be used for both output and input. Omitted if empty"
426430
}
427431
},
428432
"description": "The properties of the key.",
@@ -473,6 +477,10 @@
473477
},
474478
"readOnly": true,
475479
"x-nullable": false
480+
},
481+
"exportable": {
482+
"type": "boolean",
483+
"description": "Indicates if the private key can be exported."
476484
}
477485
},
478486
"description": "The object attributes managed by the Azure Key Vault service.",
@@ -614,6 +622,21 @@
614622
}
615623
},
616624
"type": "object"
625+
},
626+
"KeyReleasePolicy": {
627+
"properties": {
628+
"contentType": {
629+
"description": "Content type and version of key release policy",
630+
"type": "string",
631+
"default": "application/json; charset=utf-8"
632+
},
633+
"data": {
634+
"description": "Blob encoding the policy rules under which the key can be released.",
635+
"type": "string",
636+
"format": "base64url"
637+
}
638+
},
639+
"type": "object"
617640
}
618641
},
619642
"parameters": {

specification/keyvault/resource-manager/readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,12 @@ input-file:
160160
``` yaml
161161
directive:
162162
- suppress:
163+
- R3016 # The 'release_policy' property for KeyCreateParameters does not support camelCase.
163164
- R3026 # The 'PrivateEndpointConnection' and 'PrivateLinkResource' sub-resources don't define PATCH as per Network Team's specification.
164165
- R3025 # The 'PrivateLinkResource' is only accessible via List operation; does not define GET as per Network Team's specification.
165166
- R4015 # The 'MHSMPrivateEndpointConnection' sub-resource doesn't define List as per Network Team's specification.
166-
- R2005 # The 'ManagedHsms_PurgeDeleted' operation should not return a mix of 202 and syncronous return types (200, 201, 204) as directed by SDK team.
167-
- R4009 # Vault object is the only one that need to be tracked with SystemData
167+
- R2005 # The 'ManagedHsms_PurgeDeleted' operation should not return a mix of 202 and syncronous return types (200, 201, 204) as directed by SDK team.
168+
- R4009 # Vault object is the only one that need to be tracked with SystemData
168169
```
169170

170171
---

0 commit comments

Comments
 (0)