From 7c6d99e91966b0662a48faf8b65a00850b7ee0ba Mon Sep 17 00:00:00 2001 From: Tanyi Chen Date: Thu, 9 Jul 2020 16:48:47 +0800 Subject: [PATCH] add key vault certificate permission --- .../keyvault/models/AccessPolicy.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/sdk/keyvault/mgmt/src/main/java/com/azure/resourcemanager/keyvault/models/AccessPolicy.java b/sdk/keyvault/mgmt/src/main/java/com/azure/resourcemanager/keyvault/models/AccessPolicy.java index 73ad9eade808..8ed618c5e473 100644 --- a/sdk/keyvault/mgmt/src/main/java/com/azure/resourcemanager/keyvault/models/AccessPolicy.java +++ b/sdk/keyvault/mgmt/src/main/java/com/azure/resourcemanager/keyvault/models/AccessPolicy.java @@ -385,6 +385,29 @@ interface WithPermissions { */ WithAttach allowStorageAllPermissions(); + /** + * Allow all permissions for the AD identity to access certificates. + * + * @return the next stage of access policy definition + */ + WithAttach allowCertificateAllPermissions(); + + /** + * Allow a list of permissions for the AD identity to access certificates. + * + * @param permissions the list of permissions allowed + * @return the next stage of access policy definition + */ + WithAttach allowCertificatePermissions(CertificatePermissions... permissions); + + /** + * Allow a list of permissions for the AD identity to access certificates. + * + * @param permissions the list of permissions allowed + * @return the next stage of access policy definition + */ + WithAttach allowCertificatePermissions(List permissions); + /** * Allow a list of permissions for the AD identity to access storage. *