From 00af0cbc5966b925968114f8a67acf95f58e0fec Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 30 Jun 2021 01:21:56 +0000 Subject: [PATCH] CodeGen from PR 14992 in Azure/azure-rest-api-specs moving swagger to stable (#14992) * Base Swagger version as per guideline * Removing preview from directory version * changing version name in all files * updating readme and go read me * supressing ingestion keyin read me --- sdk/elastic/azure-mgmt-elastic/_meta.json | 11 +++++---- .../operations/_deployment_info_operations.py | 2 +- .../_monitored_resources_operations.py | 2 +- .../aio/operations/_monitors_operations.py | 24 +++++++++---------- .../elastic/aio/operations/_operations.py | 2 +- .../aio/operations/_tag_rules_operations.py | 14 +++++------ .../operations/_vm_collection_operations.py | 2 +- .../aio/operations/_vm_host_operations.py | 2 +- .../operations/_vm_ingestion_operations.py | 2 +- .../operations/_monitors_operations.py | 8 +++---- .../operations/_tag_rules_operations.py | 4 ++-- 11 files changed, 38 insertions(+), 35 deletions(-) diff --git a/sdk/elastic/azure-mgmt-elastic/_meta.json b/sdk/elastic/azure-mgmt-elastic/_meta.json index f5e5c4b97911..cb54dca598e3 100644 --- a/sdk/elastic/azure-mgmt-elastic/_meta.json +++ b/sdk/elastic/azure-mgmt-elastic/_meta.json @@ -1,8 +1,11 @@ { - "autorest": "3.3.0", - "use": "@autorest/python@5.6.6", - "commit": "8cd148e3c96c3b13aab719dc12869334bc41312a", + "autorest": "3.4.2", + "use": [ + "@autorest/python@5.8.1", + "@autorest/modelerfour@4.19.2" + ], + "commit": "eee9cbba738edde2ea48ea0c826f84619e2561df", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest_command": "autorest specification/elastic/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/elastic/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/elastic/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_deployment_info_operations.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_deployment_info_operations.py index 78c54beff41d..ee5f56d06149 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_deployment_info_operations.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_deployment_info_operations.py @@ -44,7 +44,7 @@ async def list( self, resource_group_name: str, monitor_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentInfoResponse": """Fetch information regarding Elastic cloud deployment corresponding to the Elastic monitor resource. diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_monitored_resources_operations.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_monitored_resources_operations.py index 20b5be0b1ff3..315d96fa9f89 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_monitored_resources_operations.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_monitored_resources_operations.py @@ -45,7 +45,7 @@ def list( self, resource_group_name: str, monitor_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.MonitoredResourceListResponse"]: """List the resources currently being monitored by the Elastic monitor resource. diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_monitors_operations.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_monitors_operations.py index d2ebf0d4c7a4..45e38ca1ec1a 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_monitors_operations.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_monitors_operations.py @@ -45,7 +45,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ElasticMonitorResourceListResponse"]: """List all monitors under the specified subscription. @@ -115,7 +115,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ElasticMonitorResourceListResponse"]: """List all monitors under the specified resource group. @@ -190,7 +190,7 @@ async def get( self, resource_group_name: str, monitor_name: str, - **kwargs + **kwargs: Any ) -> "_models.ElasticMonitorResource": """Get the properties of a specific monitor resource. @@ -253,7 +253,7 @@ async def _create_initial( resource_group_name: str, monitor_name: str, body: Optional["_models.ElasticMonitorResource"] = None, - **kwargs + **kwargs: Any ) -> "_models.ElasticMonitorResource": cls = kwargs.pop('cls', None) # type: ClsType["_models.ElasticMonitorResource"] error_map = { @@ -314,7 +314,7 @@ async def begin_create( resource_group_name: str, monitor_name: str, body: Optional["_models.ElasticMonitorResource"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ElasticMonitorResource"]: """Create a monitor resource. @@ -329,8 +329,8 @@ async def begin_create( :type body: ~azure.mgmt.elastic.models.ElasticMonitorResource :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 ElasticMonitorResource or the result of cls(response) @@ -388,7 +388,7 @@ async def update( resource_group_name: str, monitor_name: str, body: Optional["_models.ElasticMonitorResourceUpdateParameters"] = None, - **kwargs + **kwargs: Any ) -> "_models.ElasticMonitorResource": """Update a monitor resource. @@ -460,7 +460,7 @@ async def _delete_initial( self, resource_group_name: str, monitor_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -505,7 +505,7 @@ async def begin_delete( self, resource_group_name: str, monitor_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a monitor resource. @@ -518,8 +518,8 @@ async def begin_delete( :type monitor_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) diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_operations.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_operations.py index 38dd94e32f2f..61343f23858f 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_operations.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """List all operations provided by Microsoft.Elastic. diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_tag_rules_operations.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_tag_rules_operations.py index 62795c2a9e03..095366c9d01c 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_tag_rules_operations.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_tag_rules_operations.py @@ -47,7 +47,7 @@ def list( self, resource_group_name: str, monitor_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.MonitoringTagRulesListResponse"]: """List the tag rules for a given monitor resource. @@ -127,7 +127,7 @@ async def create_or_update( monitor_name: str, rule_set_name: str, body: Optional["_models.MonitoringTagRules"] = None, - **kwargs + **kwargs: Any ) -> "_models.MonitoringTagRules": """Create or update a tag rule set for a given monitor resource. @@ -203,7 +203,7 @@ async def get( resource_group_name: str, monitor_name: str, rule_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.MonitoringTagRules": """Get a tag rule set for a given monitor resource. @@ -269,7 +269,7 @@ async def _delete_initial( resource_group_name: str, monitor_name: str, rule_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -316,7 +316,7 @@ async def begin_delete( resource_group_name: str, monitor_name: str, rule_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a tag rule set for a given monitor resource. @@ -331,8 +331,8 @@ async def begin_delete( :type rule_set_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) diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_vm_collection_operations.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_vm_collection_operations.py index 97a6794a02b8..54453987b998 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_vm_collection_operations.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_vm_collection_operations.py @@ -45,7 +45,7 @@ async def update( resource_group_name: str, monitor_name: str, body: Optional["_models.VMCollectionUpdate"] = None, - **kwargs + **kwargs: Any ) -> None: """Update the vm details that will be monitored by the Elastic monitor resource. diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_vm_host_operations.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_vm_host_operations.py index 10df5c83f28c..6186989ef85f 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_vm_host_operations.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_vm_host_operations.py @@ -45,7 +45,7 @@ def list( self, resource_group_name: str, monitor_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VMHostListResponse"]: """List the vm resources currently being monitored by the Elastic monitor resource. diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_vm_ingestion_operations.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_vm_ingestion_operations.py index 2f7ec2e495e3..23afbf33aad6 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_vm_ingestion_operations.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_vm_ingestion_operations.py @@ -44,7 +44,7 @@ async def details( self, resource_group_name: str, monitor_name: str, - **kwargs + **kwargs: Any ) -> "_models.VMIngestionDetailsResponse": """List the vm ingestion details that will be monitored by the Elastic monitor resource. diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/operations/_monitors_operations.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/operations/_monitors_operations.py index 9fd2b7f7970a..eade24274ac5 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/operations/_monitors_operations.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/operations/_monitors_operations.py @@ -338,8 +338,8 @@ def begin_create( :type body: ~azure.mgmt.elastic.models.ElasticMonitorResource :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 ElasticMonitorResource or the result of cls(response) @@ -530,8 +530,8 @@ def begin_delete( :type monitor_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 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) diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/operations/_tag_rules_operations.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/operations/_tag_rules_operations.py index af5d487bf5fa..3e88f65bac65 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/operations/_tag_rules_operations.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/operations/_tag_rules_operations.py @@ -340,8 +340,8 @@ def begin_delete( :type rule_set_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 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)