Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR track2_azure-mgmt-keyvault] Add missing property etag for 2020-04-01-preview version. #5612

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/python@5.6.5",
"commit": "afa4f1aa31962637ee6fd722511337016a681515",
"autorest": "3.4.2",
"use": [
"@autorest/python@5.8.0",
"@autorest/modelerfour@4.19.1"
],
"commit": "9e2b262477b672dc178e5127455bd667fef31514",
"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.0 --use=@autorest/modelerfour@4.19.1 --version=3.4.2",
"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
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
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 = "1.0.0b1"
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 @@ -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 = "1.0.0b1"
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