Skip to content

Commit

Permalink
Track2 keyvault (Azure#14103)
Browse files Browse the repository at this point in the history
* Generated from 692005a0f4e7bf6408bf20193ec16166b80b4a38

* changelog and version

* live test recording

* test settings

Co-authored-by: SDK Automation <[email protected]>
  • Loading branch information
msyyc and SDK Automation authored Oct 10, 2020
1 parent dad3cbe commit ff54d72
Show file tree
Hide file tree
Showing 17 changed files with 12,842 additions and 252 deletions.
10 changes: 10 additions & 0 deletions sdk/keyvault/azure-mgmt-keyvault/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Release History

## 8.0.0 (2020-09-29)

**Features**

- Model ManagedHsmProperties has a new parameter hsm_uri

**Breaking changes**

- Model ManagedHsmProperties no longer has parameter hsm_pool_uri

## 7.0.0 (2020-09-15)

- Release as a stable version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "7.0.0"
VERSION = "8.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.vaults = VaultsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.vaults = VaultsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.vaults = VaultsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.vaults = VaultsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.vaults = VaultsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.vaults = VaultsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.vaults = VaultsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.vaults = VaultsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async def _create_or_update_initial(
url = self._create_or_update_initial.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'name': self._serialize.url("name", name, 'str', pattern=r'^[a-zA-Z0-9]{3,24}$'),
'name': self._serialize.url("name", name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
Expand Down Expand Up @@ -186,7 +186,7 @@ async def _update_initial(
url = self._update_initial.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'name': self._serialize.url("name", name, 'str', pattern=r'^[a-zA-Z0-9]{3,24}$'),
'name': self._serialize.url("name", name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,8 @@ class ManagedHsmProperties(msrest.serialization.Model):
:param initial_admin_object_ids: Array of initial administrators object ids for this managed
hsm pool.
:type initial_admin_object_ids: list[str]
:param hsm_pool_uri: The URI of the managed hsm pool for performing operations on keys.
:type hsm_pool_uri: str
:param hsm_uri: The URI of the managed hsm pool for performing operations on keys.
:type hsm_uri: str
:param enable_soft_delete: Property to specify whether the 'soft delete' functionality is
enabled for this managed HSM pool. If it's not set to any value(true or false) when creating
new managed HSM pool, it will be set to true by default. Once set to true, it cannot be
Expand Down Expand Up @@ -496,7 +496,7 @@ class ManagedHsmProperties(msrest.serialization.Model):
_attribute_map = {
'tenant_id': {'key': 'tenantId', 'type': 'str'},
'initial_admin_object_ids': {'key': 'initialAdminObjectIds', 'type': '[str]'},
'hsm_pool_uri': {'key': 'hsmPoolUri', 'type': 'str'},
'hsm_uri': {'key': 'hsmUri', 'type': 'str'},
'enable_soft_delete': {'key': 'enableSoftDelete', 'type': 'bool'},
'soft_delete_retention_in_days': {'key': 'softDeleteRetentionInDays', 'type': 'int'},
'enable_purge_protection': {'key': 'enablePurgeProtection', 'type': 'bool'},
Expand All @@ -512,7 +512,7 @@ def __init__(
super(ManagedHsmProperties, self).__init__(**kwargs)
self.tenant_id = kwargs.get('tenant_id', None)
self.initial_admin_object_ids = kwargs.get('initial_admin_object_ids', None)
self.hsm_pool_uri = kwargs.get('hsm_pool_uri', None)
self.hsm_uri = kwargs.get('hsm_uri', None)
self.enable_soft_delete = kwargs.get('enable_soft_delete', True)
self.soft_delete_retention_in_days = kwargs.get('soft_delete_retention_in_days', 90)
self.enable_purge_protection = kwargs.get('enable_purge_protection', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -496,8 +496,8 @@ class ManagedHsmProperties(msrest.serialization.Model):
:param initial_admin_object_ids: Array of initial administrators object ids for this managed
hsm pool.
:type initial_admin_object_ids: list[str]
:param hsm_pool_uri: The URI of the managed hsm pool for performing operations on keys.
:type hsm_pool_uri: str
:param hsm_uri: The URI of the managed hsm pool for performing operations on keys.
:type hsm_uri: str
:param enable_soft_delete: Property to specify whether the 'soft delete' functionality is
enabled for this managed HSM pool. If it's not set to any value(true or false) when creating
new managed HSM pool, it will be set to true by default. Once set to true, it cannot be
Expand Down Expand Up @@ -531,7 +531,7 @@ class ManagedHsmProperties(msrest.serialization.Model):
_attribute_map = {
'tenant_id': {'key': 'tenantId', 'type': 'str'},
'initial_admin_object_ids': {'key': 'initialAdminObjectIds', 'type': '[str]'},
'hsm_pool_uri': {'key': 'hsmPoolUri', 'type': 'str'},
'hsm_uri': {'key': 'hsmUri', 'type': 'str'},
'enable_soft_delete': {'key': 'enableSoftDelete', 'type': 'bool'},
'soft_delete_retention_in_days': {'key': 'softDeleteRetentionInDays', 'type': 'int'},
'enable_purge_protection': {'key': 'enablePurgeProtection', 'type': 'bool'},
Expand All @@ -545,7 +545,7 @@ def __init__(
*,
tenant_id: Optional[str] = None,
initial_admin_object_ids: Optional[List[str]] = None,
hsm_pool_uri: Optional[str] = None,
hsm_uri: Optional[str] = None,
enable_soft_delete: Optional[bool] = True,
soft_delete_retention_in_days: Optional[int] = 90,
enable_purge_protection: Optional[bool] = None,
Expand All @@ -555,7 +555,7 @@ def __init__(
super(ManagedHsmProperties, self).__init__(**kwargs)
self.tenant_id = tenant_id
self.initial_admin_object_ids = initial_admin_object_ids
self.hsm_pool_uri = hsm_pool_uri
self.hsm_uri = hsm_uri
self.enable_soft_delete = enable_soft_delete
self.soft_delete_retention_in_days = soft_delete_retention_in_days
self.enable_purge_protection = enable_purge_protection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _create_or_update_initial(
url = self._create_or_update_initial.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'name': self._serialize.url("name", name, 'str', pattern=r'^[a-zA-Z0-9]{3,24}$'),
'name': self._serialize.url("name", name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
Expand Down Expand Up @@ -193,7 +193,7 @@ def _update_initial(
url = self._update_initial.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'name': self._serialize.url("name", name, 'str', pattern=r'^[a-zA-Z0-9]{3,24}$'),
'name': self._serialize.url("name", name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
Expand Down
Loading

0 comments on commit ff54d72

Please sign in to comment.