Skip to content

Commit

Permalink
CodeGen from PR 11869 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 7ff2289d7b340ee2a0da5cd14df9e677e7c70504 into b775c38
  • Loading branch information
SDKAuto committed Jan 10, 2021
1 parent e188de6 commit 61e366a
Show file tree
Hide file tree
Showing 25 changed files with 6,470 additions and 110 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -911,9 +911,9 @@ class VaultPatchProperties(Model):
:type tenant_id: str
:param sku: 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.
: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.
:type access_policies:
list[~azure.mgmt.keyvault.v2018_02_14.models.AccessPolicyEntry]
:param enabled_for_deployment: Property to specify whether Azure Virtual
Expand Down 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 @@ -911,9 +911,9 @@ class VaultPatchProperties(Model):
:type tenant_id: str
:param sku: 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.
: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.
:type access_policies:
list[~azure.mgmt.keyvault.v2018_02_14.models.AccessPolicyEntry]
:param enabled_for_deployment: Property to specify whether Azure Virtual
Expand Down 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 @@ -17,6 +17,7 @@
from .operations import PrivateEndpointConnectionsOperations
from .operations import PrivateLinkResourcesOperations
from .operations import Operations
from .operations import KeysOperations
from . import models


Expand All @@ -34,6 +35,8 @@ class KeyVaultManagementClient(SDKClient):
:vartype private_link_resources: azure.mgmt.keyvault.v2019_09_01.operations.PrivateLinkResourcesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.keyvault.v2019_09_01.operations.Operations
:ivar keys: Keys operations
:vartype keys: azure.mgmt.keyvault.v2019_09_01.operations.KeysOperations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand Down Expand Up @@ -64,3 +67,5 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.keys = KeysOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@

try:
from ._models_py3 import AccessPolicyEntry
from ._models_py3 import Attributes
from ._models_py3 import CheckNameAvailabilityResult
from ._models_py3 import DeletedVault
from ._models_py3 import DeletedVaultProperties
from ._models_py3 import IPRule
from ._models_py3 import Key
from ._models_py3 import KeyAttributes
from ._models_py3 import KeyCreateParameters
from ._models_py3 import KeyProperties
from ._models_py3 import LogSpecification
from ._models_py3 import NetworkRuleSet
from ._models_py3 import Operation
Expand All @@ -40,10 +45,15 @@
from ._models_py3 import VirtualNetworkRule
except (SyntaxError, ImportError):
from ._models import AccessPolicyEntry
from ._models import Attributes
from ._models import CheckNameAvailabilityResult
from ._models import DeletedVault
from ._models import DeletedVaultProperties
from ._models import IPRule
from ._models import Key
from ._models import KeyAttributes
from ._models import KeyCreateParameters
from ._models import KeyProperties
from ._models import LogSpecification
from ._models import NetworkRuleSet
from ._models import Operation
Expand All @@ -68,6 +78,7 @@
from ._models import VaultProperties
from ._models import VirtualNetworkRule
from ._paged_models import DeletedVaultPaged
from ._paged_models import KeyPaged
from ._paged_models import OperationPaged
from ._paged_models import ResourcePaged
from ._paged_models import VaultPaged
Expand All @@ -83,15 +94,24 @@
PrivateEndpointServiceConnectionStatus,
PrivateEndpointConnectionProvisioningState,
Reason,
DeletionRecoveryLevel,
JsonWebKeyType,
JsonWebKeyOperation,
JsonWebKeyCurveName,
AccessPolicyUpdateKind,
)

__all__ = [
'AccessPolicyEntry',
'Attributes',
'CheckNameAvailabilityResult',
'DeletedVault',
'DeletedVaultProperties',
'IPRule',
'Key',
'KeyAttributes',
'KeyCreateParameters',
'KeyProperties',
'LogSpecification',
'NetworkRuleSet',
'Operation',
Expand Down Expand Up @@ -119,6 +139,7 @@
'DeletedVaultPaged',
'ResourcePaged',
'OperationPaged',
'KeyPaged',
'SkuName',
'KeyPermissions',
'SecretPermissions',
Expand All @@ -130,5 +151,9 @@
'PrivateEndpointServiceConnectionStatus',
'PrivateEndpointConnectionProvisioningState',
'Reason',
'DeletionRecoveryLevel',
'JsonWebKeyType',
'JsonWebKeyOperation',
'JsonWebKeyCurveName',
'AccessPolicyUpdateKind',
]
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class SkuName(str, Enum):

class KeyPermissions(str, Enum):

all = "all"
encrypt = "encrypt"
decrypt = "decrypt"
wrap_key = "wrapKey"
Expand All @@ -40,6 +41,7 @@ class KeyPermissions(str, Enum):

class SecretPermissions(str, Enum):

all = "all"
get = "get"
list = "list"
set = "set"
Expand All @@ -52,6 +54,7 @@ class SecretPermissions(str, Enum):

class CertificatePermissions(str, Enum):

all = "all"
get = "get"
list = "list"
delete = "delete"
Expand All @@ -72,6 +75,7 @@ class CertificatePermissions(str, Enum):

class StoragePermissions(str, Enum):

all = "all"
get = "get"
list = "list"
delete = "delete"
Expand Down Expand Up @@ -130,6 +134,41 @@ class Reason(str, Enum):
already_exists = "AlreadyExists"


class DeletionRecoveryLevel(str, Enum):

purgeable = "Purgeable"
recoverable_purgeable = "Recoverable+Purgeable"
recoverable = "Recoverable"
recoverable_protected_subscription = "Recoverable+ProtectedSubscription"


class JsonWebKeyType(str, Enum):

ec = "EC"
ec_hsm = "EC-HSM"
rsa = "RSA"
rsa_hsm = "RSA-HSM"


class JsonWebKeyOperation(str, Enum):

encrypt = "encrypt"
decrypt = "decrypt"
sign = "sign"
verify = "verify"
wrap_key = "wrapKey"
unwrap_key = "unwrapKey"
import_enum = "import"


class JsonWebKeyCurveName(str, Enum):

p_256 = "P-256"
p_384 = "P-384"
p_521 = "P-521"
p_256_k = "P-256K"


class AccessPolicyUpdateKind(str, Enum):

add = "add"
Expand Down
Loading

0 comments on commit 61e366a

Please sign in to comment.