Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -988,10 +988,10 @@ class VaultProperties(Model):
:type tenant_id: str
:param sku: Required. SKU details
:type sku: ~azure.mgmt.keyvault.v2018_02_14.models.Sku
:param access_policies: 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. When `createMode` is set to `recover`, access
policies are not required. Otherwise, access policies are required.
:param access_policies: An array of 0 to 1024 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. When `createMode` is set to `recover`,
access policies are not required. Otherwise, access policies are required.
:type access_policies:
list[~azure.mgmt.keyvault.v2018_02_14.models.AccessPolicyEntry]
:param vault_uri: The URI of the vault for performing operations on keys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -988,10 +988,10 @@ class VaultProperties(Model):
:type tenant_id: str
:param sku: Required. SKU details
:type sku: ~azure.mgmt.keyvault.v2018_02_14.models.Sku
:param access_policies: 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. When `createMode` is set to `recover`, access
policies are not required. Otherwise, access policies are required.
:param access_policies: An array of 0 to 1024 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. When `createMode` is set to `recover`,
access policies are not required. Otherwise, access policies are required.
:type access_policies:
list[~azure.mgmt.keyvault.v2018_02_14.models.AccessPolicyEntry]
:param vault_uri: The URI of the vault for performing operations on keys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1004,10 +1004,10 @@ class VaultProperties(Model):
:type tenant_id: str
:param sku: Required. SKU details
:type sku: ~azure.mgmt.keyvault.v2019_09_01.models.Sku
:param access_policies: 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. When `createMode` is set to `recover`, access
policies are not required. Otherwise, access policies are required.
:param access_policies: An array of 0 to 1024 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. When `createMode` is set to `recover`,
access policies are not required. Otherwise, access policies are required.
:type access_policies:
list[~azure.mgmt.keyvault.v2019_09_01.models.AccessPolicyEntry]
:param vault_uri: The URI of the vault for performing operations on keys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1004,10 +1004,10 @@ class VaultProperties(Model):
:type tenant_id: str
:param sku: Required. SKU details
:type sku: ~azure.mgmt.keyvault.v2019_09_01.models.Sku
:param access_policies: 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. When `createMode` is set to `recover`, access
policies are not required. Otherwise, access policies are required.
:param access_policies: An array of 0 to 1024 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. When `createMode` is set to `recover`,
access policies are not required. Otherwise, access policies are required.
:type access_policies:
list[~azure.mgmt.keyvault.v2019_09_01.models.AccessPolicyEntry]
:param vault_uri: The URI of the vault for performing operations on keys
Expand Down
4 changes: 3 additions & 1 deletion sdk/keyvault/azure-mgmt-keyvault/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
pass

# Version extraction inspired from 'requests'
with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd:
with open(os.path.join(package_folder_path, 'version.py')
if os.path.exists(os.path.join(package_folder_path, 'version.py'))
else os.path.join(package_folder_path, '_version.py'), 'r') as fd:
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)

Expand Down