Skip to content

Commit e5db136

Browse files
author
SDKAuto
committed
CodeGen from PR 11695 in Azure/azure-rest-api-specs
fix java readme (Azure#11695)
1 parent b791d51 commit e5db136

25 files changed

+6464
-108
lines changed

sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2018_02_14/models/_models.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -911,9 +911,9 @@ class VaultPatchProperties(Model):
911911
:type tenant_id: str
912912
:param sku: SKU details
913913
:type sku: ~azure.mgmt.keyvault.v2018_02_14.models.Sku
914-
:param access_policies: An array of 0 to 16 identities that have access to
915-
the key vault. All identities in the array must use the same tenant ID as
916-
the key vault's tenant ID.
914+
:param access_policies: An array of 0 to 1024 identities that have access
915+
to the key vault. All identities in the array must use the same tenant ID
916+
as the key vault's tenant ID.
917917
:type access_policies:
918918
list[~azure.mgmt.keyvault.v2018_02_14.models.AccessPolicyEntry]
919919
:param enabled_for_deployment: Property to specify whether Azure Virtual
@@ -988,10 +988,10 @@ class VaultProperties(Model):
988988
:type tenant_id: str
989989
:param sku: Required. SKU details
990990
:type sku: ~azure.mgmt.keyvault.v2018_02_14.models.Sku
991-
:param access_policies: An array of 0 to 16 identities that have access to
992-
the key vault. All identities in the array must use the same tenant ID as
993-
the key vault's tenant ID. When `createMode` is set to `recover`, access
994-
policies are not required. Otherwise, access policies are required.
991+
:param access_policies: An array of 0 to 1024 identities that have access
992+
to the key vault. All identities in the array must use the same tenant ID
993+
as the key vault's tenant ID. When `createMode` is set to `recover`,
994+
access policies are not required. Otherwise, access policies are required.
995995
:type access_policies:
996996
list[~azure.mgmt.keyvault.v2018_02_14.models.AccessPolicyEntry]
997997
:param vault_uri: The URI of the vault for performing operations on keys

sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2018_02_14/models/_models_py3.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -911,9 +911,9 @@ class VaultPatchProperties(Model):
911911
:type tenant_id: str
912912
:param sku: SKU details
913913
:type sku: ~azure.mgmt.keyvault.v2018_02_14.models.Sku
914-
:param access_policies: An array of 0 to 16 identities that have access to
915-
the key vault. All identities in the array must use the same tenant ID as
916-
the key vault's tenant ID.
914+
:param access_policies: An array of 0 to 1024 identities that have access
915+
to the key vault. All identities in the array must use the same tenant ID
916+
as the key vault's tenant ID.
917917
:type access_policies:
918918
list[~azure.mgmt.keyvault.v2018_02_14.models.AccessPolicyEntry]
919919
:param enabled_for_deployment: Property to specify whether Azure Virtual
@@ -988,10 +988,10 @@ class VaultProperties(Model):
988988
:type tenant_id: str
989989
:param sku: Required. SKU details
990990
:type sku: ~azure.mgmt.keyvault.v2018_02_14.models.Sku
991-
:param access_policies: An array of 0 to 16 identities that have access to
992-
the key vault. All identities in the array must use the same tenant ID as
993-
the key vault's tenant ID. When `createMode` is set to `recover`, access
994-
policies are not required. Otherwise, access policies are required.
991+
:param access_policies: An array of 0 to 1024 identities that have access
992+
to the key vault. All identities in the array must use the same tenant ID
993+
as the key vault's tenant ID. When `createMode` is set to `recover`,
994+
access policies are not required. Otherwise, access policies are required.
995995
:type access_policies:
996996
list[~azure.mgmt.keyvault.v2018_02_14.models.AccessPolicyEntry]
997997
:param vault_uri: The URI of the vault for performing operations on keys

sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2019_09_01/_key_vault_management_client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from .operations import PrivateEndpointConnectionsOperations
1818
from .operations import PrivateLinkResourcesOperations
1919
from .operations import Operations
20+
from .operations import KeysOperations
2021
from . import models
2122

2223

@@ -34,6 +35,8 @@ class KeyVaultManagementClient(SDKClient):
3435
:vartype private_link_resources: azure.mgmt.keyvault.v2019_09_01.operations.PrivateLinkResourcesOperations
3536
:ivar operations: Operations operations
3637
:vartype operations: azure.mgmt.keyvault.v2019_09_01.operations.Operations
38+
:ivar keys: Keys operations
39+
:vartype keys: azure.mgmt.keyvault.v2019_09_01.operations.KeysOperations
3740
3841
:param credentials: Credentials needed for the client to connect to Azure.
3942
:type credentials: :mod:`A msrestazure Credentials
@@ -64,3 +67,5 @@ def __init__(
6467
self._client, self.config, self._serialize, self._deserialize)
6568
self.operations = Operations(
6669
self._client, self.config, self._serialize, self._deserialize)
70+
self.keys = KeysOperations(
71+
self._client, self.config, self._serialize, self._deserialize)

sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2019_09_01/models/__init__.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,15 @@
1111

1212
try:
1313
from ._models_py3 import AccessPolicyEntry
14+
from ._models_py3 import Attributes
1415
from ._models_py3 import CheckNameAvailabilityResult
1516
from ._models_py3 import DeletedVault
1617
from ._models_py3 import DeletedVaultProperties
1718
from ._models_py3 import IPRule
19+
from ._models_py3 import Key
20+
from ._models_py3 import KeyAttributes
21+
from ._models_py3 import KeyCreateParameters
22+
from ._models_py3 import KeyProperties
1823
from ._models_py3 import LogSpecification
1924
from ._models_py3 import NetworkRuleSet
2025
from ._models_py3 import Operation
@@ -40,10 +45,15 @@
4045
from ._models_py3 import VirtualNetworkRule
4146
except (SyntaxError, ImportError):
4247
from ._models import AccessPolicyEntry
48+
from ._models import Attributes
4349
from ._models import CheckNameAvailabilityResult
4450
from ._models import DeletedVault
4551
from ._models import DeletedVaultProperties
4652
from ._models import IPRule
53+
from ._models import Key
54+
from ._models import KeyAttributes
55+
from ._models import KeyCreateParameters
56+
from ._models import KeyProperties
4757
from ._models import LogSpecification
4858
from ._models import NetworkRuleSet
4959
from ._models import Operation
@@ -68,6 +78,7 @@
6878
from ._models import VaultProperties
6979
from ._models import VirtualNetworkRule
7080
from ._paged_models import DeletedVaultPaged
81+
from ._paged_models import KeyPaged
7182
from ._paged_models import OperationPaged
7283
from ._paged_models import ResourcePaged
7384
from ._paged_models import VaultPaged
@@ -83,15 +94,24 @@
8394
PrivateEndpointServiceConnectionStatus,
8495
PrivateEndpointConnectionProvisioningState,
8596
Reason,
97+
DeletionRecoveryLevel,
98+
JsonWebKeyType,
99+
JsonWebKeyOperation,
100+
JsonWebKeyCurveName,
86101
AccessPolicyUpdateKind,
87102
)
88103

89104
__all__ = [
90105
'AccessPolicyEntry',
106+
'Attributes',
91107
'CheckNameAvailabilityResult',
92108
'DeletedVault',
93109
'DeletedVaultProperties',
94110
'IPRule',
111+
'Key',
112+
'KeyAttributes',
113+
'KeyCreateParameters',
114+
'KeyProperties',
95115
'LogSpecification',
96116
'NetworkRuleSet',
97117
'Operation',
@@ -119,6 +139,7 @@
119139
'DeletedVaultPaged',
120140
'ResourcePaged',
121141
'OperationPaged',
142+
'KeyPaged',
122143
'SkuName',
123144
'KeyPermissions',
124145
'SecretPermissions',
@@ -130,5 +151,9 @@
130151
'PrivateEndpointServiceConnectionStatus',
131152
'PrivateEndpointConnectionProvisioningState',
132153
'Reason',
154+
'DeletionRecoveryLevel',
155+
'JsonWebKeyType',
156+
'JsonWebKeyOperation',
157+
'JsonWebKeyCurveName',
133158
'AccessPolicyUpdateKind',
134159
]

sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2019_09_01/models/_key_vault_management_client_enums.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class SkuName(str, Enum):
2020

2121
class KeyPermissions(str, Enum):
2222

23+
all = "all"
2324
encrypt = "encrypt"
2425
decrypt = "decrypt"
2526
wrap_key = "wrapKey"
@@ -40,6 +41,7 @@ class KeyPermissions(str, Enum):
4041

4142
class SecretPermissions(str, Enum):
4243

44+
all = "all"
4345
get = "get"
4446
list = "list"
4547
set = "set"
@@ -52,6 +54,7 @@ class SecretPermissions(str, Enum):
5254

5355
class CertificatePermissions(str, Enum):
5456

57+
all = "all"
5558
get = "get"
5659
list = "list"
5760
delete = "delete"
@@ -72,6 +75,7 @@ class CertificatePermissions(str, Enum):
7275

7376
class StoragePermissions(str, Enum):
7477

78+
all = "all"
7579
get = "get"
7680
list = "list"
7781
delete = "delete"
@@ -130,6 +134,41 @@ class Reason(str, Enum):
130134
already_exists = "AlreadyExists"
131135

132136

137+
class DeletionRecoveryLevel(str, Enum):
138+
139+
purgeable = "Purgeable"
140+
recoverable_purgeable = "Recoverable+Purgeable"
141+
recoverable = "Recoverable"
142+
recoverable_protected_subscription = "Recoverable+ProtectedSubscription"
143+
144+
145+
class JsonWebKeyType(str, Enum):
146+
147+
ec = "EC"
148+
ec_hsm = "EC-HSM"
149+
rsa = "RSA"
150+
rsa_hsm = "RSA-HSM"
151+
152+
153+
class JsonWebKeyOperation(str, Enum):
154+
155+
encrypt = "encrypt"
156+
decrypt = "decrypt"
157+
sign = "sign"
158+
verify = "verify"
159+
wrap_key = "wrapKey"
160+
unwrap_key = "unwrapKey"
161+
import_enum = "import"
162+
163+
164+
class JsonWebKeyCurveName(str, Enum):
165+
166+
p_256 = "P-256"
167+
p_384 = "P-384"
168+
p_521 = "P-521"
169+
p_256_k = "P-256K"
170+
171+
133172
class AccessPolicyUpdateKind(str, Enum):
134173

135174
add = "add"

0 commit comments

Comments
 (0)