From b80f5dc92dc6ef8e102f1ecb313f6892722e4569 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 7 Feb 2019 17:06:41 -0800 Subject: [PATCH] Generated from bddc29df0c1abc1a1f25b2b2a07c6deb2043c2e6 (#4653) add description of access policies required condition --- lib/services/keyVaultManagement/LICENSE.txt | 2 +- .../keyVaultManagement/lib/models/index.d.ts | 3 ++- .../keyVaultManagement/lib/models/vault.js | 4 +++- .../models/vaultCreateOrUpdateParameters.js | 4 +++- .../lib/models/vaultProperties.js | 4 +++- .../lib/operations/index.d.ts | 16 +++++++++---- .../lib/operations/vaults.js | 24 ++++++++++++++----- 7 files changed, 42 insertions(+), 15 deletions(-) diff --git a/lib/services/keyVaultManagement/LICENSE.txt b/lib/services/keyVaultManagement/LICENSE.txt index 5431ba98b9..8f3d856145 100644 --- a/lib/services/keyVaultManagement/LICENSE.txt +++ b/lib/services/keyVaultManagement/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/lib/services/keyVaultManagement/lib/models/index.d.ts b/lib/services/keyVaultManagement/lib/models/index.d.ts index 3c79b3e6bb..482c799aea 100755 --- a/lib/services/keyVaultManagement/lib/models/index.d.ts +++ b/lib/services/keyVaultManagement/lib/models/index.d.ts @@ -134,7 +134,8 @@ export interface VaultProperties { sku: Sku; /** * An array of 0 to 16 identities that have access to the key vault. All identities in the array - * must use the same tenant ID as the key vault's tenant ID. + * must use the same tenant ID as the key vault's tenant ID. When `createMode` is set to + * `recover`, access policies are not required. Otherwise, access policies are required. */ accessPolicies?: AccessPolicyEntry[]; /** diff --git a/lib/services/keyVaultManagement/lib/models/vault.js b/lib/services/keyVaultManagement/lib/models/vault.js index 723a69219b..3145600867 100755 --- a/lib/services/keyVaultManagement/lib/models/vault.js +++ b/lib/services/keyVaultManagement/lib/models/vault.js @@ -29,7 +29,9 @@ class Vault extends models['Resource'] { * 'standard', 'premium' * @property {array} [properties.accessPolicies] An array of 0 to 16 * identities that have access to the key vault. All identities in the array - * must use the same tenant ID as the key vault's tenant ID. + * must use the same tenant ID as the key vault's tenant ID. When + * `createMode` is set to `recover`, access policies are not required. + * Otherwise, access policies are required. * @property {string} [properties.vaultUri] The URI of the vault for * performing operations on keys and secrets. * @property {boolean} [properties.enabledForDeployment] Property to specify diff --git a/lib/services/keyVaultManagement/lib/models/vaultCreateOrUpdateParameters.js b/lib/services/keyVaultManagement/lib/models/vaultCreateOrUpdateParameters.js index d2c87514da..a9ba953158 100755 --- a/lib/services/keyVaultManagement/lib/models/vaultCreateOrUpdateParameters.js +++ b/lib/services/keyVaultManagement/lib/models/vaultCreateOrUpdateParameters.js @@ -32,7 +32,9 @@ class VaultCreateOrUpdateParameters extends models['BaseResource'] { * 'standard', 'premium' * @property {array} [properties.accessPolicies] An array of 0 to 16 * identities that have access to the key vault. All identities in the array - * must use the same tenant ID as the key vault's tenant ID. + * must use the same tenant ID as the key vault's tenant ID. When + * `createMode` is set to `recover`, access policies are not required. + * Otherwise, access policies are required. * @property {string} [properties.vaultUri] The URI of the vault for * performing operations on keys and secrets. * @property {boolean} [properties.enabledForDeployment] Property to specify diff --git a/lib/services/keyVaultManagement/lib/models/vaultProperties.js b/lib/services/keyVaultManagement/lib/models/vaultProperties.js index e45d7e6c29..8f92c9f24f 100755 --- a/lib/services/keyVaultManagement/lib/models/vaultProperties.js +++ b/lib/services/keyVaultManagement/lib/models/vaultProperties.js @@ -25,7 +25,9 @@ class VaultProperties { * 'premium' * @property {array} [accessPolicies] An array of 0 to 16 identities that * have access to the key vault. All identities in the array must use the - * same tenant ID as the key vault's tenant ID. + * same tenant ID as the key vault's tenant ID. When `createMode` is set to + * `recover`, access policies are not required. Otherwise, access policies + * are required. * @property {string} [vaultUri] The URI of the vault for performing * operations on keys and secrets. * @property {boolean} [enabledForDeployment] Property to specify whether diff --git a/lib/services/keyVaultManagement/lib/operations/index.d.ts b/lib/services/keyVaultManagement/lib/operations/index.d.ts index e74f821406..0fdb2ade85 100755 --- a/lib/services/keyVaultManagement/lib/operations/index.d.ts +++ b/lib/services/keyVaultManagement/lib/operations/index.d.ts @@ -50,7 +50,9 @@ export interface Vaults { * * @param {array} [parameters.properties.accessPolicies] An array of 0 to 16 * identities that have access to the key vault. All identities in the array - * must use the same tenant ID as the key vault's tenant ID. + * must use the same tenant ID as the key vault's tenant ID. When `createMode` + * is set to `recover`, access policies are not required. Otherwise, access + * policies are required. * * @param {string} [parameters.properties.vaultUri] The URI of the vault for * performing operations on keys and secrets. @@ -144,7 +146,9 @@ export interface Vaults { * * @param {array} [parameters.properties.accessPolicies] An array of 0 to 16 * identities that have access to the key vault. All identities in the array - * must use the same tenant ID as the key vault's tenant ID. + * must use the same tenant ID as the key vault's tenant ID. When `createMode` + * is set to `recover`, access policies are not required. Otherwise, access + * policies are required. * * @param {string} [parameters.properties.vaultUri] The URI of the vault for * performing operations on keys and secrets. @@ -1065,7 +1069,9 @@ export interface Vaults { * * @param {array} [parameters.properties.accessPolicies] An array of 0 to 16 * identities that have access to the key vault. All identities in the array - * must use the same tenant ID as the key vault's tenant ID. + * must use the same tenant ID as the key vault's tenant ID. When `createMode` + * is set to `recover`, access policies are not required. Otherwise, access + * policies are required. * * @param {string} [parameters.properties.vaultUri] The URI of the vault for * performing operations on keys and secrets. @@ -1159,7 +1165,9 @@ export interface Vaults { * * @param {array} [parameters.properties.accessPolicies] An array of 0 to 16 * identities that have access to the key vault. All identities in the array - * must use the same tenant ID as the key vault's tenant ID. + * must use the same tenant ID as the key vault's tenant ID. When `createMode` + * is set to `recover`, access policies are not required. Otherwise, access + * policies are required. * * @param {string} [parameters.properties.vaultUri] The URI of the vault for * performing operations on keys and secrets. diff --git a/lib/services/keyVaultManagement/lib/operations/vaults.js b/lib/services/keyVaultManagement/lib/operations/vaults.js index c45da5efe7..4a3a1eb20a 100755 --- a/lib/services/keyVaultManagement/lib/operations/vaults.js +++ b/lib/services/keyVaultManagement/lib/operations/vaults.js @@ -44,7 +44,9 @@ const WebResource = msRest.WebResource; * * @param {array} [parameters.properties.accessPolicies] An array of 0 to 16 * identities that have access to the key vault. All identities in the array - * must use the same tenant ID as the key vault's tenant ID. + * must use the same tenant ID as the key vault's tenant ID. When `createMode` + * is set to `recover`, access policies are not required. Otherwise, access + * policies are required. * * @param {string} [parameters.properties.vaultUri] The URI of the vault for * performing operations on keys and secrets. @@ -1871,7 +1873,9 @@ function _checkNameAvailability(vaultName, options, callback) { * * @param {array} [parameters.properties.accessPolicies] An array of 0 to 16 * identities that have access to the key vault. All identities in the array - * must use the same tenant ID as the key vault's tenant ID. + * must use the same tenant ID as the key vault's tenant ID. When `createMode` + * is set to `recover`, access policies are not required. Otherwise, access + * policies are required. * * @param {string} [parameters.properties.vaultUri] The URI of the vault for * performing operations on keys and secrets. @@ -2802,7 +2806,9 @@ class Vaults { * * @param {array} [parameters.properties.accessPolicies] An array of 0 to 16 * identities that have access to the key vault. All identities in the array - * must use the same tenant ID as the key vault's tenant ID. + * must use the same tenant ID as the key vault's tenant ID. When `createMode` + * is set to `recover`, access policies are not required. Otherwise, access + * policies are required. * * @param {string} [parameters.properties.vaultUri] The URI of the vault for * performing operations on keys and secrets. @@ -2908,7 +2914,9 @@ class Vaults { * * @param {array} [parameters.properties.accessPolicies] An array of 0 to 16 * identities that have access to the key vault. All identities in the array - * must use the same tenant ID as the key vault's tenant ID. + * must use the same tenant ID as the key vault's tenant ID. When `createMode` + * is set to `recover`, access policies are not required. Otherwise, access + * policies are required. * * @param {string} [parameters.properties.vaultUri] The URI of the vault for * performing operations on keys and secrets. @@ -4141,7 +4149,9 @@ class Vaults { * * @param {array} [parameters.properties.accessPolicies] An array of 0 to 16 * identities that have access to the key vault. All identities in the array - * must use the same tenant ID as the key vault's tenant ID. + * must use the same tenant ID as the key vault's tenant ID. When `createMode` + * is set to `recover`, access policies are not required. Otherwise, access + * policies are required. * * @param {string} [parameters.properties.vaultUri] The URI of the vault for * performing operations on keys and secrets. @@ -4247,7 +4257,9 @@ class Vaults { * * @param {array} [parameters.properties.accessPolicies] An array of 0 to 16 * identities that have access to the key vault. All identities in the array - * must use the same tenant ID as the key vault's tenant ID. + * must use the same tenant ID as the key vault's tenant ID. When `createMode` + * is set to `recover`, access policies are not required. Otherwise, access + * policies are required. * * @param {string} [parameters.properties.vaultUri] The URI of the vault for * performing operations on keys and secrets.