Skip to content

Commit 3844924

Browse files
Azure CLI BotSDKAuto
Azure CLI Bot
and
SDKAuto
authored
[AutoRelease] t2-keyvault-2021-08-26-55443 (#20423)
* 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>
1 parent 009ee3a commit 3844924

File tree

74 files changed

+3026
-2634
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+3026
-2634
lines changed

sdk/keyvault/azure-mgmt-keyvault/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Release History
22

3+
## 9.1.0 (2021-08-26)
4+
5+
**Features**
6+
7+
- Model VirtualNetworkRule has a new parameter ignore_missing_vnet_service_endpoint
8+
- Model VaultProperties has a new parameter hsm_pool_resource_id
9+
- Model PrivateEndpointConnectionItem has a new parameter etag
10+
- Model PrivateEndpointConnectionItem has a new parameter id
11+
- Model ServiceSpecification has a new parameter metric_specifications
12+
313
## 9.0.0 (2021-04-19)
414

515
**Features**
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"autorest": "3.3.0",
3-
"use": "@autorest/[email protected]",
4-
"commit": "afa4f1aa31962637ee6fd722511337016a681515",
2+
"autorest": "3.4.5",
3+
"use": [
4+
"@autorest/[email protected]",
5+
"@autorest/[email protected]"
6+
],
7+
"commit": "277fe93bafa204e9e9a8544155ff07c33c5b54f1",
58
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6-
"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",
9+
"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",
710
"readme": "specification/keyvault/resource-manager/readme.md"
811
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,13 @@ def keys(self):
119119
"""Instance depends on the API version:
120120
121121
* 2019-09-01: :class:`KeysOperations<azure.mgmt.keyvault.v2019_09_01.operations.KeysOperations>`
122+
* 2020-04-01-preview: :class:`KeysOperations<azure.mgmt.keyvault.v2020_04_01_preview.operations.KeysOperations>`
122123
"""
123124
api_version = self._get_api_version('keys')
124125
if api_version == '2019-09-01':
125126
from .v2019_09_01.operations import KeysOperations as OperationClass
127+
elif api_version == '2020-04-01-preview':
128+
from .v2020_04_01_preview.operations import KeysOperations as OperationClass
126129
else:
127130
raise ValueError("API version {} does not have operation group 'keys'".format(api_version))
128131
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -243,13 +246,10 @@ def secrets(self):
243246
"""Instance depends on the API version:
244247
245248
* 2020-04-01-preview: :class:`SecretsOperations<azure.mgmt.keyvault.v2020_04_01_preview.operations.SecretsOperations>`
246-
* 2021-04-01-preview: :class:`SecretsOperations<azure.mgmt.keyvault.v2021_04_01_preview.operations.SecretsOperations>`
247249
"""
248250
api_version = self._get_api_version('secrets')
249251
if api_version == '2020-04-01-preview':
250252
from .v2020_04_01_preview.operations import SecretsOperations as OperationClass
251-
elif api_version == '2021-04-01-preview':
252-
from .v2021_04_01_preview.operations import SecretsOperations as OperationClass
253253
else:
254254
raise ValueError("API version {} does not have operation group 'secrets'".format(api_version))
255255
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "9.0.0"
8+
VERSION = "9.1.0"

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,13 @@ def keys(self):
117117
"""Instance depends on the API version:
118118
119119
* 2019-09-01: :class:`KeysOperations<azure.mgmt.keyvault.v2019_09_01.aio.operations.KeysOperations>`
120+
* 2020-04-01-preview: :class:`KeysOperations<azure.mgmt.keyvault.v2020_04_01_preview.aio.operations.KeysOperations>`
120121
"""
121122
api_version = self._get_api_version('keys')
122123
if api_version == '2019-09-01':
123124
from ..v2019_09_01.aio.operations import KeysOperations as OperationClass
125+
elif api_version == '2020-04-01-preview':
126+
from ..v2020_04_01_preview.aio.operations import KeysOperations as OperationClass
124127
else:
125128
raise ValueError("API version {} does not have operation group 'keys'".format(api_version))
126129
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -241,13 +244,10 @@ def secrets(self):
241244
"""Instance depends on the API version:
242245
243246
* 2020-04-01-preview: :class:`SecretsOperations<azure.mgmt.keyvault.v2020_04_01_preview.aio.operations.SecretsOperations>`
244-
* 2021-04-01-preview: :class:`SecretsOperations<azure.mgmt.keyvault.v2021_04_01_preview.aio.operations.SecretsOperations>`
245247
"""
246248
api_version = self._get_api_version('secrets')
247249
if api_version == '2020-04-01-preview':
248250
from ..v2020_04_01_preview.aio.operations import SecretsOperations as OperationClass
249-
elif api_version == '2021-04-01-preview':
250-
from ..v2021_04_01_preview.aio.operations import SecretsOperations as OperationClass
251251
else:
252252
raise ValueError("API version {} does not have operation group 'secrets'".format(api_version))
253253
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2016_10_01/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "9.0.0"
9+
VERSION = "9.1.0"

sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2016_10_01/aio/operations/_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:
4343

4444
def list(
4545
self,
46-
**kwargs
46+
**kwargs: Any
4747
) -> AsyncIterable["_models.OperationListResult"]:
4848
"""Lists all of the available Key Vault Rest API operations.
4949

sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2016_10_01/aio/operations/_vaults_operations.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async def create_or_update(
4848
resource_group_name: str,
4949
vault_name: str,
5050
parameters: "_models.VaultCreateOrUpdateParameters",
51-
**kwargs
51+
**kwargs: Any
5252
) -> "_models.Vault":
5353
"""Create or update a key vault in the specified subscription.
5454
@@ -118,7 +118,7 @@ async def update(
118118
resource_group_name: str,
119119
vault_name: str,
120120
parameters: "_models.VaultPatchParameters",
121-
**kwargs
121+
**kwargs: Any
122122
) -> "_models.Vault":
123123
"""Update a key vault in the specified subscription.
124124
@@ -187,7 +187,7 @@ async def delete(
187187
self,
188188
resource_group_name: str,
189189
vault_name: str,
190-
**kwargs
190+
**kwargs: Any
191191
) -> None:
192192
"""Deletes the specified Azure key vault.
193193
@@ -240,7 +240,7 @@ async def get(
240240
self,
241241
resource_group_name: str,
242242
vault_name: str,
243-
**kwargs
243+
**kwargs: Any
244244
) -> "_models.Vault":
245245
"""Gets the specified Azure key vault.
246246
@@ -300,7 +300,7 @@ async def update_access_policy(
300300
vault_name: str,
301301
operation_kind: Union[str, "_models.AccessPolicyUpdateKind"],
302302
parameters: "_models.VaultAccessPolicyParameters",
303-
**kwargs
303+
**kwargs: Any
304304
) -> "_models.VaultAccessPolicyParameters":
305305
"""Update access policies in a key vault in the specified subscription.
306306
@@ -372,7 +372,7 @@ def list_by_resource_group(
372372
self,
373373
resource_group_name: str,
374374
top: Optional[int] = None,
375-
**kwargs
375+
**kwargs: Any
376376
) -> AsyncIterable["_models.VaultListResult"]:
377377
"""The List operation gets information about the vaults associated with the subscription and
378378
within the specified resource group.
@@ -447,7 +447,7 @@ async def get_next(next_link=None):
447447
def list_by_subscription(
448448
self,
449449
top: Optional[int] = None,
450-
**kwargs
450+
**kwargs: Any
451451
) -> AsyncIterable["_models.VaultListResult"]:
452452
"""The List operation gets information about the vaults associated with the subscription.
453453
@@ -517,7 +517,7 @@ async def get_next(next_link=None):
517517

518518
def list_deleted(
519519
self,
520-
**kwargs
520+
**kwargs: Any
521521
) -> AsyncIterable["_models.DeletedVaultListResult"]:
522522
"""Gets information about the deleted vaults in a subscription.
523523
@@ -585,7 +585,7 @@ async def get_deleted(
585585
self,
586586
vault_name: str,
587587
location: str,
588-
**kwargs
588+
**kwargs: Any
589589
) -> "_models.DeletedVault":
590590
"""Gets the deleted Azure key vault.
591591
@@ -643,7 +643,7 @@ async def _purge_deleted_initial(
643643
self,
644644
vault_name: str,
645645
location: str,
646-
**kwargs
646+
**kwargs: Any
647647
) -> None:
648648
cls = kwargs.pop('cls', None) # type: ClsType[None]
649649
error_map = {
@@ -685,7 +685,7 @@ async def begin_purge_deleted(
685685
self,
686686
vault_name: str,
687687
location: str,
688-
**kwargs
688+
**kwargs: Any
689689
) -> AsyncLROPoller[None]:
690690
"""Permanently deletes the specified vault. aka Purges the deleted Azure key vault.
691691
@@ -695,8 +695,8 @@ async def begin_purge_deleted(
695695
:type location: str
696696
:keyword callable cls: A custom type or function that will be passed the direct response
697697
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
698-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
699-
False for no polling, or your own initialized polling object for a personal polling strategy.
698+
:keyword polling: By default, your polling method will be AsyncARMPolling.
699+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
700700
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
701701
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
702702
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
@@ -748,7 +748,7 @@ def get_long_running_output(pipeline_response):
748748
def list(
749749
self,
750750
top: Optional[int] = None,
751-
**kwargs
751+
**kwargs: Any
752752
) -> AsyncIterable["_models.ResourceListResult"]:
753753
"""The List operation gets information about the vaults associated with the subscription.
754754
@@ -821,7 +821,7 @@ async def get_next(next_link=None):
821821
async def check_name_availability(
822822
self,
823823
vault_name: "_models.VaultCheckNameAvailabilityParameters",
824-
**kwargs
824+
**kwargs: Any
825825
) -> "_models.CheckNameAvailabilityResult":
826826
"""Checks that the vault name is valid and is not already in use.
827827

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ class VaultCheckNameAvailabilityParameters(msrest.serialization.Model):
587587
588588
:param name: Required. The vault name.
589589
:type name: str
590-
:ivar type: Required. The type of resource, Microsoft.KeyVault/vaults. Default value:
590+
:ivar type: The type of resource, Microsoft.KeyVault/vaults. Has constant value:
591591
"Microsoft.KeyVault/vaults".
592592
:vartype type: str
593593
"""

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ class VaultCheckNameAvailabilityParameters(msrest.serialization.Model):
642642
643643
:param name: Required. The vault name.
644644
:type name: str
645-
:ivar type: Required. The type of resource, Microsoft.KeyVault/vaults. Default value:
645+
:ivar type: The type of resource, Microsoft.KeyVault/vaults. Has constant value:
646646
"Microsoft.KeyVault/vaults".
647647
:vartype type: str
648648
"""

sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2016_10_01/operations/_vaults_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,8 +710,8 @@ def begin_purge_deleted(
710710
:type location: str
711711
:keyword callable cls: A custom type or function that will be passed the direct response
712712
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
713-
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
714-
False for no polling, or your own initialized polling object for a personal polling strategy.
713+
:keyword polling: By default, your polling method will be ARMPolling.
714+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
715715
:paramtype polling: bool or ~azure.core.polling.PollingMethod
716716
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
717717
:return: An instance of LROPoller that returns either None or the result of cls(response)

sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2018_02_14/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "9.0.0"
9+
VERSION = "9.1.0"

sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2018_02_14/aio/operations/_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:
4343

4444
def list(
4545
self,
46-
**kwargs
46+
**kwargs: Any
4747
) -> AsyncIterable["_models.OperationListResult"]:
4848
"""Lists all of the available Key Vault Rest API operations.
4949

sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2018_02_14/aio/operations/_private_endpoint_connections_operations.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async def get(
4747
resource_group_name: str,
4848
vault_name: str,
4949
private_endpoint_connection_name: str,
50-
**kwargs
50+
**kwargs: Any
5151
) -> "_models.PrivateEndpointConnection":
5252
"""Gets the specified private endpoint connection associated with the key vault.
5353
@@ -111,7 +111,7 @@ async def put(
111111
vault_name: str,
112112
private_endpoint_connection_name: str,
113113
properties: "_models.PrivateEndpointConnection",
114-
**kwargs
114+
**kwargs: Any
115115
) -> "_models.PrivateEndpointConnection":
116116
"""Updates the specified private endpoint connection associated with the key vault.
117117
@@ -184,7 +184,7 @@ async def _delete_initial(
184184
resource_group_name: str,
185185
vault_name: str,
186186
private_endpoint_connection_name: str,
187-
**kwargs
187+
**kwargs: Any
188188
) -> Optional["_models.PrivateEndpointConnection"]:
189189
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.PrivateEndpointConnection"]]
190190
error_map = {
@@ -240,7 +240,7 @@ async def begin_delete(
240240
resource_group_name: str,
241241
vault_name: str,
242242
private_endpoint_connection_name: str,
243-
**kwargs
243+
**kwargs: Any
244244
) -> AsyncLROPoller["_models.PrivateEndpointConnection"]:
245245
"""Deletes the specified private endpoint connection associated with the key vault.
246246
@@ -253,8 +253,8 @@ async def begin_delete(
253253
:type private_endpoint_connection_name: str
254254
:keyword callable cls: A custom type or function that will be passed the direct response
255255
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
256-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
257-
False for no polling, or your own initialized polling object for a personal polling strategy.
256+
:keyword polling: By default, your polling method will be AsyncARMPolling.
257+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
258258
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
259259
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
260260
:return: An instance of AsyncLROPoller that returns either PrivateEndpointConnection or the result of cls(response)

sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2018_02_14/aio/operations/_private_link_resources_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async def list_by_vault(
4444
self,
4545
resource_group_name: str,
4646
vault_name: str,
47-
**kwargs
47+
**kwargs: Any
4848
) -> "_models.PrivateLinkResourceListResult":
4949
"""Gets the private link resources supported for the key vault.
5050

0 commit comments

Comments
 (0)