From 8248780a1bfc26850c90b8207c427eb0b3d24e64 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Wed, 29 Jul 2020 17:14:37 -0400 Subject: [PATCH 1/7] make is_lro and is_paging a property for operation models --- autorest/codegen/models/lro_operation.py | 4 ++++ autorest/codegen/models/lro_paging_operation.py | 9 ++++++++- autorest/codegen/models/operation.py | 8 ++++++++ autorest/codegen/models/paging_operation.py | 4 ++++ .../codegen/serializers/metadata_serializer.py | 8 -------- .../serializers/operation_group_serializer.py | 8 -------- autorest/codegen/templates/metadata.json.jinja2 | 16 ++++++++-------- .../templates/operations_container.py.jinja2 | 6 +++--- .../operations_container_mixin.py.jinja2 | 6 +++--- 9 files changed, 38 insertions(+), 31 deletions(-) diff --git a/autorest/codegen/models/lro_operation.py b/autorest/codegen/models/lro_operation.py index f7298fd3141..ba8fa81341f 100644 --- a/autorest/codegen/models/lro_operation.py +++ b/autorest/codegen/models/lro_operation.py @@ -109,3 +109,7 @@ def imports(self, code_model, async_mode: bool) -> FileImport: else: file_import.add_from_import("azure.core.polling.base_polling", "LROBasePolling", ImportType.AZURECORE) return file_import + + @property + def is_lro(self): + return True diff --git a/autorest/codegen/models/lro_paging_operation.py b/autorest/codegen/models/lro_paging_operation.py index ae9996491cf..5c066097ba7 100644 --- a/autorest/codegen/models/lro_paging_operation.py +++ b/autorest/codegen/models/lro_paging_operation.py @@ -55,4 +55,11 @@ def imports(self, code_model, async_mode: bool) -> FileImport: file_import = lro_imports file_import.merge(paging_imports) return file_import - \ No newline at end of file + + @property + def is_lro(self): + return True + + @property + def is_paging(self): + return True diff --git a/autorest/codegen/models/operation.py b/autorest/codegen/models/operation.py index 652e69ef423..7ead4a4176d 100644 --- a/autorest/codegen/models/operation.py +++ b/autorest/codegen/models/operation.py @@ -306,6 +306,14 @@ def imports(self, code_model, async_mode: bool) -> FileImport: return file_import + @property + def is_lro(self): + return False + + @property + def is_paging(self): + return False + @classmethod def from_yaml(cls, yaml_data: Dict[str, Any]) -> "Operation": name = yaml_data["language"]["python"]["name"] diff --git a/autorest/codegen/models/paging_operation.py b/autorest/codegen/models/paging_operation.py index 3522783ef63..12a5b1c56d8 100644 --- a/autorest/codegen/models/paging_operation.py +++ b/autorest/codegen/models/paging_operation.py @@ -113,6 +113,10 @@ def success_status_code(self) -> List[Union[str, int]]: return [200] return super(PagingOperation, self).success_status_code + @property + def is_paging(self): + return True + def imports(self, code_model, async_mode: bool) -> FileImport: file_import = super(PagingOperation, self).imports(code_model, async_mode) diff --git a/autorest/codegen/serializers/metadata_serializer.py b/autorest/codegen/serializers/metadata_serializer.py index 2ec39660c03..762ea89a8a3 100644 --- a/autorest/codegen/serializers/metadata_serializer.py +++ b/autorest/codegen/serializers/metadata_serializer.py @@ -83,12 +83,6 @@ def _make_async_copy_of_global_parameters(self) -> ParameterList: return global_parameters def serialize(self) -> str: - def _is_lro(operation): - return isinstance(operation, LROOperation) - - def _is_paging(operation): - return isinstance(operation, PagingOperation) - mixin_operation_group: Optional[OperationGroup] = next( (operation_group for operation_group in self.code_model.operation_groups if operation_group.is_empty_operation_group), @@ -122,8 +116,6 @@ def _is_paging(operation): async_global_parameters=async_global_parameters, mixin_operations=mixin_operations, any=any, - is_lro=_is_lro, - is_paging=_is_paging, str=str, sync_mixin_imports=( _json_serialize_imports(sync_mixin_imports.imports) diff --git a/autorest/codegen/serializers/operation_group_serializer.py b/autorest/codegen/serializers/operation_group_serializer.py index ba073a0043d..d20b5a67114 100644 --- a/autorest/codegen/serializers/operation_group_serializer.py +++ b/autorest/codegen/serializers/operation_group_serializer.py @@ -19,12 +19,6 @@ def __init__( self.async_mode = async_mode def serialize(self) -> str: - def _is_lro(operation): - return isinstance(operation, LROOperation) - - def _is_paging(operation): - return isinstance(operation, PagingOperation) - operation_group_template = self.env.get_template("operations_container.py.jinja2") if self.operation_group.is_empty_operation_group: operation_group_template = self.env.get_template("operations_container_mixin.py.jinja2") @@ -40,6 +34,4 @@ def _is_paging(operation): is_python_3_file=self.async_mode ), async_mode=self.async_mode, - is_lro=_is_lro, - is_paging=_is_paging, ) diff --git a/autorest/codegen/templates/metadata.json.jinja2 b/autorest/codegen/templates/metadata.json.jinja2 index 89e8fefe0f3..70e168166ee 100644 --- a/autorest/codegen/templates/metadata.json.jinja2 +++ b/autorest/codegen/templates/metadata.json.jinja2 @@ -57,16 +57,16 @@ }, "operation_mixins": { {% for operation in mixin_operations %} - {% set operation_name = "begin_" + operation.name if is_lro(operation) else operation.name %} + {% set operation_name = "begin_" + operation.name if operation.is_lro else operation.name %} {{ operation_name | tojson }} : { "sync": { - {% if is_lro(operation) and is_paging(operation) %} + {% if operation.is_lro and operation.is_paging %} {% from "lro_paging_operation.py.jinja2" import operation_docstring with context %} {% set sync_return_type_wrapper = ["LROPoller", "ItemPaged"] %} - {% elif is_lro(operation) %} + {% elif operation.is_lro %} {% from "lro_operation.py.jinja2" import operation_docstring with context %} {% set sync_return_type_wrapper = ["LROPoller"] %} - {% elif is_paging(operation) %} + {% elif operation.is_paging %} {% from "paging_operation.py.jinja2" import operation_docstring with context %} {% set sync_return_type_wrapper = ["ItemPaged"] %} {% else %} @@ -77,15 +77,15 @@ "doc": {{ operation_docstring(async_mode=False) | tojson }} }, "async": { - {% set coroutine = False if is_paging(operation) else True %} + {% set coroutine = False if operation.is_paging else True %} "coroutine": {{ coroutine | tojson }}, - {% if is_lro(operation) and is_paging(operation) %} + {% if operation.is_lro and operation.is_paging %} {% from "lro_paging_operation.py.jinja2" import operation_docstring with context %} {% set async_return_type_wrapper = ["AsyncLROPoller", "AsyncItemPaged"] %} - {% elif is_lro(operation) %} + {% elif operation.is_lro %} {% from "lro_operation.py.jinja2" import operation_docstring with context %} {% set async_return_type_wrapper = ["AsyncLROPoller"] %} - {% elif is_paging(operation) %} + {% elif operation.is_paging %} {% from "paging_operation.py.jinja2" import operation_docstring with context %} {% set async_return_type_wrapper = ["AsyncItemPaged"] %} {% else %} diff --git a/autorest/codegen/templates/operations_container.py.jinja2 b/autorest/codegen/templates/operations_container.py.jinja2 index d1c06449d4e..acb8dff780a 100644 --- a/autorest/codegen/templates/operations_container.py.jinja2 +++ b/autorest/codegen/templates/operations_container.py.jinja2 @@ -35,11 +35,11 @@ class {{ operation_group.class_name }}{{ object_base_class }}: self._config = config {% for operation in operation_group.operations %} - {% if is_lro(operation) and is_paging(operation) %} + {% if operation.is_lro and operation.is_paging %} {% macro someop() %}{% include "lro_paging_operation.py.jinja2" %}{% endmacro %} - {% elif is_lro(operation) %} + {% elif operation.is_lro %} {% macro someop() %}{% include "lro_operation.py.jinja2" %}{% endmacro %} - {% elif is_paging(operation) %} + {% elif operation.is_paging %} {% macro someop() %}{% include "paging_operation.py.jinja2" %}{% endmacro %} {% else %} {% macro someop() %}{% include "operation.py.jinja2" %}{% endmacro %} diff --git a/autorest/codegen/templates/operations_container_mixin.py.jinja2 b/autorest/codegen/templates/operations_container_mixin.py.jinja2 index cff9347387c..d7bc5001a4a 100644 --- a/autorest/codegen/templates/operations_container_mixin.py.jinja2 +++ b/autorest/codegen/templates/operations_container_mixin.py.jinja2 @@ -9,11 +9,11 @@ class {{ operation_group.class_name }}{{ object_base_class }}: {% for operation in operation_group.operations %} - {% if is_lro(operation) and is_paging(operation) %} + {% if operation.is_lro and operation.is_paging %} {%- macro someop() %}{% include "lro_paging_operation.py.jinja2" %}{% endmacro %} - {% elif is_lro(operation) %} + {% elif operation.is_lro %} {%- macro someop() %}{% include "lro_operation.py.jinja2" %}{% endmacro %} - {% elif is_paging(operation) %} + {% elif operation.is_paging %} {% macro someop() %}{% include "paging_operation.py.jinja2" %}{% endmacro %} {% else %} {% macro someop() %}{% include "operation.py.jinja2" %}{% endmacro %} From c7757810ab386ee6bcd091fbd3ae1ec154174da0 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Thu, 30 Jul 2020 16:44:55 -0400 Subject: [PATCH 2/7] only generate polling_interval in docstring if package has lro operations --- autorest/codegen/models/code_model.py | 8 ++++++++ autorest/codegen/templates/metadata.json.jinja2 | 3 ++- autorest/codegen/templates/service_client.py.jinja2 | 2 ++ .../bodyduration/_auto_rest_duration_test_service.py | 1 - .../aio/_auto_rest_duration_test_service_async.py | 1 - .../_auto_rest_parameter_grouping_test_service.py | 1 - .../_auto_rest_parameter_grouping_test_service_async.py | 1 - .../azurereport/_auto_rest_report_service_for_azure.py | 1 - .../aio/_auto_rest_report_service_for_azure_async.py | 1 - .../_auto_rest_azure_special_parameters_test_client.py | 1 - ...uto_rest_azure_special_parameters_test_client_async.py | 1 - .../_auto_rest_parameterized_host_test_client.py | 1 - .../_auto_rest_parameterized_host_test_client_async.py | 1 - .../_auto_rest_parameterized_host_test_paging_client.py | 1 - ...to_rest_parameterized_host_test_paging_client_async.py | 1 - .../Head/head/_auto_rest_head_test_service.py | 1 - .../Head/head/aio/_auto_rest_head_test_service_async.py | 1 - .../_auto_rest_head_exception_test_service.py | 1 - .../aio/_auto_rest_head_exception_test_service_async.py | 1 - .../_auto_rest_head_test_service.py | 1 - .../aio/_auto_rest_head_test_service_async.py | 1 - .../subscriptionidapiversion/_microsoft_azure_test_url.py | 1 - .../aio/_microsoft_azure_test_url_async.py | 1 - .../AcceptanceTests/Multiapi/multiapi/v1/_metadata.json | 3 ++- .../AcceptanceTests/Multiapi/multiapi/v2/_metadata.json | 3 ++- .../Multiapi/multiapi/v2/_multiapi_service_client.py | 1 - .../multiapi/v2/aio/_multiapi_service_client_async.py | 1 - .../AcceptanceTests/Multiapi/multiapi/v3/_metadata.json | 3 ++- .../Multiapi/multiapi/v3/_multiapi_service_client.py | 1 - .../multiapi/v3/aio/_multiapi_service_client_async.py | 1 - .../multiapicredentialdefaultpolicy/v1/_metadata.json | 3 ++- .../multiapicredentialdefaultpolicy/v2/_metadata.json | 3 ++- .../v2/_multiapi_service_client.py | 1 - .../v2/aio/_multiapi_service_client_async.py | 1 - .../multiapicredentialdefaultpolicy/v3/_metadata.json | 3 ++- .../v3/_multiapi_service_client.py | 1 - .../v3/aio/_multiapi_service_client_async.py | 1 - .../_multiapi_custom_base_url_service_client.py | 1 - .../aio/_multiapi_custom_base_url_service_client_async.py | 1 - .../multiapicustombaseurl/v1/_metadata.json | 3 ++- .../v1/_multiapi_custom_base_url_service_client.py | 1 - .../aio/_multiapi_custom_base_url_service_client_async.py | 1 - .../multiapicustombaseurl/v2/_metadata.json | 3 ++- .../v2/_multiapi_custom_base_url_service_client.py | 1 - .../aio/_multiapi_custom_base_url_service_client_async.py | 1 - .../MultiapiDataPlane/multiapidataplane/v1/_metadata.json | 3 ++- .../MultiapiDataPlane/multiapidataplane/v2/_metadata.json | 3 ++- .../multiapidataplane/v2/_multiapi_service_client.py | 1 - .../v2/aio/_multiapi_service_client_async.py | 1 - .../MultiapiDataPlane/multiapidataplane/v3/_metadata.json | 3 ++- .../multiapidataplane/v3/_multiapi_service_client.py | 1 - .../v3/aio/_multiapi_service_client_async.py | 1 - .../MultiapiNoAsync/multiapinoasync/v1/_metadata.json | 3 ++- .../MultiapiNoAsync/multiapinoasync/v2/_metadata.json | 3 ++- .../multiapinoasync/v2/_multiapi_service_client.py | 1 - .../MultiapiNoAsync/multiapinoasync/v3/_metadata.json | 3 ++- .../multiapinoasync/v3/_multiapi_service_client.py | 1 - .../multiapiwithsubmodule/submodule/v1/_metadata.json | 3 ++- .../multiapiwithsubmodule/submodule/v2/_metadata.json | 3 ++- .../submodule/v2/_multiapi_service_client.py | 1 - .../submodule/v2/aio/_multiapi_service_client_async.py | 1 - .../multiapiwithsubmodule/submodule/v3/_metadata.json | 3 ++- .../submodule/v3/_multiapi_service_client.py | 1 - .../submodule/v3/aio/_multiapi_service_client_async.py | 1 - .../additionalproperties/_additional_properties_client.py | 1 - .../aio/_additional_properties_client_async.py | 1 - .../bodyarray/_auto_rest_swagger_bat_array_service.py | 1 - .../aio/_auto_rest_swagger_bat_array_service_async.py | 1 - .../body/array/_auto_rest_swagger_bat_array_service.py | 1 - .../aio/_auto_rest_swagger_bat_array_service_async.py | 1 - .../bodyboolean/_auto_rest_bool_test_service.py | 1 - .../bodyboolean/aio/_auto_rest_bool_test_service_async.py | 1 - .../bodybyte/_auto_rest_swagger_bat_byte_service.py | 1 - .../aio/_auto_rest_swagger_bat_byte_service_async.py | 1 - .../bodybytewithpackagename/_class_name.py | 1 - .../bodybytewithpackagename/aio/_class_name_async.py | 1 - .../bodycomplex/_auto_rest_complex_test_service.py | 1 - .../aio/_auto_rest_complex_test_service_async.py | 1 - .../BodyDate/bodydate/_auto_rest_date_test_service.py | 1 - .../bodydate/aio/_auto_rest_date_test_service_async.py | 1 - .../bodydatetime/_auto_rest_date_time_test_service.py | 1 - .../aio/_auto_rest_date_time_test_service_async.py | 1 - .../_auto_rest_rfc1123_date_time_test_service.py | 1 - .../_auto_rest_rfc1123_date_time_test_service_async.py | 1 - .../_auto_rest_swagger_ba_tdictionary_service.py | 1 - .../_auto_rest_swagger_ba_tdictionary_service_async.py | 1 - .../bodyduration/_auto_rest_duration_test_service.py | 1 - .../aio/_auto_rest_duration_test_service_async.py | 1 - .../bodyfile/_auto_rest_swagger_bat_file_service.py | 1 - .../aio/_auto_rest_swagger_bat_file_service_async.py | 1 - .../bodyinteger/_auto_rest_integer_test_service.py | 1 - .../aio/_auto_rest_integer_test_service_async.py | 1 - .../bodynumber/_auto_rest_number_test_service.py | 1 - .../aio/_auto_rest_number_test_service_async.py | 1 - .../bodystring/_auto_rest_swagger_bat_service.py | 1 - .../aio/_auto_rest_swagger_bat_service_async.py | 1 - .../BodyTime/bodytime/_auto_rest_time_test_service.py | 1 - .../bodytime/aio/_auto_rest_time_test_service_async.py | 1 - .../constants/_auto_rest_swagger_constant_service.py | 1 - .../aio/_auto_rest_swagger_constant_service_async.py | 1 - .../_auto_rest_parameterized_host_test_client.py | 1 - .../_auto_rest_parameterized_host_test_client_async.py | 1 - .../_auto_rest_parameterized_custom_host_test_client.py | 1 - ...to_rest_parameterized_custom_host_test_client_async.py | 1 - .../extensibleenumsswagger/_pet_store_inc.py | 1 - .../extensibleenumsswagger/aio/_pet_store_inc_async.py | 1 - .../header/_auto_rest_swagger_bat_header_service.py | 1 - .../aio/_auto_rest_swagger_bat_header_service_async.py | 1 - .../_auto_rest_http_infrastructure_test_service.py | 1 - .../_auto_rest_http_infrastructure_test_service_async.py | 1 - .../MediaTypes/mediatypes/_media_types_client.py | 1 - .../mediatypes/aio/_media_types_client_async.py | 1 - .../_auto_rest_resource_flattening_test_service.py | 1 - .../_auto_rest_resource_flattening_test_service_async.py | 1 - .../_multiple_inheritance_service_client.py | 1 - .../aio/_multiple_inheritance_service_client_async.py | 1 - .../nonstringenums/_non_string_enums_client.py | 1 - .../nonstringenums/aio/_non_string_enums_client_async.py | 1 - .../ObjectType/objecttype/_object_type_client.py | 1 - .../objecttype/aio/_object_type_client_async.py | 1 - .../_auto_rest_parameter_flattening.py | 1 - .../aio/_auto_rest_parameter_flattening_async.py | 1 - .../Report/report/_auto_rest_report_service.py | 1 - .../Report/report/aio/_auto_rest_report_service_async.py | 1 - .../_auto_rest_required_optional_test_service.py | 1 - .../_auto_rest_required_optional_test_service_async.py | 1 - .../Url/url/_auto_rest_url_test_service.py | 1 - .../Url/url/aio/_auto_rest_url_test_service_async.py | 1 - ..._auto_rest_url_mutli_collection_format_test_service.py | 1 - ...rest_url_mutli_collection_format_test_service_async.py | 1 - .../Validation/validation/_auto_rest_validation_test.py | 1 - .../validation/aio/_auto_rest_validation_test_async.py | 1 - .../Xml/xmlservice/_auto_rest_swagger_batxml_service.py | 1 - .../aio/_auto_rest_swagger_batxml_service_async.py | 1 - .../xmserrorresponse/_xms_error_response_extensions.py | 1 - .../aio/_xms_error_response_extensions_async.py | 1 - 136 files changed, 46 insertions(+), 134 deletions(-) diff --git a/autorest/codegen/models/code_model.py b/autorest/codegen/models/code_model.py index 5500e195026..e89cd134243 100644 --- a/autorest/codegen/models/code_model.py +++ b/autorest/codegen/models/code_model.py @@ -368,3 +368,11 @@ def generate_single_parameter_from_multiple_media_types(self) -> None: raise ValueError("You are missing a parameter that has multiple media types") chosen_parameter.multiple_media_types_type_annot = f"Union[{type_annot}]" chosen_parameter.multiple_media_types_docstring_type = docstring_type + + @property + def has_lro_operations(self) -> bool: + return any([ + operation.is_lro + for operation_group in self.operation_groups + for operation in operation_group.operations + ]) diff --git a/autorest/codegen/templates/metadata.json.jinja2 b/autorest/codegen/templates/metadata.json.jinja2 index 70e168166ee..7122fde63bb 100644 --- a/autorest/codegen/templates/metadata.json.jinja2 +++ b/autorest/codegen/templates/metadata.json.jinja2 @@ -10,7 +10,8 @@ {% set base_url = code_model.base_url if code_model.base_url else ('https://management.azure.com' if code_model.options["azure_arm"] else None )%} "base_url": {{ (keywords.escape_str(base_url) if base_url else None) | tojson }}, "custom_base_url": {{ (keywords.escape_str(code_model.custom_base_url) if code_model.custom_base_url else None) | tojson }}, - "azure_arm": {{ code_model.options["azure_arm"] | tojson }} + "azure_arm": {{ code_model.options["azure_arm"] | tojson }}, + "has_lro_operations": {{ code_model.has_lro_operations | tojson }} }, "global_parameters": { "sync_method": { diff --git a/autorest/codegen/templates/service_client.py.jinja2 b/autorest/codegen/templates/service_client.py.jinja2 index b28d967cf5f..73c059aeef2 100644 --- a/autorest/codegen/templates/service_client.py.jinja2 +++ b/autorest/codegen/templates/service_client.py.jinja2 @@ -60,7 +60,9 @@ class {{ code_model.class_name }}({{ base_class }}): {% if not code_model.custom_base_url %} :param str base_url: Service URL {% endif %} + {% if code_model.has_lro_operations %} :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + {% endif %} """ {{ method_signature()|indent }} diff --git a/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/_auto_rest_duration_test_service.py b/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/_auto_rest_duration_test_service.py index 306aa1fbe9a..5299e1f073c 100644 --- a/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/_auto_rest_duration_test_service.py +++ b/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/_auto_rest_duration_test_service.py @@ -26,7 +26,6 @@ class AutoRestDurationTestService(object): :ivar duration: DurationOperations operations :vartype duration: bodyduration.operations.DurationOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/_auto_rest_duration_test_service_async.py b/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/_auto_rest_duration_test_service_async.py index f3f60fb9062..df0a74c1e78 100644 --- a/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/_auto_rest_duration_test_service_async.py +++ b/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/_auto_rest_duration_test_service_async.py @@ -22,7 +22,6 @@ class AutoRestDurationTestService(object): :ivar duration: DurationOperations operations :vartype duration: bodyduration.aio.operations_async.DurationOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/_auto_rest_parameter_grouping_test_service.py b/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/_auto_rest_parameter_grouping_test_service.py index 89b78357dce..bae2d468a32 100644 --- a/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/_auto_rest_parameter_grouping_test_service.py +++ b/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/_auto_rest_parameter_grouping_test_service.py @@ -26,7 +26,6 @@ class AutoRestParameterGroupingTestService(object): :ivar parameter_grouping: ParameterGroupingOperations operations :vartype parameter_grouping: azureparametergrouping.operations.ParameterGroupingOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/_auto_rest_parameter_grouping_test_service_async.py b/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/_auto_rest_parameter_grouping_test_service_async.py index d400b13ee33..ea42c6ed6bb 100644 --- a/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/_auto_rest_parameter_grouping_test_service_async.py +++ b/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/_auto_rest_parameter_grouping_test_service_async.py @@ -22,7 +22,6 @@ class AutoRestParameterGroupingTestService(object): :ivar parameter_grouping: ParameterGroupingOperations operations :vartype parameter_grouping: azureparametergrouping.aio.operations_async.ParameterGroupingOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/_auto_rest_report_service_for_azure.py b/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/_auto_rest_report_service_for_azure.py index 26ed8f86f34..dd959240073 100644 --- a/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/_auto_rest_report_service_for_azure.py +++ b/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/_auto_rest_report_service_for_azure.py @@ -24,7 +24,6 @@ class AutoRestReportServiceForAzure(AutoRestReportServiceForAzureOperationsMixin """Test Infrastructure for AutoRest. :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/aio/_auto_rest_report_service_for_azure_async.py b/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/aio/_auto_rest_report_service_for_azure_async.py index 18940db9414..41188fdd1ea 100644 --- a/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/aio/_auto_rest_report_service_for_azure_async.py +++ b/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/aio/_auto_rest_report_service_for_azure_async.py @@ -20,7 +20,6 @@ class AutoRestReportServiceForAzure(AutoRestReportServiceForAzureOperationsMixin """Test Infrastructure for AutoRest. :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_auto_rest_azure_special_parameters_test_client.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_auto_rest_azure_special_parameters_test_client.py index f56c314ee19..07ef8b9f31b 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_auto_rest_azure_special_parameters_test_client.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_auto_rest_azure_special_parameters_test_client.py @@ -53,7 +53,6 @@ class AutoRestAzureSpecialParametersTestClient(object): :param subscription_id: The subscription id, which appears in the path, always modeled in credentials. The value is always '1234-5678-9012-3456'. :type subscription_id: str :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_auto_rest_azure_special_parameters_test_client_async.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_auto_rest_azure_special_parameters_test_client_async.py index 77332c2adef..5ca4de9feec 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_auto_rest_azure_special_parameters_test_client_async.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_auto_rest_azure_special_parameters_test_client_async.py @@ -51,7 +51,6 @@ class AutoRestAzureSpecialParametersTestClient(object): :param subscription_id: The subscription id, which appears in the path, always modeled in credentials. The value is always '1234-5678-9012-3456'. :type subscription_id: str :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_auto_rest_parameterized_host_test_client.py b/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_auto_rest_parameterized_host_test_client.py index b1ca4bbf11e..c1a93827750 100644 --- a/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_auto_rest_parameterized_host_test_client.py +++ b/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_auto_rest_parameterized_host_test_client.py @@ -27,7 +27,6 @@ class AutoRestParameterizedHostTestClient(object): :vartype paths: custombaseurl.operations.PathsOperations :param host: A string value that is used as a global part of the parameterized host. :type host: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_auto_rest_parameterized_host_test_client_async.py b/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_auto_rest_parameterized_host_test_client_async.py index ff6d66d9653..c3287ee2a9f 100644 --- a/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_auto_rest_parameterized_host_test_client_async.py +++ b/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_auto_rest_parameterized_host_test_client_async.py @@ -23,7 +23,6 @@ class AutoRestParameterizedHostTestClient(object): :vartype paths: custombaseurl.aio.operations_async.PathsOperations :param host: A string value that is used as a global part of the parameterized host. :type host: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/azure/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/_auto_rest_parameterized_host_test_paging_client.py b/test/azure/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/_auto_rest_parameterized_host_test_paging_client.py index 9af1696cb31..6298676a954 100644 --- a/test/azure/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/_auto_rest_parameterized_host_test_paging_client.py +++ b/test/azure/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/_auto_rest_parameterized_host_test_paging_client.py @@ -31,7 +31,6 @@ class AutoRestParameterizedHostTestPagingClient(object): :type credential: ~azure.core.credentials.TokenCredential :param host: A string value that is used as a global part of the parameterized host. :type host: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/azure/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/_auto_rest_parameterized_host_test_paging_client_async.py b/test/azure/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/_auto_rest_parameterized_host_test_paging_client_async.py index 2dba2c3b159..2fd9665576a 100644 --- a/test/azure/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/_auto_rest_parameterized_host_test_paging_client_async.py +++ b/test/azure/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/_auto_rest_parameterized_host_test_paging_client_async.py @@ -29,7 +29,6 @@ class AutoRestParameterizedHostTestPagingClient(object): :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param host: A string value that is used as a global part of the parameterized host. :type host: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/azure/Expected/AcceptanceTests/Head/head/_auto_rest_head_test_service.py b/test/azure/Expected/AcceptanceTests/Head/head/_auto_rest_head_test_service.py index 9b4dc1a3162..3af1df5a495 100644 --- a/test/azure/Expected/AcceptanceTests/Head/head/_auto_rest_head_test_service.py +++ b/test/azure/Expected/AcceptanceTests/Head/head/_auto_rest_head_test_service.py @@ -29,7 +29,6 @@ class AutoRestHeadTestService(object): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/azure/Expected/AcceptanceTests/Head/head/aio/_auto_rest_head_test_service_async.py b/test/azure/Expected/AcceptanceTests/Head/head/aio/_auto_rest_head_test_service_async.py index cb5b9c7e23a..525c9306bdb 100644 --- a/test/azure/Expected/AcceptanceTests/Head/head/aio/_auto_rest_head_test_service_async.py +++ b/test/azure/Expected/AcceptanceTests/Head/head/aio/_auto_rest_head_test_service_async.py @@ -29,7 +29,6 @@ class AutoRestHeadTestService(object): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/azure/Expected/AcceptanceTests/HeadExceptions/headexceptions/_auto_rest_head_exception_test_service.py b/test/azure/Expected/AcceptanceTests/HeadExceptions/headexceptions/_auto_rest_head_exception_test_service.py index 3862a805a4e..9dcf9337e4e 100644 --- a/test/azure/Expected/AcceptanceTests/HeadExceptions/headexceptions/_auto_rest_head_exception_test_service.py +++ b/test/azure/Expected/AcceptanceTests/HeadExceptions/headexceptions/_auto_rest_head_exception_test_service.py @@ -29,7 +29,6 @@ class AutoRestHeadExceptionTestService(object): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/azure/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/_auto_rest_head_exception_test_service_async.py b/test/azure/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/_auto_rest_head_exception_test_service_async.py index 294469e1f07..de3832258b5 100644 --- a/test/azure/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/_auto_rest_head_exception_test_service_async.py +++ b/test/azure/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/_auto_rest_head_exception_test_service_async.py @@ -29,7 +29,6 @@ class AutoRestHeadExceptionTestService(object): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/azure/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/_auto_rest_head_test_service.py b/test/azure/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/_auto_rest_head_test_service.py index 8f47e8fa1cc..d8aa3d8fb9b 100644 --- a/test/azure/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/_auto_rest_head_test_service.py +++ b/test/azure/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/_auto_rest_head_test_service.py @@ -29,7 +29,6 @@ class AutoRestHeadTestService(object): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/azure/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/_auto_rest_head_test_service_async.py b/test/azure/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/_auto_rest_head_test_service_async.py index 14e0b34b2b4..9f86f9767f7 100644 --- a/test/azure/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/_auto_rest_head_test_service_async.py +++ b/test/azure/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/_auto_rest_head_test_service_async.py @@ -29,7 +29,6 @@ class AutoRestHeadTestService(object): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_microsoft_azure_test_url.py b/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_microsoft_azure_test_url.py index f04614ffb4b..0cdb7b196d0 100644 --- a/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_microsoft_azure_test_url.py +++ b/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_microsoft_azure_test_url.py @@ -32,7 +32,6 @@ class MicrosoftAzureTestUrl(object): :param subscription_id: Subscription Id. :type subscription_id: str :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_microsoft_azure_test_url_async.py b/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_microsoft_azure_test_url_async.py index 02496effde8..68cd3303c69 100644 --- a/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_microsoft_azure_test_url_async.py +++ b/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_microsoft_azure_test_url_async.py @@ -30,7 +30,6 @@ class MicrosoftAzureTestUrl(object): :param subscription_id: Subscription Id. :type subscription_id: str :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/_metadata.json b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/_metadata.json index e2e5d941054..1d0b07ef411 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/_metadata.json @@ -7,7 +7,8 @@ "description": "Service client for multiapi client testing.", "base_url": "\u0027http://localhost:3000\u0027", "custom_base_url": null, - "azure_arm": true + "azure_arm": true, + "has_lro_operations": true }, "global_parameters": { "sync_method": { diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_metadata.json b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_metadata.json index f18aa8c5ba8..5fd6f176859 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_metadata.json @@ -7,7 +7,8 @@ "description": "Service client for multiapi client testing.", "base_url": "\u0027http://localhost:3000\u0027", "custom_base_url": null, - "azure_arm": true + "azure_arm": true, + "has_lro_operations": false }, "global_parameters": { "sync_method": { diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_multiapi_service_client.py index 5e99bc2d302..ed6690aee06 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_multiapi_service_client.py @@ -34,7 +34,6 @@ class MultiapiServiceClient(MultiapiServiceClientOperationsMixin): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/_multiapi_service_client_async.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/_multiapi_service_client_async.py index 3e0e5a51584..e3157a5a547 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/_multiapi_service_client_async.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/_multiapi_service_client_async.py @@ -32,7 +32,6 @@ class MultiapiServiceClient(MultiapiServiceClientOperationsMixin): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/_metadata.json b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/_metadata.json index ede3c9471e5..cd8e63f06c3 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/_metadata.json @@ -7,7 +7,8 @@ "description": "Service client for multiapi client testing.", "base_url": "\u0027http://localhost:3000\u0027", "custom_base_url": null, - "azure_arm": true + "azure_arm": true, + "has_lro_operations": false }, "global_parameters": { "sync_method": { diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/_multiapi_service_client.py index 147f142a085..fc7e35c594d 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/_multiapi_service_client.py @@ -34,7 +34,6 @@ class MultiapiServiceClient(MultiapiServiceClientOperationsMixin): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/_multiapi_service_client_async.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/_multiapi_service_client_async.py index ae14834c42e..af6549cdcad 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/_multiapi_service_client_async.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/_multiapi_service_client_async.py @@ -32,7 +32,6 @@ class MultiapiServiceClient(MultiapiServiceClientOperationsMixin): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/_metadata.json index 80bcbf991d5..cf76d57f63c 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/_metadata.json @@ -7,7 +7,8 @@ "description": "Service client for multiapi client testing.", "base_url": "\u0027http://localhost:3000\u0027", "custom_base_url": null, - "azure_arm": true + "azure_arm": true, + "has_lro_operations": true }, "global_parameters": { "sync_method": { diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_metadata.json index 47ab196edf6..4ea54875403 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_metadata.json @@ -7,7 +7,8 @@ "description": "Service client for multiapi client testing.", "base_url": "\u0027http://localhost:3000\u0027", "custom_base_url": null, - "azure_arm": true + "azure_arm": true, + "has_lro_operations": false }, "global_parameters": { "sync_method": { diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_multiapi_service_client.py index 358f535a63f..7b72b9b26ac 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_multiapi_service_client.py @@ -34,7 +34,6 @@ class MultiapiServiceClient(MultiapiServiceClientOperationsMixin): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/_multiapi_service_client_async.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/_multiapi_service_client_async.py index 01b1dfee6a8..6dba4bbe382 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/_multiapi_service_client_async.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/_multiapi_service_client_async.py @@ -32,7 +32,6 @@ class MultiapiServiceClient(MultiapiServiceClientOperationsMixin): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/_metadata.json index b28bb0f8c3c..7fa48c68760 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/_metadata.json @@ -7,7 +7,8 @@ "description": "Service client for multiapi client testing.", "base_url": "\u0027http://localhost:3000\u0027", "custom_base_url": null, - "azure_arm": true + "azure_arm": true, + "has_lro_operations": false }, "global_parameters": { "sync_method": { diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/_multiapi_service_client.py index a7b2f1e764b..2fe0f5e4638 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/_multiapi_service_client.py @@ -34,7 +34,6 @@ class MultiapiServiceClient(MultiapiServiceClientOperationsMixin): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/_multiapi_service_client_async.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/_multiapi_service_client_async.py index ce69d787ae1..147f194dad5 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/_multiapi_service_client_async.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/_multiapi_service_client_async.py @@ -32,7 +32,6 @@ class MultiapiServiceClient(MultiapiServiceClientOperationsMixin): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/_multiapi_custom_base_url_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/_multiapi_custom_base_url_service_client.py index 64d39218088..a86ae90b4b2 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/_multiapi_custom_base_url_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/_multiapi_custom_base_url_service_client.py @@ -42,7 +42,6 @@ class MultiapiCustomBaseUrlServiceClient(MultiapiCustomBaseUrlServiceClientOpera missing in profile. :param profile: A profile definition, from KnownProfiles to dict. :type profile: azure.profiles.KnownProfiles - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ DEFAULT_API_VERSION = '2.0.0' diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/aio/_multiapi_custom_base_url_service_client_async.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/aio/_multiapi_custom_base_url_service_client_async.py index 8c8a732560f..80eca67efef 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/aio/_multiapi_custom_base_url_service_client_async.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/aio/_multiapi_custom_base_url_service_client_async.py @@ -42,7 +42,6 @@ class MultiapiCustomBaseUrlServiceClient(MultiapiCustomBaseUrlServiceClientOpera missing in profile. :param profile: A profile definition, from KnownProfiles to dict. :type profile: azure.profiles.KnownProfiles - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ DEFAULT_API_VERSION = '2.0.0' diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/_metadata.json index 2e1dfbd2617..183a3789ed2 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/_metadata.json @@ -7,7 +7,8 @@ "description": "Service client for multiapi custom base url testing.", "base_url": null, "custom_base_url": "\u0027{Endpoint}/multiapiCustomBaseUrl/v1\u0027", - "azure_arm": false + "azure_arm": false, + "has_lro_operations": false }, "global_parameters": { "sync_method": { diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/_multiapi_custom_base_url_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/_multiapi_custom_base_url_service_client.py index 409a5677b5c..b09b13cdff7 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/_multiapi_custom_base_url_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/_multiapi_custom_base_url_service_client.py @@ -29,7 +29,6 @@ class MultiapiCustomBaseUrlServiceClient(MultiapiCustomBaseUrlServiceClientOpera :type credential: ~azure.core.credentials.TokenCredential :param endpoint: Pass in https://localhost:3000. :type endpoint: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/aio/_multiapi_custom_base_url_service_client_async.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/aio/_multiapi_custom_base_url_service_client_async.py index 8907f79da98..b978a9af00c 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/aio/_multiapi_custom_base_url_service_client_async.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/aio/_multiapi_custom_base_url_service_client_async.py @@ -27,7 +27,6 @@ class MultiapiCustomBaseUrlServiceClient(MultiapiCustomBaseUrlServiceClientOpera :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param endpoint: Pass in https://localhost:3000. :type endpoint: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/_metadata.json index 1875d1f1511..26ce993b9d4 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/_metadata.json @@ -7,7 +7,8 @@ "description": "Service client for multiapi custom base url testing.", "base_url": null, "custom_base_url": "\u0027{Endpoint}/multiapiCustomBaseUrl/v2\u0027", - "azure_arm": false + "azure_arm": false, + "has_lro_operations": false }, "global_parameters": { "sync_method": { diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/_multiapi_custom_base_url_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/_multiapi_custom_base_url_service_client.py index d4fa01eea2c..d985304fe70 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/_multiapi_custom_base_url_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/_multiapi_custom_base_url_service_client.py @@ -29,7 +29,6 @@ class MultiapiCustomBaseUrlServiceClient(MultiapiCustomBaseUrlServiceClientOpera :type credential: ~azure.core.credentials.TokenCredential :param endpoint: Pass in https://localhost:3000. :type endpoint: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/_multiapi_custom_base_url_service_client_async.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/_multiapi_custom_base_url_service_client_async.py index 60dc92b9092..9ecb9e3cc60 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/_multiapi_custom_base_url_service_client_async.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/_multiapi_custom_base_url_service_client_async.py @@ -27,7 +27,6 @@ class MultiapiCustomBaseUrlServiceClient(MultiapiCustomBaseUrlServiceClientOpera :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param endpoint: Pass in https://localhost:3000. :type endpoint: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/_metadata.json index a0cf7ee80e3..863e4d301d9 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/_metadata.json @@ -7,7 +7,8 @@ "description": "Service client for multiapi client testing.", "base_url": "\u0027http://localhost:3000\u0027", "custom_base_url": null, - "azure_arm": false + "azure_arm": false, + "has_lro_operations": true }, "global_parameters": { "sync_method": { diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/_metadata.json index 80fbb968875..fcdd81ac470 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/_metadata.json @@ -7,7 +7,8 @@ "description": "Service client for multiapi client testing.", "base_url": "\u0027http://localhost:3000\u0027", "custom_base_url": null, - "azure_arm": false + "azure_arm": false, + "has_lro_operations": false }, "global_parameters": { "sync_method": { diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/_multiapi_service_client.py index 6eb2346d824..3db6072be1c 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/_multiapi_service_client.py @@ -34,7 +34,6 @@ class MultiapiServiceClient(MultiapiServiceClientOperationsMixin): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/_multiapi_service_client_async.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/_multiapi_service_client_async.py index 657ccce557b..d8541ef273f 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/_multiapi_service_client_async.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/_multiapi_service_client_async.py @@ -32,7 +32,6 @@ class MultiapiServiceClient(MultiapiServiceClientOperationsMixin): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/_metadata.json index a216c6752cb..04d02e6950d 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/_metadata.json @@ -7,7 +7,8 @@ "description": "Service client for multiapi client testing.", "base_url": "\u0027http://localhost:3000\u0027", "custom_base_url": null, - "azure_arm": false + "azure_arm": false, + "has_lro_operations": false }, "global_parameters": { "sync_method": { diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/_multiapi_service_client.py index 5ca3775ec0f..b691b506e80 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/_multiapi_service_client.py @@ -34,7 +34,6 @@ class MultiapiServiceClient(MultiapiServiceClientOperationsMixin): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/_multiapi_service_client_async.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/_multiapi_service_client_async.py index fdba353ef09..250721ff7df 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/_multiapi_service_client_async.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/_multiapi_service_client_async.py @@ -32,7 +32,6 @@ class MultiapiServiceClient(MultiapiServiceClientOperationsMixin): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/_metadata.json index 71f3da3fdf5..6e224198386 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/_metadata.json @@ -7,7 +7,8 @@ "description": "Service client for multiapi client testing.", "base_url": "\u0027http://localhost:3000\u0027", "custom_base_url": null, - "azure_arm": true + "azure_arm": true, + "has_lro_operations": true }, "global_parameters": { "sync_method": { diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/_metadata.json index 6bb9081c9d6..ed755814976 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/_metadata.json @@ -7,7 +7,8 @@ "description": "Service client for multiapi client testing.", "base_url": "\u0027http://localhost:3000\u0027", "custom_base_url": null, - "azure_arm": true + "azure_arm": true, + "has_lro_operations": false }, "global_parameters": { "sync_method": { diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/_multiapi_service_client.py index 8d3e26bf75e..8db2e15c902 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/_multiapi_service_client.py @@ -34,7 +34,6 @@ class MultiapiServiceClient(MultiapiServiceClientOperationsMixin): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_metadata.json index 7c22fcb7fe3..a1b1b3ed282 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_metadata.json @@ -7,7 +7,8 @@ "description": "Service client for multiapi client testing.", "base_url": "\u0027http://localhost:3000\u0027", "custom_base_url": null, - "azure_arm": true + "azure_arm": true, + "has_lro_operations": false }, "global_parameters": { "sync_method": { diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_multiapi_service_client.py index 977bbffc381..fbb7191969d 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_multiapi_service_client.py @@ -34,7 +34,6 @@ class MultiapiServiceClient(MultiapiServiceClientOperationsMixin): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/_metadata.json index d0e66414009..451f4129f5b 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/_metadata.json @@ -7,7 +7,8 @@ "description": "Service client for multiapi client testing.", "base_url": "\u0027http://localhost:3000\u0027", "custom_base_url": null, - "azure_arm": true + "azure_arm": true, + "has_lro_operations": true }, "global_parameters": { "sync_method": { diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/_metadata.json index ca66e54deed..f68ed2d4309 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/_metadata.json @@ -7,7 +7,8 @@ "description": "Service client for multiapi client testing.", "base_url": "\u0027http://localhost:3000\u0027", "custom_base_url": null, - "azure_arm": true + "azure_arm": true, + "has_lro_operations": false }, "global_parameters": { "sync_method": { diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/_multiapi_service_client.py index 3d5dd204bcc..240de094b5d 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/_multiapi_service_client.py @@ -34,7 +34,6 @@ class MultiapiServiceClient(MultiapiServiceClientOperationsMixin): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/_multiapi_service_client_async.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/_multiapi_service_client_async.py index e80d9af54b5..57c2332498b 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/_multiapi_service_client_async.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/_multiapi_service_client_async.py @@ -32,7 +32,6 @@ class MultiapiServiceClient(MultiapiServiceClientOperationsMixin): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_metadata.json index b05b7df5533..f0ee1759f58 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_metadata.json @@ -7,7 +7,8 @@ "description": "Service client for multiapi client testing.", "base_url": "\u0027http://localhost:3000\u0027", "custom_base_url": null, - "azure_arm": true + "azure_arm": true, + "has_lro_operations": false }, "global_parameters": { "sync_method": { diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_multiapi_service_client.py index 7b860971abf..5d8c2fcda38 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_multiapi_service_client.py @@ -34,7 +34,6 @@ class MultiapiServiceClient(MultiapiServiceClientOperationsMixin): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/_multiapi_service_client_async.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/_multiapi_service_client_async.py index c8ead19c0fc..aff50ad2aa2 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/_multiapi_service_client_async.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/_multiapi_service_client_async.py @@ -32,7 +32,6 @@ class MultiapiServiceClient(MultiapiServiceClientOperationsMixin): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/_additional_properties_client.py b/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/_additional_properties_client.py index c339de42340..22162edf343 100644 --- a/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/_additional_properties_client.py +++ b/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/_additional_properties_client.py @@ -26,7 +26,6 @@ class AdditionalPropertiesClient(object): :ivar pets: PetsOperations operations :vartype pets: additionalproperties.operations.PetsOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/_additional_properties_client_async.py b/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/_additional_properties_client_async.py index 4f086af47ec..f293551bc2f 100644 --- a/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/_additional_properties_client_async.py +++ b/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/_additional_properties_client_async.py @@ -22,7 +22,6 @@ class AdditionalPropertiesClient(object): :ivar pets: PetsOperations operations :vartype pets: additionalproperties.aio.operations_async.PetsOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/_auto_rest_swagger_bat_array_service.py b/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/_auto_rest_swagger_bat_array_service.py index e4e315d3770..5d686b55009 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/_auto_rest_swagger_bat_array_service.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/_auto_rest_swagger_bat_array_service.py @@ -26,7 +26,6 @@ class AutoRestSwaggerBATArrayService(object): :ivar array: ArrayOperations operations :vartype array: bodyarray.operations.ArrayOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/aio/_auto_rest_swagger_bat_array_service_async.py b/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/aio/_auto_rest_swagger_bat_array_service_async.py index b2648bae1be..8e4de03fc7c 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/aio/_auto_rest_swagger_bat_array_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/aio/_auto_rest_swagger_bat_array_service_async.py @@ -22,7 +22,6 @@ class AutoRestSwaggerBATArrayService(object): :ivar array: ArrayOperations operations :vartype array: bodyarray.aio.operations_async.ArrayOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/_auto_rest_swagger_bat_array_service.py b/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/_auto_rest_swagger_bat_array_service.py index dc7a179c6f9..5c6d271edd2 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/_auto_rest_swagger_bat_array_service.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/_auto_rest_swagger_bat_array_service.py @@ -26,7 +26,6 @@ class AutoRestSwaggerBATArrayService(object): :ivar array: ArrayOperations operations :vartype array: vanilla.body.array.operations.ArrayOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/_auto_rest_swagger_bat_array_service_async.py b/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/_auto_rest_swagger_bat_array_service_async.py index 92d4d3d6cc0..c3e4bc6546b 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/_auto_rest_swagger_bat_array_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/_auto_rest_swagger_bat_array_service_async.py @@ -22,7 +22,6 @@ class AutoRestSwaggerBATArrayService(object): :ivar array: ArrayOperations operations :vartype array: vanilla.body.array.aio.operations_async.ArrayOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/_auto_rest_bool_test_service.py b/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/_auto_rest_bool_test_service.py index 307d5a05c1c..0615daef0d7 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/_auto_rest_bool_test_service.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/_auto_rest_bool_test_service.py @@ -26,7 +26,6 @@ class AutoRestBoolTestService(object): :ivar bool: BoolOperations operations :vartype bool: bodyboolean.operations.BoolOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/_auto_rest_bool_test_service_async.py b/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/_auto_rest_bool_test_service_async.py index c327d6b2854..59af6580a7a 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/_auto_rest_bool_test_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/_auto_rest_bool_test_service_async.py @@ -22,7 +22,6 @@ class AutoRestBoolTestService(object): :ivar bool: BoolOperations operations :vartype bool: bodyboolean.aio.operations_async.BoolOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/_auto_rest_swagger_bat_byte_service.py b/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/_auto_rest_swagger_bat_byte_service.py index 10728797f06..42d2b2a01bf 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/_auto_rest_swagger_bat_byte_service.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/_auto_rest_swagger_bat_byte_service.py @@ -26,7 +26,6 @@ class AutoRestSwaggerBATByteService(object): :ivar byte: ByteOperations operations :vartype byte: bodybyte.operations.ByteOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/aio/_auto_rest_swagger_bat_byte_service_async.py b/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/aio/_auto_rest_swagger_bat_byte_service_async.py index 9c4aed81f79..c0c58b0c0db 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/aio/_auto_rest_swagger_bat_byte_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/aio/_auto_rest_swagger_bat_byte_service_async.py @@ -22,7 +22,6 @@ class AutoRestSwaggerBATByteService(object): :ivar byte: ByteOperations operations :vartype byte: bodybyte.aio.operations_async.ByteOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/_class_name.py b/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/_class_name.py index 85cc8c41e92..c55bfce5676 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/_class_name.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/_class_name.py @@ -26,7 +26,6 @@ class ClassName(object): :ivar byte: ByteOperations operations :vartype byte: bodybytewithpackagename.operations.ByteOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/_class_name_async.py b/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/_class_name_async.py index 070805d75cf..ad884de58b3 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/_class_name_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/_class_name_async.py @@ -22,7 +22,6 @@ class ClassName(object): :ivar byte: ByteOperations operations :vartype byte: bodybytewithpackagename.aio.operations_async.ByteOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/_auto_rest_complex_test_service.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/_auto_rest_complex_test_service.py index c3476e4c74a..f01c47d1c14 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/_auto_rest_complex_test_service.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/_auto_rest_complex_test_service.py @@ -50,7 +50,6 @@ class AutoRestComplexTestService(object): :ivar flattencomplex: FlattencomplexOperations operations :vartype flattencomplex: bodycomplex.operations.FlattencomplexOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_auto_rest_complex_test_service_async.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_auto_rest_complex_test_service_async.py index 1c069b990ce..2a607d86785 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_auto_rest_complex_test_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_auto_rest_complex_test_service_async.py @@ -46,7 +46,6 @@ class AutoRestComplexTestService(object): :ivar flattencomplex: FlattencomplexOperations operations :vartype flattencomplex: bodycomplex.aio.operations_async.FlattencomplexOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/_auto_rest_date_test_service.py b/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/_auto_rest_date_test_service.py index bf80d85be07..562fbdcd031 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/_auto_rest_date_test_service.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/_auto_rest_date_test_service.py @@ -26,7 +26,6 @@ class AutoRestDateTestService(object): :ivar date: DateOperations operations :vartype date: bodydate.operations.DateOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/aio/_auto_rest_date_test_service_async.py b/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/aio/_auto_rest_date_test_service_async.py index d869fbe0af4..13c3ae48214 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/aio/_auto_rest_date_test_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/aio/_auto_rest_date_test_service_async.py @@ -22,7 +22,6 @@ class AutoRestDateTestService(object): :ivar date: DateOperations operations :vartype date: bodydate.aio.operations_async.DateOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/_auto_rest_date_time_test_service.py b/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/_auto_rest_date_time_test_service.py index 02c0a193a25..8e3383bfe6b 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/_auto_rest_date_time_test_service.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/_auto_rest_date_time_test_service.py @@ -26,7 +26,6 @@ class AutoRestDateTimeTestService(object): :ivar datetime: DatetimeOperations operations :vartype datetime: bodydatetime.operations.DatetimeOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/_auto_rest_date_time_test_service_async.py b/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/_auto_rest_date_time_test_service_async.py index d5e658b3770..59227e12a6f 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/_auto_rest_date_time_test_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/_auto_rest_date_time_test_service_async.py @@ -22,7 +22,6 @@ class AutoRestDateTimeTestService(object): :ivar datetime: DatetimeOperations operations :vartype datetime: bodydatetime.aio.operations_async.DatetimeOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/_auto_rest_rfc1123_date_time_test_service.py b/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/_auto_rest_rfc1123_date_time_test_service.py index e89ddab10c3..3ea9541ddca 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/_auto_rest_rfc1123_date_time_test_service.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/_auto_rest_rfc1123_date_time_test_service.py @@ -26,7 +26,6 @@ class AutoRestRFC1123DateTimeTestService(object): :ivar datetimerfc1123: Datetimerfc1123Operations operations :vartype datetimerfc1123: bodydatetimerfc1123.operations.Datetimerfc1123Operations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/_auto_rest_rfc1123_date_time_test_service_async.py b/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/_auto_rest_rfc1123_date_time_test_service_async.py index d5367da1e9d..cd8baa23cad 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/_auto_rest_rfc1123_date_time_test_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/_auto_rest_rfc1123_date_time_test_service_async.py @@ -22,7 +22,6 @@ class AutoRestRFC1123DateTimeTestService(object): :ivar datetimerfc1123: Datetimerfc1123Operations operations :vartype datetimerfc1123: bodydatetimerfc1123.aio.operations_async.Datetimerfc1123Operations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/_auto_rest_swagger_ba_tdictionary_service.py b/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/_auto_rest_swagger_ba_tdictionary_service.py index c19ebbd84bf..0090c5735b5 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/_auto_rest_swagger_ba_tdictionary_service.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/_auto_rest_swagger_ba_tdictionary_service.py @@ -26,7 +26,6 @@ class AutoRestSwaggerBATDictionaryService(object): :ivar dictionary: DictionaryOperations operations :vartype dictionary: bodydictionary.operations.DictionaryOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/_auto_rest_swagger_ba_tdictionary_service_async.py b/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/_auto_rest_swagger_ba_tdictionary_service_async.py index 4a829164985..e04b74d7d01 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/_auto_rest_swagger_ba_tdictionary_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/_auto_rest_swagger_ba_tdictionary_service_async.py @@ -22,7 +22,6 @@ class AutoRestSwaggerBATDictionaryService(object): :ivar dictionary: DictionaryOperations operations :vartype dictionary: bodydictionary.aio.operations_async.DictionaryOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/_auto_rest_duration_test_service.py b/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/_auto_rest_duration_test_service.py index 306aa1fbe9a..5299e1f073c 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/_auto_rest_duration_test_service.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/_auto_rest_duration_test_service.py @@ -26,7 +26,6 @@ class AutoRestDurationTestService(object): :ivar duration: DurationOperations operations :vartype duration: bodyduration.operations.DurationOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/_auto_rest_duration_test_service_async.py b/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/_auto_rest_duration_test_service_async.py index f3f60fb9062..df0a74c1e78 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/_auto_rest_duration_test_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/_auto_rest_duration_test_service_async.py @@ -22,7 +22,6 @@ class AutoRestDurationTestService(object): :ivar duration: DurationOperations operations :vartype duration: bodyduration.aio.operations_async.DurationOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/_auto_rest_swagger_bat_file_service.py b/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/_auto_rest_swagger_bat_file_service.py index f297b43e14d..c7d5c11937d 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/_auto_rest_swagger_bat_file_service.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/_auto_rest_swagger_bat_file_service.py @@ -26,7 +26,6 @@ class AutoRestSwaggerBATFileService(object): :ivar files: FilesOperations operations :vartype files: bodyfile.operations.FilesOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/aio/_auto_rest_swagger_bat_file_service_async.py b/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/aio/_auto_rest_swagger_bat_file_service_async.py index 0117bcb83f3..d33437a6959 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/aio/_auto_rest_swagger_bat_file_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/aio/_auto_rest_swagger_bat_file_service_async.py @@ -22,7 +22,6 @@ class AutoRestSwaggerBATFileService(object): :ivar files: FilesOperations operations :vartype files: bodyfile.aio.operations_async.FilesOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/_auto_rest_integer_test_service.py b/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/_auto_rest_integer_test_service.py index 291c6c2510a..4a3e419c960 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/_auto_rest_integer_test_service.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/_auto_rest_integer_test_service.py @@ -26,7 +26,6 @@ class AutoRestIntegerTestService(object): :ivar int: IntOperations operations :vartype int: bodyinteger.operations.IntOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/_auto_rest_integer_test_service_async.py b/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/_auto_rest_integer_test_service_async.py index cd6248d142b..3a3ae3c8193 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/_auto_rest_integer_test_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/_auto_rest_integer_test_service_async.py @@ -22,7 +22,6 @@ class AutoRestIntegerTestService(object): :ivar int: IntOperations operations :vartype int: bodyinteger.aio.operations_async.IntOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/_auto_rest_number_test_service.py b/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/_auto_rest_number_test_service.py index 2ed597b49df..b9880b2ff87 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/_auto_rest_number_test_service.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/_auto_rest_number_test_service.py @@ -26,7 +26,6 @@ class AutoRestNumberTestService(object): :ivar number: NumberOperations operations :vartype number: bodynumber.operations.NumberOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/_auto_rest_number_test_service_async.py b/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/_auto_rest_number_test_service_async.py index dcf114def9f..09a684d6248 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/_auto_rest_number_test_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/_auto_rest_number_test_service_async.py @@ -22,7 +22,6 @@ class AutoRestNumberTestService(object): :ivar number: NumberOperations operations :vartype number: bodynumber.aio.operations_async.NumberOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/_auto_rest_swagger_bat_service.py b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/_auto_rest_swagger_bat_service.py index 116484afeca..47830e1c180 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/_auto_rest_swagger_bat_service.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/_auto_rest_swagger_bat_service.py @@ -29,7 +29,6 @@ class AutoRestSwaggerBATService(object): :ivar enum: EnumOperations operations :vartype enum: bodystring.operations.EnumOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/_auto_rest_swagger_bat_service_async.py b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/_auto_rest_swagger_bat_service_async.py index 58102431cd8..f2304d1c15d 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/_auto_rest_swagger_bat_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/_auto_rest_swagger_bat_service_async.py @@ -25,7 +25,6 @@ class AutoRestSwaggerBATService(object): :ivar enum: EnumOperations operations :vartype enum: bodystring.aio.operations_async.EnumOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/_auto_rest_time_test_service.py b/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/_auto_rest_time_test_service.py index 3cce5796c48..9843bed601b 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/_auto_rest_time_test_service.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/_auto_rest_time_test_service.py @@ -26,7 +26,6 @@ class AutoRestTimeTestService(object): :ivar time: TimeOperations operations :vartype time: bodytime.operations.TimeOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/aio/_auto_rest_time_test_service_async.py b/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/aio/_auto_rest_time_test_service_async.py index 390888db789..9cdcd34f390 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/aio/_auto_rest_time_test_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/aio/_auto_rest_time_test_service_async.py @@ -22,7 +22,6 @@ class AutoRestTimeTestService(object): :ivar time: TimeOperations operations :vartype time: bodytime.aio.operations_async.TimeOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/Constants/constants/_auto_rest_swagger_constant_service.py b/test/vanilla/Expected/AcceptanceTests/Constants/constants/_auto_rest_swagger_constant_service.py index 7147eb75fe7..181306f800f 100644 --- a/test/vanilla/Expected/AcceptanceTests/Constants/constants/_auto_rest_swagger_constant_service.py +++ b/test/vanilla/Expected/AcceptanceTests/Constants/constants/_auto_rest_swagger_constant_service.py @@ -26,7 +26,6 @@ class AutoRestSwaggerConstantService(object): :ivar contants: ContantsOperations operations :vartype contants: constants.operations.ContantsOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/Constants/constants/aio/_auto_rest_swagger_constant_service_async.py b/test/vanilla/Expected/AcceptanceTests/Constants/constants/aio/_auto_rest_swagger_constant_service_async.py index a848d3277e9..537bf1e1258 100644 --- a/test/vanilla/Expected/AcceptanceTests/Constants/constants/aio/_auto_rest_swagger_constant_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/Constants/constants/aio/_auto_rest_swagger_constant_service_async.py @@ -22,7 +22,6 @@ class AutoRestSwaggerConstantService(object): :ivar contants: ContantsOperations operations :vartype contants: constants.aio.operations_async.ContantsOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_auto_rest_parameterized_host_test_client.py b/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_auto_rest_parameterized_host_test_client.py index b1ca4bbf11e..c1a93827750 100644 --- a/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_auto_rest_parameterized_host_test_client.py +++ b/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_auto_rest_parameterized_host_test_client.py @@ -27,7 +27,6 @@ class AutoRestParameterizedHostTestClient(object): :vartype paths: custombaseurl.operations.PathsOperations :param host: A string value that is used as a global part of the parameterized host. :type host: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_auto_rest_parameterized_host_test_client_async.py b/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_auto_rest_parameterized_host_test_client_async.py index ff6d66d9653..c3287ee2a9f 100644 --- a/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_auto_rest_parameterized_host_test_client_async.py +++ b/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_auto_rest_parameterized_host_test_client_async.py @@ -23,7 +23,6 @@ class AutoRestParameterizedHostTestClient(object): :vartype paths: custombaseurl.aio.operations_async.PathsOperations :param host: A string value that is used as a global part of the parameterized host. :type host: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/_auto_rest_parameterized_custom_host_test_client.py b/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/_auto_rest_parameterized_custom_host_test_client.py index 8eef1bfcadf..fb7d4c1e9ad 100644 --- a/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/_auto_rest_parameterized_custom_host_test_client.py +++ b/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/_auto_rest_parameterized_custom_host_test_client.py @@ -29,7 +29,6 @@ class AutoRestParameterizedCustomHostTestClient(object): :type subscription_id: str :param dns_suffix: A string value that is used as a global part of the parameterized host. Default value 'host'. :type dns_suffix: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/_auto_rest_parameterized_custom_host_test_client_async.py b/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/_auto_rest_parameterized_custom_host_test_client_async.py index 70ca4a50889..c346d5aaf73 100644 --- a/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/_auto_rest_parameterized_custom_host_test_client_async.py +++ b/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/_auto_rest_parameterized_custom_host_test_client_async.py @@ -25,7 +25,6 @@ class AutoRestParameterizedCustomHostTestClient(object): :type subscription_id: str :param dns_suffix: A string value that is used as a global part of the parameterized host. Default value 'host'. :type dns_suffix: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/_pet_store_inc.py b/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/_pet_store_inc.py index a53ef9c6ad4..03f31f6aec0 100644 --- a/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/_pet_store_inc.py +++ b/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/_pet_store_inc.py @@ -26,7 +26,6 @@ class PetStoreInc(object): :ivar pet: PetOperations operations :vartype pet: extensibleenumsswagger.operations.PetOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/_pet_store_inc_async.py b/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/_pet_store_inc_async.py index da0e176cf74..f9e9f8d30dc 100644 --- a/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/_pet_store_inc_async.py +++ b/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/_pet_store_inc_async.py @@ -22,7 +22,6 @@ class PetStoreInc(object): :ivar pet: PetOperations operations :vartype pet: extensibleenumsswagger.aio.operations_async.PetOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/Header/header/_auto_rest_swagger_bat_header_service.py b/test/vanilla/Expected/AcceptanceTests/Header/header/_auto_rest_swagger_bat_header_service.py index a6444b88be1..7833c9ef8f4 100644 --- a/test/vanilla/Expected/AcceptanceTests/Header/header/_auto_rest_swagger_bat_header_service.py +++ b/test/vanilla/Expected/AcceptanceTests/Header/header/_auto_rest_swagger_bat_header_service.py @@ -26,7 +26,6 @@ class AutoRestSwaggerBATHeaderService(object): :ivar header: HeaderOperations operations :vartype header: header.operations.HeaderOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/Header/header/aio/_auto_rest_swagger_bat_header_service_async.py b/test/vanilla/Expected/AcceptanceTests/Header/header/aio/_auto_rest_swagger_bat_header_service_async.py index 87e8950d3c0..82a6ade0ec4 100644 --- a/test/vanilla/Expected/AcceptanceTests/Header/header/aio/_auto_rest_swagger_bat_header_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/Header/header/aio/_auto_rest_swagger_bat_header_service_async.py @@ -22,7 +22,6 @@ class AutoRestSwaggerBATHeaderService(object): :ivar header: HeaderOperations operations :vartype header: header.aio.operations_async.HeaderOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/_auto_rest_http_infrastructure_test_service.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/_auto_rest_http_infrastructure_test_service.py index 2194b0d53bf..d1863b14f01 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/_auto_rest_http_infrastructure_test_service.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/_auto_rest_http_infrastructure_test_service.py @@ -44,7 +44,6 @@ class AutoRestHttpInfrastructureTestService(object): :ivar multiple_responses: MultipleResponsesOperations operations :vartype multiple_responses: httpinfrastructure.operations.MultipleResponsesOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/_auto_rest_http_infrastructure_test_service_async.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/_auto_rest_http_infrastructure_test_service_async.py index 3083adee9de..41e9ccf0e75 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/_auto_rest_http_infrastructure_test_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/_auto_rest_http_infrastructure_test_service_async.py @@ -40,7 +40,6 @@ class AutoRestHttpInfrastructureTestService(object): :ivar multiple_responses: MultipleResponsesOperations operations :vartype multiple_responses: httpinfrastructure.aio.operations_async.MultipleResponsesOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/MediaTypes/mediatypes/_media_types_client.py b/test/vanilla/Expected/AcceptanceTests/MediaTypes/mediatypes/_media_types_client.py index d146e681644..b89249e3494 100644 --- a/test/vanilla/Expected/AcceptanceTests/MediaTypes/mediatypes/_media_types_client.py +++ b/test/vanilla/Expected/AcceptanceTests/MediaTypes/mediatypes/_media_types_client.py @@ -24,7 +24,6 @@ class MediaTypesClient(MediaTypesClientOperationsMixin): """Play with produces/consumes and media-types in general. :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/_media_types_client_async.py b/test/vanilla/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/_media_types_client_async.py index 8bb95e0b93c..0afc06670df 100644 --- a/test/vanilla/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/_media_types_client_async.py +++ b/test/vanilla/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/_media_types_client_async.py @@ -20,7 +20,6 @@ class MediaTypesClient(MediaTypesClientOperationsMixin): """Play with produces/consumes and media-types in general. :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/_auto_rest_resource_flattening_test_service.py b/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/_auto_rest_resource_flattening_test_service.py index 23e619e338c..689c27d21d1 100644 --- a/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/_auto_rest_resource_flattening_test_service.py +++ b/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/_auto_rest_resource_flattening_test_service.py @@ -24,7 +24,6 @@ class AutoRestResourceFlatteningTestService(AutoRestResourceFlatteningTestServic """Resource Flattening for AutoRest. :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/_auto_rest_resource_flattening_test_service_async.py b/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/_auto_rest_resource_flattening_test_service_async.py index 9ced9982c8d..a0b915218dd 100644 --- a/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/_auto_rest_resource_flattening_test_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/_auto_rest_resource_flattening_test_service_async.py @@ -20,7 +20,6 @@ class AutoRestResourceFlatteningTestService(AutoRestResourceFlatteningTestServic """Resource Flattening for AutoRest. :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/_multiple_inheritance_service_client.py b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/_multiple_inheritance_service_client.py index 35ee8dc223a..7e43ab01606 100644 --- a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/_multiple_inheritance_service_client.py +++ b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/_multiple_inheritance_service_client.py @@ -24,7 +24,6 @@ class MultipleInheritanceServiceClient(MultipleInheritanceServiceClientOperation """Service client for multiinheritance client testing. :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/_multiple_inheritance_service_client_async.py b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/_multiple_inheritance_service_client_async.py index a619abd7410..3c0a33a5b15 100644 --- a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/_multiple_inheritance_service_client_async.py +++ b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/_multiple_inheritance_service_client_async.py @@ -20,7 +20,6 @@ class MultipleInheritanceServiceClient(MultipleInheritanceServiceClientOperation """Service client for multiinheritance client testing. :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/_non_string_enums_client.py b/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/_non_string_enums_client.py index e0080412189..7781e6fe8dc 100644 --- a/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/_non_string_enums_client.py +++ b/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/_non_string_enums_client.py @@ -28,7 +28,6 @@ class NonStringEnumsClient(object): :ivar float: FloatOperations operations :vartype float: nonstringenums.operations.FloatOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/_non_string_enums_client_async.py b/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/_non_string_enums_client_async.py index 838b8d8f09e..d0b6682cff5 100644 --- a/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/_non_string_enums_client_async.py +++ b/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/_non_string_enums_client_async.py @@ -28,7 +28,6 @@ class NonStringEnumsClient(object): :ivar float: FloatOperations operations :vartype float: nonstringenums.aio.operations_async.FloatOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/_object_type_client.py b/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/_object_type_client.py index edcb78d3ddb..8783505326b 100644 --- a/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/_object_type_client.py +++ b/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/_object_type_client.py @@ -23,7 +23,6 @@ class ObjectTypeClient(ObjectTypeClientOperationsMixin): """Service client for testing basic type: object swaggers. :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/aio/_object_type_client_async.py b/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/aio/_object_type_client_async.py index 5acb3664725..2dc76d17b95 100644 --- a/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/aio/_object_type_client_async.py +++ b/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/aio/_object_type_client_async.py @@ -23,7 +23,6 @@ class ObjectTypeClient(ObjectTypeClientOperationsMixin): """Service client for testing basic type: object swaggers. :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/_auto_rest_parameter_flattening.py b/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/_auto_rest_parameter_flattening.py index 0ffbee95805..e61a8304d05 100644 --- a/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/_auto_rest_parameter_flattening.py +++ b/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/_auto_rest_parameter_flattening.py @@ -26,7 +26,6 @@ class AutoRestParameterFlattening(object): :ivar availability_sets: AvailabilitySetsOperations operations :vartype availability_sets: parameterflattening.operations.AvailabilitySetsOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/_auto_rest_parameter_flattening_async.py b/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/_auto_rest_parameter_flattening_async.py index 986d5b82e86..d9d509ed76e 100644 --- a/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/_auto_rest_parameter_flattening_async.py +++ b/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/_auto_rest_parameter_flattening_async.py @@ -22,7 +22,6 @@ class AutoRestParameterFlattening(object): :ivar availability_sets: AvailabilitySetsOperations operations :vartype availability_sets: parameterflattening.aio.operations_async.AvailabilitySetsOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/Report/report/_auto_rest_report_service.py b/test/vanilla/Expected/AcceptanceTests/Report/report/_auto_rest_report_service.py index fb81bd30d33..ddefe5935aa 100644 --- a/test/vanilla/Expected/AcceptanceTests/Report/report/_auto_rest_report_service.py +++ b/test/vanilla/Expected/AcceptanceTests/Report/report/_auto_rest_report_service.py @@ -24,7 +24,6 @@ class AutoRestReportService(AutoRestReportServiceOperationsMixin): """Test Infrastructure for AutoRest. :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/Report/report/aio/_auto_rest_report_service_async.py b/test/vanilla/Expected/AcceptanceTests/Report/report/aio/_auto_rest_report_service_async.py index c12b9c0049a..6e84a9356e0 100644 --- a/test/vanilla/Expected/AcceptanceTests/Report/report/aio/_auto_rest_report_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/Report/report/aio/_auto_rest_report_service_async.py @@ -20,7 +20,6 @@ class AutoRestReportService(AutoRestReportServiceOperationsMixin): """Test Infrastructure for AutoRest. :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/_auto_rest_required_optional_test_service.py b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/_auto_rest_required_optional_test_service.py index 74b0981c829..8cad19642ee 100644 --- a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/_auto_rest_required_optional_test_service.py +++ b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/_auto_rest_required_optional_test_service.py @@ -35,7 +35,6 @@ class AutoRestRequiredOptionalTestService(object): :param optional_global_query: number of items to skip. :type optional_global_query: int :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/_auto_rest_required_optional_test_service_async.py b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/_auto_rest_required_optional_test_service_async.py index a168baf8b48..57ed4e0cea0 100644 --- a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/_auto_rest_required_optional_test_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/_auto_rest_required_optional_test_service_async.py @@ -31,7 +31,6 @@ class AutoRestRequiredOptionalTestService(object): :param optional_global_query: number of items to skip. :type optional_global_query: int :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/Url/url/_auto_rest_url_test_service.py b/test/vanilla/Expected/AcceptanceTests/Url/url/_auto_rest_url_test_service.py index 17a177bfb8e..68f64051297 100644 --- a/test/vanilla/Expected/AcceptanceTests/Url/url/_auto_rest_url_test_service.py +++ b/test/vanilla/Expected/AcceptanceTests/Url/url/_auto_rest_url_test_service.py @@ -36,7 +36,6 @@ class AutoRestUrlTestService(object): :param global_string_query: should contain value null. :type global_string_query: str :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/Url/url/aio/_auto_rest_url_test_service_async.py b/test/vanilla/Expected/AcceptanceTests/Url/url/aio/_auto_rest_url_test_service_async.py index 8741a7a1b27..b32d35e2cb1 100644 --- a/test/vanilla/Expected/AcceptanceTests/Url/url/aio/_auto_rest_url_test_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/Url/url/aio/_auto_rest_url_test_service_async.py @@ -32,7 +32,6 @@ class AutoRestUrlTestService(object): :param global_string_query: should contain value null. :type global_string_query: str :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/_auto_rest_url_mutli_collection_format_test_service.py b/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/_auto_rest_url_mutli_collection_format_test_service.py index d95a800bc9b..6ed84972933 100644 --- a/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/_auto_rest_url_mutli_collection_format_test_service.py +++ b/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/_auto_rest_url_mutli_collection_format_test_service.py @@ -26,7 +26,6 @@ class AutoRestUrlMutliCollectionFormatTestService(object): :ivar queries: QueriesOperations operations :vartype queries: urlmulticollectionformat.operations.QueriesOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/_auto_rest_url_mutli_collection_format_test_service_async.py b/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/_auto_rest_url_mutli_collection_format_test_service_async.py index 8d724c80bd2..c3ff1ce360e 100644 --- a/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/_auto_rest_url_mutli_collection_format_test_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/_auto_rest_url_mutli_collection_format_test_service_async.py @@ -22,7 +22,6 @@ class AutoRestUrlMutliCollectionFormatTestService(object): :ivar queries: QueriesOperations operations :vartype queries: urlmulticollectionformat.aio.operations_async.QueriesOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/Validation/validation/_auto_rest_validation_test.py b/test/vanilla/Expected/AcceptanceTests/Validation/validation/_auto_rest_validation_test.py index 028ecdbd59d..ffb2186310b 100644 --- a/test/vanilla/Expected/AcceptanceTests/Validation/validation/_auto_rest_validation_test.py +++ b/test/vanilla/Expected/AcceptanceTests/Validation/validation/_auto_rest_validation_test.py @@ -26,7 +26,6 @@ class AutoRestValidationTest(AutoRestValidationTestOperationsMixin): :param subscription_id: Subscription ID. :type subscription_id: str :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/Validation/validation/aio/_auto_rest_validation_test_async.py b/test/vanilla/Expected/AcceptanceTests/Validation/validation/aio/_auto_rest_validation_test_async.py index ce17da8a416..b179748256f 100644 --- a/test/vanilla/Expected/AcceptanceTests/Validation/validation/aio/_auto_rest_validation_test_async.py +++ b/test/vanilla/Expected/AcceptanceTests/Validation/validation/aio/_auto_rest_validation_test_async.py @@ -22,7 +22,6 @@ class AutoRestValidationTest(AutoRestValidationTestOperationsMixin): :param subscription_id: Subscription ID. :type subscription_id: str :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/_auto_rest_swagger_batxml_service.py b/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/_auto_rest_swagger_batxml_service.py index 555169e3420..8f0d064e920 100644 --- a/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/_auto_rest_swagger_batxml_service.py +++ b/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/_auto_rest_swagger_batxml_service.py @@ -26,7 +26,6 @@ class AutoRestSwaggerBATXMLService(object): :ivar xml: XmlOperations operations :vartype xml: xmlservice.operations.XmlOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/aio/_auto_rest_swagger_batxml_service_async.py b/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/aio/_auto_rest_swagger_batxml_service_async.py index dd4bca0ff9e..3b29d8ff09d 100644 --- a/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/aio/_auto_rest_swagger_batxml_service_async.py +++ b/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/aio/_auto_rest_swagger_batxml_service_async.py @@ -22,7 +22,6 @@ class AutoRestSwaggerBATXMLService(object): :ivar xml: XmlOperations operations :vartype xml: xmlservice.aio.operations_async.XmlOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/_xms_error_response_extensions.py b/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/_xms_error_response_extensions.py index 9a46ac376a9..a606ac8a89e 100644 --- a/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/_xms_error_response_extensions.py +++ b/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/_xms_error_response_extensions.py @@ -26,7 +26,6 @@ class XMSErrorResponseExtensions(object): :ivar pet: PetOperations operations :vartype pet: xmserrorresponse.operations.PetOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/_xms_error_response_extensions_async.py b/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/_xms_error_response_extensions_async.py index 0c2a4bfea1e..a38d01447e8 100644 --- a/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/_xms_error_response_extensions_async.py +++ b/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/_xms_error_response_extensions_async.py @@ -22,7 +22,6 @@ class XMSErrorResponseExtensions(object): :ivar pet: PetOperations operations :vartype pet: xmserrorresponse.aio.operations_async.PetOperations :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( From 59e43e922106f922355198d7e1a6b1878a79cc7e Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Thu, 30 Jul 2020 16:45:08 -0400 Subject: [PATCH 3/7] only generate polling_interval in docstring if package has lro operations in multiapi --- autorest/multiapi/__init__.py | 14 +++++++++++++- .../templates/multiapi_service_client.py.jinja2 | 2 ++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/autorest/multiapi/__init__.py b/autorest/multiapi/__init__.py index 70b1af5b5eb..08e625a973d 100644 --- a/autorest/multiapi/__init__.py +++ b/autorest/multiapi/__init__.py @@ -312,6 +312,17 @@ def _merge_mixin_imports_across_versions( return imports + def _has_lro_operations( + self, paths_to_versions: List[Path] + ) -> bool: + has_lro_operations = False + for version_path in paths_to_versions: + metadata_json = json.loads(self._autorestapi.read_file(version_path / "_metadata.json")) + current_client_has_lro_operations = metadata_json["client"]["has_lro_operations"] + if current_client_has_lro_operations: + has_lro_operations = True + return has_lro_operations + def process(self) -> bool: _LOGGER.info("Generating multiapi client") # If True, means the auto-profile will consider preview versions. @@ -417,7 +428,8 @@ def process(self) -> bool: "async_imports": str(FileImportSerializer(async_imports, is_python_3_file=True)), "base_url": metadata_json["client"]["base_url"], "custom_base_url_to_api_version": self._build_custom_base_url_to_api_version(paths_to_versions), - "azure_arm": metadata_json["client"]["azure_arm"] + "azure_arm": metadata_json["client"]["azure_arm"], + "has_lro_operations": self._has_lro_operations(paths_to_versions) } multiapi_serializer = MultiAPISerializer( diff --git a/autorest/multiapi/templates/multiapi_service_client.py.jinja2 b/autorest/multiapi/templates/multiapi_service_client.py.jinja2 index 00b46f863ba..f54fd412b35 100644 --- a/autorest/multiapi/templates/multiapi_service_client.py.jinja2 +++ b/autorest/multiapi/templates/multiapi_service_client.py.jinja2 @@ -78,7 +78,9 @@ class {{ client_name }}({% if mixin_operations %}{{ client_name }}OperationsMixi {% endif %} :param profile: A profile definition, from KnownProfiles to dict. :type profile: azure.profiles.KnownProfiles + {% if has_lro_operations %} :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + {% endif %} """ DEFAULT_API_VERSION = '{{ last_api_version }}' From d40b49d202ab89465c81e3337f059650cc2eac73 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Thu, 30 Jul 2020 16:46:16 -0400 Subject: [PATCH 4/7] fix pylint --- autorest/codegen/serializers/metadata_serializer.py | 2 -- autorest/codegen/serializers/operation_group_serializer.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/autorest/codegen/serializers/metadata_serializer.py b/autorest/codegen/serializers/metadata_serializer.py index 762ea89a8a3..2740f481c22 100644 --- a/autorest/codegen/serializers/metadata_serializer.py +++ b/autorest/codegen/serializers/metadata_serializer.py @@ -11,8 +11,6 @@ CodeModel, Operation, OperationGroup, - LROOperation, - PagingOperation, CredentialSchema, ParameterList, TypingSection, diff --git a/autorest/codegen/serializers/operation_group_serializer.py b/autorest/codegen/serializers/operation_group_serializer.py index d20b5a67114..1bd9c131b6a 100644 --- a/autorest/codegen/serializers/operation_group_serializer.py +++ b/autorest/codegen/serializers/operation_group_serializer.py @@ -6,7 +6,7 @@ from jinja2 import Environment from .import_serializer import FileImportSerializer -from ..models import LROOperation, PagingOperation, CodeModel, OperationGroup +from ..models import CodeModel, OperationGroup class OperationGroupSerializer: From 5ea2e5894b7db1bde4d01a789e0299449a7f194c Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Fri, 31 Jul 2020 12:25:30 -0400 Subject: [PATCH 5/7] not exposing is_lro and is_paging as properties of operation models --- autorest/codegen/models/code_model.py | 3 ++- autorest/codegen/models/lro_operation.py | 4 ---- autorest/codegen/models/lro_paging_operation.py | 9 +-------- autorest/codegen/models/operation.py | 8 -------- autorest/codegen/models/paging_operation.py | 4 ---- .../codegen/serializers/metadata_serializer.py | 10 ++++++++++ .../serializers/operation_group_serializer.py | 10 +++++++++- autorest/codegen/templates/metadata.json.jinja2 | 16 ++++++++-------- .../templates/operations_container.py.jinja2 | 6 +++--- .../operations_container_mixin.py.jinja2 | 6 +++--- 10 files changed, 36 insertions(+), 40 deletions(-) diff --git a/autorest/codegen/models/code_model.py b/autorest/codegen/models/code_model.py index e89cd134243..82190abcca2 100644 --- a/autorest/codegen/models/code_model.py +++ b/autorest/codegen/models/code_model.py @@ -14,6 +14,7 @@ from .operation import Operation from .lro_operation import LROOperation from .paging_operation import PagingOperation +from .lro_paging_operation import LROPagingOperation from .parameter import Parameter, ParameterLocation from .client import Client from .parameter_list import ParameterList @@ -372,7 +373,7 @@ def generate_single_parameter_from_multiple_media_types(self) -> None: @property def has_lro_operations(self) -> bool: return any([ - operation.is_lro + (type(operation) == LROOperation or type(operation) == LROPagingOperation) for operation_group in self.operation_groups for operation in operation_group.operations ]) diff --git a/autorest/codegen/models/lro_operation.py b/autorest/codegen/models/lro_operation.py index ba8fa81341f..f7298fd3141 100644 --- a/autorest/codegen/models/lro_operation.py +++ b/autorest/codegen/models/lro_operation.py @@ -109,7 +109,3 @@ def imports(self, code_model, async_mode: bool) -> FileImport: else: file_import.add_from_import("azure.core.polling.base_polling", "LROBasePolling", ImportType.AZURECORE) return file_import - - @property - def is_lro(self): - return True diff --git a/autorest/codegen/models/lro_paging_operation.py b/autorest/codegen/models/lro_paging_operation.py index 5c066097ba7..ae9996491cf 100644 --- a/autorest/codegen/models/lro_paging_operation.py +++ b/autorest/codegen/models/lro_paging_operation.py @@ -55,11 +55,4 @@ def imports(self, code_model, async_mode: bool) -> FileImport: file_import = lro_imports file_import.merge(paging_imports) return file_import - - @property - def is_lro(self): - return True - - @property - def is_paging(self): - return True + \ No newline at end of file diff --git a/autorest/codegen/models/operation.py b/autorest/codegen/models/operation.py index 7ead4a4176d..652e69ef423 100644 --- a/autorest/codegen/models/operation.py +++ b/autorest/codegen/models/operation.py @@ -306,14 +306,6 @@ def imports(self, code_model, async_mode: bool) -> FileImport: return file_import - @property - def is_lro(self): - return False - - @property - def is_paging(self): - return False - @classmethod def from_yaml(cls, yaml_data: Dict[str, Any]) -> "Operation": name = yaml_data["language"]["python"]["name"] diff --git a/autorest/codegen/models/paging_operation.py b/autorest/codegen/models/paging_operation.py index 12a5b1c56d8..3522783ef63 100644 --- a/autorest/codegen/models/paging_operation.py +++ b/autorest/codegen/models/paging_operation.py @@ -113,10 +113,6 @@ def success_status_code(self) -> List[Union[str, int]]: return [200] return super(PagingOperation, self).success_status_code - @property - def is_paging(self): - return True - def imports(self, code_model, async_mode: bool) -> FileImport: file_import = super(PagingOperation, self).imports(code_model, async_mode) diff --git a/autorest/codegen/serializers/metadata_serializer.py b/autorest/codegen/serializers/metadata_serializer.py index 2740f481c22..2ec39660c03 100644 --- a/autorest/codegen/serializers/metadata_serializer.py +++ b/autorest/codegen/serializers/metadata_serializer.py @@ -11,6 +11,8 @@ CodeModel, Operation, OperationGroup, + LROOperation, + PagingOperation, CredentialSchema, ParameterList, TypingSection, @@ -81,6 +83,12 @@ def _make_async_copy_of_global_parameters(self) -> ParameterList: return global_parameters def serialize(self) -> str: + def _is_lro(operation): + return isinstance(operation, LROOperation) + + def _is_paging(operation): + return isinstance(operation, PagingOperation) + mixin_operation_group: Optional[OperationGroup] = next( (operation_group for operation_group in self.code_model.operation_groups if operation_group.is_empty_operation_group), @@ -114,6 +122,8 @@ def serialize(self) -> str: async_global_parameters=async_global_parameters, mixin_operations=mixin_operations, any=any, + is_lro=_is_lro, + is_paging=_is_paging, str=str, sync_mixin_imports=( _json_serialize_imports(sync_mixin_imports.imports) diff --git a/autorest/codegen/serializers/operation_group_serializer.py b/autorest/codegen/serializers/operation_group_serializer.py index 1bd9c131b6a..ba073a0043d 100644 --- a/autorest/codegen/serializers/operation_group_serializer.py +++ b/autorest/codegen/serializers/operation_group_serializer.py @@ -6,7 +6,7 @@ from jinja2 import Environment from .import_serializer import FileImportSerializer -from ..models import CodeModel, OperationGroup +from ..models import LROOperation, PagingOperation, CodeModel, OperationGroup class OperationGroupSerializer: @@ -19,6 +19,12 @@ def __init__( self.async_mode = async_mode def serialize(self) -> str: + def _is_lro(operation): + return isinstance(operation, LROOperation) + + def _is_paging(operation): + return isinstance(operation, PagingOperation) + operation_group_template = self.env.get_template("operations_container.py.jinja2") if self.operation_group.is_empty_operation_group: operation_group_template = self.env.get_template("operations_container_mixin.py.jinja2") @@ -34,4 +40,6 @@ def serialize(self) -> str: is_python_3_file=self.async_mode ), async_mode=self.async_mode, + is_lro=_is_lro, + is_paging=_is_paging, ) diff --git a/autorest/codegen/templates/metadata.json.jinja2 b/autorest/codegen/templates/metadata.json.jinja2 index 7122fde63bb..6d68b739945 100644 --- a/autorest/codegen/templates/metadata.json.jinja2 +++ b/autorest/codegen/templates/metadata.json.jinja2 @@ -58,16 +58,16 @@ }, "operation_mixins": { {% for operation in mixin_operations %} - {% set operation_name = "begin_" + operation.name if operation.is_lro else operation.name %} + {% set operation_name = "begin_" + operation.name if is_lro(operation) else operation.name %} {{ operation_name | tojson }} : { "sync": { - {% if operation.is_lro and operation.is_paging %} + {% if is_lro(operation) and is_paging(operation) %} {% from "lro_paging_operation.py.jinja2" import operation_docstring with context %} {% set sync_return_type_wrapper = ["LROPoller", "ItemPaged"] %} - {% elif operation.is_lro %} + {% elif is_lro(operation) %} {% from "lro_operation.py.jinja2" import operation_docstring with context %} {% set sync_return_type_wrapper = ["LROPoller"] %} - {% elif operation.is_paging %} + {% elif is_paging(operation) %} {% from "paging_operation.py.jinja2" import operation_docstring with context %} {% set sync_return_type_wrapper = ["ItemPaged"] %} {% else %} @@ -78,15 +78,15 @@ "doc": {{ operation_docstring(async_mode=False) | tojson }} }, "async": { - {% set coroutine = False if operation.is_paging else True %} + {% set coroutine = False if is_paging(operation) else True %} "coroutine": {{ coroutine | tojson }}, - {% if operation.is_lro and operation.is_paging %} + {% if is_lro(operation) and is_paging(operation) %} {% from "lro_paging_operation.py.jinja2" import operation_docstring with context %} {% set async_return_type_wrapper = ["AsyncLROPoller", "AsyncItemPaged"] %} - {% elif operation.is_lro %} + {% elif is_lro(operation) %} {% from "lro_operation.py.jinja2" import operation_docstring with context %} {% set async_return_type_wrapper = ["AsyncLROPoller"] %} - {% elif operation.is_paging %} + {% elif is_paging(operation) %} {% from "paging_operation.py.jinja2" import operation_docstring with context %} {% set async_return_type_wrapper = ["AsyncItemPaged"] %} {% else %} diff --git a/autorest/codegen/templates/operations_container.py.jinja2 b/autorest/codegen/templates/operations_container.py.jinja2 index acb8dff780a..d1c06449d4e 100644 --- a/autorest/codegen/templates/operations_container.py.jinja2 +++ b/autorest/codegen/templates/operations_container.py.jinja2 @@ -35,11 +35,11 @@ class {{ operation_group.class_name }}{{ object_base_class }}: self._config = config {% for operation in operation_group.operations %} - {% if operation.is_lro and operation.is_paging %} + {% if is_lro(operation) and is_paging(operation) %} {% macro someop() %}{% include "lro_paging_operation.py.jinja2" %}{% endmacro %} - {% elif operation.is_lro %} + {% elif is_lro(operation) %} {% macro someop() %}{% include "lro_operation.py.jinja2" %}{% endmacro %} - {% elif operation.is_paging %} + {% elif is_paging(operation) %} {% macro someop() %}{% include "paging_operation.py.jinja2" %}{% endmacro %} {% else %} {% macro someop() %}{% include "operation.py.jinja2" %}{% endmacro %} diff --git a/autorest/codegen/templates/operations_container_mixin.py.jinja2 b/autorest/codegen/templates/operations_container_mixin.py.jinja2 index d7bc5001a4a..cff9347387c 100644 --- a/autorest/codegen/templates/operations_container_mixin.py.jinja2 +++ b/autorest/codegen/templates/operations_container_mixin.py.jinja2 @@ -9,11 +9,11 @@ class {{ operation_group.class_name }}{{ object_base_class }}: {% for operation in operation_group.operations %} - {% if operation.is_lro and operation.is_paging %} + {% if is_lro(operation) and is_paging(operation) %} {%- macro someop() %}{% include "lro_paging_operation.py.jinja2" %}{% endmacro %} - {% elif operation.is_lro %} + {% elif is_lro(operation) %} {%- macro someop() %}{% include "lro_operation.py.jinja2" %}{% endmacro %} - {% elif operation.is_paging %} + {% elif is_paging(operation) %} {% macro someop() %}{% include "paging_operation.py.jinja2" %}{% endmacro %} {% else %} {% macro someop() %}{% include "operation.py.jinja2" %}{% endmacro %} From 846a447573ffb39726a64f906d07108cc697717b Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Fri, 31 Jul 2020 12:33:48 -0400 Subject: [PATCH 6/7] fix pylint --- autorest/codegen/models/code_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autorest/codegen/models/code_model.py b/autorest/codegen/models/code_model.py index 82190abcca2..dc74bbec4fd 100644 --- a/autorest/codegen/models/code_model.py +++ b/autorest/codegen/models/code_model.py @@ -373,7 +373,7 @@ def generate_single_parameter_from_multiple_media_types(self) -> None: @property def has_lro_operations(self) -> bool: return any([ - (type(operation) == LROOperation or type(operation) == LROPagingOperation) + isinstance(operation, LROOperation) for operation_group in self.operation_groups for operation in operation_group.operations ]) From 31e6c9b20f787c81f946c0a972b7ef91d8046450 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Wed, 5 Aug 2020 10:44:23 -0400 Subject: [PATCH 7/7] fix pylint --- autorest/codegen/models/code_model.py | 1 - 1 file changed, 1 deletion(-) diff --git a/autorest/codegen/models/code_model.py b/autorest/codegen/models/code_model.py index dc74bbec4fd..cb6caf9d0bb 100644 --- a/autorest/codegen/models/code_model.py +++ b/autorest/codegen/models/code_model.py @@ -14,7 +14,6 @@ from .operation import Operation from .lro_operation import LROOperation from .paging_operation import PagingOperation -from .lro_paging_operation import LROPagingOperation from .parameter import Parameter, ParameterLocation from .client import Client from .parameter_list import ParameterList