Skip to content

Commit

Permalink
CodeGen from PR 15013 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[Hub Generated] Review request for Microsoft.StorageCache to add version stable/2021-03-01 (Azure#15013)

* Address missing defaults noted by s360

* Update to remove default of array of objects that failed to validate.
  • Loading branch information
SDKAuto committed Jul 5, 2021
1 parent 680d66f commit fa94492
Show file tree
Hide file tree
Showing 11 changed files with 87 additions and 84 deletions.
11 changes: 7 additions & 4 deletions sdk/storage/azure-mgmt-storagecache/_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.6",
"commit": "e7411b54a07fdf737ac2d5557401e3a9c7e7a3fe",
"autorest": "3.4.2",
"use": [
"@autorest/python@5.8.1",
"@autorest/modelerfour@4.19.2"
],
"commit": "cada6f8e814cb7fd1b4a914005a5c01da2937cb3",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/storagecache/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.6 --version=3.3.0",
"autorest_command": "autorest specification/storagecache/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.1 --use=@autorest/modelerfour@4.19.2 --version=3.4.2",
"readme": "specification/storagecache/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(
self,
location: str,
operation_id: str,
**kwargs
**kwargs: Any
) -> "_models.AscOperation":
"""Gets the status of an asynchronous operation for the Azure HPC Cache.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:

def list(
self,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.CachesListResult"]:
"""Returns all Caches the user has access to under a subscription.
Expand Down Expand Up @@ -112,7 +112,7 @@ async def get_next(next_link=None):
def list_by_resource_group(
self,
resource_group_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.CachesListResult"]:
"""Returns all Caches the user has access to under a resource group.
Expand Down Expand Up @@ -183,7 +183,7 @@ async def _delete_initial(
self,
resource_group_name: str,
cache_name: str,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
Expand Down Expand Up @@ -227,7 +227,7 @@ async def begin_delete(
self,
resource_group_name: str,
cache_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Schedules a Cache for deletion.
Expand All @@ -238,8 +238,8 @@ async def begin_delete(
:type cache_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 None or the result of cls(response)
Expand Down Expand Up @@ -292,7 +292,7 @@ async def get(
self,
resource_group_name: str,
cache_name: str,
**kwargs
**kwargs: Any
) -> "_models.Cache":
"""Returns a Cache.
Expand Down Expand Up @@ -352,7 +352,7 @@ async def _create_or_update_initial(
resource_group_name: str,
cache_name: str,
cache: Optional["_models.Cache"] = None,
**kwargs
**kwargs: Any
) -> Optional["_models.Cache"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.Cache"]]
error_map = {
Expand Down Expand Up @@ -413,7 +413,7 @@ async def begin_create_or_update(
resource_group_name: str,
cache_name: str,
cache: Optional["_models.Cache"] = None,
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.Cache"]:
"""Create or update a Cache.
Expand All @@ -427,8 +427,8 @@ async def begin_create_or_update(
:type cache: ~storage_cache_management_client.models.Cache
: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 Cache or the result of cls(response)
Expand Down Expand Up @@ -486,7 +486,7 @@ async def update(
resource_group_name: str,
cache_name: str,
cache: Optional["_models.Cache"] = None,
**kwargs
**kwargs: Any
) -> "_models.Cache":
"""Update a Cache instance.
Expand Down Expand Up @@ -556,7 +556,7 @@ async def _debug_info_initial(
self,
resource_group_name: str,
cache_name: str,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
Expand Down Expand Up @@ -600,7 +600,7 @@ async def begin_debug_info(
self,
resource_group_name: str,
cache_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Tells a Cache to write generate debug info for support to process.
Expand All @@ -611,8 +611,8 @@ async def begin_debug_info(
:type cache_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 None or the result of cls(response)
Expand Down Expand Up @@ -665,7 +665,7 @@ async def _flush_initial(
self,
resource_group_name: str,
cache_name: str,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
Expand Down Expand Up @@ -709,7 +709,7 @@ async def begin_flush(
self,
resource_group_name: str,
cache_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will
see errors returned until the flush is complete.
Expand All @@ -721,8 +721,8 @@ async def begin_flush(
:type cache_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 None or the result of cls(response)
Expand Down Expand Up @@ -775,7 +775,7 @@ async def _start_initial(
self,
resource_group_name: str,
cache_name: str,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
Expand Down Expand Up @@ -819,7 +819,7 @@ async def begin_start(
self,
resource_group_name: str,
cache_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Tells a Stopped state Cache to transition to Active state.
Expand All @@ -830,8 +830,8 @@ async def begin_start(
:type cache_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 None or the result of cls(response)
Expand Down Expand Up @@ -884,7 +884,7 @@ async def _stop_initial(
self,
resource_group_name: str,
cache_name: str,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
Expand Down Expand Up @@ -928,7 +928,7 @@ async def begin_stop(
self,
resource_group_name: str,
cache_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Tells an Active Cache to transition to Stopped state.
Expand All @@ -939,8 +939,8 @@ async def begin_stop(
:type cache_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 None or the result of cls(response)
Expand Down Expand Up @@ -993,7 +993,7 @@ async def _upgrade_firmware_initial(
self,
resource_group_name: str,
cache_name: str,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
Expand Down Expand Up @@ -1037,7 +1037,7 @@ async def begin_upgrade_firmware(
self,
resource_group_name: str,
cache_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no
effect.
Expand All @@ -1049,8 +1049,8 @@ async def begin_upgrade_firmware(
:type cache_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 None or the result of cls(response)
Expand Down
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.ApiOperationListResult"]:
"""Lists all of the available Resource Provider operations.
Expand Down
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.ResourceSkusResult"]:
"""Get the list of StorageCache.Cache SKUs available to this subscription.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def _dns_refresh_initial(
resource_group_name: str,
cache_name: str,
storage_target_name: str,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
Expand Down Expand Up @@ -94,7 +94,7 @@ async def begin_dns_refresh(
resource_group_name: str,
cache_name: str,
storage_target_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Tells a storage target to refresh its DNS information.
Expand All @@ -107,8 +107,8 @@ async def begin_dns_refresh(
:type storage_target_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 None or the result of cls(response)
Expand Down Expand Up @@ -163,7 +163,7 @@ def list_by_cache(
self,
resource_group_name: str,
cache_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.StorageTargetsResult"]:
"""Returns a list of Storage Targets for the specified Cache.
Expand Down Expand Up @@ -239,7 +239,7 @@ async def _delete_initial(
resource_group_name: str,
cache_name: str,
storage_target_name: str,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
Expand Down Expand Up @@ -285,7 +285,7 @@ async def begin_delete(
resource_group_name: str,
cache_name: str,
storage_target_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache
is down or unhealthy, the actual removal of the Storage Target may be delayed until the Cache
Expand All @@ -301,8 +301,8 @@ async def begin_delete(
:type storage_target_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 None or the result of cls(response)
Expand Down Expand Up @@ -358,7 +358,7 @@ async def get(
resource_group_name: str,
cache_name: str,
storage_target_name: str,
**kwargs
**kwargs: Any
) -> "_models.StorageTarget":
"""Returns a Storage Target from a Cache.
Expand Down Expand Up @@ -422,7 +422,7 @@ async def _create_or_update_initial(
cache_name: str,
storage_target_name: str,
storagetarget: Optional["_models.StorageTarget"] = None,
**kwargs
**kwargs: Any
) -> Optional["_models.StorageTarget"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.StorageTarget"]]
error_map = {
Expand Down Expand Up @@ -485,7 +485,7 @@ async def begin_create_or_update(
cache_name: str,
storage_target_name: str,
storagetarget: Optional["_models.StorageTarget"] = None,
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.StorageTarget"]:
"""Create or update a Storage Target. This operation is allowed at any time, but if the Cache is
down or unhealthy, the actual creation/modification of the Storage Target may be delayed until
Expand All @@ -502,8 +502,8 @@ async def begin_create_or_update(
:type storagetarget: ~storage_cache_management_client.models.StorageTarget
: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 StorageTarget or the result of cls(response)
Expand Down
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.UsageModelsResult"]:
"""Get the list of Cache Usage Models available to this subscription.
Expand Down
Loading

0 comments on commit fa94492

Please sign in to comment.