Skip to content

Commit

Permalink
[AutoRelease] t2-keyvault-2021-08-26-55443 (#20423)
Browse files Browse the repository at this point in the history
* CodeGen from PR 15458 in Azure/azure-rest-api-specs
Add rotation permission (#15458)

* Add rotation permission

* Update keys.json

Remove required from lifetimeActions

* Change to expiryTime

* version,CHANGELOG

* test

Co-authored-by: SDKAuto <[email protected]>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
  • Loading branch information
2 people authored and iscai-msft committed Sep 29, 2021
1 parent 667534f commit 0ca5502
Show file tree
Hide file tree
Showing 74 changed files with 3,026 additions and 2,634 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

## 9.1.0 (2021-08-26)

**Features**

- Model VirtualNetworkRule has a new parameter ignore_missing_vnet_service_endpoint
- Model VaultProperties has a new parameter hsm_pool_resource_id
- Model PrivateEndpointConnectionItem has a new parameter etag
- Model PrivateEndpointConnectionItem has a new parameter id
- Model ServiceSpecification has a new parameter metric_specifications

## 9.0.0 (2021-04-19)

**Features**
Expand Down
11 changes: 7 additions & 4 deletions sdk/keyvault/azure-mgmt-keyvault/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"autorest": "3.3.0",
"use": "@autorest/[email protected]",
"commit": "afa4f1aa31962637ee6fd722511337016a681515",
"autorest": "3.4.5",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "277fe93bafa204e9e9a8544155ff07c33c5b54f1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/keyvault/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.5 --version=3.3.0",
"autorest_command": "autorest specification/keyvault/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/[email protected] --version=3.4.5",
"readme": "specification/keyvault/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,13 @@ def keys(self):
"""Instance depends on the API version:
* 2019-09-01: :class:`KeysOperations<azure.mgmt.keyvault.v2019_09_01.operations.KeysOperations>`
* 2020-04-01-preview: :class:`KeysOperations<azure.mgmt.keyvault.v2020_04_01_preview.operations.KeysOperations>`
"""
api_version = self._get_api_version('keys')
if api_version == '2019-09-01':
from .v2019_09_01.operations import KeysOperations as OperationClass
elif api_version == '2020-04-01-preview':
from .v2020_04_01_preview.operations import KeysOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'keys'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down Expand Up @@ -243,13 +246,10 @@ def secrets(self):
"""Instance depends on the API version:
* 2020-04-01-preview: :class:`SecretsOperations<azure.mgmt.keyvault.v2020_04_01_preview.operations.SecretsOperations>`
* 2021-04-01-preview: :class:`SecretsOperations<azure.mgmt.keyvault.v2021_04_01_preview.operations.SecretsOperations>`
"""
api_version = self._get_api_version('secrets')
if api_version == '2020-04-01-preview':
from .v2020_04_01_preview.operations import SecretsOperations as OperationClass
elif api_version == '2021-04-01-preview':
from .v2021_04_01_preview.operations import SecretsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'secrets'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "9.0.0"
VERSION = "9.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,13 @@ def keys(self):
"""Instance depends on the API version:
* 2019-09-01: :class:`KeysOperations<azure.mgmt.keyvault.v2019_09_01.aio.operations.KeysOperations>`
* 2020-04-01-preview: :class:`KeysOperations<azure.mgmt.keyvault.v2020_04_01_preview.aio.operations.KeysOperations>`
"""
api_version = self._get_api_version('keys')
if api_version == '2019-09-01':
from ..v2019_09_01.aio.operations import KeysOperations as OperationClass
elif api_version == '2020-04-01-preview':
from ..v2020_04_01_preview.aio.operations import KeysOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'keys'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down Expand Up @@ -241,13 +244,10 @@ def secrets(self):
"""Instance depends on the API version:
* 2020-04-01-preview: :class:`SecretsOperations<azure.mgmt.keyvault.v2020_04_01_preview.aio.operations.SecretsOperations>`
* 2021-04-01-preview: :class:`SecretsOperations<azure.mgmt.keyvault.v2021_04_01_preview.aio.operations.SecretsOperations>`
"""
api_version = self._get_api_version('secrets')
if api_version == '2020-04-01-preview':
from ..v2020_04_01_preview.aio.operations import SecretsOperations as OperationClass
elif api_version == '2021-04-01-preview':
from ..v2021_04_01_preview.aio.operations import SecretsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'secrets'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "9.0.0"
VERSION = "9.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:

def list(
self,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.OperationListResult"]:
"""Lists all of the available Key Vault Rest API operations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def create_or_update(
resource_group_name: str,
vault_name: str,
parameters: "_models.VaultCreateOrUpdateParameters",
**kwargs
**kwargs: Any
) -> "_models.Vault":
"""Create or update a key vault in the specified subscription.
Expand Down Expand Up @@ -118,7 +118,7 @@ async def update(
resource_group_name: str,
vault_name: str,
parameters: "_models.VaultPatchParameters",
**kwargs
**kwargs: Any
) -> "_models.Vault":
"""Update a key vault in the specified subscription.
Expand Down Expand Up @@ -187,7 +187,7 @@ async def delete(
self,
resource_group_name: str,
vault_name: str,
**kwargs
**kwargs: Any
) -> None:
"""Deletes the specified Azure key vault.
Expand Down Expand Up @@ -240,7 +240,7 @@ async def get(
self,
resource_group_name: str,
vault_name: str,
**kwargs
**kwargs: Any
) -> "_models.Vault":
"""Gets the specified Azure key vault.
Expand Down Expand Up @@ -300,7 +300,7 @@ async def update_access_policy(
vault_name: str,
operation_kind: Union[str, "_models.AccessPolicyUpdateKind"],
parameters: "_models.VaultAccessPolicyParameters",
**kwargs
**kwargs: Any
) -> "_models.VaultAccessPolicyParameters":
"""Update access policies in a key vault in the specified subscription.
Expand Down Expand Up @@ -372,7 +372,7 @@ def list_by_resource_group(
self,
resource_group_name: str,
top: Optional[int] = None,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.VaultListResult"]:
"""The List operation gets information about the vaults associated with the subscription and
within the specified resource group.
Expand Down Expand Up @@ -447,7 +447,7 @@ async def get_next(next_link=None):
def list_by_subscription(
self,
top: Optional[int] = None,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.VaultListResult"]:
"""The List operation gets information about the vaults associated with the subscription.
Expand Down Expand Up @@ -517,7 +517,7 @@ async def get_next(next_link=None):

def list_deleted(
self,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.DeletedVaultListResult"]:
"""Gets information about the deleted vaults in a subscription.
Expand Down Expand Up @@ -585,7 +585,7 @@ async def get_deleted(
self,
vault_name: str,
location: str,
**kwargs
**kwargs: Any
) -> "_models.DeletedVault":
"""Gets the deleted Azure key vault.
Expand Down Expand Up @@ -643,7 +643,7 @@ async def _purge_deleted_initial(
self,
vault_name: str,
location: str,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
Expand Down Expand Up @@ -685,7 +685,7 @@ async def begin_purge_deleted(
self,
vault_name: str,
location: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Permanently deletes the specified vault. aka Purges the deleted Azure key vault.
Expand All @@ -695,8 +695,8 @@ async def begin_purge_deleted(
:type location: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
Expand Down Expand Up @@ -748,7 +748,7 @@ def get_long_running_output(pipeline_response):
def list(
self,
top: Optional[int] = None,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.ResourceListResult"]:
"""The List operation gets information about the vaults associated with the subscription.
Expand Down Expand Up @@ -821,7 +821,7 @@ async def get_next(next_link=None):
async def check_name_availability(
self,
vault_name: "_models.VaultCheckNameAvailabilityParameters",
**kwargs
**kwargs: Any
) -> "_models.CheckNameAvailabilityResult":
"""Checks that the vault name is valid and is not already in use.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ class VaultCheckNameAvailabilityParameters(msrest.serialization.Model):
:param name: Required. The vault name.
:type name: str
:ivar type: Required. The type of resource, Microsoft.KeyVault/vaults. Default value:
:ivar type: The type of resource, Microsoft.KeyVault/vaults. Has constant value:
"Microsoft.KeyVault/vaults".
:vartype type: str
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ class VaultCheckNameAvailabilityParameters(msrest.serialization.Model):
:param name: Required. The vault name.
:type name: str
:ivar type: Required. The type of resource, Microsoft.KeyVault/vaults. Default value:
:ivar type: The type of resource, Microsoft.KeyVault/vaults. Has constant value:
"Microsoft.KeyVault/vaults".
:vartype type: str
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -710,8 +710,8 @@ def begin_purge_deleted(
:type location: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be ARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either None or the result of cls(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "9.0.0"
VERSION = "9.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:

def list(
self,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.OperationListResult"]:
"""Lists all of the available Key Vault Rest API operations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def get(
resource_group_name: str,
vault_name: str,
private_endpoint_connection_name: str,
**kwargs
**kwargs: Any
) -> "_models.PrivateEndpointConnection":
"""Gets the specified private endpoint connection associated with the key vault.
Expand Down Expand Up @@ -111,7 +111,7 @@ async def put(
vault_name: str,
private_endpoint_connection_name: str,
properties: "_models.PrivateEndpointConnection",
**kwargs
**kwargs: Any
) -> "_models.PrivateEndpointConnection":
"""Updates the specified private endpoint connection associated with the key vault.
Expand Down Expand Up @@ -184,7 +184,7 @@ async def _delete_initial(
resource_group_name: str,
vault_name: str,
private_endpoint_connection_name: str,
**kwargs
**kwargs: Any
) -> Optional["_models.PrivateEndpointConnection"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.PrivateEndpointConnection"]]
error_map = {
Expand Down Expand Up @@ -240,7 +240,7 @@ async def begin_delete(
resource_group_name: str,
vault_name: str,
private_endpoint_connection_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.PrivateEndpointConnection"]:
"""Deletes the specified private endpoint connection associated with the key vault.
Expand All @@ -253,8 +253,8 @@ async def begin_delete(
:type private_endpoint_connection_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either PrivateEndpointConnection or the result of cls(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def list_by_vault(
self,
resource_group_name: str,
vault_name: str,
**kwargs
**kwargs: Any
) -> "_models.PrivateLinkResourceListResult":
"""Gets the private link resources supported for the key vault.
Expand Down
Loading

0 comments on commit 0ca5502

Please sign in to comment.