From 86c1c0f3dab0ac34f44d82fbac0698b9e199ba54 Mon Sep 17 00:00:00 2001 From: iscai-msft <43154838+iscai-msft@users.noreply.github.com> Date: Wed, 3 Jun 2020 17:57:41 -0400 Subject: [PATCH] fix http request verb to always be get for next operation if not defined (#664) --- ChangeLog.md | 1 + .../codegen/templates/operation_tools.jinja2 | 7 +- .../templates/paging_operation.py.jinja2 | 6 +- .../_duration_operations_async.py | 8 +- .../operations/_duration_operations.py | 8 +- .../_parameter_grouping_operations_async.py | 8 +- .../_parameter_grouping_operations.py | 8 +- ...port_service_for_azure_operations_async.py | 2 +- ...est_report_service_for_azure_operations.py | 2 +- .../_api_version_default_operations_async.py | 8 +- .../_api_version_local_operations_async.py | 8 +- .../_header_operations_async.py | 6 +- .../_odata_operations_async.py | 2 +- .../_skip_url_encoding_operations_async.py | 14 +- ...ription_in_credentials_operations_async.py | 10 +- ...subscription_in_method_operations_async.py | 8 +- ..._xms_client_request_id_operations_async.py | 4 +- .../_api_version_default_operations.py | 8 +- .../_api_version_local_operations.py | 8 +- .../operations/_header_operations.py | 6 +- .../operations/_odata_operations.py | 2 +- .../_skip_url_encoding_operations.py | 14 +- ..._subscription_in_credentials_operations.py | 10 +- .../_subscription_in_method_operations.py | 8 +- .../_xms_client_request_id_operations.py | 4 +- .../_paths_operations_async.py | 2 +- .../operations/_paths_operations.py | 2 +- .../_paging_operations_async.py | 28 +- .../operations/_paging_operations.py | 28 +- .../_http_success_operations_async.py | 6 +- .../operations/_http_success_operations.py | 6 +- .../_head_exception_operations_async.py | 6 +- .../operations/_head_exception_operations.py | 6 +- .../_lr_os_custom_header_operations_async.py | 8 +- .../_lro_retrys_operations_async.py | 14 +- .../_lros_operations_async.py | 82 +-- .../_lrosads_operations_async.py | 52 +- .../_lr_os_custom_header_operations.py | 8 +- .../lro/operations/_lro_retrys_operations.py | 14 +- .../Lro/lro/operations/_lros_operations.py | 82 +-- .../Lro/lro/operations/_lrosads_operations.py | 52 +- .../_paging_operations_async.py | 244 ++++---- .../paging/operations/_paging_operations.py | 244 ++++---- .../_storage_accounts_operations_async.py | 42 +- .../_usage_operations_async.py | 2 +- .../_storage_accounts_operations.py | 42 +- .../storage/operations/_usage_operations.py | 2 +- .../_group_operations_async.py | 2 +- .../operations/_group_operations.py | 2 +- ...ultiapi_service_client_operations_async.py | 4 +- .../_operation_group_one_operations_async.py | 2 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 2 +- ...ultiapi_service_client_operations_async.py | 2 +- .../_operation_group_one_operations_async.py | 4 +- .../_operation_group_two_operations_async.py | 2 +- .../_multiapi_service_client_operations.py | 2 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 2 +- ...ultiapi_service_client_operations_async.py | 14 +- .../_operation_group_one_operations_async.py | 2 +- .../_operation_group_two_operations_async.py | 4 +- .../_multiapi_service_client_operations.py | 14 +- .../_operation_group_one_operations.py | 2 +- .../_operation_group_two_operations.py | 4 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 2 +- .../_multiapi_service_client_operations.py | 2 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 2 +- .../_multiapi_service_client_operations.py | 14 +- .../_operation_group_one_operations.py | 2 +- .../_operation_group_two_operations.py | 4 +- ...ultiapi_service_client_operations_async.py | 4 +- .../_operation_group_one_operations_async.py | 2 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 2 +- ...ultiapi_service_client_operations_async.py | 2 +- .../_operation_group_one_operations_async.py | 4 +- .../_operation_group_two_operations_async.py | 2 +- .../_multiapi_service_client_operations.py | 2 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 2 +- ...ultiapi_service_client_operations_async.py | 14 +- .../_operation_group_one_operations_async.py | 2 +- .../_operation_group_two_operations_async.py | 4 +- .../_multiapi_service_client_operations.py | 14 +- .../_operation_group_one_operations.py | 2 +- .../_operation_group_two_operations.py | 4 +- .../_pets_operations_async.py | 6 - .../operations/_pets_operations.py | 6 - .../_array_operations_async.py | 69 --- .../bodyarray/operations/_array_operations.py | 69 --- .../_bool_operations_async.py | 6 - .../operations/_bool_operations.py | 6 - .../_byte_operations_async.py | 5 - .../bodybyte/operations/_byte_operations.py | 5 - .../_array_operations_async.py | 10 +- .../_basic_operations_async.py | 12 +- .../_dictionary_operations_async.py | 12 +- .../_flattencomplex_operations_async.py | 2 +- .../_inheritance_operations_async.py | 4 +- .../_polymorphicrecursive_operations_async.py | 4 +- .../_polymorphism_operations_async.py | 18 +- .../_primitive_operations_async.py | 44 +- .../_readonlyproperty_operations_async.py | 4 +- .../operations/_array_operations.py | 10 +- .../operations/_basic_operations.py | 12 +- .../operations/_dictionary_operations.py | 12 +- .../operations/_flattencomplex_operations.py | 2 +- .../operations/_inheritance_operations.py | 4 +- .../_polymorphicrecursive_operations.py | 4 +- .../operations/_polymorphism_operations.py | 18 +- .../operations/_primitive_operations.py | 44 +- .../_readonlyproperty_operations.py | 4 +- .../_date_operations_async.py | 8 - .../bodydate/operations/_date_operations.py | 8 - .../_datetime_operations_async.py | 22 - .../operations/_datetime_operations.py | 22 - .../_datetimerfc1123_operations_async.py | 18 +- .../operations/_datetimerfc1123_operations.py | 18 +- .../_dictionary_operations_async.py | 130 ++--- .../operations/_dictionary_operations.py | 130 ++--- .../_duration_operations_async.py | 8 +- .../operations/_duration_operations.py | 8 +- .../_files_operations_async.py | 3 - .../bodyfile/operations/_files_operations.py | 3 - .../operations_async/_int_operations_async.py | 14 - .../bodyinteger/operations/_int_operations.py | 14 - .../_number_operations_async.py | 24 - .../operations/_number_operations.py | 24 - .../_enum_operations_async.py | 6 - .../_string_operations_async.py | 13 - .../bodystring/operations/_enum_operations.py | 6 - .../operations/_string_operations.py | 13 - .../_time_operations_async.py | 2 - .../bodytime/operations/_time_operations.py | 2 - .../_paths_operations_async.py | 1 - .../operations/_paths_operations.py | 1 - .../_paths_operations_async.py | 1 - .../operations/_paths_operations.py | 1 - .../operations_async/_pet_operations_async.py | 2 - .../operations/_pet_operations.py | 2 - .../_header_operations_async.py | 29 - .../header/operations/_header_operations.py | 29 - .../_http_client_failure_operations_async.py | 26 - .../_http_failure_operations_async.py | 3 - .../_http_redirects_operations_async.py | 16 - .../_http_retry_operations_async.py | 9 - .../_http_server_failure_operations_async.py | 4 - .../_http_success_operations_async.py | 19 - .../_multiple_responses_operations_async.py | 34 -- .../_http_client_failure_operations.py | 26 - .../operations/_http_failure_operations.py | 3 - .../operations/_http_redirects_operations.py | 16 - .../operations/_http_retry_operations.py | 9 - .../_http_server_failure_operations.py | 4 - .../operations/_http_success_operations.py | 19 - .../_multiple_responses_operations.py | 34 -- .../_media_types_client_operations_async.py | 2 - .../_media_types_client_operations.py | 2 - ...lattening_test_service_operations_async.py | 11 - ...urce_flattening_test_service_operations.py | 11 - .../multipleinheritance/__init__.py | 19 - .../multipleinheritance/_configuration.py | 50 -- .../_multiple_inheritance_service_client.py | 57 -- .../multipleinheritance/_version.py | 9 - .../multipleinheritance/aio/__init__.py | 10 - .../aio/_configuration_async.py | 44 -- ...ltiple_inheritance_service_client_async.py | 49 -- .../aio/operations_async/__init__.py | 13 - ...ritance_service_client_operations_async.py | 506 ----------------- .../multipleinheritance/models/__init__.py | 31 -- .../multipleinheritance/models/_models.py | 184 ------- .../multipleinheritance/models/_models_py3.py | 208 ------- .../operations/__init__.py | 13 - ...e_inheritance_service_client_operations.py | 520 ------------------ .../multipleinheritance/py.typed | 1 - .../MultipleInheritance/setup.py | 37 -- .../_float_operations_async.py | 2 - .../operations_async/_int_operations_async.py | 2 - .../operations/_float_operations.py | 2 - .../operations/_int_operations.py | 2 - .../_object_type_client_operations_async.py | 2 - .../_object_type_client_operations.py | 2 - .../_availability_sets_operations_async.py | 1 - .../_availability_sets_operations.py | 1 - ...to_rest_report_service_operations_async.py | 2 - .../_auto_rest_report_service_operations.py | 2 - .../_explicit_operations_async.py | 22 - .../_implicit_operations_async.py | 7 - .../operations/_explicit_operations.py | 22 - .../operations/_implicit_operations.py | 7 - .../_path_items_operations_async.py | 4 - .../_paths_operations_async.py | 27 - .../_queries_operations_async.py | 34 -- .../url/operations/_path_items_operations.py | 4 - .../Url/url/operations/_paths_operations.py | 27 - .../Url/url/operations/_queries_operations.py | 34 -- .../_queries_operations_async.py | 3 - .../operations/_queries_operations.py | 3 - ...o_rest_validation_test_operations_async.py | 4 - .../_auto_rest_validation_test_operations.py | 4 - .../operations_async/_xml_operations_async.py | 29 - .../xmlservice/operations/_xml_operations.py | 29 - .../operations_async/_pet_operations_async.py | 2 - .../operations/_pet_operations.py | 2 - 207 files changed, 968 insertions(+), 3583 deletions(-) delete mode 100644 test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/__init__.py delete mode 100644 test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/_configuration.py delete mode 100644 test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/_multiple_inheritance_service_client.py delete mode 100644 test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/_version.py delete mode 100644 test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/__init__.py delete mode 100644 test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/_configuration_async.py delete mode 100644 test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/_multiple_inheritance_service_client_async.py delete mode 100644 test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations_async/__init__.py delete mode 100644 test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations_async/_multiple_inheritance_service_client_operations_async.py delete mode 100644 test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/models/__init__.py delete mode 100644 test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/models/_models.py delete mode 100644 test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/models/_models_py3.py delete mode 100644 test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/__init__.py delete mode 100644 test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/_multiple_inheritance_service_client_operations.py delete mode 100644 test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/py.typed delete mode 100644 test/vanilla/Expected/AcceptanceTests/MultipleInheritance/setup.py diff --git a/ChangeLog.md b/ChangeLog.md index d49c6be20af..b88c3341a45 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -8,6 +8,7 @@ Modelerfour version: 4.13.351 - Corrected return type typing annotation for operations that return an optional body #656 - Fixed mypy issue by only setting the generated `deserialized` variable to None if the operation has an optional return type #656 - Fixed generation of pkgutil init files #661 +- Have the next operation in a paging call use the HTTP verb GET if the next operation is not defined #664 ### 2020-05-22 - 5.0.0-preview.8 Modelerfour version: 4.13.351 diff --git a/autorest/codegen/templates/operation_tools.jinja2 b/autorest/codegen/templates/operation_tools.jinja2 index ee97255cf5c..3b771919a55 100644 --- a/autorest/codegen/templates/operation_tools.jinja2 +++ b/autorest/codegen/templates/operation_tools.jinja2 @@ -175,10 +175,9 @@ else: {% endif %} body_content_kwargs['content'] = body_content{% endmacro %} {# write body parameters #} -{% macro body_parameters(operation) %} +{% macro body_parameters(operation, http_verb=None) %} {% set send_xml = "xml" if operation.parameters.has_body and "xml" in operation.request_content_type %} {% set request_as_xml = ", is_xml=True" if send_xml else "" %} -# Construct and send request {% if operation.parameters.has_body %} body_content_kwargs = {} # type: Dict[str, Any] {% if (operation.requests | length) == 1 %} @@ -202,6 +201,6 @@ else: "{{ operation.requests | map(attribute="media_types") | sum(start = []) | unique | list }}".format(header_parameters['Content-Type']) ) {% endif %} -request = self._client.{{ operation.method }}(url, query_parameters, header_parameters, **body_content_kwargs) +request = self._client.{{ http_verb if http_verb else operation.method }}(url, query_parameters, header_parameters, **body_content_kwargs) {% else %} -request = self._client.{{ operation.method }}(url, query_parameters, header_parameters){% endif %}{% endmacro %} \ No newline at end of file +request = self._client.{{ http_verb if http_verb else operation.method }}(url, query_parameters, header_parameters){% endif %}{% endmacro %} \ No newline at end of file diff --git a/autorest/codegen/templates/paging_operation.py.jinja2 b/autorest/codegen/templates/paging_operation.py.jinja2 index 9dad7e1090c..91e71f05772 100644 --- a/autorest/codegen/templates/paging_operation.py.jinja2 +++ b/autorest/codegen/templates/paging_operation.py.jinja2 @@ -62,6 +62,7 @@ {% endif %} def prepare_request(next_link=None): + {{ op_tools.header_parameters(code_model, operation, async_mode)|indent(8) }} if not next_link: # Construct URL url = self.{{ operation.python_name }}.metadata['url'] # type: ignore @@ -74,6 +75,7 @@ url = self._client.format_url(url, **path_format_arguments) {% endif %} {{ op_tools.query_parameters(operation, async_mode)|indent(12) }} + {{ op_tools.body_parameters(operation)|indent(12) }} else: {% if operation.next_operation %} url = '{{ operation.next_operation.url }}' @@ -86,6 +88,7 @@ url = self._client.format_url(url, **path_format_arguments) {% endif %} {{ op_tools.query_parameters(operation.next_operation, async_mode)|indent(12) }} + {{ op_tools.body_parameters(operation.next_operation)|indent(12) }} {% else %} url = next_link query_parameters = {} # type: Dict[str, Any] @@ -97,9 +100,8 @@ } url = self._client.format_url(url, **path_format_arguments) {% endif %} + {{ op_tools.body_parameters(operation, http_verb="get")|indent(12) }} {% endif %} - {{ op_tools.header_parameters(code_model, operation, async_mode)|indent(8) }} - {{ op_tools.body_parameters(operation)|indent(8) }} return request {{ keywords.def }} extract_data(pipeline_response): diff --git a/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/operations_async/_duration_operations_async.py b/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/operations_async/_duration_operations_async.py index 32b83e96a3e..86fde5090a8 100644 --- a/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/operations_async/_duration_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/operations_async/_duration_operations_async.py @@ -67,7 +67,7 @@ async def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -115,7 +115,7 @@ async def put_positive_duration( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(duration_body, 'duration') body_content_kwargs['content'] = body_content @@ -160,7 +160,7 @@ async def get_positive_duration( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -204,7 +204,7 @@ async def get_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/operations/_duration_operations.py b/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/operations/_duration_operations.py index 6121e151d54..905da870b63 100644 --- a/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/operations/_duration_operations.py +++ b/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/operations/_duration_operations.py @@ -72,7 +72,7 @@ def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -121,7 +121,7 @@ def put_positive_duration( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(duration_body, 'duration') body_content_kwargs['content'] = body_content @@ -167,7 +167,7 @@ def get_positive_duration( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -212,7 +212,7 @@ def get_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/operations_async/_parameter_grouping_operations_async.py b/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/operations_async/_parameter_grouping_operations_async.py index 8f398fe06a3..dca06edd13f 100644 --- a/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/operations_async/_parameter_grouping_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/operations_async/_parameter_grouping_operations_async.py @@ -88,7 +88,7 @@ async def post_required( header_parameters['customHeader'] = self._serialize.header("custom_header", _custom_header, 'str') header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_body, 'int') body_content_kwargs['content'] = body_content @@ -145,7 +145,7 @@ async def post_optional( if _custom_header is not None: header_parameters['customHeader'] = self._serialize.header("custom_header", _custom_header, 'str') - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -210,7 +210,7 @@ async def post_multi_param_groups( if _header_two is not None: header_parameters['header-two'] = self._serialize.header("header_two", _header_two, 'str') - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -263,7 +263,7 @@ async def post_shared_parameter_group_object( if _header_one is not None: header_parameters['header-one'] = self._serialize.header("header_one", _header_one, 'str') - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/operations/_parameter_grouping_operations.py b/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/operations/_parameter_grouping_operations.py index 042189866ed..ba063d2a3b1 100644 --- a/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/operations/_parameter_grouping_operations.py +++ b/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/operations/_parameter_grouping_operations.py @@ -93,7 +93,7 @@ def post_required( header_parameters['customHeader'] = self._serialize.header("custom_header", _custom_header, 'str') header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_body, 'int') body_content_kwargs['content'] = body_content @@ -151,7 +151,7 @@ def post_optional( if _custom_header is not None: header_parameters['customHeader'] = self._serialize.header("custom_header", _custom_header, 'str') - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -217,7 +217,7 @@ def post_multi_param_groups( if _header_two is not None: header_parameters['header-two'] = self._serialize.header("header_two", _header_two, 'str') - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -271,7 +271,7 @@ def post_shared_parameter_group_object( if _header_one is not None: header_parameters['header-one'] = self._serialize.header("header_one", _header_one, 'str') - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/aio/operations_async/_auto_rest_report_service_for_azure_operations_async.py b/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/aio/operations_async/_auto_rest_report_service_for_azure_operations_async.py index c9c2ad48a8e..4290c6d4374 100644 --- a/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/aio/operations_async/_auto_rest_report_service_for_azure_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/aio/operations_async/_auto_rest_report_service_for_azure_operations_async.py @@ -53,7 +53,7 @@ async def get_report( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/operations/_auto_rest_report_service_for_azure_operations.py b/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/operations/_auto_rest_report_service_for_azure_operations.py index 57cb2bf248d..44cf81d638d 100644 --- a/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/operations/_auto_rest_report_service_for_azure_operations.py +++ b/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/operations/_auto_rest_report_service_for_azure_operations.py @@ -58,7 +58,7 @@ def get_report( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_api_version_default_operations_async.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_api_version_default_operations_async.py index 5d0787b9a83..d2450a56947 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_api_version_default_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_api_version_default_operations_async.py @@ -68,7 +68,7 @@ async def get_method_global_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -110,7 +110,7 @@ async def get_method_global_not_provided_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -152,7 +152,7 @@ async def get_path_global_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -194,7 +194,7 @@ async def get_swagger_global_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_api_version_local_operations_async.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_api_version_local_operations_async.py index 17c08aec5d9..e98965f9426 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_api_version_local_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_api_version_local_operations_async.py @@ -68,7 +68,7 @@ async def get_method_local_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -114,7 +114,7 @@ async def get_method_local_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -156,7 +156,7 @@ async def get_path_local_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -198,7 +198,7 @@ async def get_swagger_local_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_header_operations_async.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_header_operations_async.py index c73d846e2b1..3d864d93ab4 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_header_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_header_operations_async.py @@ -70,7 +70,7 @@ async def custom_named_request_id( header_parameters = {} # type: Dict[str, Any] header_parameters['foo-client-request-id'] = self._serialize.header("foo_client_request_id", foo_client_request_id, 'str') - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -122,7 +122,7 @@ async def custom_named_request_id_param_grouping( header_parameters = {} # type: Dict[str, Any] header_parameters['foo-client-request-id'] = self._serialize.header("foo_client_request_id", _foo_client_request_id, 'str') - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -169,7 +169,7 @@ async def custom_named_request_id_head( header_parameters = {} # type: Dict[str, Any] header_parameters['foo-client-request-id'] = self._serialize.header("foo_client_request_id", foo_client_request_id, 'str') - # Construct and send request + # Construct request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_odata_operations_async.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_odata_operations_async.py index 5d4f9230efd..53bd03d74a1 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_odata_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_odata_operations_async.py @@ -81,7 +81,7 @@ async def get_with_filter( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_skip_url_encoding_operations_async.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_skip_url_encoding_operations_async.py index 345f1d707e7..e4ec1465210 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_skip_url_encoding_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_skip_url_encoding_operations_async.py @@ -73,7 +73,7 @@ async def get_method_path_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -120,7 +120,7 @@ async def get_path_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -165,7 +165,7 @@ async def get_swagger_path_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -209,7 +209,7 @@ async def get_method_query_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -254,7 +254,7 @@ async def get_method_query_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -298,7 +298,7 @@ async def get_path_query_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -340,7 +340,7 @@ async def get_swagger_query_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_subscription_in_credentials_operations_async.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_subscription_in_credentials_operations_async.py index c667bb6bc07..45d0d24d74e 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_subscription_in_credentials_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_subscription_in_credentials_operations_async.py @@ -71,7 +71,7 @@ async def post_method_global_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -116,7 +116,7 @@ async def post_method_global_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -163,7 +163,7 @@ async def post_method_global_not_provided_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -208,7 +208,7 @@ async def post_path_global_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -253,7 +253,7 @@ async def post_swagger_global_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_subscription_in_method_operations_async.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_subscription_in_method_operations_async.py index 6c013ab2794..86b9c0c3061 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_subscription_in_method_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_subscription_in_method_operations_async.py @@ -75,7 +75,7 @@ async def post_method_local_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -124,7 +124,7 @@ async def post_method_local_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -172,7 +172,7 @@ async def post_path_local_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -221,7 +221,7 @@ async def post_swagger_local_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_xms_client_request_id_operations_async.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_xms_client_request_id_operations_async.py index c71f41bc0c3..8eeb7e214b4 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_xms_client_request_id_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_xms_client_request_id_operations_async.py @@ -67,7 +67,7 @@ async def get( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -112,7 +112,7 @@ async def param_get( header_parameters = {} # type: Dict[str, Any] header_parameters['x-ms-client-request-id'] = self._serialize.header("x_ms_client_request_id", x_ms_client_request_id, 'str') - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_default_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_default_operations.py index 032da09886f..cf1c2159842 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_default_operations.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_default_operations.py @@ -73,7 +73,7 @@ def get_method_global_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -116,7 +116,7 @@ def get_method_global_not_provided_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -159,7 +159,7 @@ def get_path_global_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -202,7 +202,7 @@ def get_swagger_global_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_local_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_local_operations.py index b40531978af..370a1b2d936 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_local_operations.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_local_operations.py @@ -73,7 +73,7 @@ def get_method_local_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -120,7 +120,7 @@ def get_method_local_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -163,7 +163,7 @@ def get_path_local_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -206,7 +206,7 @@ def get_swagger_local_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_header_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_header_operations.py index 80a8281c7ff..7753b315108 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_header_operations.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_header_operations.py @@ -75,7 +75,7 @@ def custom_named_request_id( header_parameters = {} # type: Dict[str, Any] header_parameters['foo-client-request-id'] = self._serialize.header("foo_client_request_id", foo_client_request_id, 'str') - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -128,7 +128,7 @@ def custom_named_request_id_param_grouping( header_parameters = {} # type: Dict[str, Any] header_parameters['foo-client-request-id'] = self._serialize.header("foo_client_request_id", _foo_client_request_id, 'str') - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -176,7 +176,7 @@ def custom_named_request_id_head( header_parameters = {} # type: Dict[str, Any] header_parameters['foo-client-request-id'] = self._serialize.header("foo_client_request_id", foo_client_request_id, 'str') - # Construct and send request + # Construct request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_odata_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_odata_operations.py index dd4f795bfac..223f3e54950 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_odata_operations.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_odata_operations.py @@ -86,7 +86,7 @@ def get_with_filter( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_skip_url_encoding_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_skip_url_encoding_operations.py index 7c5ef098513..68b64b15f97 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_skip_url_encoding_operations.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_skip_url_encoding_operations.py @@ -78,7 +78,7 @@ def get_method_path_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -126,7 +126,7 @@ def get_path_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -172,7 +172,7 @@ def get_swagger_path_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -217,7 +217,7 @@ def get_method_query_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -263,7 +263,7 @@ def get_method_query_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -308,7 +308,7 @@ def get_path_query_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -351,7 +351,7 @@ def get_swagger_query_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_credentials_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_credentials_operations.py index fde1cc34f84..25f64503587 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_credentials_operations.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_credentials_operations.py @@ -76,7 +76,7 @@ def post_method_global_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -122,7 +122,7 @@ def post_method_global_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -170,7 +170,7 @@ def post_method_global_not_provided_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -216,7 +216,7 @@ def post_path_global_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -262,7 +262,7 @@ def post_swagger_global_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_method_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_method_operations.py index 4668559bcfd..d1c0e449e8a 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_method_operations.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_method_operations.py @@ -80,7 +80,7 @@ def post_method_local_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -130,7 +130,7 @@ def post_method_local_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -179,7 +179,7 @@ def post_path_local_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -229,7 +229,7 @@ def post_swagger_local_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py index d65f89703a6..3ba0fc1a412 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py @@ -72,7 +72,7 @@ def get( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -118,7 +118,7 @@ def param_get( header_parameters = {} # type: Dict[str, Any] header_parameters['x-ms-client-request-id'] = self._serialize.header("x_ms_client_request_id", x_ms_client_request_id, 'str') - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations_async/_paths_operations_async.py b/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations_async/_paths_operations_async.py index 2a086d8886c..1cb9b4fdbaf 100644 --- a/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations_async/_paths_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations_async/_paths_operations_async.py @@ -73,7 +73,7 @@ async def get_empty( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py b/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py index ab9f8c25540..2307332906c 100644 --- a/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py +++ b/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py @@ -78,7 +78,7 @@ def get_empty( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/operations_async/_paging_operations_async.py b/test/azure/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/operations_async/_paging_operations_async.py index 0091e37a683..6f35f0cd49c 100644 --- a/test/azure/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/operations_async/_paging_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/operations_async/_paging_operations_async.py @@ -64,6 +64,10 @@ def get_pages_partial_url( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_pages_partial_url.metadata['url'] # type: ignore @@ -75,6 +79,8 @@ def prepare_request(next_link=None): # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] @@ -83,12 +89,8 @@ def prepare_request(next_link=None): 'host': self._serialize.url("self._config.host", self._config.host, 'str', skip_quote=True), } url = self._client.format_url(url, **path_format_arguments) - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): @@ -135,6 +137,10 @@ def get_pages_partial_url_operation( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_pages_partial_url_operation.metadata['url'] # type: ignore @@ -146,6 +152,8 @@ def prepare_request(next_link=None): # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = '/paging/customurl/{nextLink}' path_format_arguments = { @@ -157,12 +165,8 @@ def prepare_request(next_link=None): # Construct parameters query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): diff --git a/test/azure/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/operations/_paging_operations.py b/test/azure/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/operations/_paging_operations.py index ebc6cd83b75..c4ec4dc9baa 100644 --- a/test/azure/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/operations/_paging_operations.py +++ b/test/azure/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/operations/_paging_operations.py @@ -68,6 +68,10 @@ def get_pages_partial_url( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_pages_partial_url.metadata['url'] # type: ignore @@ -79,6 +83,8 @@ def prepare_request(next_link=None): # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] @@ -87,12 +93,8 @@ def prepare_request(next_link=None): 'host': self._serialize.url("self._config.host", self._config.host, 'str', skip_quote=True), } url = self._client.format_url(url, **path_format_arguments) - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): @@ -140,6 +142,10 @@ def get_pages_partial_url_operation( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_pages_partial_url_operation.metadata['url'] # type: ignore @@ -151,6 +157,8 @@ def prepare_request(next_link=None): # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = '/paging/customurl/{nextLink}' path_format_arguments = { @@ -162,12 +170,8 @@ def prepare_request(next_link=None): # Construct parameters query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): diff --git a/test/azure/Expected/AcceptanceTests/Head/head/aio/operations_async/_http_success_operations_async.py b/test/azure/Expected/AcceptanceTests/Head/head/aio/operations_async/_http_success_operations_async.py index 04a3a8c19af..187e073d258 100644 --- a/test/azure/Expected/AcceptanceTests/Head/head/aio/operations_async/_http_success_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/Head/head/aio/operations_async/_http_success_operations_async.py @@ -60,7 +60,7 @@ async def head200( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -100,7 +100,7 @@ async def head204( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -140,7 +140,7 @@ async def head404( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/Head/head/operations/_http_success_operations.py b/test/azure/Expected/AcceptanceTests/Head/head/operations/_http_success_operations.py index 28cf1de3889..0e455284317 100644 --- a/test/azure/Expected/AcceptanceTests/Head/head/operations/_http_success_operations.py +++ b/test/azure/Expected/AcceptanceTests/Head/head/operations/_http_success_operations.py @@ -65,7 +65,7 @@ def head200( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -106,7 +106,7 @@ def head204( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -147,7 +147,7 @@ def head404( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/operations_async/_head_exception_operations_async.py b/test/azure/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/operations_async/_head_exception_operations_async.py index eccbf87978b..100f799a86a 100644 --- a/test/azure/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/operations_async/_head_exception_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/operations_async/_head_exception_operations_async.py @@ -60,7 +60,7 @@ async def head200( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -100,7 +100,7 @@ async def head204( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -140,7 +140,7 @@ async def head404( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/HeadExceptions/headexceptions/operations/_head_exception_operations.py b/test/azure/Expected/AcceptanceTests/HeadExceptions/headexceptions/operations/_head_exception_operations.py index 6ea320fa7bd..7de8c913665 100644 --- a/test/azure/Expected/AcceptanceTests/HeadExceptions/headexceptions/operations/_head_exception_operations.py +++ b/test/azure/Expected/AcceptanceTests/HeadExceptions/headexceptions/operations/_head_exception_operations.py @@ -65,7 +65,7 @@ def head200( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -106,7 +106,7 @@ def head204( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -147,7 +147,7 @@ def head404( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations_async/_lr_os_custom_header_operations_async.py b/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations_async/_lr_os_custom_header_operations_async.py index 81f4384b62f..e68b39490c7 100644 --- a/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations_async/_lr_os_custom_header_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations_async/_lr_os_custom_header_operations_async.py @@ -64,7 +64,7 @@ async def _put_async_retry_succeeded_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -168,7 +168,7 @@ async def _put201_creating_succeeded200_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -266,7 +266,7 @@ async def _post202_retry200_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -357,7 +357,7 @@ async def _post_async_retry_succeeded_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') diff --git a/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations_async/_lro_retrys_operations_async.py b/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations_async/_lro_retrys_operations_async.py index bd77cc0ca9f..d65a0fd9120 100644 --- a/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations_async/_lro_retrys_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations_async/_lro_retrys_operations_async.py @@ -64,7 +64,7 @@ async def _put201_creating_succeeded200_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -162,7 +162,7 @@ async def _put_async_relative_retry_succeeded_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -262,7 +262,7 @@ async def _delete_provisioning202_accepted200_succeeded_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -352,7 +352,7 @@ async def _delete202_retry200_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -428,7 +428,7 @@ async def _delete_async_relative_retry_succeeded_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -508,7 +508,7 @@ async def _post202_retry200_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -598,7 +598,7 @@ async def _post_async_relative_retry_succeeded_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') diff --git a/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations_async/_lros_operations_async.py b/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations_async/_lros_operations_async.py index f6dba33dd72..74e28e567b4 100644 --- a/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations_async/_lros_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations_async/_lros_operations_async.py @@ -64,7 +64,7 @@ async def _put200_succeeded_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -159,7 +159,7 @@ async def _put201_succeeded_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -249,7 +249,7 @@ async def _post202_list_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -338,7 +338,7 @@ async def _put200_succeeded_no_state_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -431,7 +431,7 @@ async def _put202_retry200_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -525,7 +525,7 @@ async def _put201_creating_succeeded200_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -623,7 +623,7 @@ async def _put200_updating_succeeded204_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -717,7 +717,7 @@ async def _put201_creating_failed200_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -815,7 +815,7 @@ async def _put200_acceptedcanceled200_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -909,7 +909,7 @@ async def _put_no_header_in_retry_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1007,7 +1007,7 @@ async def _put_async_retry_succeeded_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1110,7 +1110,7 @@ async def _put_async_no_retry_succeeded_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1211,7 +1211,7 @@ async def _put_async_retry_failed_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1314,7 +1314,7 @@ async def _put_async_no_retrycanceled_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1415,7 +1415,7 @@ async def _put_async_no_header_in_retry_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1514,7 +1514,7 @@ async def _put_non_resource_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if sku is not None: body_content = self._serialize.body(sku, 'Sku') @@ -1606,7 +1606,7 @@ async def _put_async_non_resource_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if sku is not None: body_content = self._serialize.body(sku, 'Sku') @@ -1700,7 +1700,7 @@ async def _put_sub_resource_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if _product is not None: body_content = self._serialize.body(_product, 'SubProduct') @@ -1794,7 +1794,7 @@ async def _put_async_sub_resource_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if _product is not None: body_content = self._serialize.body(_product, 'SubProduct') @@ -1883,7 +1883,7 @@ async def _delete_provisioning202_accepted200_succeeded_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1974,7 +1974,7 @@ async def _delete_provisioning202_deleting_failed200_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2065,7 +2065,7 @@ async def _delete_provisioning202_deletingcanceled200_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2155,7 +2155,7 @@ async def _delete204_succeeded_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2227,7 +2227,7 @@ async def _delete202_retry200_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2313,7 +2313,7 @@ async def _delete202_no_retry204_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2398,7 +2398,7 @@ async def _delete_no_header_in_retry_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2474,7 +2474,7 @@ async def _delete_async_no_header_in_retry_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2550,7 +2550,7 @@ async def _delete_async_retry_succeeded_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2627,7 +2627,7 @@ async def _delete_async_no_retry_succeeded_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2704,7 +2704,7 @@ async def _delete_async_retry_failed_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2781,7 +2781,7 @@ async def _delete_async_retrycanceled_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2859,7 +2859,7 @@ async def _post200_with_payload_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2944,7 +2944,7 @@ async def _post202_retry200_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -3035,7 +3035,7 @@ async def _post202_no_retry204_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -3132,7 +3132,7 @@ async def _post_double_headers_final_location_get_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3212,7 +3212,7 @@ async def _post_double_headers_final_azure_header_get_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3292,7 +3292,7 @@ async def _post_double_headers_final_azure_header_get_default_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3375,7 +3375,7 @@ async def _post_async_retry_succeeded_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -3477,7 +3477,7 @@ async def _post_async_no_retry_succeeded_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -3578,7 +3578,7 @@ async def _post_async_retry_failed_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -3670,7 +3670,7 @@ async def _post_async_retrycanceled_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') diff --git a/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations_async/_lrosads_operations_async.py b/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations_async/_lrosads_operations_async.py index def8d856e50..0c4291750a7 100644 --- a/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations_async/_lrosads_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations_async/_lrosads_operations_async.py @@ -64,7 +64,7 @@ async def _put_non_retry400_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -160,7 +160,7 @@ async def _put_non_retry201_creating400_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -257,7 +257,7 @@ async def _put_non_retry201_creating400_invalid_json_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -354,7 +354,7 @@ async def _put_async_relative_retry400_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -452,7 +452,7 @@ async def _delete_non_retry400_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -527,7 +527,7 @@ async def _delete202_non_retry400_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -602,7 +602,7 @@ async def _delete_async_relative_retry400_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -682,7 +682,7 @@ async def _post_non_retry400_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -771,7 +771,7 @@ async def _post202_non_retry400_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -860,7 +860,7 @@ async def _post_async_relative_retry400_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -952,7 +952,7 @@ async def _put_error201_no_provisioning_state_payload_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1048,7 +1048,7 @@ async def _put_async_relative_retry_no_status_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1151,7 +1151,7 @@ async def _put_async_relative_retry_no_status_payload_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1250,7 +1250,7 @@ async def _delete204_succeeded_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1321,7 +1321,7 @@ async def _delete_async_relative_retry_no_status_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1401,7 +1401,7 @@ async def _post202_no_location_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1491,7 +1491,7 @@ async def _post_async_relative_retry_no_payload_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1584,7 +1584,7 @@ async def _put200_invalid_json_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1679,7 +1679,7 @@ async def _put_async_relative_retry_invalid_header_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1782,7 +1782,7 @@ async def _put_async_relative_retry_invalid_json_polling_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1881,7 +1881,7 @@ async def _delete202_retry_invalid_header_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1957,7 +1957,7 @@ async def _delete_async_relative_retry_invalid_header_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2034,7 +2034,7 @@ async def _delete_async_relative_retry_invalid_json_polling_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2114,7 +2114,7 @@ async def _post202_retry_invalid_header_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -2204,7 +2204,7 @@ async def _post_async_relative_retry_invalid_header_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -2296,7 +2296,7 @@ async def _post_async_relative_retry_invalid_json_polling_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') diff --git a/test/azure/Expected/AcceptanceTests/Lro/lro/operations/_lr_os_custom_header_operations.py b/test/azure/Expected/AcceptanceTests/Lro/lro/operations/_lr_os_custom_header_operations.py index 67b75b212b5..cc607e6c58e 100644 --- a/test/azure/Expected/AcceptanceTests/Lro/lro/operations/_lr_os_custom_header_operations.py +++ b/test/azure/Expected/AcceptanceTests/Lro/lro/operations/_lr_os_custom_header_operations.py @@ -69,7 +69,7 @@ def _put_async_retry_succeeded_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -175,7 +175,7 @@ def _put201_creating_succeeded200_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -275,7 +275,7 @@ def _post202_retry200_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -368,7 +368,7 @@ def _post_async_retry_succeeded_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') diff --git a/test/azure/Expected/AcceptanceTests/Lro/lro/operations/_lro_retrys_operations.py b/test/azure/Expected/AcceptanceTests/Lro/lro/operations/_lro_retrys_operations.py index 5fd2009886f..3cda372f659 100644 --- a/test/azure/Expected/AcceptanceTests/Lro/lro/operations/_lro_retrys_operations.py +++ b/test/azure/Expected/AcceptanceTests/Lro/lro/operations/_lro_retrys_operations.py @@ -69,7 +69,7 @@ def _put201_creating_succeeded200_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -169,7 +169,7 @@ def _put_async_relative_retry_succeeded_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -271,7 +271,7 @@ def _delete_provisioning202_accepted200_succeeded_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -363,7 +363,7 @@ def _delete202_retry200_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -441,7 +441,7 @@ def _delete_async_relative_retry_succeeded_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -523,7 +523,7 @@ def _post202_retry200_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -615,7 +615,7 @@ def _post_async_relative_retry_succeeded_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') diff --git a/test/azure/Expected/AcceptanceTests/Lro/lro/operations/_lros_operations.py b/test/azure/Expected/AcceptanceTests/Lro/lro/operations/_lros_operations.py index 5ec9eeb7881..147162e61d8 100644 --- a/test/azure/Expected/AcceptanceTests/Lro/lro/operations/_lros_operations.py +++ b/test/azure/Expected/AcceptanceTests/Lro/lro/operations/_lros_operations.py @@ -69,7 +69,7 @@ def _put200_succeeded_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -166,7 +166,7 @@ def _put201_succeeded_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -258,7 +258,7 @@ def _post202_list_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -349,7 +349,7 @@ def _put200_succeeded_no_state_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -444,7 +444,7 @@ def _put202_retry200_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -540,7 +540,7 @@ def _put201_creating_succeeded200_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -640,7 +640,7 @@ def _put200_updating_succeeded204_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -736,7 +736,7 @@ def _put201_creating_failed200_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -836,7 +836,7 @@ def _put200_acceptedcanceled200_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -932,7 +932,7 @@ def _put_no_header_in_retry_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1032,7 +1032,7 @@ def _put_async_retry_succeeded_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1137,7 +1137,7 @@ def _put_async_no_retry_succeeded_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1240,7 +1240,7 @@ def _put_async_retry_failed_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1345,7 +1345,7 @@ def _put_async_no_retrycanceled_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1448,7 +1448,7 @@ def _put_async_no_header_in_retry_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1549,7 +1549,7 @@ def _put_non_resource_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if sku is not None: body_content = self._serialize.body(sku, 'Sku') @@ -1643,7 +1643,7 @@ def _put_async_non_resource_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if sku is not None: body_content = self._serialize.body(sku, 'Sku') @@ -1739,7 +1739,7 @@ def _put_sub_resource_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if _product is not None: body_content = self._serialize.body(_product, 'SubProduct') @@ -1835,7 +1835,7 @@ def _put_async_sub_resource_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if _product is not None: body_content = self._serialize.body(_product, 'SubProduct') @@ -1926,7 +1926,7 @@ def _delete_provisioning202_accepted200_succeeded_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2019,7 +2019,7 @@ def _delete_provisioning202_deleting_failed200_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2112,7 +2112,7 @@ def _delete_provisioning202_deletingcanceled200_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2204,7 +2204,7 @@ def _delete204_succeeded_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2278,7 +2278,7 @@ def _delete202_retry200_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2366,7 +2366,7 @@ def _delete202_no_retry204_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2453,7 +2453,7 @@ def _delete_no_header_in_retry_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2531,7 +2531,7 @@ def _delete_async_no_header_in_retry_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2609,7 +2609,7 @@ def _delete_async_retry_succeeded_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2688,7 +2688,7 @@ def _delete_async_no_retry_succeeded_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2767,7 +2767,7 @@ def _delete_async_retry_failed_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2846,7 +2846,7 @@ def _delete_async_retrycanceled_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2926,7 +2926,7 @@ def _post200_with_payload_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3013,7 +3013,7 @@ def _post202_retry200_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -3106,7 +3106,7 @@ def _post202_no_retry204_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -3205,7 +3205,7 @@ def _post_double_headers_final_location_get_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3287,7 +3287,7 @@ def _post_double_headers_final_azure_header_get_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3369,7 +3369,7 @@ def _post_double_headers_final_azure_header_get_default_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3454,7 +3454,7 @@ def _post_async_retry_succeeded_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -3558,7 +3558,7 @@ def _post_async_no_retry_succeeded_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -3661,7 +3661,7 @@ def _post_async_retry_failed_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -3755,7 +3755,7 @@ def _post_async_retrycanceled_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') diff --git a/test/azure/Expected/AcceptanceTests/Lro/lro/operations/_lrosads_operations.py b/test/azure/Expected/AcceptanceTests/Lro/lro/operations/_lrosads_operations.py index 39068234a8e..b36ffa50e9c 100644 --- a/test/azure/Expected/AcceptanceTests/Lro/lro/operations/_lrosads_operations.py +++ b/test/azure/Expected/AcceptanceTests/Lro/lro/operations/_lrosads_operations.py @@ -69,7 +69,7 @@ def _put_non_retry400_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -167,7 +167,7 @@ def _put_non_retry201_creating400_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -266,7 +266,7 @@ def _put_non_retry201_creating400_invalid_json_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -365,7 +365,7 @@ def _put_async_relative_retry400_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -465,7 +465,7 @@ def _delete_non_retry400_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -542,7 +542,7 @@ def _delete202_non_retry400_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -619,7 +619,7 @@ def _delete_async_relative_retry400_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -701,7 +701,7 @@ def _post_non_retry400_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -792,7 +792,7 @@ def _post202_non_retry400_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -883,7 +883,7 @@ def _post_async_relative_retry400_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -977,7 +977,7 @@ def _put_error201_no_provisioning_state_payload_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1075,7 +1075,7 @@ def _put_async_relative_retry_no_status_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1180,7 +1180,7 @@ def _put_async_relative_retry_no_status_payload_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1281,7 +1281,7 @@ def _delete204_succeeded_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1354,7 +1354,7 @@ def _delete_async_relative_retry_no_status_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1436,7 +1436,7 @@ def _post202_no_location_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1528,7 +1528,7 @@ def _post_async_relative_retry_no_payload_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1623,7 +1623,7 @@ def _put200_invalid_json_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1720,7 +1720,7 @@ def _put_async_relative_retry_invalid_header_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1825,7 +1825,7 @@ def _put_async_relative_retry_invalid_json_polling_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -1926,7 +1926,7 @@ def _delete202_retry_invalid_header_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2004,7 +2004,7 @@ def _delete_async_relative_retry_invalid_header_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2083,7 +2083,7 @@ def _delete_async_relative_retry_invalid_json_polling_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2165,7 +2165,7 @@ def _post202_retry_invalid_header_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -2257,7 +2257,7 @@ def _post_async_relative_retry_invalid_header_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') @@ -2351,7 +2351,7 @@ def _post_async_relative_retry_invalid_json_polling_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') diff --git a/test/azure/Expected/AcceptanceTests/Paging/paging/aio/operations_async/_paging_operations_async.py b/test/azure/Expected/AcceptanceTests/Paging/paging/aio/operations_async/_paging_operations_async.py index c37af9831ca..24dae9cab5e 100644 --- a/test/azure/Expected/AcceptanceTests/Paging/paging/aio/operations_async/_paging_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/Paging/paging/aio/operations_async/_paging_operations_async.py @@ -62,21 +62,23 @@ def get_no_item_name_pages( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_no_item_name_pages.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): @@ -120,21 +122,23 @@ def get_null_next_link_name_pages( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_null_next_link_name_pages.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): @@ -178,21 +182,23 @@ def get_single_pages( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_single_pages.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): @@ -248,15 +254,6 @@ def get_multiple_pages( _timeout = paging_get_multiple_pages_options.timeout def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.get_multiple_pages.metadata['url'] # type: ignore - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] # Construct headers header_parameters = {} # type: Dict[str, Any] if client_request_id is not None: @@ -267,8 +264,19 @@ def prepare_request(next_link=None): header_parameters['timeout'] = self._serialize.header("timeout", _timeout, 'int') header_parameters['Accept'] = 'application/json' - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + if not next_link: + # Construct URL + url = self.get_multiple_pages.metadata['url'] # type: ignore + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct request + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): @@ -318,6 +326,10 @@ def get_with_query_params( query_constant = True def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_with_query_params.metadata['url'] # type: ignore @@ -326,18 +338,16 @@ def prepare_request(next_link=None): query_parameters['requiredQueryParameter'] = self._serialize.query("required_query_parameter", required_query_parameter, 'int') query_parameters['queryConstant'] = self._serialize.query("query_constant", query_constant, 'bool') + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = '/paging/multiple/nextOperationWithQueryParams' # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['queryConstant'] = self._serialize.query("query_constant", query_constant, 'bool') - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): @@ -393,15 +403,6 @@ def get_odata_multiple_pages( _timeout = paging_get_odata_multiple_pages_options.timeout def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.get_odata_multiple_pages.metadata['url'] # type: ignore - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] # Construct headers header_parameters = {} # type: Dict[str, Any] if client_request_id is not None: @@ -412,8 +413,19 @@ def prepare_request(next_link=None): header_parameters['timeout'] = self._serialize.header("timeout", _timeout, 'int') header_parameters['Accept'] = 'application/json' - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + if not next_link: + # Construct URL + url = self.get_odata_multiple_pages.metadata['url'] # type: ignore + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct request + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): @@ -471,6 +483,16 @@ def get_multiple_pages_with_offset( _timeout = paging_get_multiple_pages_with_offset_options.timeout def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + if client_request_id is not None: + header_parameters['client-request-id'] = self._serialize.header("client_request_id", client_request_id, 'str') + if _maxresults is not None: + header_parameters['maxresults'] = self._serialize.header("maxresults", _maxresults, 'int') + if _timeout is not None: + header_parameters['timeout'] = self._serialize.header("timeout", _timeout, 'int') + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_multiple_pages_with_offset.metadata['url'] # type: ignore @@ -481,21 +503,13 @@ def prepare_request(next_link=None): # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - if client_request_id is not None: - header_parameters['client-request-id'] = self._serialize.header("client_request_id", client_request_id, 'str') - if _maxresults is not None: - header_parameters['maxresults'] = self._serialize.header("maxresults", _maxresults, 'int') - if _timeout is not None: - header_parameters['timeout'] = self._serialize.header("timeout", _timeout, 'int') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): @@ -540,21 +554,23 @@ def get_multiple_pages_retry_first( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_multiple_pages_retry_first.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): @@ -599,21 +615,23 @@ def get_multiple_pages_retry_second( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_multiple_pages_retry_second.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): @@ -657,21 +675,23 @@ def get_single_pages_failure( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_single_pages_failure.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): @@ -715,21 +735,23 @@ def get_multiple_pages_failure( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_multiple_pages_failure.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): @@ -773,21 +795,23 @@ def get_multiple_pages_failure_uri( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_multiple_pages_failure_uri.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): @@ -837,6 +861,10 @@ def get_multiple_pages_fragment_next_link( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_multiple_pages_fragment_next_link.metadata['url'] # type: ignore @@ -848,6 +876,8 @@ def prepare_request(next_link=None): query_parameters = {} # type: Dict[str, Any] query_parameters['api_version'] = self._serialize.query("api_version", api_version, 'str') + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = '/paging/multiple/fragment/{tenant}/{nextLink}' path_format_arguments = { @@ -859,12 +889,8 @@ def prepare_request(next_link=None): query_parameters = {} # type: Dict[str, Any] query_parameters['api_version'] = self._serialize.query("api_version", api_version, 'str') - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): @@ -917,6 +943,10 @@ def get_multiple_pages_fragment_with_grouping_next_link( _tenant = custom_parameter_group.tenant def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_multiple_pages_fragment_with_grouping_next_link.metadata['url'] # type: ignore @@ -928,6 +958,8 @@ def prepare_request(next_link=None): query_parameters = {} # type: Dict[str, Any] query_parameters['api_version'] = self._serialize.query("api_version", _api_version, 'str') + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = '/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}' path_format_arguments = { @@ -939,12 +971,8 @@ def prepare_request(next_link=None): query_parameters = {} # type: Dict[str, Any] query_parameters['api_version'] = self._serialize.query("api_version", _api_version, 'str') - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): @@ -1003,7 +1031,7 @@ async def _get_multiple_pages_lro_initial( header_parameters['timeout'] = self._serialize.header("timeout", _timeout, 'int') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1089,21 +1117,23 @@ def get_paging_model_with_item_name_with_xms_client_name( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_paging_model_with_item_name_with_xms_client_name.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): diff --git a/test/azure/Expected/AcceptanceTests/Paging/paging/operations/_paging_operations.py b/test/azure/Expected/AcceptanceTests/Paging/paging/operations/_paging_operations.py index 2633402d021..94b7dd1b455 100644 --- a/test/azure/Expected/AcceptanceTests/Paging/paging/operations/_paging_operations.py +++ b/test/azure/Expected/AcceptanceTests/Paging/paging/operations/_paging_operations.py @@ -66,21 +66,23 @@ def get_no_item_name_pages( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_no_item_name_pages.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): @@ -125,21 +127,23 @@ def get_null_next_link_name_pages( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_null_next_link_name_pages.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): @@ -184,21 +188,23 @@ def get_single_pages( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_single_pages.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): @@ -255,15 +261,6 @@ def get_multiple_pages( _timeout = paging_get_multiple_pages_options.timeout def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.get_multiple_pages.metadata['url'] # type: ignore - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] # Construct headers header_parameters = {} # type: Dict[str, Any] if client_request_id is not None: @@ -274,8 +271,19 @@ def prepare_request(next_link=None): header_parameters['timeout'] = self._serialize.header("timeout", _timeout, 'int') header_parameters['Accept'] = 'application/json' - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + if not next_link: + # Construct URL + url = self.get_multiple_pages.metadata['url'] # type: ignore + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct request + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): @@ -326,6 +334,10 @@ def get_with_query_params( query_constant = True def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_with_query_params.metadata['url'] # type: ignore @@ -334,18 +346,16 @@ def prepare_request(next_link=None): query_parameters['requiredQueryParameter'] = self._serialize.query("required_query_parameter", required_query_parameter, 'int') query_parameters['queryConstant'] = self._serialize.query("query_constant", query_constant, 'bool') + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = '/paging/multiple/nextOperationWithQueryParams' # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['queryConstant'] = self._serialize.query("query_constant", query_constant, 'bool') - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): @@ -402,15 +412,6 @@ def get_odata_multiple_pages( _timeout = paging_get_odata_multiple_pages_options.timeout def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.get_odata_multiple_pages.metadata['url'] # type: ignore - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] # Construct headers header_parameters = {} # type: Dict[str, Any] if client_request_id is not None: @@ -421,8 +422,19 @@ def prepare_request(next_link=None): header_parameters['timeout'] = self._serialize.header("timeout", _timeout, 'int') header_parameters['Accept'] = 'application/json' - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + if not next_link: + # Construct URL + url = self.get_odata_multiple_pages.metadata['url'] # type: ignore + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct request + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): @@ -481,6 +493,16 @@ def get_multiple_pages_with_offset( _timeout = paging_get_multiple_pages_with_offset_options.timeout def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + if client_request_id is not None: + header_parameters['client-request-id'] = self._serialize.header("client_request_id", client_request_id, 'str') + if _maxresults is not None: + header_parameters['maxresults'] = self._serialize.header("maxresults", _maxresults, 'int') + if _timeout is not None: + header_parameters['timeout'] = self._serialize.header("timeout", _timeout, 'int') + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_multiple_pages_with_offset.metadata['url'] # type: ignore @@ -491,21 +513,13 @@ def prepare_request(next_link=None): # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - if client_request_id is not None: - header_parameters['client-request-id'] = self._serialize.header("client_request_id", client_request_id, 'str') - if _maxresults is not None: - header_parameters['maxresults'] = self._serialize.header("maxresults", _maxresults, 'int') - if _timeout is not None: - header_parameters['timeout'] = self._serialize.header("timeout", _timeout, 'int') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): @@ -551,21 +565,23 @@ def get_multiple_pages_retry_first( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_multiple_pages_retry_first.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): @@ -611,21 +627,23 @@ def get_multiple_pages_retry_second( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_multiple_pages_retry_second.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): @@ -670,21 +688,23 @@ def get_single_pages_failure( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_single_pages_failure.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): @@ -729,21 +749,23 @@ def get_multiple_pages_failure( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_multiple_pages_failure.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): @@ -788,21 +810,23 @@ def get_multiple_pages_failure_uri( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_multiple_pages_failure_uri.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): @@ -853,6 +877,10 @@ def get_multiple_pages_fragment_next_link( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_multiple_pages_fragment_next_link.metadata['url'] # type: ignore @@ -864,6 +892,8 @@ def prepare_request(next_link=None): query_parameters = {} # type: Dict[str, Any] query_parameters['api_version'] = self._serialize.query("api_version", api_version, 'str') + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = '/paging/multiple/fragment/{tenant}/{nextLink}' path_format_arguments = { @@ -875,12 +905,8 @@ def prepare_request(next_link=None): query_parameters = {} # type: Dict[str, Any] query_parameters['api_version'] = self._serialize.query("api_version", api_version, 'str') - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): @@ -934,6 +960,10 @@ def get_multiple_pages_fragment_with_grouping_next_link( _tenant = custom_parameter_group.tenant def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_multiple_pages_fragment_with_grouping_next_link.metadata['url'] # type: ignore @@ -945,6 +975,8 @@ def prepare_request(next_link=None): query_parameters = {} # type: Dict[str, Any] query_parameters['api_version'] = self._serialize.query("api_version", _api_version, 'str') + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = '/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}' path_format_arguments = { @@ -956,12 +988,8 @@ def prepare_request(next_link=None): query_parameters = {} # type: Dict[str, Any] query_parameters['api_version'] = self._serialize.query("api_version", _api_version, 'str') - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): @@ -1021,7 +1049,7 @@ def _get_multiple_pages_lro_initial( header_parameters['timeout'] = self._serialize.header("timeout", _timeout, 'int') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1109,21 +1137,23 @@ def get_paging_model_with_item_name_with_xms_client_name( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.get_paging_model_with_item_name_with_xms_client_name.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): diff --git a/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations_async/_storage_accounts_operations_async.py b/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations_async/_storage_accounts_operations_async.py index 08f3d93e286..244646216ed 100644 --- a/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations_async/_storage_accounts_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations_async/_storage_accounts_operations_async.py @@ -84,7 +84,7 @@ async def check_name_availability( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(account_name, 'StorageAccountCheckNameAvailabilityParameters') body_content_kwargs['content'] = body_content @@ -136,7 +136,7 @@ async def _create_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'StorageAccountCreateParameters') body_content_kwargs['content'] = body_content @@ -260,7 +260,7 @@ async def delete( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -318,7 +318,7 @@ async def get_properties( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -389,7 +389,7 @@ async def update( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'StorageAccountUpdateParameters') body_content_kwargs['content'] = body_content @@ -450,7 +450,7 @@ async def list_keys( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -486,6 +486,10 @@ def list( api_version = "2015-05-01-preview" def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.list.metadata['url'] # type: ignore @@ -497,15 +501,13 @@ def prepare_request(next_link=None): query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): @@ -554,6 +556,10 @@ def list_by_resource_group( api_version = "2015-05-01-preview" def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.list_by_resource_group.metadata['url'] # type: ignore @@ -566,15 +572,13 @@ def prepare_request(next_link=None): query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): @@ -650,7 +654,7 @@ async def regenerate_key( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_regenerate_key, 'StorageAccountRegenerateKeyParameters') body_content_kwargs['content'] = body_content diff --git a/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations_async/_usage_operations_async.py b/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations_async/_usage_operations_async.py index ea36d240d28..45e5f995e45 100644 --- a/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations_async/_usage_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations_async/_usage_operations_async.py @@ -73,7 +73,7 @@ async def list( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_storage_accounts_operations.py b/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_storage_accounts_operations.py index d0fb6366e48..a531fedc0a1 100644 --- a/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_storage_accounts_operations.py +++ b/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_storage_accounts_operations.py @@ -88,7 +88,7 @@ def check_name_availability( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(account_name, 'StorageAccountCheckNameAvailabilityParameters') body_content_kwargs['content'] = body_content @@ -141,7 +141,7 @@ def _create_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'StorageAccountCreateParameters') body_content_kwargs['content'] = body_content @@ -267,7 +267,7 @@ def delete( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -326,7 +326,7 @@ def get_properties( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -398,7 +398,7 @@ def update( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'StorageAccountUpdateParameters') body_content_kwargs['content'] = body_content @@ -460,7 +460,7 @@ def list_keys( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -497,6 +497,10 @@ def list( api_version = "2015-05-01-preview" def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.list.metadata['url'] # type: ignore @@ -508,15 +512,13 @@ def prepare_request(next_link=None): query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): @@ -566,6 +568,10 @@ def list_by_resource_group( api_version = "2015-05-01-preview" def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.list_by_resource_group.metadata['url'] # type: ignore @@ -578,15 +584,13 @@ def prepare_request(next_link=None): query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): @@ -663,7 +667,7 @@ def regenerate_key( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_regenerate_key, 'StorageAccountRegenerateKeyParameters') body_content_kwargs['content'] = body_content diff --git a/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_usage_operations.py b/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_usage_operations.py index 2a6ac7c833f..baaa7f29d3b 100644 --- a/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_usage_operations.py +++ b/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_usage_operations.py @@ -78,7 +78,7 @@ def list( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/operations_async/_group_operations_async.py b/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/operations_async/_group_operations_async.py index c3e909dbe71..2cf11917759 100644 --- a/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/operations_async/_group_operations_async.py +++ b/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/operations_async/_group_operations_async.py @@ -77,7 +77,7 @@ async def get_sample_resource_group( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/operations/_group_operations.py b/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/operations/_group_operations.py index 5b3a2e2a8ee..35faaf5abf4 100644 --- a/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/operations/_group_operations.py +++ b/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/operations/_group_operations.py @@ -82,7 +82,7 @@ def get_sample_resource_group( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations_async/_multiapi_service_client_operations_async.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations_async/_multiapi_service_client_operations_async.py index 4979a8bd9d8..c18f930ad21 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations_async/_multiapi_service_client_operations_async.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations_async/_multiapi_service_client_operations_async.py @@ -56,7 +56,7 @@ async def test_one( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -92,7 +92,7 @@ async def _test_lro_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations_async/_operation_group_one_operations_async.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations_async/_operation_group_one_operations_async.py index 2b6f848df78..fcc2e93d3a9 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations_async/_operation_group_one_operations_async.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations_async/_operation_group_one_operations_async.py @@ -65,7 +65,7 @@ async def test_two( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/operations/_multiapi_service_client_operations.py index 56129e5d84a..640321e7efb 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/operations/_multiapi_service_client_operations.py @@ -61,7 +61,7 @@ def test_one( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -98,7 +98,7 @@ def _test_lro_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/operations/_operation_group_one_operations.py index 92246d276ce..74e0329f911 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/operations/_operation_group_one_operations.py @@ -70,7 +70,7 @@ def test_two( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations_async/_multiapi_service_client_operations_async.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations_async/_multiapi_service_client_operations_async.py index 9cda0294003..deb56f74718 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations_async/_multiapi_service_client_operations_async.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations_async/_multiapi_service_client_operations_async.py @@ -55,7 +55,7 @@ async def test_one( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations_async/_operation_group_one_operations_async.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations_async/_operation_group_one_operations_async.py index f1a7f43aac8..69bb0d9926d 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations_async/_operation_group_one_operations_async.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations_async/_operation_group_one_operations_async.py @@ -71,7 +71,7 @@ async def test_two( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if parameter_one is not None: body_content = self._serialize.body(parameter_one, 'ModelTwo') @@ -122,7 +122,7 @@ async def test_three( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations_async/_operation_group_two_operations_async.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations_async/_operation_group_two_operations_async.py index 9061bd3f2ac..c60d89e734b 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations_async/_operation_group_two_operations_async.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations_async/_operation_group_two_operations_async.py @@ -69,7 +69,7 @@ async def test_four( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_multiapi_service_client_operations.py index 910705e813c..37730c56be7 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_multiapi_service_client_operations.py @@ -60,7 +60,7 @@ def test_one( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_operation_group_one_operations.py index b60392be7e5..9053e6428a0 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_operation_group_one_operations.py @@ -76,7 +76,7 @@ def test_two( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if parameter_one is not None: body_content = self._serialize.body(parameter_one, 'ModelTwo') @@ -128,7 +128,7 @@ def test_three( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_operation_group_two_operations.py index 8323f63d57a..c8071fbbfc3 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_operation_group_two_operations.py @@ -74,7 +74,7 @@ def test_four( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations_async/_multiapi_service_client_operations_async.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations_async/_multiapi_service_client_operations_async.py index d0a6fbaf4c4..c7ef1aa956f 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations_async/_multiapi_service_client_operations_async.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations_async/_multiapi_service_client_operations_async.py @@ -36,21 +36,23 @@ def test_paging( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.test_paging.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations_async/_operation_group_one_operations_async.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations_async/_operation_group_one_operations_async.py index 38e914de9f3..e04b01847c7 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations_async/_operation_group_one_operations_async.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations_async/_operation_group_one_operations_async.py @@ -71,7 +71,7 @@ async def test_two( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if parameter_one is not None: body_content = self._serialize.body(parameter_one, 'ModelThree') diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations_async/_operation_group_two_operations_async.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations_async/_operation_group_two_operations_async.py index 5bc4cc12a22..79e9b2e93ae 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations_async/_operation_group_two_operations_async.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations_async/_operation_group_two_operations_async.py @@ -72,7 +72,7 @@ async def test_four( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: body_content_kwargs['stream_content'] = input @@ -128,7 +128,7 @@ async def test_five( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_multiapi_service_client_operations.py index faef30e9685..61796e5754b 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_multiapi_service_client_operations.py @@ -41,21 +41,23 @@ def test_paging( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.test_paging.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_operation_group_one_operations.py index 1375da0aeac..3cfc4398e30 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_operation_group_one_operations.py @@ -76,7 +76,7 @@ def test_two( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if parameter_one is not None: body_content = self._serialize.body(parameter_one, 'ModelThree') diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_operation_group_two_operations.py index 52d3eff80ca..77128296daf 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_operation_group_two_operations.py @@ -77,7 +77,7 @@ def test_four( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: body_content_kwargs['stream_content'] = input @@ -134,7 +134,7 @@ def test_five( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/operations/_multiapi_service_client_operations.py index e432423c498..6a2925dc81f 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/operations/_multiapi_service_client_operations.py @@ -61,7 +61,7 @@ def test_one( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -98,7 +98,7 @@ def _test_lro_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/operations/_operation_group_one_operations.py index 6568840bfe8..5361116c154 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/operations/_operation_group_one_operations.py @@ -70,7 +70,7 @@ def test_two( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_multiapi_service_client_operations.py index e181398f1f0..8ee1c1a8d58 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_multiapi_service_client_operations.py @@ -60,7 +60,7 @@ def test_one( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_operation_group_one_operations.py index 39552ae2c21..0ee0bcc0003 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_operation_group_one_operations.py @@ -76,7 +76,7 @@ def test_two( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if parameter_one is not None: body_content = self._serialize.body(parameter_one, 'ModelTwo') @@ -128,7 +128,7 @@ def test_three( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_operation_group_two_operations.py index 9a4efa60e2a..1c487bd1fa9 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_operation_group_two_operations.py @@ -74,7 +74,7 @@ def test_four( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_multiapi_service_client_operations.py index b4baef144b4..7ae9f388ebe 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_multiapi_service_client_operations.py @@ -41,21 +41,23 @@ def test_paging( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.test_paging.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_operation_group_one_operations.py index fc12b39a9af..c7224250dd5 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_operation_group_one_operations.py @@ -76,7 +76,7 @@ def test_two( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if parameter_one is not None: body_content = self._serialize.body(parameter_one, 'ModelThree') diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_operation_group_two_operations.py index 6c5aef80eb8..d037a72b716 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_operation_group_two_operations.py @@ -77,7 +77,7 @@ def test_four( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: body_content_kwargs['stream_content'] = input @@ -134,7 +134,7 @@ def test_five( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations_async/_multiapi_service_client_operations_async.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations_async/_multiapi_service_client_operations_async.py index 3c88e3c917e..49fea717ed9 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations_async/_multiapi_service_client_operations_async.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations_async/_multiapi_service_client_operations_async.py @@ -56,7 +56,7 @@ async def test_one( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -92,7 +92,7 @@ async def _test_lro_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations_async/_operation_group_one_operations_async.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations_async/_operation_group_one_operations_async.py index 63585c86761..d95e6e3bbb5 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations_async/_operation_group_one_operations_async.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations_async/_operation_group_one_operations_async.py @@ -65,7 +65,7 @@ async def test_two( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/operations/_multiapi_service_client_operations.py index 385a5e0f12c..85f78a1f89a 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/operations/_multiapi_service_client_operations.py @@ -61,7 +61,7 @@ def test_one( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -98,7 +98,7 @@ def _test_lro_initial( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if product is not None: body_content = self._serialize.body(product, 'Product') diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/operations/_operation_group_one_operations.py index e7a8ddd3fe9..19388d3a82e 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/operations/_operation_group_one_operations.py @@ -70,7 +70,7 @@ def test_two( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations_async/_multiapi_service_client_operations_async.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations_async/_multiapi_service_client_operations_async.py index 50cb3449205..0ec8095b7ac 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations_async/_multiapi_service_client_operations_async.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations_async/_multiapi_service_client_operations_async.py @@ -55,7 +55,7 @@ async def test_one( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations_async/_operation_group_one_operations_async.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations_async/_operation_group_one_operations_async.py index bd92b9f7181..c8a816efd94 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations_async/_operation_group_one_operations_async.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations_async/_operation_group_one_operations_async.py @@ -71,7 +71,7 @@ async def test_two( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if parameter_one is not None: body_content = self._serialize.body(parameter_one, 'ModelTwo') @@ -122,7 +122,7 @@ async def test_three( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations_async/_operation_group_two_operations_async.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations_async/_operation_group_two_operations_async.py index 2f599316753..11b5138be95 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations_async/_operation_group_two_operations_async.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations_async/_operation_group_two_operations_async.py @@ -69,7 +69,7 @@ async def test_four( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_multiapi_service_client_operations.py index a3cf806eed0..265f334f3d5 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_multiapi_service_client_operations.py @@ -60,7 +60,7 @@ def test_one( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_operation_group_one_operations.py index e5c26f0b7e9..050d20a5c5f 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_operation_group_one_operations.py @@ -76,7 +76,7 @@ def test_two( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if parameter_one is not None: body_content = self._serialize.body(parameter_one, 'ModelTwo') @@ -128,7 +128,7 @@ def test_three( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_operation_group_two_operations.py index 943f3497eca..f08b1e24702 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_operation_group_two_operations.py @@ -74,7 +74,7 @@ def test_four( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations_async/_multiapi_service_client_operations_async.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations_async/_multiapi_service_client_operations_async.py index 93381cafaad..a473dd1ed4f 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations_async/_multiapi_service_client_operations_async.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations_async/_multiapi_service_client_operations_async.py @@ -36,21 +36,23 @@ def test_paging( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.test_paging.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations_async/_operation_group_one_operations_async.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations_async/_operation_group_one_operations_async.py index 46d7795dfd9..319bb5afe05 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations_async/_operation_group_one_operations_async.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations_async/_operation_group_one_operations_async.py @@ -71,7 +71,7 @@ async def test_two( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if parameter_one is not None: body_content = self._serialize.body(parameter_one, 'ModelThree') diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations_async/_operation_group_two_operations_async.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations_async/_operation_group_two_operations_async.py index 6e1a1936ab6..3ce00e7540d 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations_async/_operation_group_two_operations_async.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations_async/_operation_group_two_operations_async.py @@ -72,7 +72,7 @@ async def test_four( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: body_content_kwargs['stream_content'] = input @@ -128,7 +128,7 @@ async def test_five( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_multiapi_service_client_operations.py index 79147df9a0d..bbd43cfb48a 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_multiapi_service_client_operations.py @@ -41,21 +41,23 @@ def test_paging( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.test_paging.metadata['url'] # type: ignore # Construct parameters query_parameters = {} # type: Dict[str, Any] + # Construct request + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + # Construct request + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_operation_group_one_operations.py index 7dbda7cfb3f..298101c36eb 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_operation_group_one_operations.py @@ -76,7 +76,7 @@ def test_two( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if parameter_one is not None: body_content = self._serialize.body(parameter_one, 'ModelThree') diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_operation_group_two_operations.py index d0928eeba4f..763c542e710 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_operation_group_two_operations.py @@ -77,7 +77,7 @@ def test_four( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: body_content_kwargs['stream_content'] = input @@ -134,7 +134,7 @@ def test_five( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request + # Construct request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/operations_async/_pets_operations_async.py b/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/operations_async/_pets_operations_async.py index 81ca230e168..8d8fd194546 100644 --- a/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/operations_async/_pets_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/operations_async/_pets_operations_async.py @@ -71,7 +71,6 @@ async def create_ap_true( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(create_parameters, 'PetAPTrue') body_content_kwargs['content'] = body_content @@ -124,7 +123,6 @@ async def create_cat_ap_true( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(create_parameters, 'CatAPTrue') body_content_kwargs['content'] = body_content @@ -177,7 +175,6 @@ async def create_ap_object( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(create_parameters, 'PetAPObject') body_content_kwargs['content'] = body_content @@ -230,7 +227,6 @@ async def create_ap_string( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(create_parameters, 'PetAPString') body_content_kwargs['content'] = body_content @@ -283,7 +279,6 @@ async def create_ap_in_properties( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(create_parameters, 'PetAPInProperties') body_content_kwargs['content'] = body_content @@ -336,7 +331,6 @@ async def create_ap_in_properties_with_ap_string( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(create_parameters, 'PetAPInPropertiesWithAPString') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/operations/_pets_operations.py b/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/operations/_pets_operations.py index da8e5be965f..6d614274887 100644 --- a/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/operations/_pets_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/operations/_pets_operations.py @@ -76,7 +76,6 @@ def create_ap_true( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(create_parameters, 'PetAPTrue') body_content_kwargs['content'] = body_content @@ -130,7 +129,6 @@ def create_cat_ap_true( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(create_parameters, 'CatAPTrue') body_content_kwargs['content'] = body_content @@ -184,7 +182,6 @@ def create_ap_object( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(create_parameters, 'PetAPObject') body_content_kwargs['content'] = body_content @@ -238,7 +235,6 @@ def create_ap_string( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(create_parameters, 'PetAPString') body_content_kwargs['content'] = body_content @@ -292,7 +288,6 @@ def create_ap_in_properties( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(create_parameters, 'PetAPInProperties') body_content_kwargs['content'] = body_content @@ -346,7 +341,6 @@ def create_ap_in_properties_with_ap_string( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(create_parameters, 'PetAPInPropertiesWithAPString') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/aio/operations_async/_array_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/aio/operations_async/_array_operations_async.py index d53e007e7ea..b728b35fca3 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/aio/operations_async/_array_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/aio/operations_async/_array_operations_async.py @@ -67,7 +67,6 @@ async def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -111,7 +110,6 @@ async def get_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -155,7 +153,6 @@ async def get_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -203,7 +200,6 @@ async def put_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[str]') body_content_kwargs['content'] = body_content @@ -248,7 +244,6 @@ async def get_boolean_tfft( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -296,7 +291,6 @@ async def put_boolean_tfft( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[bool]') body_content_kwargs['content'] = body_content @@ -341,7 +335,6 @@ async def get_boolean_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -385,7 +378,6 @@ async def get_boolean_invalid_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -429,7 +421,6 @@ async def get_integer_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -477,7 +468,6 @@ async def put_integer_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[int]') body_content_kwargs['content'] = body_content @@ -522,7 +512,6 @@ async def get_int_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -566,7 +555,6 @@ async def get_int_invalid_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -610,7 +598,6 @@ async def get_long_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -658,7 +645,6 @@ async def put_long_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[long]') body_content_kwargs['content'] = body_content @@ -703,7 +689,6 @@ async def get_long_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -747,7 +732,6 @@ async def get_long_invalid_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -791,7 +775,6 @@ async def get_float_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -839,7 +822,6 @@ async def put_float_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[float]') body_content_kwargs['content'] = body_content @@ -884,7 +866,6 @@ async def get_float_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -928,7 +909,6 @@ async def get_float_invalid_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -972,7 +952,6 @@ async def get_double_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1020,7 +999,6 @@ async def put_double_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[float]') body_content_kwargs['content'] = body_content @@ -1065,7 +1043,6 @@ async def get_double_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1109,7 +1086,6 @@ async def get_double_invalid_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1153,7 +1129,6 @@ async def get_string_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1201,7 +1176,6 @@ async def put_string_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[str]') body_content_kwargs['content'] = body_content @@ -1246,7 +1220,6 @@ async def get_enum_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1294,7 +1267,6 @@ async def put_enum_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[str]') body_content_kwargs['content'] = body_content @@ -1339,7 +1311,6 @@ async def get_string_enum_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1387,7 +1358,6 @@ async def put_string_enum_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[str]') body_content_kwargs['content'] = body_content @@ -1432,7 +1402,6 @@ async def get_string_with_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1476,7 +1445,6 @@ async def get_string_with_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1521,7 +1489,6 @@ async def get_uuid_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1570,7 +1537,6 @@ async def put_uuid_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[str]') body_content_kwargs['content'] = body_content @@ -1615,7 +1581,6 @@ async def get_uuid_invalid_chars( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1659,7 +1624,6 @@ async def get_date_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1707,7 +1671,6 @@ async def put_date_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[date]') body_content_kwargs['content'] = body_content @@ -1752,7 +1715,6 @@ async def get_date_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1796,7 +1758,6 @@ async def get_date_invalid_chars( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1841,7 +1802,6 @@ async def get_date_time_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1890,7 +1850,6 @@ async def put_date_time_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[iso-8601]') body_content_kwargs['content'] = body_content @@ -1935,7 +1894,6 @@ async def get_date_time_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1979,7 +1937,6 @@ async def get_date_time_invalid_chars( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2024,7 +1981,6 @@ async def get_date_time_rfc1123_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2073,7 +2029,6 @@ async def put_date_time_rfc1123_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[rfc-1123]') body_content_kwargs['content'] = body_content @@ -2118,7 +2073,6 @@ async def get_duration_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2166,7 +2120,6 @@ async def put_duration_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[duration]') body_content_kwargs['content'] = body_content @@ -2212,7 +2165,6 @@ async def get_byte_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2261,7 +2213,6 @@ async def put_byte_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[bytearray]') body_content_kwargs['content'] = body_content @@ -2306,7 +2257,6 @@ async def get_byte_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2351,7 +2301,6 @@ async def get_base64_url( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2395,7 +2344,6 @@ async def get_complex_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2439,7 +2387,6 @@ async def get_complex_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2484,7 +2431,6 @@ async def get_complex_item_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2529,7 +2475,6 @@ async def get_complex_item_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2574,7 +2519,6 @@ async def get_complex_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2623,7 +2567,6 @@ async def put_complex_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[Product]') body_content_kwargs['content'] = body_content @@ -2668,7 +2611,6 @@ async def get_array_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2712,7 +2654,6 @@ async def get_array_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2756,7 +2697,6 @@ async def get_array_item_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2800,7 +2740,6 @@ async def get_array_item_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2844,7 +2783,6 @@ async def get_array_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2892,7 +2830,6 @@ async def put_array_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[[str]]') body_content_kwargs['content'] = body_content @@ -2937,7 +2874,6 @@ async def get_dictionary_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2981,7 +2917,6 @@ async def get_dictionary_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3026,7 +2961,6 @@ async def get_dictionary_item_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3071,7 +3005,6 @@ async def get_dictionary_item_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3116,7 +3049,6 @@ async def get_dictionary_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3165,7 +3097,6 @@ async def put_dictionary_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[{str}]') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/operations/_array_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/operations/_array_operations.py index 44147bf0a92..fbbf62ae2d8 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/operations/_array_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/operations/_array_operations.py @@ -72,7 +72,6 @@ def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -117,7 +116,6 @@ def get_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -162,7 +160,6 @@ def get_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -211,7 +208,6 @@ def put_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[str]') body_content_kwargs['content'] = body_content @@ -257,7 +253,6 @@ def get_boolean_tfft( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -306,7 +301,6 @@ def put_boolean_tfft( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[bool]') body_content_kwargs['content'] = body_content @@ -352,7 +346,6 @@ def get_boolean_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -397,7 +390,6 @@ def get_boolean_invalid_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -442,7 +434,6 @@ def get_integer_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -491,7 +482,6 @@ def put_integer_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[int]') body_content_kwargs['content'] = body_content @@ -537,7 +527,6 @@ def get_int_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -582,7 +571,6 @@ def get_int_invalid_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -627,7 +615,6 @@ def get_long_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -676,7 +663,6 @@ def put_long_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[long]') body_content_kwargs['content'] = body_content @@ -722,7 +708,6 @@ def get_long_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -767,7 +752,6 @@ def get_long_invalid_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -812,7 +796,6 @@ def get_float_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -861,7 +844,6 @@ def put_float_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[float]') body_content_kwargs['content'] = body_content @@ -907,7 +889,6 @@ def get_float_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -952,7 +933,6 @@ def get_float_invalid_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -997,7 +977,6 @@ def get_double_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1046,7 +1025,6 @@ def put_double_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[float]') body_content_kwargs['content'] = body_content @@ -1092,7 +1070,6 @@ def get_double_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1137,7 +1114,6 @@ def get_double_invalid_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1182,7 +1158,6 @@ def get_string_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1231,7 +1206,6 @@ def put_string_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[str]') body_content_kwargs['content'] = body_content @@ -1277,7 +1251,6 @@ def get_enum_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1326,7 +1299,6 @@ def put_enum_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[str]') body_content_kwargs['content'] = body_content @@ -1372,7 +1344,6 @@ def get_string_enum_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1421,7 +1392,6 @@ def put_string_enum_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[str]') body_content_kwargs['content'] = body_content @@ -1467,7 +1437,6 @@ def get_string_with_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1512,7 +1481,6 @@ def get_string_with_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1558,7 +1526,6 @@ def get_uuid_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1608,7 +1575,6 @@ def put_uuid_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[str]') body_content_kwargs['content'] = body_content @@ -1654,7 +1620,6 @@ def get_uuid_invalid_chars( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1699,7 +1664,6 @@ def get_date_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1748,7 +1712,6 @@ def put_date_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[date]') body_content_kwargs['content'] = body_content @@ -1794,7 +1757,6 @@ def get_date_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1839,7 +1801,6 @@ def get_date_invalid_chars( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1885,7 +1846,6 @@ def get_date_time_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1935,7 +1895,6 @@ def put_date_time_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[iso-8601]') body_content_kwargs['content'] = body_content @@ -1981,7 +1940,6 @@ def get_date_time_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2026,7 +1984,6 @@ def get_date_time_invalid_chars( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2072,7 +2029,6 @@ def get_date_time_rfc1123_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2122,7 +2078,6 @@ def put_date_time_rfc1123_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[rfc-1123]') body_content_kwargs['content'] = body_content @@ -2168,7 +2123,6 @@ def get_duration_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2217,7 +2171,6 @@ def put_duration_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[duration]') body_content_kwargs['content'] = body_content @@ -2264,7 +2217,6 @@ def get_byte_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2314,7 +2266,6 @@ def put_byte_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[bytearray]') body_content_kwargs['content'] = body_content @@ -2360,7 +2311,6 @@ def get_byte_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2406,7 +2356,6 @@ def get_base64_url( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2451,7 +2400,6 @@ def get_complex_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2496,7 +2444,6 @@ def get_complex_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2542,7 +2489,6 @@ def get_complex_item_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2588,7 +2534,6 @@ def get_complex_item_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2634,7 +2579,6 @@ def get_complex_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2684,7 +2628,6 @@ def put_complex_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[Product]') body_content_kwargs['content'] = body_content @@ -2730,7 +2673,6 @@ def get_array_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2775,7 +2717,6 @@ def get_array_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2820,7 +2761,6 @@ def get_array_item_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2865,7 +2805,6 @@ def get_array_item_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2910,7 +2849,6 @@ def get_array_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2959,7 +2897,6 @@ def put_array_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[[str]]') body_content_kwargs['content'] = body_content @@ -3005,7 +2942,6 @@ def get_dictionary_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3050,7 +2986,6 @@ def get_dictionary_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3096,7 +3031,6 @@ def get_dictionary_item_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3142,7 +3076,6 @@ def get_dictionary_item_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3188,7 +3121,6 @@ def get_dictionary_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3238,7 +3170,6 @@ def put_dictionary_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '[{str}]') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/operations_async/_bool_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/operations_async/_bool_operations_async.py index c5a9aee4b4c..90733f5eff2 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/operations_async/_bool_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/operations_async/_bool_operations_async.py @@ -66,7 +66,6 @@ async def get_true( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -112,7 +111,6 @@ async def put_true( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(bool_body, 'bool') body_content_kwargs['content'] = body_content @@ -157,7 +155,6 @@ async def get_false( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -203,7 +200,6 @@ async def put_false( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(bool_body, 'bool') body_content_kwargs['content'] = body_content @@ -248,7 +244,6 @@ async def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -292,7 +287,6 @@ async def get_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/operations/_bool_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/operations/_bool_operations.py index b2edf4c5bdc..cc4d636ea50 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/operations/_bool_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/operations/_bool_operations.py @@ -71,7 +71,6 @@ def get_true( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -118,7 +117,6 @@ def put_true( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(bool_body, 'bool') body_content_kwargs['content'] = body_content @@ -164,7 +162,6 @@ def get_false( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -211,7 +208,6 @@ def put_false( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(bool_body, 'bool') body_content_kwargs['content'] = body_content @@ -257,7 +253,6 @@ def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -302,7 +297,6 @@ def get_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/aio/operations_async/_byte_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/aio/operations_async/_byte_operations_async.py index 965fc1d39b1..14ded8984a4 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/aio/operations_async/_byte_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/aio/operations_async/_byte_operations_async.py @@ -66,7 +66,6 @@ async def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -110,7 +109,6 @@ async def get_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -154,7 +152,6 @@ async def get_non_ascii( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -202,7 +199,6 @@ async def put_non_ascii( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(byte_body, 'bytearray') body_content_kwargs['content'] = body_content @@ -247,7 +243,6 @@ async def get_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/operations/_byte_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/operations/_byte_operations.py index 96a771c20fd..fde97c9cc8d 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/operations/_byte_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/operations/_byte_operations.py @@ -71,7 +71,6 @@ def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -116,7 +115,6 @@ def get_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -161,7 +159,6 @@ def get_non_ascii( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -210,7 +207,6 @@ def put_non_ascii( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(byte_body, 'bytearray') body_content_kwargs['content'] = body_content @@ -256,7 +252,6 @@ def get_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_array_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_array_operations_async.py index 6358920cd38..7ad9eceeea8 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_array_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_array_operations_async.py @@ -66,7 +66,7 @@ async def get_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -116,7 +116,7 @@ async def put_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_complex_body, 'ArrayWrapper') body_content_kwargs['content'] = body_content @@ -161,7 +161,7 @@ async def get_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -211,7 +211,7 @@ async def put_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_complex_body, 'ArrayWrapper') body_content_kwargs['content'] = body_content @@ -256,7 +256,7 @@ async def get_not_provided( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_basic_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_basic_operations_async.py index cf3f928c1af..855de06ddab 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_basic_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_basic_operations_async.py @@ -66,7 +66,7 @@ async def get_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -116,7 +116,7 @@ async def put_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'Basic') body_content_kwargs['content'] = body_content @@ -161,7 +161,7 @@ async def get_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -205,7 +205,7 @@ async def get_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -249,7 +249,7 @@ async def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -293,7 +293,7 @@ async def get_not_provided( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_dictionary_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_dictionary_operations_async.py index ec2160e93e7..e90b9bc385e 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_dictionary_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_dictionary_operations_async.py @@ -66,7 +66,7 @@ async def get_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -116,7 +116,7 @@ async def put_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_complex_body, 'DictionaryWrapper') body_content_kwargs['content'] = body_content @@ -161,7 +161,7 @@ async def get_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -211,7 +211,7 @@ async def put_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_complex_body, 'DictionaryWrapper') body_content_kwargs['content'] = body_content @@ -256,7 +256,7 @@ async def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -300,7 +300,7 @@ async def get_not_provided( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_flattencomplex_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_flattencomplex_operations_async.py index 68c6a40ca96..4293d16510e 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_flattencomplex_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_flattencomplex_operations_async.py @@ -66,7 +66,7 @@ async def get_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_inheritance_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_inheritance_operations_async.py index 52f2eef008d..e08fc8a868a 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_inheritance_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_inheritance_operations_async.py @@ -66,7 +66,7 @@ async def get_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -116,7 +116,7 @@ async def put_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'Siamese') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_polymorphicrecursive_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_polymorphicrecursive_operations_async.py index 0ddb5d94640..9c22b1dcc35 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_polymorphicrecursive_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_polymorphicrecursive_operations_async.py @@ -66,7 +66,7 @@ async def get_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -166,7 +166,7 @@ async def put_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'Fish') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_polymorphism_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_polymorphism_operations_async.py index 5955f18188d..319798cced3 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_polymorphism_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_polymorphism_operations_async.py @@ -66,7 +66,7 @@ async def get_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -146,7 +146,7 @@ async def put_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'Fish') body_content_kwargs['content'] = body_content @@ -191,7 +191,7 @@ async def get_dot_syntax( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -237,7 +237,7 @@ async def get_composed_with_discriminator( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -283,7 +283,7 @@ async def get_composed_without_discriminator( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -328,7 +328,7 @@ async def get_complicated( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -377,7 +377,7 @@ async def put_complicated( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'Salmon') body_content_kwargs['content'] = body_content @@ -427,7 +427,7 @@ async def put_missing_discriminator( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'Salmon') body_content_kwargs['content'] = body_content @@ -506,7 +506,7 @@ async def put_valid_missing_required( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'Fish') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_primitive_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_primitive_operations_async.py index c6ef668c733..5666fa7fa0d 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_primitive_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_primitive_operations_async.py @@ -67,7 +67,7 @@ async def get_int( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -115,7 +115,7 @@ async def put_int( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'IntWrapper') body_content_kwargs['content'] = body_content @@ -160,7 +160,7 @@ async def get_long( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -208,7 +208,7 @@ async def put_long( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'LongWrapper') body_content_kwargs['content'] = body_content @@ -253,7 +253,7 @@ async def get_float( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -301,7 +301,7 @@ async def put_float( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'FloatWrapper') body_content_kwargs['content'] = body_content @@ -346,7 +346,7 @@ async def get_double( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -395,7 +395,7 @@ async def put_double( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'DoubleWrapper') body_content_kwargs['content'] = body_content @@ -440,7 +440,7 @@ async def get_bool( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -488,7 +488,7 @@ async def put_bool( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'BooleanWrapper') body_content_kwargs['content'] = body_content @@ -533,7 +533,7 @@ async def get_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -581,7 +581,7 @@ async def put_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'StringWrapper') body_content_kwargs['content'] = body_content @@ -626,7 +626,7 @@ async def get_date( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -674,7 +674,7 @@ async def put_date( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'DateWrapper') body_content_kwargs['content'] = body_content @@ -719,7 +719,7 @@ async def get_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -767,7 +767,7 @@ async def put_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'DatetimeWrapper') body_content_kwargs['content'] = body_content @@ -812,7 +812,7 @@ async def get_date_time_rfc1123( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -861,7 +861,7 @@ async def put_date_time_rfc1123( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'Datetimerfc1123Wrapper') body_content_kwargs['content'] = body_content @@ -906,7 +906,7 @@ async def get_duration( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -956,7 +956,7 @@ async def put_duration( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_complex_body, 'DurationWrapper') body_content_kwargs['content'] = body_content @@ -1001,7 +1001,7 @@ async def get_byte( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1051,7 +1051,7 @@ async def put_byte( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_complex_body, 'ByteWrapper') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_readonlyproperty_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_readonlyproperty_operations_async.py index 59897d4fac0..d3a4289331b 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_readonlyproperty_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations_async/_readonlyproperty_operations_async.py @@ -66,7 +66,7 @@ async def get_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -116,7 +116,7 @@ async def put_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_complex_body, 'ReadonlyObj') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_array_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_array_operations.py index b59e6b67054..38d1f58d983 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_array_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_array_operations.py @@ -71,7 +71,7 @@ def get_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -122,7 +122,7 @@ def put_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_complex_body, 'ArrayWrapper') body_content_kwargs['content'] = body_content @@ -168,7 +168,7 @@ def get_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -219,7 +219,7 @@ def put_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_complex_body, 'ArrayWrapper') body_content_kwargs['content'] = body_content @@ -265,7 +265,7 @@ def get_not_provided( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_basic_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_basic_operations.py index 524548abbea..2debab85efc 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_basic_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_basic_operations.py @@ -71,7 +71,7 @@ def get_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -122,7 +122,7 @@ def put_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'Basic') body_content_kwargs['content'] = body_content @@ -168,7 +168,7 @@ def get_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -213,7 +213,7 @@ def get_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -258,7 +258,7 @@ def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -303,7 +303,7 @@ def get_not_provided( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_dictionary_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_dictionary_operations.py index 7dbc67de554..0e4f112fbf4 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_dictionary_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_dictionary_operations.py @@ -71,7 +71,7 @@ def get_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -122,7 +122,7 @@ def put_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_complex_body, 'DictionaryWrapper') body_content_kwargs['content'] = body_content @@ -168,7 +168,7 @@ def get_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -219,7 +219,7 @@ def put_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_complex_body, 'DictionaryWrapper') body_content_kwargs['content'] = body_content @@ -265,7 +265,7 @@ def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -310,7 +310,7 @@ def get_not_provided( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_flattencomplex_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_flattencomplex_operations.py index ae492ba028d..eb927ae6645 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_flattencomplex_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_flattencomplex_operations.py @@ -71,7 +71,7 @@ def get_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_inheritance_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_inheritance_operations.py index 0949cfbe0d5..a840ed1d6ee 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_inheritance_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_inheritance_operations.py @@ -71,7 +71,7 @@ def get_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -122,7 +122,7 @@ def put_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'Siamese') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphicrecursive_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphicrecursive_operations.py index 57697a35c07..c9e07b68abb 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphicrecursive_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphicrecursive_operations.py @@ -71,7 +71,7 @@ def get_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -172,7 +172,7 @@ def put_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'Fish') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphism_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphism_operations.py index 282b854acb5..876a969a344 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphism_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphism_operations.py @@ -71,7 +71,7 @@ def get_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -152,7 +152,7 @@ def put_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'Fish') body_content_kwargs['content'] = body_content @@ -198,7 +198,7 @@ def get_dot_syntax( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -245,7 +245,7 @@ def get_composed_with_discriminator( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -292,7 +292,7 @@ def get_composed_without_discriminator( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -338,7 +338,7 @@ def get_complicated( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -388,7 +388,7 @@ def put_complicated( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'Salmon') body_content_kwargs['content'] = body_content @@ -439,7 +439,7 @@ def put_missing_discriminator( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'Salmon') body_content_kwargs['content'] = body_content @@ -519,7 +519,7 @@ def put_valid_missing_required( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'Fish') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_primitive_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_primitive_operations.py index 31fc3bc0386..4bed55eadbb 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_primitive_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_primitive_operations.py @@ -72,7 +72,7 @@ def get_int( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -121,7 +121,7 @@ def put_int( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'IntWrapper') body_content_kwargs['content'] = body_content @@ -167,7 +167,7 @@ def get_long( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -216,7 +216,7 @@ def put_long( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'LongWrapper') body_content_kwargs['content'] = body_content @@ -262,7 +262,7 @@ def get_float( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -311,7 +311,7 @@ def put_float( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'FloatWrapper') body_content_kwargs['content'] = body_content @@ -357,7 +357,7 @@ def get_double( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -407,7 +407,7 @@ def put_double( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'DoubleWrapper') body_content_kwargs['content'] = body_content @@ -453,7 +453,7 @@ def get_bool( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -502,7 +502,7 @@ def put_bool( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'BooleanWrapper') body_content_kwargs['content'] = body_content @@ -548,7 +548,7 @@ def get_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -597,7 +597,7 @@ def put_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'StringWrapper') body_content_kwargs['content'] = body_content @@ -643,7 +643,7 @@ def get_date( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -692,7 +692,7 @@ def put_date( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'DateWrapper') body_content_kwargs['content'] = body_content @@ -738,7 +738,7 @@ def get_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -787,7 +787,7 @@ def put_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'DatetimeWrapper') body_content_kwargs['content'] = body_content @@ -833,7 +833,7 @@ def get_date_time_rfc1123( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -883,7 +883,7 @@ def put_date_time_rfc1123( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(complex_body, 'Datetimerfc1123Wrapper') body_content_kwargs['content'] = body_content @@ -929,7 +929,7 @@ def get_duration( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -980,7 +980,7 @@ def put_duration( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_complex_body, 'DurationWrapper') body_content_kwargs['content'] = body_content @@ -1026,7 +1026,7 @@ def get_byte( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1077,7 +1077,7 @@ def put_byte( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_complex_body, 'ByteWrapper') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_readonlyproperty_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_readonlyproperty_operations.py index 7dbaf5fd4b5..5c9a30664b7 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_readonlyproperty_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_readonlyproperty_operations.py @@ -71,7 +71,7 @@ def get_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -122,7 +122,7 @@ def put_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_complex_body, 'ReadonlyObj') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/aio/operations_async/_date_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/aio/operations_async/_date_operations_async.py index 0bbb8103562..92e6223d0ba 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/aio/operations_async/_date_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/aio/operations_async/_date_operations_async.py @@ -67,7 +67,6 @@ async def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -111,7 +110,6 @@ async def get_invalid_date( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -155,7 +153,6 @@ async def get_overflow_date( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -199,7 +196,6 @@ async def get_underflow_date( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -247,7 +243,6 @@ async def put_max_date( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(date_body, 'date') body_content_kwargs['content'] = body_content @@ -292,7 +287,6 @@ async def get_max_date( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -340,7 +334,6 @@ async def put_min_date( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(date_body, 'date') body_content_kwargs['content'] = body_content @@ -385,7 +378,6 @@ async def get_min_date( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/operations/_date_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/operations/_date_operations.py index 45d5802411a..5d66a9c4400 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/operations/_date_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/operations/_date_operations.py @@ -72,7 +72,6 @@ def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -117,7 +116,6 @@ def get_invalid_date( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -162,7 +160,6 @@ def get_overflow_date( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -207,7 +204,6 @@ def get_underflow_date( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -256,7 +252,6 @@ def put_max_date( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(date_body, 'date') body_content_kwargs['content'] = body_content @@ -302,7 +297,6 @@ def get_max_date( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -351,7 +345,6 @@ def put_min_date( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(date_body, 'date') body_content_kwargs['content'] = body_content @@ -397,7 +390,6 @@ def get_min_date( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/operations_async/_datetime_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/operations_async/_datetime_operations_async.py index d73f9b3005c..de8cc8d1f23 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/operations_async/_datetime_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/operations_async/_datetime_operations_async.py @@ -67,7 +67,6 @@ async def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -111,7 +110,6 @@ async def get_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -155,7 +153,6 @@ async def get_overflow( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -199,7 +196,6 @@ async def get_underflow( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -247,7 +243,6 @@ async def put_utc_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(datetime_body, 'iso-8601') body_content_kwargs['content'] = body_content @@ -299,7 +294,6 @@ async def put_utc_max_date_time7_digits( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(datetime_body, 'iso-8601') body_content_kwargs['content'] = body_content @@ -344,7 +338,6 @@ async def get_utc_lowercase_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -388,7 +381,6 @@ async def get_utc_uppercase_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -435,7 +427,6 @@ async def get_utc_uppercase_max_date_time7_digits( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -483,7 +474,6 @@ async def put_local_positive_offset_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(datetime_body, 'iso-8601') body_content_kwargs['content'] = body_content @@ -528,7 +518,6 @@ async def get_local_positive_offset_lowercase_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -572,7 +561,6 @@ async def get_local_positive_offset_uppercase_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -620,7 +608,6 @@ async def put_local_negative_offset_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(datetime_body, 'iso-8601') body_content_kwargs['content'] = body_content @@ -665,7 +652,6 @@ async def get_local_negative_offset_uppercase_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -709,7 +695,6 @@ async def get_local_negative_offset_lowercase_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -757,7 +742,6 @@ async def put_utc_min_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(datetime_body, 'iso-8601') body_content_kwargs['content'] = body_content @@ -802,7 +786,6 @@ async def get_utc_min_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -850,7 +833,6 @@ async def put_local_positive_offset_min_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(datetime_body, 'iso-8601') body_content_kwargs['content'] = body_content @@ -895,7 +877,6 @@ async def get_local_positive_offset_min_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -943,7 +924,6 @@ async def put_local_negative_offset_min_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(datetime_body, 'iso-8601') body_content_kwargs['content'] = body_content @@ -988,7 +968,6 @@ async def get_local_negative_offset_min_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1032,7 +1011,6 @@ async def get_local_no_offset_min_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/operations/_datetime_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/operations/_datetime_operations.py index 68cf59554f1..f473d1b25a9 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/operations/_datetime_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/operations/_datetime_operations.py @@ -72,7 +72,6 @@ def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -117,7 +116,6 @@ def get_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -162,7 +160,6 @@ def get_overflow( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -207,7 +204,6 @@ def get_underflow( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -256,7 +252,6 @@ def put_utc_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(datetime_body, 'iso-8601') body_content_kwargs['content'] = body_content @@ -309,7 +304,6 @@ def put_utc_max_date_time7_digits( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(datetime_body, 'iso-8601') body_content_kwargs['content'] = body_content @@ -355,7 +349,6 @@ def get_utc_lowercase_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -400,7 +393,6 @@ def get_utc_uppercase_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -448,7 +440,6 @@ def get_utc_uppercase_max_date_time7_digits( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -497,7 +488,6 @@ def put_local_positive_offset_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(datetime_body, 'iso-8601') body_content_kwargs['content'] = body_content @@ -543,7 +533,6 @@ def get_local_positive_offset_lowercase_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -588,7 +577,6 @@ def get_local_positive_offset_uppercase_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -637,7 +625,6 @@ def put_local_negative_offset_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(datetime_body, 'iso-8601') body_content_kwargs['content'] = body_content @@ -683,7 +670,6 @@ def get_local_negative_offset_uppercase_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -728,7 +714,6 @@ def get_local_negative_offset_lowercase_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -777,7 +762,6 @@ def put_utc_min_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(datetime_body, 'iso-8601') body_content_kwargs['content'] = body_content @@ -823,7 +807,6 @@ def get_utc_min_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -872,7 +855,6 @@ def put_local_positive_offset_min_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(datetime_body, 'iso-8601') body_content_kwargs['content'] = body_content @@ -918,7 +900,6 @@ def get_local_positive_offset_min_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -967,7 +948,6 @@ def put_local_negative_offset_min_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(datetime_body, 'iso-8601') body_content_kwargs['content'] = body_content @@ -1013,7 +993,6 @@ def get_local_negative_offset_min_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1058,7 +1037,6 @@ def get_local_no_offset_min_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/operations_async/_datetimerfc1123_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/operations_async/_datetimerfc1123_operations_async.py index 78f57db5a96..0c048cde878 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/operations_async/_datetimerfc1123_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/operations_async/_datetimerfc1123_operations_async.py @@ -67,7 +67,7 @@ async def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -111,7 +111,7 @@ async def get_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -155,7 +155,7 @@ async def get_overflow( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -199,7 +199,7 @@ async def get_underflow( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -247,7 +247,7 @@ async def put_utc_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(datetime_body, 'rfc-1123') body_content_kwargs['content'] = body_content @@ -292,7 +292,7 @@ async def get_utc_lowercase_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -336,7 +336,7 @@ async def get_utc_uppercase_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -384,7 +384,7 @@ async def put_utc_min_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(datetime_body, 'rfc-1123') body_content_kwargs['content'] = body_content @@ -429,7 +429,7 @@ async def get_utc_min_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/operations/_datetimerfc1123_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/operations/_datetimerfc1123_operations.py index 893130bacbc..9a8001911be 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/operations/_datetimerfc1123_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/operations/_datetimerfc1123_operations.py @@ -72,7 +72,7 @@ def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -117,7 +117,7 @@ def get_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -162,7 +162,7 @@ def get_overflow( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -207,7 +207,7 @@ def get_underflow( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -256,7 +256,7 @@ def put_utc_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(datetime_body, 'rfc-1123') body_content_kwargs['content'] = body_content @@ -302,7 +302,7 @@ def get_utc_lowercase_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -347,7 +347,7 @@ def get_utc_uppercase_max_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -396,7 +396,7 @@ def put_utc_min_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(datetime_body, 'rfc-1123') body_content_kwargs['content'] = body_content @@ -442,7 +442,7 @@ def get_utc_min_date_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/operations_async/_dictionary_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/operations_async/_dictionary_operations_async.py index 0d8979914cc..0ade40984d9 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/operations_async/_dictionary_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/operations_async/_dictionary_operations_async.py @@ -67,7 +67,7 @@ async def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -111,7 +111,7 @@ async def get_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -159,7 +159,7 @@ async def put_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{str}') body_content_kwargs['content'] = body_content @@ -204,7 +204,7 @@ async def get_null_value( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -248,7 +248,7 @@ async def get_null_key( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -292,7 +292,7 @@ async def get_empty_string_key( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -336,7 +336,7 @@ async def get_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -380,7 +380,7 @@ async def get_boolean_tfft( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -428,7 +428,7 @@ async def put_boolean_tfft( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{bool}') body_content_kwargs['content'] = body_content @@ -473,7 +473,7 @@ async def get_boolean_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -517,7 +517,7 @@ async def get_boolean_invalid_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -561,7 +561,7 @@ async def get_integer_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -609,7 +609,7 @@ async def put_integer_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{int}') body_content_kwargs['content'] = body_content @@ -654,7 +654,7 @@ async def get_int_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -698,7 +698,7 @@ async def get_int_invalid_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -742,7 +742,7 @@ async def get_long_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -790,7 +790,7 @@ async def put_long_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{long}') body_content_kwargs['content'] = body_content @@ -835,7 +835,7 @@ async def get_long_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -879,7 +879,7 @@ async def get_long_invalid_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -923,7 +923,7 @@ async def get_float_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -971,7 +971,7 @@ async def put_float_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{float}') body_content_kwargs['content'] = body_content @@ -1016,7 +1016,7 @@ async def get_float_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1060,7 +1060,7 @@ async def get_float_invalid_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1104,7 +1104,7 @@ async def get_double_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1152,7 +1152,7 @@ async def put_double_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{float}') body_content_kwargs['content'] = body_content @@ -1197,7 +1197,7 @@ async def get_double_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1241,7 +1241,7 @@ async def get_double_invalid_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1285,7 +1285,7 @@ async def get_string_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1333,7 +1333,7 @@ async def put_string_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{str}') body_content_kwargs['content'] = body_content @@ -1378,7 +1378,7 @@ async def get_string_with_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1422,7 +1422,7 @@ async def get_string_with_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1466,7 +1466,7 @@ async def get_date_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1514,7 +1514,7 @@ async def put_date_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{date}') body_content_kwargs['content'] = body_content @@ -1559,7 +1559,7 @@ async def get_date_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1603,7 +1603,7 @@ async def get_date_invalid_chars( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1648,7 +1648,7 @@ async def get_date_time_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1697,7 +1697,7 @@ async def put_date_time_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{iso-8601}') body_content_kwargs['content'] = body_content @@ -1742,7 +1742,7 @@ async def get_date_time_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1786,7 +1786,7 @@ async def get_date_time_invalid_chars( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1831,7 +1831,7 @@ async def get_date_time_rfc1123_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1880,7 +1880,7 @@ async def put_date_time_rfc1123_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{rfc-1123}') body_content_kwargs['content'] = body_content @@ -1925,7 +1925,7 @@ async def get_duration_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1973,7 +1973,7 @@ async def put_duration_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{duration}') body_content_kwargs['content'] = body_content @@ -2019,7 +2019,7 @@ async def get_byte_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2068,7 +2068,7 @@ async def put_byte_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{bytearray}') body_content_kwargs['content'] = body_content @@ -2114,7 +2114,7 @@ async def get_byte_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2159,7 +2159,7 @@ async def get_base64_url( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2203,7 +2203,7 @@ async def get_complex_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2247,7 +2247,7 @@ async def get_complex_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2292,7 +2292,7 @@ async def get_complex_item_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2337,7 +2337,7 @@ async def get_complex_item_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2382,7 +2382,7 @@ async def get_complex_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2431,7 +2431,7 @@ async def put_complex_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{Widget}') body_content_kwargs['content'] = body_content @@ -2476,7 +2476,7 @@ async def get_array_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2520,7 +2520,7 @@ async def get_array_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2564,7 +2564,7 @@ async def get_array_item_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2608,7 +2608,7 @@ async def get_array_item_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2653,7 +2653,7 @@ async def get_array_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2702,7 +2702,7 @@ async def put_array_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{[str]}') body_content_kwargs['content'] = body_content @@ -2747,7 +2747,7 @@ async def get_dictionary_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2791,7 +2791,7 @@ async def get_dictionary_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2836,7 +2836,7 @@ async def get_dictionary_item_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2881,7 +2881,7 @@ async def get_dictionary_item_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2927,7 +2927,7 @@ async def get_dictionary_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2977,7 +2977,7 @@ async def put_dictionary_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{object}') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py index 47b44560a65..9480ff05f45 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py @@ -72,7 +72,7 @@ def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -117,7 +117,7 @@ def get_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -166,7 +166,7 @@ def put_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{str}') body_content_kwargs['content'] = body_content @@ -212,7 +212,7 @@ def get_null_value( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -257,7 +257,7 @@ def get_null_key( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -302,7 +302,7 @@ def get_empty_string_key( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -347,7 +347,7 @@ def get_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -392,7 +392,7 @@ def get_boolean_tfft( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -441,7 +441,7 @@ def put_boolean_tfft( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{bool}') body_content_kwargs['content'] = body_content @@ -487,7 +487,7 @@ def get_boolean_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -532,7 +532,7 @@ def get_boolean_invalid_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -577,7 +577,7 @@ def get_integer_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -626,7 +626,7 @@ def put_integer_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{int}') body_content_kwargs['content'] = body_content @@ -672,7 +672,7 @@ def get_int_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -717,7 +717,7 @@ def get_int_invalid_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -762,7 +762,7 @@ def get_long_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -811,7 +811,7 @@ def put_long_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{long}') body_content_kwargs['content'] = body_content @@ -857,7 +857,7 @@ def get_long_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -902,7 +902,7 @@ def get_long_invalid_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -947,7 +947,7 @@ def get_float_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -996,7 +996,7 @@ def put_float_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{float}') body_content_kwargs['content'] = body_content @@ -1042,7 +1042,7 @@ def get_float_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1087,7 +1087,7 @@ def get_float_invalid_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1132,7 +1132,7 @@ def get_double_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1181,7 +1181,7 @@ def put_double_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{float}') body_content_kwargs['content'] = body_content @@ -1227,7 +1227,7 @@ def get_double_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1272,7 +1272,7 @@ def get_double_invalid_string( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1317,7 +1317,7 @@ def get_string_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1366,7 +1366,7 @@ def put_string_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{str}') body_content_kwargs['content'] = body_content @@ -1412,7 +1412,7 @@ def get_string_with_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1457,7 +1457,7 @@ def get_string_with_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1502,7 +1502,7 @@ def get_date_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1551,7 +1551,7 @@ def put_date_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{date}') body_content_kwargs['content'] = body_content @@ -1597,7 +1597,7 @@ def get_date_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1642,7 +1642,7 @@ def get_date_invalid_chars( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1688,7 +1688,7 @@ def get_date_time_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1738,7 +1738,7 @@ def put_date_time_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{iso-8601}') body_content_kwargs['content'] = body_content @@ -1784,7 +1784,7 @@ def get_date_time_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1829,7 +1829,7 @@ def get_date_time_invalid_chars( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1875,7 +1875,7 @@ def get_date_time_rfc1123_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1925,7 +1925,7 @@ def put_date_time_rfc1123_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{rfc-1123}') body_content_kwargs['content'] = body_content @@ -1971,7 +1971,7 @@ def get_duration_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2020,7 +2020,7 @@ def put_duration_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{duration}') body_content_kwargs['content'] = body_content @@ -2067,7 +2067,7 @@ def get_byte_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2117,7 +2117,7 @@ def put_byte_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{bytearray}') body_content_kwargs['content'] = body_content @@ -2164,7 +2164,7 @@ def get_byte_invalid_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2210,7 +2210,7 @@ def get_base64_url( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2255,7 +2255,7 @@ def get_complex_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2300,7 +2300,7 @@ def get_complex_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2346,7 +2346,7 @@ def get_complex_item_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2392,7 +2392,7 @@ def get_complex_item_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2438,7 +2438,7 @@ def get_complex_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2488,7 +2488,7 @@ def put_complex_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{Widget}') body_content_kwargs['content'] = body_content @@ -2534,7 +2534,7 @@ def get_array_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2579,7 +2579,7 @@ def get_array_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2624,7 +2624,7 @@ def get_array_item_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2669,7 +2669,7 @@ def get_array_item_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2715,7 +2715,7 @@ def get_array_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2765,7 +2765,7 @@ def put_array_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{[str]}') body_content_kwargs['content'] = body_content @@ -2811,7 +2811,7 @@ def get_dictionary_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2856,7 +2856,7 @@ def get_dictionary_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2902,7 +2902,7 @@ def get_dictionary_item_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2948,7 +2948,7 @@ def get_dictionary_item_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2995,7 +2995,7 @@ def get_dictionary_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3046,7 +3046,7 @@ def put_dictionary_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(array_body, '{object}') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/operations_async/_duration_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/operations_async/_duration_operations_async.py index 32b83e96a3e..86fde5090a8 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/operations_async/_duration_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/operations_async/_duration_operations_async.py @@ -67,7 +67,7 @@ async def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -115,7 +115,7 @@ async def put_positive_duration( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(duration_body, 'duration') body_content_kwargs['content'] = body_content @@ -160,7 +160,7 @@ async def get_positive_duration( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -204,7 +204,7 @@ async def get_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/operations/_duration_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/operations/_duration_operations.py index 6121e151d54..905da870b63 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/operations/_duration_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/operations/_duration_operations.py @@ -72,7 +72,7 @@ def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -121,7 +121,7 @@ def put_positive_duration( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request + # Construct request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(duration_body, 'duration') body_content_kwargs['content'] = body_content @@ -167,7 +167,7 @@ def get_positive_duration( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -212,7 +212,7 @@ def get_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request + # Construct request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/aio/operations_async/_files_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/aio/operations_async/_files_operations_async.py index 5507eb4edd2..33ed07e057a 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/aio/operations_async/_files_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/aio/operations_async/_files_operations_async.py @@ -66,7 +66,6 @@ async def get_file( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'image/png, application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response @@ -110,7 +109,6 @@ async def get_file_large( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'image/png, application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response @@ -154,7 +152,6 @@ async def get_empty_file( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'image/png, application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/operations/_files_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/operations/_files_operations.py index 4f9e4db2122..38758f6563e 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/operations/_files_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/operations/_files_operations.py @@ -71,7 +71,6 @@ def get_file( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'image/png, application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response @@ -116,7 +115,6 @@ def get_file_large( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'image/png, application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response @@ -161,7 +159,6 @@ def get_empty_file( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'image/png, application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/operations_async/_int_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/operations_async/_int_operations_async.py index a6f87bc0985..f89d239a92e 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/operations_async/_int_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/operations_async/_int_operations_async.py @@ -67,7 +67,6 @@ async def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -111,7 +110,6 @@ async def get_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -155,7 +153,6 @@ async def get_overflow_int32( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -199,7 +196,6 @@ async def get_underflow_int32( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -243,7 +239,6 @@ async def get_overflow_int64( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -287,7 +282,6 @@ async def get_underflow_int64( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -335,7 +329,6 @@ async def put_max32( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(int_body, 'int') body_content_kwargs['content'] = body_content @@ -384,7 +377,6 @@ async def put_max64( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(int_body, 'long') body_content_kwargs['content'] = body_content @@ -433,7 +425,6 @@ async def put_min32( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(int_body, 'int') body_content_kwargs['content'] = body_content @@ -482,7 +473,6 @@ async def put_min64( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(int_body, 'long') body_content_kwargs['content'] = body_content @@ -527,7 +517,6 @@ async def get_unix_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -575,7 +564,6 @@ async def put_unix_time_date( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(int_body, 'unix-time') body_content_kwargs['content'] = body_content @@ -620,7 +608,6 @@ async def get_invalid_unix_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -664,7 +651,6 @@ async def get_null_unix_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/operations/_int_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/operations/_int_operations.py index c0377b88cc3..9bbaff76246 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/operations/_int_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/operations/_int_operations.py @@ -72,7 +72,6 @@ def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -117,7 +116,6 @@ def get_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -162,7 +160,6 @@ def get_overflow_int32( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -207,7 +204,6 @@ def get_underflow_int32( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -252,7 +248,6 @@ def get_overflow_int64( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -297,7 +292,6 @@ def get_underflow_int64( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -346,7 +340,6 @@ def put_max32( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(int_body, 'int') body_content_kwargs['content'] = body_content @@ -396,7 +389,6 @@ def put_max64( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(int_body, 'long') body_content_kwargs['content'] = body_content @@ -446,7 +438,6 @@ def put_min32( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(int_body, 'int') body_content_kwargs['content'] = body_content @@ -496,7 +487,6 @@ def put_min64( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(int_body, 'long') body_content_kwargs['content'] = body_content @@ -542,7 +532,6 @@ def get_unix_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -591,7 +580,6 @@ def put_unix_time_date( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(int_body, 'unix-time') body_content_kwargs['content'] = body_content @@ -637,7 +625,6 @@ def get_invalid_unix_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -682,7 +669,6 @@ def get_null_unix_time( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/operations_async/_number_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/operations_async/_number_operations_async.py index ee288ab324f..5b6ff712ef5 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/operations_async/_number_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/operations_async/_number_operations_async.py @@ -66,7 +66,6 @@ async def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -110,7 +109,6 @@ async def get_invalid_float( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -154,7 +152,6 @@ async def get_invalid_double( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -198,7 +195,6 @@ async def get_invalid_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -246,7 +242,6 @@ async def put_big_float( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(number_body, 'float') body_content_kwargs['content'] = body_content @@ -291,7 +286,6 @@ async def get_big_float( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -339,7 +333,6 @@ async def put_big_double( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(number_body, 'float') body_content_kwargs['content'] = body_content @@ -384,7 +377,6 @@ async def get_big_double( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -430,7 +422,6 @@ async def put_big_double_positive_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(number_body, 'float') body_content_kwargs['content'] = body_content @@ -475,7 +466,6 @@ async def get_big_double_positive_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -521,7 +511,6 @@ async def put_big_double_negative_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(number_body, 'float') body_content_kwargs['content'] = body_content @@ -566,7 +555,6 @@ async def get_big_double_negative_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -614,7 +602,6 @@ async def put_big_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(number_body, 'float') body_content_kwargs['content'] = body_content @@ -659,7 +646,6 @@ async def get_big_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -705,7 +691,6 @@ async def put_big_decimal_positive_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(number_body, 'float') body_content_kwargs['content'] = body_content @@ -750,7 +735,6 @@ async def get_big_decimal_positive_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -796,7 +780,6 @@ async def put_big_decimal_negative_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(number_body, 'float') body_content_kwargs['content'] = body_content @@ -841,7 +824,6 @@ async def get_big_decimal_negative_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -889,7 +871,6 @@ async def put_small_float( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(number_body, 'float') body_content_kwargs['content'] = body_content @@ -934,7 +915,6 @@ async def get_small_float( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -982,7 +962,6 @@ async def put_small_double( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(number_body, 'float') body_content_kwargs['content'] = body_content @@ -1027,7 +1006,6 @@ async def get_small_double( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1075,7 +1053,6 @@ async def put_small_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(number_body, 'float') body_content_kwargs['content'] = body_content @@ -1120,7 +1097,6 @@ async def get_small_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/operations/_number_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/operations/_number_operations.py index de4d6031a0f..8a8a65e5fea 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/operations/_number_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/operations/_number_operations.py @@ -71,7 +71,6 @@ def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -116,7 +115,6 @@ def get_invalid_float( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -161,7 +159,6 @@ def get_invalid_double( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -206,7 +203,6 @@ def get_invalid_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -255,7 +251,6 @@ def put_big_float( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(number_body, 'float') body_content_kwargs['content'] = body_content @@ -301,7 +296,6 @@ def get_big_float( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -350,7 +344,6 @@ def put_big_double( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(number_body, 'float') body_content_kwargs['content'] = body_content @@ -396,7 +389,6 @@ def get_big_double( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -443,7 +435,6 @@ def put_big_double_positive_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(number_body, 'float') body_content_kwargs['content'] = body_content @@ -489,7 +480,6 @@ def get_big_double_positive_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -536,7 +526,6 @@ def put_big_double_negative_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(number_body, 'float') body_content_kwargs['content'] = body_content @@ -582,7 +571,6 @@ def get_big_double_negative_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -631,7 +619,6 @@ def put_big_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(number_body, 'float') body_content_kwargs['content'] = body_content @@ -677,7 +664,6 @@ def get_big_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -724,7 +710,6 @@ def put_big_decimal_positive_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(number_body, 'float') body_content_kwargs['content'] = body_content @@ -770,7 +755,6 @@ def get_big_decimal_positive_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -817,7 +801,6 @@ def put_big_decimal_negative_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(number_body, 'float') body_content_kwargs['content'] = body_content @@ -863,7 +846,6 @@ def get_big_decimal_negative_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -912,7 +894,6 @@ def put_small_float( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(number_body, 'float') body_content_kwargs['content'] = body_content @@ -958,7 +939,6 @@ def get_small_float( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1007,7 +987,6 @@ def put_small_double( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(number_body, 'float') body_content_kwargs['content'] = body_content @@ -1053,7 +1032,6 @@ def get_small_double( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1102,7 +1080,6 @@ def put_small_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(number_body, 'float') body_content_kwargs['content'] = body_content @@ -1148,7 +1125,6 @@ def get_small_decimal( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations_async/_enum_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations_async/_enum_operations_async.py index e048f76ed53..80b5c84449b 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations_async/_enum_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations_async/_enum_operations_async.py @@ -66,7 +66,6 @@ async def get_not_expandable( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -114,7 +113,6 @@ async def put_not_expandable( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(string_body, 'str') body_content_kwargs['content'] = body_content @@ -159,7 +157,6 @@ async def get_referenced( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -207,7 +204,6 @@ async def put_referenced( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(enum_string_body, 'str') body_content_kwargs['content'] = body_content @@ -252,7 +248,6 @@ async def get_referenced_constant( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -302,7 +297,6 @@ async def put_referenced_constant( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_enum_string_body, 'RefColorConstant') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations_async/_string_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations_async/_string_operations_async.py index 75702b8f514..4ac4736575b 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations_async/_string_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations_async/_string_operations_async.py @@ -66,7 +66,6 @@ async def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -114,7 +113,6 @@ async def put_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if string_body is not None: body_content = self._serialize.body(string_body, 'str') @@ -162,7 +160,6 @@ async def get_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -208,7 +205,6 @@ async def put_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(string_body, 'str') body_content_kwargs['content'] = body_content @@ -253,7 +249,6 @@ async def get_mbcs( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -299,7 +294,6 @@ async def put_mbcs( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(string_body, 'str') body_content_kwargs['content'] = body_content @@ -346,7 +340,6 @@ async def get_whitespace( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -394,7 +387,6 @@ async def put_whitespace( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(string_body, 'str') body_content_kwargs['content'] = body_content @@ -439,7 +431,6 @@ async def get_not_provided( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -483,7 +474,6 @@ async def get_base64_encoded( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -527,7 +517,6 @@ async def get_base64_url_encoded( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -575,7 +564,6 @@ async def put_base64_url_encoded( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(string_body, 'base64') body_content_kwargs['content'] = body_content @@ -620,7 +608,6 @@ async def get_null_base64_url_encoded( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/operations/_enum_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/operations/_enum_operations.py index cc839faa7aa..bbfde2f7bd8 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/operations/_enum_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/operations/_enum_operations.py @@ -71,7 +71,6 @@ def get_not_expandable( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -120,7 +119,6 @@ def put_not_expandable( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(string_body, 'str') body_content_kwargs['content'] = body_content @@ -166,7 +164,6 @@ def get_referenced( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -215,7 +212,6 @@ def put_referenced( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(enum_string_body, 'str') body_content_kwargs['content'] = body_content @@ -261,7 +257,6 @@ def get_referenced_constant( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -312,7 +307,6 @@ def put_referenced_constant( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_enum_string_body, 'RefColorConstant') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py index 0b340400b66..486edc4ad09 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py @@ -71,7 +71,6 @@ def get_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -120,7 +119,6 @@ def put_null( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if string_body is not None: body_content = self._serialize.body(string_body, 'str') @@ -169,7 +167,6 @@ def get_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -216,7 +213,6 @@ def put_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(string_body, 'str') body_content_kwargs['content'] = body_content @@ -262,7 +258,6 @@ def get_mbcs( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -309,7 +304,6 @@ def put_mbcs( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(string_body, 'str') body_content_kwargs['content'] = body_content @@ -357,7 +351,6 @@ def get_whitespace( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -406,7 +399,6 @@ def put_whitespace( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(string_body, 'str') body_content_kwargs['content'] = body_content @@ -452,7 +444,6 @@ def get_not_provided( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -497,7 +488,6 @@ def get_base64_encoded( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -542,7 +532,6 @@ def get_base64_url_encoded( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -591,7 +580,6 @@ def put_base64_url_encoded( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(string_body, 'base64') body_content_kwargs['content'] = body_content @@ -637,7 +625,6 @@ def get_null_base64_url_encoded( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/aio/operations_async/_time_operations_async.py b/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/aio/operations_async/_time_operations_async.py index a1b0edf5eaa..71acabb7770 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/aio/operations_async/_time_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/aio/operations_async/_time_operations_async.py @@ -67,7 +67,6 @@ async def get( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -116,7 +115,6 @@ async def put( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(time_body, 'time') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/operations/_time_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/operations/_time_operations.py index 0b087c3b483..5feb0a5de4e 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/operations/_time_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/operations/_time_operations.py @@ -72,7 +72,6 @@ def get( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -122,7 +121,6 @@ def put( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(time_body, 'time') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations_async/_paths_operations_async.py b/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations_async/_paths_operations_async.py index 2a086d8886c..4f6777c1e57 100644 --- a/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations_async/_paths_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations_async/_paths_operations_async.py @@ -73,7 +73,6 @@ async def get_empty( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py b/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py index ab9f8c25540..9757136e19f 100644 --- a/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py @@ -78,7 +78,6 @@ def get_empty( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/operations_async/_paths_operations_async.py b/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/operations_async/_paths_operations_async.py index b2361cb7472..7a5da8ff072 100644 --- a/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/operations_async/_paths_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/operations_async/_paths_operations_async.py @@ -87,7 +87,6 @@ async def get_empty( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/operations/_paths_operations.py b/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/operations/_paths_operations.py index af48e218d0b..2bdc770d4a7 100644 --- a/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/operations/_paths_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/operations/_paths_operations.py @@ -92,7 +92,6 @@ def get_empty( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/operations_async/_pet_operations_async.py b/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/operations_async/_pet_operations_async.py index 778bbb980f3..35b630b5d30 100644 --- a/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/operations_async/_pet_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/operations_async/_pet_operations_async.py @@ -73,7 +73,6 @@ async def get_by_pet_id( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -121,7 +120,6 @@ async def add_pet( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if pet_param is not None: body_content = self._serialize.body(pet_param, 'Pet') diff --git a/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/operations/_pet_operations.py b/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/operations/_pet_operations.py index 2f2fbabe99c..eb1911939ad 100644 --- a/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/operations/_pet_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/operations/_pet_operations.py @@ -78,7 +78,6 @@ def get_by_pet_id( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -127,7 +126,6 @@ def add_pet( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if pet_param is not None: body_content = self._serialize.body(pet_param, 'Pet') diff --git a/test/vanilla/Expected/AcceptanceTests/Header/header/aio/operations_async/_header_operations_async.py b/test/vanilla/Expected/AcceptanceTests/Header/header/aio/operations_async/_header_operations_async.py index f8a7136ae8c..b2cc329eb72 100644 --- a/test/vanilla/Expected/AcceptanceTests/Header/header/aio/operations_async/_header_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/Header/header/aio/operations_async/_header_operations_async.py @@ -70,7 +70,6 @@ async def param_existing_key( header_parameters = {} # type: Dict[str, Any] header_parameters['User-Agent'] = self._serialize.header("user_agent_parameter", user_agent_parameter, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -110,7 +109,6 @@ async def response_existing_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -157,7 +155,6 @@ async def param_protected_key( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -197,7 +194,6 @@ async def response_protected_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -249,7 +245,6 @@ async def param_integer( header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') header_parameters['value'] = self._serialize.header("value", value, 'int') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -293,7 +288,6 @@ async def response_integer( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -345,7 +339,6 @@ async def param_long( header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') header_parameters['value'] = self._serialize.header("value", value, 'long') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -389,7 +382,6 @@ async def response_long( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -441,7 +433,6 @@ async def param_float( header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') header_parameters['value'] = self._serialize.header("value", value, 'float') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -485,7 +476,6 @@ async def response_float( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -537,7 +527,6 @@ async def param_double( header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') header_parameters['value'] = self._serialize.header("value", value, 'float') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -581,7 +570,6 @@ async def response_double( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -633,7 +621,6 @@ async def param_bool( header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') header_parameters['value'] = self._serialize.header("value", value, 'bool') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -677,7 +664,6 @@ async def response_bool( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -732,7 +718,6 @@ async def param_string( if value is not None: header_parameters['value'] = self._serialize.header("value", value, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -777,7 +762,6 @@ async def response_string( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -829,7 +813,6 @@ async def param_date( header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') header_parameters['value'] = self._serialize.header("value", value, 'date') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -873,7 +856,6 @@ async def response_date( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -926,7 +908,6 @@ async def param_datetime( header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') header_parameters['value'] = self._serialize.header("value", value, 'iso-8601') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -970,7 +951,6 @@ async def response_datetime( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1024,7 +1004,6 @@ async def param_datetime_rfc1123( if value is not None: header_parameters['value'] = self._serialize.header("value", value, 'rfc-1123') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1069,7 +1048,6 @@ async def response_datetime_rfc1123( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1120,7 +1098,6 @@ async def param_duration( header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') header_parameters['value'] = self._serialize.header("value", value, 'duration') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1164,7 +1141,6 @@ async def response_duration( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1215,7 +1191,6 @@ async def param_byte( header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') header_parameters['value'] = self._serialize.header("value", value, 'bytearray') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1259,7 +1234,6 @@ async def response_byte( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1313,7 +1287,6 @@ async def param_enum( if value is not None: header_parameters['value'] = self._serialize.header("value", value, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1358,7 +1331,6 @@ async def response_enum( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1402,7 +1374,6 @@ async def custom_request_id( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/Header/header/operations/_header_operations.py b/test/vanilla/Expected/AcceptanceTests/Header/header/operations/_header_operations.py index 596d84acbd4..ea4df5844dd 100644 --- a/test/vanilla/Expected/AcceptanceTests/Header/header/operations/_header_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Header/header/operations/_header_operations.py @@ -75,7 +75,6 @@ def param_existing_key( header_parameters = {} # type: Dict[str, Any] header_parameters['User-Agent'] = self._serialize.header("user_agent_parameter", user_agent_parameter, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -116,7 +115,6 @@ def response_existing_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -164,7 +162,6 @@ def param_protected_key( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -205,7 +202,6 @@ def response_protected_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -258,7 +254,6 @@ def param_integer( header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') header_parameters['value'] = self._serialize.header("value", value, 'int') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -303,7 +298,6 @@ def response_integer( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -356,7 +350,6 @@ def param_long( header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') header_parameters['value'] = self._serialize.header("value", value, 'long') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -401,7 +394,6 @@ def response_long( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -454,7 +446,6 @@ def param_float( header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') header_parameters['value'] = self._serialize.header("value", value, 'float') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -499,7 +490,6 @@ def response_float( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -552,7 +542,6 @@ def param_double( header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') header_parameters['value'] = self._serialize.header("value", value, 'float') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -597,7 +586,6 @@ def response_double( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -650,7 +638,6 @@ def param_bool( header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') header_parameters['value'] = self._serialize.header("value", value, 'bool') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -695,7 +682,6 @@ def response_bool( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -751,7 +737,6 @@ def param_string( if value is not None: header_parameters['value'] = self._serialize.header("value", value, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -797,7 +782,6 @@ def response_string( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -850,7 +834,6 @@ def param_date( header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') header_parameters['value'] = self._serialize.header("value", value, 'date') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -895,7 +878,6 @@ def response_date( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -949,7 +931,6 @@ def param_datetime( header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') header_parameters['value'] = self._serialize.header("value", value, 'iso-8601') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -994,7 +975,6 @@ def response_datetime( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1049,7 +1029,6 @@ def param_datetime_rfc1123( if value is not None: header_parameters['value'] = self._serialize.header("value", value, 'rfc-1123') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1095,7 +1074,6 @@ def response_datetime_rfc1123( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1147,7 +1125,6 @@ def param_duration( header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') header_parameters['value'] = self._serialize.header("value", value, 'duration') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1192,7 +1169,6 @@ def response_duration( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1244,7 +1220,6 @@ def param_byte( header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') header_parameters['value'] = self._serialize.header("value", value, 'bytearray') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1289,7 +1264,6 @@ def response_byte( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1344,7 +1318,6 @@ def param_enum( if value is not None: header_parameters['value'] = self._serialize.header("value", value, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1390,7 +1363,6 @@ def response_enum( header_parameters = {} # type: Dict[str, Any] header_parameters['scenario'] = self._serialize.header("scenario", scenario, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1435,7 +1407,6 @@ def custom_request_id( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_client_failure_operations_async.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_client_failure_operations_async.py index 383a021d2aa..ae055e238be 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_client_failure_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_client_failure_operations_async.py @@ -65,7 +65,6 @@ async def head400( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -105,7 +104,6 @@ async def get400( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -145,7 +143,6 @@ async def options400( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.options(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -190,7 +187,6 @@ async def put400( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -242,7 +238,6 @@ async def patch400( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -294,7 +289,6 @@ async def post400( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -346,7 +340,6 @@ async def delete400( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -393,7 +386,6 @@ async def head401( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -433,7 +425,6 @@ async def get402( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -473,7 +464,6 @@ async def options403( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.options(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -513,7 +503,6 @@ async def get403( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -558,7 +547,6 @@ async def put404( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -610,7 +598,6 @@ async def patch405( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -662,7 +649,6 @@ async def post406( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -714,7 +700,6 @@ async def delete407( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -766,7 +751,6 @@ async def put409( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -813,7 +797,6 @@ async def head410( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -853,7 +836,6 @@ async def get411( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -893,7 +875,6 @@ async def options412( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.options(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -933,7 +914,6 @@ async def get412( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -978,7 +958,6 @@ async def put413( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -1030,7 +1009,6 @@ async def patch414( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -1082,7 +1060,6 @@ async def post415( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -1129,7 +1106,6 @@ async def get416( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1174,7 +1150,6 @@ async def delete417( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -1221,7 +1196,6 @@ async def head429( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_failure_operations_async.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_failure_operations_async.py index 226299e44da..9e4badb0bee 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_failure_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_failure_operations_async.py @@ -66,7 +66,6 @@ async def get_empty_error( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -110,7 +109,6 @@ async def get_no_model_error( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -153,7 +151,6 @@ async def get_no_model_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_redirects_operations_async.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_redirects_operations_async.py index 5339cc0aef1..f6ac1845aa5 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_redirects_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_redirects_operations_async.py @@ -65,7 +65,6 @@ async def head300( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -110,7 +109,6 @@ async def get300( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -157,7 +155,6 @@ async def head301( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -201,7 +198,6 @@ async def get301( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -251,7 +247,6 @@ async def put301( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -301,7 +296,6 @@ async def head302( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -345,7 +339,6 @@ async def get302( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -395,7 +388,6 @@ async def patch302( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -451,7 +443,6 @@ async def post303( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -502,7 +493,6 @@ async def head307( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -546,7 +536,6 @@ async def get307( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -590,7 +579,6 @@ async def options307( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.options(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -639,7 +627,6 @@ async def put307( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -695,7 +682,6 @@ async def patch307( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -751,7 +737,6 @@ async def post307( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -807,7 +792,6 @@ async def delete307( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_retry_operations_async.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_retry_operations_async.py index 5e84e7c2c9f..fb51750770f 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_retry_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_retry_operations_async.py @@ -65,7 +65,6 @@ async def head408( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -110,7 +109,6 @@ async def put500( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -162,7 +160,6 @@ async def patch500( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -209,7 +206,6 @@ async def get502( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -250,7 +246,6 @@ async def options502( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.options(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -298,7 +293,6 @@ async def post503( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -350,7 +344,6 @@ async def delete503( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -402,7 +395,6 @@ async def put504( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -454,7 +446,6 @@ async def patch504( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_server_failure_operations_async.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_server_failure_operations_async.py index 7ac59553007..6ba045aacef 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_server_failure_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_server_failure_operations_async.py @@ -65,7 +65,6 @@ async def head501( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -105,7 +104,6 @@ async def get501( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -150,7 +148,6 @@ async def post505( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -202,7 +199,6 @@ async def delete505( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_success_operations_async.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_success_operations_async.py index 541dd348f73..c66eb741cb0 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_success_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_http_success_operations_async.py @@ -65,7 +65,6 @@ async def head200( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -106,7 +105,6 @@ async def get200( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -150,7 +148,6 @@ async def options200( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.options(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -198,7 +195,6 @@ async def put200( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -250,7 +246,6 @@ async def patch200( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -302,7 +297,6 @@ async def post200( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -354,7 +348,6 @@ async def delete200( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -406,7 +399,6 @@ async def put201( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -458,7 +450,6 @@ async def post201( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -510,7 +501,6 @@ async def put202( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -562,7 +552,6 @@ async def patch202( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -614,7 +603,6 @@ async def post202( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -666,7 +654,6 @@ async def delete202( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -713,7 +700,6 @@ async def head204( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -758,7 +744,6 @@ async def put204( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -810,7 +795,6 @@ async def patch204( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -862,7 +846,6 @@ async def post204( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -914,7 +897,6 @@ async def delete204( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -961,7 +943,6 @@ async def head404( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_multiple_responses_operations_async.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_multiple_responses_operations_async.py index 60c2fc4a5b4..7cef27145a0 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_multiple_responses_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations_async/_multiple_responses_operations_async.py @@ -66,7 +66,6 @@ async def get200_model204_no_model_default_error200_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -112,7 +111,6 @@ async def get200_model204_no_model_default_error204_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -158,7 +156,6 @@ async def get200_model204_no_model_default_error201_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -204,7 +201,6 @@ async def get200_model204_no_model_default_error202_none( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -250,7 +246,6 @@ async def get200_model204_no_model_default_error400_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -296,7 +291,6 @@ async def get200_model201_model_default_error200_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -344,7 +338,6 @@ async def get200_model201_model_default_error201_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -392,7 +385,6 @@ async def get200_model201_model_default_error400_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -440,7 +432,6 @@ async def get200_model_a201_model_c404_model_d_default_error200_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -491,7 +482,6 @@ async def get200_model_a201_model_c404_model_d_default_error201_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -542,7 +532,6 @@ async def get200_model_a201_model_c404_model_d_default_error404_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -593,7 +582,6 @@ async def get200_model_a201_model_c404_model_d_default_error400_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -643,7 +631,6 @@ async def get202_none204_none_default_error202_none( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -683,7 +670,6 @@ async def get202_none204_none_default_error204_none( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -723,7 +709,6 @@ async def get202_none204_none_default_error400_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -763,7 +748,6 @@ async def get202_none204_none_default_none202_invalid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -802,7 +786,6 @@ async def get202_none204_none_default_none204_none( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -841,7 +824,6 @@ async def get202_none204_none_default_none400_none( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -880,7 +862,6 @@ async def get202_none204_none_default_none400_invalid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -920,7 +901,6 @@ async def get_default_model_a200_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -963,7 +943,6 @@ async def get_default_model_a200_none( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1005,7 +984,6 @@ async def get_default_model_a400_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1045,7 +1023,6 @@ async def get_default_model_a400_none( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1085,7 +1062,6 @@ async def get_default_none200_invalid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1124,7 +1100,6 @@ async def get_default_none200_none( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1163,7 +1138,6 @@ async def get_default_none400_invalid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1202,7 +1176,6 @@ async def get_default_none400_none( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1243,7 +1216,6 @@ async def get200_model_a200_none( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1286,7 +1258,6 @@ async def get200_model_a200_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1329,7 +1300,6 @@ async def get200_model_a200_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1372,7 +1342,6 @@ async def get200_model_a400_none( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1415,7 +1384,6 @@ async def get200_model_a400_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1458,7 +1426,6 @@ async def get200_model_a400_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1501,7 +1468,6 @@ async def get200_model_a202_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_client_failure_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_client_failure_operations.py index 05a89cb2d9d..3841d5e2f8f 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_client_failure_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_client_failure_operations.py @@ -70,7 +70,6 @@ def head400( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -111,7 +110,6 @@ def get400( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -152,7 +150,6 @@ def options400( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.options(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -198,7 +195,6 @@ def put400( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -251,7 +247,6 @@ def patch400( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -304,7 +299,6 @@ def post400( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -357,7 +351,6 @@ def delete400( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -405,7 +398,6 @@ def head401( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -446,7 +438,6 @@ def get402( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -487,7 +478,6 @@ def options403( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.options(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -528,7 +518,6 @@ def get403( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -574,7 +563,6 @@ def put404( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -627,7 +615,6 @@ def patch405( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -680,7 +667,6 @@ def post406( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -733,7 +719,6 @@ def delete407( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -786,7 +771,6 @@ def put409( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -834,7 +818,6 @@ def head410( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -875,7 +858,6 @@ def get411( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -916,7 +898,6 @@ def options412( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.options(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -957,7 +938,6 @@ def get412( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1003,7 +983,6 @@ def put413( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -1056,7 +1035,6 @@ def patch414( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -1109,7 +1087,6 @@ def post415( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -1157,7 +1134,6 @@ def get416( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1203,7 +1179,6 @@ def delete417( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -1251,7 +1226,6 @@ def head429( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_failure_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_failure_operations.py index f189608a090..0f722369db7 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_failure_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_failure_operations.py @@ -71,7 +71,6 @@ def get_empty_error( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -116,7 +115,6 @@ def get_no_model_error( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -160,7 +158,6 @@ def get_no_model_empty( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_redirects_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_redirects_operations.py index 45af93c2e77..b0eff4028c7 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_redirects_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_redirects_operations.py @@ -70,7 +70,6 @@ def head300( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -116,7 +115,6 @@ def get300( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -164,7 +162,6 @@ def head301( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -209,7 +206,6 @@ def get301( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -260,7 +256,6 @@ def put301( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -311,7 +306,6 @@ def head302( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -356,7 +350,6 @@ def get302( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -407,7 +400,6 @@ def patch302( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -464,7 +456,6 @@ def post303( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -516,7 +507,6 @@ def head307( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -561,7 +551,6 @@ def get307( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -606,7 +595,6 @@ def options307( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.options(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -656,7 +644,6 @@ def put307( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -713,7 +700,6 @@ def patch307( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -770,7 +756,6 @@ def post307( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -827,7 +812,6 @@ def delete307( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_retry_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_retry_operations.py index c7b09d86276..029b68e798b 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_retry_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_retry_operations.py @@ -70,7 +70,6 @@ def head408( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -116,7 +115,6 @@ def put500( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -169,7 +167,6 @@ def patch500( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -217,7 +214,6 @@ def get502( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -259,7 +255,6 @@ def options502( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.options(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -308,7 +303,6 @@ def post503( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -361,7 +355,6 @@ def delete503( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -414,7 +407,6 @@ def put504( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -467,7 +459,6 @@ def patch504( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_server_failure_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_server_failure_operations.py index 6dcaec0cc88..06348c04e44 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_server_failure_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_server_failure_operations.py @@ -70,7 +70,6 @@ def head501( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -111,7 +110,6 @@ def get501( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -157,7 +155,6 @@ def post505( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -210,7 +207,6 @@ def delete505( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_success_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_success_operations.py index 5a8f6007986..1b2fb66e38a 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_success_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_success_operations.py @@ -70,7 +70,6 @@ def head200( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -112,7 +111,6 @@ def get200( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -157,7 +155,6 @@ def options200( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.options(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -206,7 +203,6 @@ def put200( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -259,7 +255,6 @@ def patch200( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -312,7 +307,6 @@ def post200( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -365,7 +359,6 @@ def delete200( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -418,7 +411,6 @@ def put201( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -471,7 +463,6 @@ def post201( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -524,7 +515,6 @@ def put202( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -577,7 +567,6 @@ def patch202( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -630,7 +619,6 @@ def post202( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -683,7 +671,6 @@ def delete202( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -731,7 +718,6 @@ def head204( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -777,7 +763,6 @@ def put204( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -830,7 +815,6 @@ def patch204( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -883,7 +867,6 @@ def post204( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -936,7 +919,6 @@ def delete204( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if boolean_value is not None: body_content = self._serialize.body(boolean_value, 'bool') @@ -984,7 +966,6 @@ def head404( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.head(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_multiple_responses_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_multiple_responses_operations.py index 97ea5baab15..789bcb2eb49 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_multiple_responses_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_multiple_responses_operations.py @@ -71,7 +71,6 @@ def get200_model204_no_model_default_error200_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -118,7 +117,6 @@ def get200_model204_no_model_default_error204_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -165,7 +163,6 @@ def get200_model204_no_model_default_error201_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -212,7 +209,6 @@ def get200_model204_no_model_default_error202_none( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -259,7 +255,6 @@ def get200_model204_no_model_default_error400_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -306,7 +301,6 @@ def get200_model201_model_default_error200_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -355,7 +349,6 @@ def get200_model201_model_default_error201_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -404,7 +397,6 @@ def get200_model201_model_default_error400_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -453,7 +445,6 @@ def get200_model_a201_model_c404_model_d_default_error200_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -505,7 +496,6 @@ def get200_model_a201_model_c404_model_d_default_error201_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -557,7 +547,6 @@ def get200_model_a201_model_c404_model_d_default_error404_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -609,7 +598,6 @@ def get200_model_a201_model_c404_model_d_default_error400_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -660,7 +648,6 @@ def get202_none204_none_default_error202_none( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -701,7 +688,6 @@ def get202_none204_none_default_error204_none( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -742,7 +728,6 @@ def get202_none204_none_default_error400_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -783,7 +768,6 @@ def get202_none204_none_default_none202_invalid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -823,7 +807,6 @@ def get202_none204_none_default_none204_none( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -863,7 +846,6 @@ def get202_none204_none_default_none400_none( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -903,7 +885,6 @@ def get202_none204_none_default_none400_invalid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -944,7 +925,6 @@ def get_default_model_a200_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -988,7 +968,6 @@ def get_default_model_a200_none( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1031,7 +1010,6 @@ def get_default_model_a400_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1072,7 +1050,6 @@ def get_default_model_a400_none( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1113,7 +1090,6 @@ def get_default_none200_invalid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1153,7 +1129,6 @@ def get_default_none200_none( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1193,7 +1168,6 @@ def get_default_none400_invalid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1233,7 +1207,6 @@ def get_default_none400_none( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1275,7 +1248,6 @@ def get200_model_a200_none( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1319,7 +1291,6 @@ def get200_model_a200_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1363,7 +1334,6 @@ def get200_model_a200_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1407,7 +1377,6 @@ def get200_model_a400_none( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1451,7 +1420,6 @@ def get200_model_a400_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1495,7 +1463,6 @@ def get200_model_a400_invalid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1539,7 +1506,6 @@ def get200_model_a202_valid( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/operations_async/_media_types_client_operations_async.py b/test/vanilla/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/operations_async/_media_types_client_operations_async.py index 8efd79410c3..d63de17aa0e 100644 --- a/test/vanilla/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/operations_async/_media_types_client_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/operations_async/_media_types_client_operations_async.py @@ -53,7 +53,6 @@ async def analyze_body( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: body_content_kwargs['stream_content'] = input @@ -116,7 +115,6 @@ async def content_type_with_encoding( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(input, 'str') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/MediaTypes/mediatypes/operations/_media_types_client_operations.py b/test/vanilla/Expected/AcceptanceTests/MediaTypes/mediatypes/operations/_media_types_client_operations.py index 4b80172da7b..9861c3c0f54 100644 --- a/test/vanilla/Expected/AcceptanceTests/MediaTypes/mediatypes/operations/_media_types_client_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/MediaTypes/mediatypes/operations/_media_types_client_operations.py @@ -58,7 +58,6 @@ def analyze_body( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: body_content_kwargs['stream_content'] = input @@ -122,7 +121,6 @@ def content_type_with_encoding( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(input, 'str') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/operations_async/_auto_rest_resource_flattening_test_service_operations_async.py b/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/operations_async/_auto_rest_resource_flattening_test_service_operations_async.py index 03440ba7147..3be73548b3d 100644 --- a/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/operations_async/_auto_rest_resource_flattening_test_service_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/operations_async/_auto_rest_resource_flattening_test_service_operations_async.py @@ -50,7 +50,6 @@ async def put_array( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if resource_array is not None: body_content = self._serialize.body(resource_array, '[Resource]') @@ -98,7 +97,6 @@ async def get_array( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -147,7 +145,6 @@ async def put_wrapped_array( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if resource_array is not None: body_content = self._serialize.body(resource_array, '[WrappedProduct]') @@ -196,7 +193,6 @@ async def get_wrapped_array( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -244,7 +240,6 @@ async def put_dictionary( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if resource_dictionary is not None: body_content = self._serialize.body(resource_dictionary, '{FlattenedProduct}') @@ -292,7 +287,6 @@ async def get_dictionary( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -340,7 +334,6 @@ async def put_resource_collection( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if resource_complex_object is not None: body_content = self._serialize.body(resource_complex_object, 'ResourceCollection') @@ -388,7 +381,6 @@ async def get_resource_collection( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -437,7 +429,6 @@ async def put_simple_product( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if simple_body_product is not None: body_content = self._serialize.body(simple_body_product, 'SimpleProduct') @@ -509,7 +500,6 @@ async def post_flattened_simple_product( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if _simple_body_product is not None: body_content = self._serialize.body(_simple_body_product, 'SimpleProduct') @@ -587,7 +577,6 @@ async def put_simple_product_with_grouping( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if _simple_body_product is not None: body_content = self._serialize.body(_simple_body_product, 'SimpleProduct') diff --git a/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/operations/_auto_rest_resource_flattening_test_service_operations.py b/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/operations/_auto_rest_resource_flattening_test_service_operations.py index ebb5a4d61ea..d1a21a63691 100644 --- a/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/operations/_auto_rest_resource_flattening_test_service_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/operations/_auto_rest_resource_flattening_test_service_operations.py @@ -55,7 +55,6 @@ def put_array( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if resource_array is not None: body_content = self._serialize.body(resource_array, '[Resource]') @@ -104,7 +103,6 @@ def get_array( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -154,7 +152,6 @@ def put_wrapped_array( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if resource_array is not None: body_content = self._serialize.body(resource_array, '[WrappedProduct]') @@ -204,7 +201,6 @@ def get_wrapped_array( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -253,7 +249,6 @@ def put_dictionary( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if resource_dictionary is not None: body_content = self._serialize.body(resource_dictionary, '{FlattenedProduct}') @@ -302,7 +297,6 @@ def get_dictionary( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -351,7 +345,6 @@ def put_resource_collection( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if resource_complex_object is not None: body_content = self._serialize.body(resource_complex_object, 'ResourceCollection') @@ -400,7 +393,6 @@ def get_resource_collection( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -450,7 +442,6 @@ def put_simple_product( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if simple_body_product is not None: body_content = self._serialize.body(simple_body_product, 'SimpleProduct') @@ -523,7 +514,6 @@ def post_flattened_simple_product( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if _simple_body_product is not None: body_content = self._serialize.body(_simple_body_product, 'SimpleProduct') @@ -602,7 +592,6 @@ def put_simple_product_with_grouping( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if _simple_body_product is not None: body_content = self._serialize.body(_simple_body_product, 'SimpleProduct') diff --git a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/__init__.py b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/__init__.py deleted file mode 100644 index ec4ce84d210..00000000000 --- a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/__init__.py +++ /dev/null @@ -1,19 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._multiple_inheritance_service_client import MultipleInheritanceServiceClient -from ._version import VERSION - -__version__ = VERSION -__all__ = ['MultipleInheritanceServiceClient'] - -try: - from ._patch import patch_sdk - patch_sdk() -except ImportError: - pass diff --git a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/_configuration.py b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/_configuration.py deleted file mode 100644 index 9934d7190b2..00000000000 --- a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/_configuration.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import TYPE_CHECKING - -from azure.core.configuration import Configuration -from azure.core.pipeline import policies - -from ._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any - - -class MultipleInheritanceServiceClientConfiguration(Configuration): - """Configuration for MultipleInheritanceServiceClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - """ - - def __init__( - self, - **kwargs # type: Any - ): - # type: (...) -> None - super(MultipleInheritanceServiceClientConfiguration, self).__init__(**kwargs) - - kwargs.setdefault('sdk_moniker', 'multipleinheritanceserviceclient/{}'.format(VERSION)) - self._configure(**kwargs) - - def _configure( - self, - **kwargs # type: Any - ): - # type: (...) -> None - self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) - self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs) - self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs) - self.authentication_policy = kwargs.get('authentication_policy') 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 deleted file mode 100644 index 35ee8dc223a..00000000000 --- a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/_multiple_inheritance_service_client.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import TYPE_CHECKING - -from azure.core import PipelineClient -from msrest import Deserializer, Serializer - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional - -from ._configuration import MultipleInheritanceServiceClientConfiguration -from .operations import MultipleInheritanceServiceClientOperationsMixin -from . import models - - -class MultipleInheritanceServiceClient(MultipleInheritanceServiceClientOperationsMixin): - """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__( - self, - base_url=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> None - if not base_url: - base_url = 'http://localhost:3000' - self._config = MultipleInheritanceServiceClientConfiguration(**kwargs) - self._client = PipelineClient(base_url=base_url, config=self._config, **kwargs) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - - def close(self): - # type: () -> None - self._client.close() - - def __enter__(self): - # type: () -> MultipleInheritanceServiceClient - self._client.__enter__() - return self - - def __exit__(self, *exc_details): - # type: (Any) -> None - self._client.__exit__(*exc_details) diff --git a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/_version.py b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/_version.py deleted file mode 100644 index eae7c95b6fb..00000000000 --- a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "0.1.0" diff --git a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/__init__.py b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/__init__.py deleted file mode 100644 index e04768551ec..00000000000 --- a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._multiple_inheritance_service_client_async import MultipleInheritanceServiceClient -__all__ = ['MultipleInheritanceServiceClient'] diff --git a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/_configuration_async.py b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/_configuration_async.py deleted file mode 100644 index 1a1c36c9fa6..00000000000 --- a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/_configuration_async.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any - -from azure.core.configuration import Configuration -from azure.core.pipeline import policies - -from .._version import VERSION - - -class MultipleInheritanceServiceClientConfiguration(Configuration): - """Configuration for MultipleInheritanceServiceClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - """ - - def __init__( - self, - **kwargs: Any - ) -> None: - super(MultipleInheritanceServiceClientConfiguration, self).__init__(**kwargs) - - kwargs.setdefault('sdk_moniker', 'multipleinheritanceserviceclient/{}'.format(VERSION)) - self._configure(**kwargs) - - def _configure( - self, - **kwargs: Any - ) -> None: - self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) - self.retry_policy = kwargs.get('retry_policy') or policies.AsyncRetryPolicy(**kwargs) - self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get('redirect_policy') or policies.AsyncRedirectPolicy(**kwargs) - self.authentication_policy = kwargs.get('authentication_policy') 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 deleted file mode 100644 index a619abd7410..00000000000 --- a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/_multiple_inheritance_service_client_async.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, Optional - -from azure.core import AsyncPipelineClient -from msrest import Deserializer, Serializer - -from ._configuration_async import MultipleInheritanceServiceClientConfiguration -from .operations_async import MultipleInheritanceServiceClientOperationsMixin -from .. import models - - -class MultipleInheritanceServiceClient(MultipleInheritanceServiceClientOperationsMixin): - """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__( - self, - base_url: Optional[str] = None, - **kwargs: Any - ) -> None: - if not base_url: - base_url = 'http://localhost:3000' - self._config = MultipleInheritanceServiceClientConfiguration(**kwargs) - self._client = AsyncPipelineClient(base_url=base_url, config=self._config, **kwargs) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "MultipleInheritanceServiceClient": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details) -> None: - await self._client.__aexit__(*exc_details) diff --git a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations_async/__init__.py b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations_async/__init__.py deleted file mode 100644 index 2411f4731dd..00000000000 --- a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations_async/__init__.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._multiple_inheritance_service_client_operations_async import MultipleInheritanceServiceClientOperationsMixin - -__all__ = [ - 'MultipleInheritanceServiceClientOperationsMixin', -] diff --git a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations_async/_multiple_inheritance_service_client_operations_async.py b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations_async/_multiple_inheritance_service_client_operations_async.py deleted file mode 100644 index a9cc09f5094..00000000000 --- a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations_async/_multiple_inheritance_service_client_operations_async.py +++ /dev/null @@ -1,506 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async - -from ... import models - -T = TypeVar('T') -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - -class MultipleInheritanceServiceClientOperationsMixin: - - @distributed_trace_async - async def get_horse( - self, - **kwargs - ) -> "models.Horse": - """Get a horse with name 'Fred' and isAShowHorse true. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Horse, or the result of cls(response) - :rtype: ~multipleinheritance.models.Horse - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.Horse"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - # Construct URL - url = self.get_horse.metadata['url'] # type: ignore - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize('Horse', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get_horse.metadata = {'url': '/multipleInheritance/horse'} # type: ignore - - @distributed_trace_async - async def put_horse( - self, - horse: "models.Horse", - **kwargs - ) -> str: - """Put a horse with name 'General' and isAShowHorse false. - - :param horse: Put a horse with name 'General' and isAShowHorse false. - :type horse: ~multipleinheritance.models.Horse - :keyword callable cls: A custom type or function that will be passed the direct response - :return: str, or the result of cls(response) - :rtype: str - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[str] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self.put_horse.metadata['url'] # type: ignore - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(horse, 'Horse') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - deserialized = self._deserialize('str', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - put_horse.metadata = {'url': '/multipleInheritance/horse'} # type: ignore - - @distributed_trace_async - async def get_pet( - self, - **kwargs - ) -> "models.Pet": - """Get a pet with name 'Peanut'. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Pet, or the result of cls(response) - :rtype: ~multipleinheritance.models.Pet - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.Pet"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - # Construct URL - url = self.get_pet.metadata['url'] # type: ignore - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize('Pet', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get_pet.metadata = {'url': '/multipleInheritance/pet'} # type: ignore - - @distributed_trace_async - async def put_pet( - self, - name: str, - **kwargs - ) -> str: - """Put a pet with name 'Butter'. - - :param name: - :type name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: str, or the result of cls(response) - :rtype: str - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[str] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - _pet = models.Pet(name=name) - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self.put_pet.metadata['url'] # type: ignore - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_pet, 'Pet') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - deserialized = self._deserialize('str', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - put_pet.metadata = {'url': '/multipleInheritance/pet'} # type: ignore - - @distributed_trace_async - async def get_feline( - self, - **kwargs - ) -> "models.Feline": - """Get a feline where meows and hisses are true. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Feline, or the result of cls(response) - :rtype: ~multipleinheritance.models.Feline - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.Feline"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - # Construct URL - url = self.get_feline.metadata['url'] # type: ignore - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize('Feline', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get_feline.metadata = {'url': '/multipleInheritance/feline'} # type: ignore - - @distributed_trace_async - async def put_feline( - self, - feline: "models.Feline", - **kwargs - ) -> str: - """Put a feline who hisses and doesn't meow. - - :param feline: Put a feline who hisses and doesn't meow. - :type feline: ~multipleinheritance.models.Feline - :keyword callable cls: A custom type or function that will be passed the direct response - :return: str, or the result of cls(response) - :rtype: str - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[str] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self.put_feline.metadata['url'] # type: ignore - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(feline, 'Feline') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - deserialized = self._deserialize('str', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - put_feline.metadata = {'url': '/multipleInheritance/feline'} # type: ignore - - @distributed_trace_async - async def get_cat( - self, - **kwargs - ) -> "models.Cat": - """Get a cat with name 'Whiskers' where likesMilk, meows, and hisses is true. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Cat, or the result of cls(response) - :rtype: ~multipleinheritance.models.Cat - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.Cat"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - # Construct URL - url = self.get_cat.metadata['url'] # type: ignore - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize('Cat', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get_cat.metadata = {'url': '/multipleInheritance/cat'} # type: ignore - - @distributed_trace_async - async def put_cat( - self, - cat: "models.Cat", - **kwargs - ) -> str: - """Put a cat with name 'Boots' where likesMilk and hisses is false, meows is true. - - :param cat: Put a cat with name 'Boots' where likesMilk and hisses is false, meows is true. - :type cat: ~multipleinheritance.models.Cat - :keyword callable cls: A custom type or function that will be passed the direct response - :return: str, or the result of cls(response) - :rtype: str - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[str] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self.put_cat.metadata['url'] # type: ignore - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(cat, 'Cat') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - deserialized = self._deserialize('str', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - put_cat.metadata = {'url': '/multipleInheritance/cat'} # type: ignore - - @distributed_trace_async - async def get_kitten( - self, - **kwargs - ) -> "models.Kitten": - """Get a kitten with name 'Gatito' where likesMilk and meows is true, and hisses and eatsMiceYet - is false. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Kitten, or the result of cls(response) - :rtype: ~multipleinheritance.models.Kitten - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.Kitten"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - # Construct URL - url = self.get_kitten.metadata['url'] # type: ignore - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize('Kitten', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get_kitten.metadata = {'url': '/multipleInheritance/kitten'} # type: ignore - - @distributed_trace_async - async def put_kitten( - self, - kitten: "models.Kitten", - **kwargs - ) -> str: - """Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is - true. - - :param kitten: Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and - eatsMiceYet is true. - :type kitten: ~multipleinheritance.models.Kitten - :keyword callable cls: A custom type or function that will be passed the direct response - :return: str, or the result of cls(response) - :rtype: str - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[str] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self.put_kitten.metadata['url'] # type: ignore - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(kitten, 'Kitten') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - deserialized = self._deserialize('str', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - put_kitten.metadata = {'url': '/multipleInheritance/kitten'} # type: ignore diff --git a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/models/__init__.py b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/models/__init__.py deleted file mode 100644 index 8c9e96065f7..00000000000 --- a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/models/__init__.py +++ /dev/null @@ -1,31 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -try: - from ._models_py3 import Cat - from ._models_py3 import Error - from ._models_py3 import Feline - from ._models_py3 import Horse - from ._models_py3 import Kitten - from ._models_py3 import Pet -except (SyntaxError, ImportError): - from ._models import Cat # type: ignore - from ._models import Error # type: ignore - from ._models import Feline # type: ignore - from ._models import Horse # type: ignore - from ._models import Kitten # type: ignore - from ._models import Pet # type: ignore - -__all__ = [ - 'Cat', - 'Error', - 'Feline', - 'Horse', - 'Kitten', - 'Pet', -] diff --git a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/models/_models.py b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/models/_models.py deleted file mode 100644 index cc3875bbef9..00000000000 --- a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/models/_models.py +++ /dev/null @@ -1,184 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.exceptions import HttpResponseError -import msrest.serialization - - -class Feline(msrest.serialization.Model): - """Feline. - - :param meows: - :type meows: bool - :param hisses: - :type hisses: bool - """ - - _attribute_map = { - 'meows': {'key': 'meows', 'type': 'bool'}, - 'hisses': {'key': 'hisses', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - super(Feline, self).__init__(**kwargs) - self.meows = kwargs.get('meows', None) - self.hisses = kwargs.get('hisses', None) - - -class Pet(msrest.serialization.Model): - """Pet. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. - :type name: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(Pet, self).__init__(**kwargs) - self.name = kwargs['name'] - - -class Cat(Pet, Feline): - """Cat. - - All required parameters must be populated in order to send to Azure. - - :param meows: - :type meows: bool - :param hisses: - :type hisses: bool - :param name: Required. - :type name: str - :param likes_milk: - :type likes_milk: bool - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'meows': {'key': 'meows', 'type': 'bool'}, - 'hisses': {'key': 'hisses', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'likes_milk': {'key': 'likesMilk', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - super(Cat, self).__init__(**kwargs) - self.meows = kwargs.get('meows', None) - self.hisses = kwargs.get('hisses', None) - self.likes_milk = kwargs.get('likes_milk', None) - self.name = kwargs['name'] - self.likes_milk = kwargs.get('likes_milk', None) - - -class Error(msrest.serialization.Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(Error, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.message = kwargs.get('message', None) - - -class Horse(Pet): - """Horse. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. - :type name: str - :param is_a_show_horse: - :type is_a_show_horse: bool - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'is_a_show_horse': {'key': 'isAShowHorse', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - super(Horse, self).__init__(**kwargs) - self.is_a_show_horse = kwargs.get('is_a_show_horse', None) - - -class Kitten(Cat): - """Kitten. - - All required parameters must be populated in order to send to Azure. - - :param meows: - :type meows: bool - :param hisses: - :type hisses: bool - :param name: Required. - :type name: str - :param likes_milk: - :type likes_milk: bool - :param eats_mice_yet: - :type eats_mice_yet: bool - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'meows': {'key': 'meows', 'type': 'bool'}, - 'hisses': {'key': 'hisses', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'likes_milk': {'key': 'likesMilk', 'type': 'bool'}, - 'eats_mice_yet': {'key': 'eatsMiceYet', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - super(Kitten, self).__init__(**kwargs) - self.eats_mice_yet = kwargs.get('eats_mice_yet', None) diff --git a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/models/_models_py3.py b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/models/_models_py3.py deleted file mode 100644 index b40439c1a36..00000000000 --- a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/models/_models_py3.py +++ /dev/null @@ -1,208 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Optional - -from azure.core.exceptions import HttpResponseError -import msrest.serialization - - -class Feline(msrest.serialization.Model): - """Feline. - - :param meows: - :type meows: bool - :param hisses: - :type hisses: bool - """ - - _attribute_map = { - 'meows': {'key': 'meows', 'type': 'bool'}, - 'hisses': {'key': 'hisses', 'type': 'bool'}, - } - - def __init__( - self, - *, - meows: Optional[bool] = None, - hisses: Optional[bool] = None, - **kwargs - ): - super(Feline, self).__init__(**kwargs) - self.meows = meows - self.hisses = hisses - - -class Pet(msrest.serialization.Model): - """Pet. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. - :type name: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__( - self, - *, - name: str, - **kwargs - ): - super(Pet, self).__init__(**kwargs) - self.name = name - - -class Cat(Pet, Feline): - """Cat. - - All required parameters must be populated in order to send to Azure. - - :param meows: - :type meows: bool - :param hisses: - :type hisses: bool - :param name: Required. - :type name: str - :param likes_milk: - :type likes_milk: bool - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'meows': {'key': 'meows', 'type': 'bool'}, - 'hisses': {'key': 'hisses', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'likes_milk': {'key': 'likesMilk', 'type': 'bool'}, - } - - def __init__( - self, - *, - name: str, - meows: Optional[bool] = None, - hisses: Optional[bool] = None, - likes_milk: Optional[bool] = None, - **kwargs - ): - super(Cat, self).__init__(name=name, meows=meows, hisses=hisses, **kwargs) - self.meows = meows - self.hisses = hisses - self.likes_milk = likes_milk - self.name = name - self.likes_milk = likes_milk - - -class Error(msrest.serialization.Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__( - self, - *, - status: Optional[int] = None, - message: Optional[str] = None, - **kwargs - ): - super(Error, self).__init__(**kwargs) - self.status = status - self.message = message - - -class Horse(Pet): - """Horse. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. - :type name: str - :param is_a_show_horse: - :type is_a_show_horse: bool - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'is_a_show_horse': {'key': 'isAShowHorse', 'type': 'bool'}, - } - - def __init__( - self, - *, - name: str, - is_a_show_horse: Optional[bool] = None, - **kwargs - ): - super(Horse, self).__init__(name=name, **kwargs) - self.is_a_show_horse = is_a_show_horse - - -class Kitten(Cat): - """Kitten. - - All required parameters must be populated in order to send to Azure. - - :param meows: - :type meows: bool - :param hisses: - :type hisses: bool - :param name: Required. - :type name: str - :param likes_milk: - :type likes_milk: bool - :param eats_mice_yet: - :type eats_mice_yet: bool - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'meows': {'key': 'meows', 'type': 'bool'}, - 'hisses': {'key': 'hisses', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'likes_milk': {'key': 'likesMilk', 'type': 'bool'}, - 'eats_mice_yet': {'key': 'eatsMiceYet', 'type': 'bool'}, - } - - def __init__( - self, - *, - name: str, - meows: Optional[bool] = None, - hisses: Optional[bool] = None, - likes_milk: Optional[bool] = None, - eats_mice_yet: Optional[bool] = None, - **kwargs - ): - super(Kitten, self).__init__(meows=meows, hisses=hisses, name=name, likes_milk=likes_milk, **kwargs) - self.eats_mice_yet = eats_mice_yet diff --git a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/__init__.py b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/__init__.py deleted file mode 100644 index 4afee8c7842..00000000000 --- a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/__init__.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._multiple_inheritance_service_client_operations import MultipleInheritanceServiceClientOperationsMixin - -__all__ = [ - 'MultipleInheritanceServiceClientOperationsMixin', -] diff --git a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/_multiple_inheritance_service_client_operations.py b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/_multiple_inheritance_service_client_operations.py deleted file mode 100644 index e6a93a26b05..00000000000 --- a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/_multiple_inheritance_service_client_operations.py +++ /dev/null @@ -1,520 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import TYPE_CHECKING -import warnings - -from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace - -from .. import models - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -class MultipleInheritanceServiceClientOperationsMixin(object): - - @distributed_trace - def get_horse( - self, - **kwargs # type: Any - ): - # type: (...) -> "models.Horse" - """Get a horse with name 'Fred' and isAShowHorse true. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Horse, or the result of cls(response) - :rtype: ~multipleinheritance.models.Horse - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.Horse"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - # Construct URL - url = self.get_horse.metadata['url'] # type: ignore - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize('Horse', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get_horse.metadata = {'url': '/multipleInheritance/horse'} # type: ignore - - @distributed_trace - def put_horse( - self, - horse, # type: "models.Horse" - **kwargs # type: Any - ): - # type: (...) -> str - """Put a horse with name 'General' and isAShowHorse false. - - :param horse: Put a horse with name 'General' and isAShowHorse false. - :type horse: ~multipleinheritance.models.Horse - :keyword callable cls: A custom type or function that will be passed the direct response - :return: str, or the result of cls(response) - :rtype: str - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[str] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self.put_horse.metadata['url'] # type: ignore - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(horse, 'Horse') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - deserialized = self._deserialize('str', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - put_horse.metadata = {'url': '/multipleInheritance/horse'} # type: ignore - - @distributed_trace - def get_pet( - self, - **kwargs # type: Any - ): - # type: (...) -> "models.Pet" - """Get a pet with name 'Peanut'. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Pet, or the result of cls(response) - :rtype: ~multipleinheritance.models.Pet - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.Pet"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - # Construct URL - url = self.get_pet.metadata['url'] # type: ignore - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize('Pet', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get_pet.metadata = {'url': '/multipleInheritance/pet'} # type: ignore - - @distributed_trace - def put_pet( - self, - name, # type: str - **kwargs # type: Any - ): - # type: (...) -> str - """Put a pet with name 'Butter'. - - :param name: - :type name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: str, or the result of cls(response) - :rtype: str - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[str] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - _pet = models.Pet(name=name) - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self.put_pet.metadata['url'] # type: ignore - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_pet, 'Pet') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - deserialized = self._deserialize('str', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - put_pet.metadata = {'url': '/multipleInheritance/pet'} # type: ignore - - @distributed_trace - def get_feline( - self, - **kwargs # type: Any - ): - # type: (...) -> "models.Feline" - """Get a feline where meows and hisses are true. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Feline, or the result of cls(response) - :rtype: ~multipleinheritance.models.Feline - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.Feline"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - # Construct URL - url = self.get_feline.metadata['url'] # type: ignore - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize('Feline', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get_feline.metadata = {'url': '/multipleInheritance/feline'} # type: ignore - - @distributed_trace - def put_feline( - self, - feline, # type: "models.Feline" - **kwargs # type: Any - ): - # type: (...) -> str - """Put a feline who hisses and doesn't meow. - - :param feline: Put a feline who hisses and doesn't meow. - :type feline: ~multipleinheritance.models.Feline - :keyword callable cls: A custom type or function that will be passed the direct response - :return: str, or the result of cls(response) - :rtype: str - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[str] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self.put_feline.metadata['url'] # type: ignore - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(feline, 'Feline') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - deserialized = self._deserialize('str', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - put_feline.metadata = {'url': '/multipleInheritance/feline'} # type: ignore - - @distributed_trace - def get_cat( - self, - **kwargs # type: Any - ): - # type: (...) -> "models.Cat" - """Get a cat with name 'Whiskers' where likesMilk, meows, and hisses is true. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Cat, or the result of cls(response) - :rtype: ~multipleinheritance.models.Cat - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.Cat"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - # Construct URL - url = self.get_cat.metadata['url'] # type: ignore - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize('Cat', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get_cat.metadata = {'url': '/multipleInheritance/cat'} # type: ignore - - @distributed_trace - def put_cat( - self, - cat, # type: "models.Cat" - **kwargs # type: Any - ): - # type: (...) -> str - """Put a cat with name 'Boots' where likesMilk and hisses is false, meows is true. - - :param cat: Put a cat with name 'Boots' where likesMilk and hisses is false, meows is true. - :type cat: ~multipleinheritance.models.Cat - :keyword callable cls: A custom type or function that will be passed the direct response - :return: str, or the result of cls(response) - :rtype: str - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[str] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self.put_cat.metadata['url'] # type: ignore - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(cat, 'Cat') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - deserialized = self._deserialize('str', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - put_cat.metadata = {'url': '/multipleInheritance/cat'} # type: ignore - - @distributed_trace - def get_kitten( - self, - **kwargs # type: Any - ): - # type: (...) -> "models.Kitten" - """Get a kitten with name 'Gatito' where likesMilk and meows is true, and hisses and eatsMiceYet - is false. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Kitten, or the result of cls(response) - :rtype: ~multipleinheritance.models.Kitten - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.Kitten"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - # Construct URL - url = self.get_kitten.metadata['url'] # type: ignore - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize('Kitten', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get_kitten.metadata = {'url': '/multipleInheritance/kitten'} # type: ignore - - @distributed_trace - def put_kitten( - self, - kitten, # type: "models.Kitten" - **kwargs # type: Any - ): - # type: (...) -> str - """Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is - true. - - :param kitten: Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and - eatsMiceYet is true. - :type kitten: ~multipleinheritance.models.Kitten - :keyword callable cls: A custom type or function that will be passed the direct response - :return: str, or the result of cls(response) - :rtype: str - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[str] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self.put_kitten.metadata['url'] # type: ignore - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(kitten, 'Kitten') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - deserialized = self._deserialize('str', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - put_kitten.metadata = {'url': '/multipleInheritance/kitten'} # type: ignore diff --git a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/py.typed b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/py.typed deleted file mode 100644 index e5aff4f83af..00000000000 --- a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/py.typed +++ /dev/null @@ -1 +0,0 @@ -# Marker file for PEP 561. \ No newline at end of file diff --git a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/setup.py b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/setup.py deleted file mode 100644 index 6bff09e9f36..00000000000 --- a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/setup.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "multipleinheritanceserviceclient" -VERSION = "0.1.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.6.0", "azure-core<2.0.0,>=1.2.0"] - -setup( - name=NAME, - version=VERSION, - description="MultipleInheritanceServiceClient", - author_email="", - url="", - keywords=["Swagger", "MultipleInheritanceServiceClient"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Service client for multiinheritance client testing. - """ -) diff --git a/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations_async/_float_operations_async.py b/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations_async/_float_operations_async.py index d4774ab22ca..23a5eb39bfe 100644 --- a/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations_async/_float_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations_async/_float_operations_async.py @@ -65,7 +65,6 @@ async def put( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if input is not None: body_content = self._serialize.body(input, 'float') @@ -115,7 +114,6 @@ async def get( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations_async/_int_operations_async.py b/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations_async/_int_operations_async.py index 0eb85304577..2ba9e06e414 100644 --- a/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations_async/_int_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations_async/_int_operations_async.py @@ -65,7 +65,6 @@ async def put( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if input is not None: body_content = self._serialize.body(input, 'int') @@ -115,7 +114,6 @@ async def get( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_float_operations.py b/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_float_operations.py index 29bc03b71b7..5332a7e1b3f 100644 --- a/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_float_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_float_operations.py @@ -70,7 +70,6 @@ def put( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if input is not None: body_content = self._serialize.body(input, 'float') @@ -121,7 +120,6 @@ def get( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_int_operations.py b/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_int_operations.py index 6b8db8b0063..9266e763c43 100644 --- a/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_int_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_int_operations.py @@ -70,7 +70,6 @@ def put( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if input is not None: body_content = self._serialize.body(input, 'int') @@ -121,7 +120,6 @@ def get( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/aio/operations_async/_object_type_client_operations_async.py b/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/aio/operations_async/_object_type_client_operations_async.py index db60f30e537..aa3f5b6bdcd 100644 --- a/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/aio/operations_async/_object_type_client_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/aio/operations_async/_object_type_client_operations_async.py @@ -45,7 +45,6 @@ async def get( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -94,7 +93,6 @@ async def put( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(put_object, 'object') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/operations/_object_type_client_operations.py b/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/operations/_object_type_client_operations.py index 0105f47d76d..8fefadcfed1 100644 --- a/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/operations/_object_type_client_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/operations/_object_type_client_operations.py @@ -50,7 +50,6 @@ def get( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -100,7 +99,6 @@ def put( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(put_object, 'object') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/operations_async/_availability_sets_operations_async.py b/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/operations_async/_availability_sets_operations_async.py index e5ef5c9b4d7..4d3e723a392 100644 --- a/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/operations_async/_availability_sets_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/operations_async/_availability_sets_operations_async.py @@ -83,7 +83,6 @@ async def update( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_tags, 'AvailabilitySetUpdateParameters') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/operations/_availability_sets_operations.py b/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/operations/_availability_sets_operations.py index 8c81c37641d..590e4cec715 100644 --- a/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/operations/_availability_sets_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/operations/_availability_sets_operations.py @@ -88,7 +88,6 @@ def update( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_tags, 'AvailabilitySetUpdateParameters') body_content_kwargs['content'] = body_content diff --git a/test/vanilla/Expected/AcceptanceTests/Report/report/aio/operations_async/_auto_rest_report_service_operations_async.py b/test/vanilla/Expected/AcceptanceTests/Report/report/aio/operations_async/_auto_rest_report_service_operations_async.py index b27d49b3244..fdcd3161d6f 100644 --- a/test/vanilla/Expected/AcceptanceTests/Report/report/aio/operations_async/_auto_rest_report_service_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/Report/report/aio/operations_async/_auto_rest_report_service_operations_async.py @@ -53,7 +53,6 @@ async def get_report( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -104,7 +103,6 @@ async def get_optional_report( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/Report/report/operations/_auto_rest_report_service_operations.py b/test/vanilla/Expected/AcceptanceTests/Report/report/operations/_auto_rest_report_service_operations.py index f7c3f0dd33b..e607327cb24 100644 --- a/test/vanilla/Expected/AcceptanceTests/Report/report/operations/_auto_rest_report_service_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Report/report/operations/_auto_rest_report_service_operations.py @@ -58,7 +58,6 @@ def get_report( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -110,7 +109,6 @@ def get_optional_report( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations_async/_explicit_operations_async.py b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations_async/_explicit_operations_async.py index a01ba39b929..da2a4bbe766 100644 --- a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations_async/_explicit_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations_async/_explicit_operations_async.py @@ -71,7 +71,6 @@ async def post_required_integer_parameter( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(body_parameter, 'int') body_content_kwargs['content'] = body_content @@ -120,7 +119,6 @@ async def post_optional_integer_parameter( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if body_parameter is not None: body_content = self._serialize.body(body_parameter, 'int') @@ -175,7 +173,6 @@ async def post_required_integer_property( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_body_parameter, 'IntWrapper') body_content_kwargs['content'] = body_content @@ -226,7 +223,6 @@ async def post_optional_integer_property( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if _body_parameter is not None: body_content = self._serialize.body(_body_parameter, 'IntOptionalWrapper') @@ -278,7 +274,6 @@ async def post_required_integer_header( header_parameters = {} # type: Dict[str, Any] header_parameters['headerParameter'] = self._serialize.header("header_parameter", header_parameter, 'int') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -323,7 +318,6 @@ async def post_optional_integer_header( if header_parameter is not None: header_parameters['headerParameter'] = self._serialize.header("header_parameter", header_parameter, 'int') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -369,7 +363,6 @@ async def post_required_string_parameter( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(body_parameter, 'str') body_content_kwargs['content'] = body_content @@ -418,7 +411,6 @@ async def post_optional_string_parameter( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if body_parameter is not None: body_content = self._serialize.body(body_parameter, 'str') @@ -473,7 +465,6 @@ async def post_required_string_property( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_body_parameter, 'StringWrapper') body_content_kwargs['content'] = body_content @@ -524,7 +515,6 @@ async def post_optional_string_property( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if _body_parameter is not None: body_content = self._serialize.body(_body_parameter, 'StringOptionalWrapper') @@ -576,7 +566,6 @@ async def post_required_string_header( header_parameters = {} # type: Dict[str, Any] header_parameters['headerParameter'] = self._serialize.header("header_parameter", header_parameter, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -621,7 +610,6 @@ async def post_optional_string_header( if body_parameter is not None: header_parameters['bodyParameter'] = self._serialize.header("body_parameter", body_parameter, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -667,7 +655,6 @@ async def post_required_class_parameter( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(body_parameter, 'Product') body_content_kwargs['content'] = body_content @@ -716,7 +703,6 @@ async def post_optional_class_parameter( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if body_parameter is not None: body_content = self._serialize.body(body_parameter, 'Product') @@ -771,7 +757,6 @@ async def post_required_class_property( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_body_parameter, 'ClassWrapper') body_content_kwargs['content'] = body_content @@ -822,7 +807,6 @@ async def post_optional_class_property( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if _body_parameter is not None: body_content = self._serialize.body(_body_parameter, 'ClassOptionalWrapper') @@ -875,7 +859,6 @@ async def post_required_array_parameter( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(body_parameter, '[str]') body_content_kwargs['content'] = body_content @@ -924,7 +907,6 @@ async def post_optional_array_parameter( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if body_parameter is not None: body_content = self._serialize.body(body_parameter, '[str]') @@ -979,7 +961,6 @@ async def post_required_array_property( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_body_parameter, 'ArrayWrapper') body_content_kwargs['content'] = body_content @@ -1030,7 +1011,6 @@ async def post_optional_array_property( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if _body_parameter is not None: body_content = self._serialize.body(_body_parameter, 'ArrayOptionalWrapper') @@ -1082,7 +1062,6 @@ async def post_required_array_header( header_parameters = {} # type: Dict[str, Any] header_parameters['headerParameter'] = self._serialize.header("header_parameter", header_parameter, '[str]', div=',') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1127,7 +1106,6 @@ async def post_optional_array_header( if header_parameter is not None: header_parameters['headerParameter'] = self._serialize.header("header_parameter", header_parameter, '[str]', div=',') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations_async/_implicit_operations_async.py b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations_async/_implicit_operations_async.py index 2ad2d187316..68ddb86a853 100644 --- a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations_async/_implicit_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations_async/_implicit_operations_async.py @@ -72,7 +72,6 @@ async def get_required_path( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -117,7 +116,6 @@ async def put_optional_query( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -162,7 +160,6 @@ async def put_optional_header( if query_parameter is not None: header_parameters['queryParameter'] = self._serialize.header("query_parameter", query_parameter, 'str') - # Construct and send request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -207,7 +204,6 @@ async def put_optional_body( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if body_parameter is not None: body_content = self._serialize.body(body_parameter, 'str') @@ -258,7 +254,6 @@ async def get_required_global_path( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -299,7 +294,6 @@ async def get_required_global_query( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -341,7 +335,6 @@ async def get_optional_global_query( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_explicit_operations.py b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_explicit_operations.py index 8f5d9781c71..7efd6ef233e 100644 --- a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_explicit_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_explicit_operations.py @@ -76,7 +76,6 @@ def post_required_integer_parameter( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(body_parameter, 'int') body_content_kwargs['content'] = body_content @@ -126,7 +125,6 @@ def post_optional_integer_parameter( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if body_parameter is not None: body_content = self._serialize.body(body_parameter, 'int') @@ -182,7 +180,6 @@ def post_required_integer_property( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_body_parameter, 'IntWrapper') body_content_kwargs['content'] = body_content @@ -234,7 +231,6 @@ def post_optional_integer_property( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if _body_parameter is not None: body_content = self._serialize.body(_body_parameter, 'IntOptionalWrapper') @@ -287,7 +283,6 @@ def post_required_integer_header( header_parameters = {} # type: Dict[str, Any] header_parameters['headerParameter'] = self._serialize.header("header_parameter", header_parameter, 'int') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -333,7 +328,6 @@ def post_optional_integer_header( if header_parameter is not None: header_parameters['headerParameter'] = self._serialize.header("header_parameter", header_parameter, 'int') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -380,7 +374,6 @@ def post_required_string_parameter( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(body_parameter, 'str') body_content_kwargs['content'] = body_content @@ -430,7 +423,6 @@ def post_optional_string_parameter( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if body_parameter is not None: body_content = self._serialize.body(body_parameter, 'str') @@ -486,7 +478,6 @@ def post_required_string_property( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_body_parameter, 'StringWrapper') body_content_kwargs['content'] = body_content @@ -538,7 +529,6 @@ def post_optional_string_property( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if _body_parameter is not None: body_content = self._serialize.body(_body_parameter, 'StringOptionalWrapper') @@ -591,7 +581,6 @@ def post_required_string_header( header_parameters = {} # type: Dict[str, Any] header_parameters['headerParameter'] = self._serialize.header("header_parameter", header_parameter, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -637,7 +626,6 @@ def post_optional_string_header( if body_parameter is not None: header_parameters['bodyParameter'] = self._serialize.header("body_parameter", body_parameter, 'str') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -684,7 +672,6 @@ def post_required_class_parameter( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(body_parameter, 'Product') body_content_kwargs['content'] = body_content @@ -734,7 +721,6 @@ def post_optional_class_parameter( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if body_parameter is not None: body_content = self._serialize.body(body_parameter, 'Product') @@ -790,7 +776,6 @@ def post_required_class_property( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_body_parameter, 'ClassWrapper') body_content_kwargs['content'] = body_content @@ -842,7 +827,6 @@ def post_optional_class_property( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if _body_parameter is not None: body_content = self._serialize.body(_body_parameter, 'ClassOptionalWrapper') @@ -896,7 +880,6 @@ def post_required_array_parameter( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(body_parameter, '[str]') body_content_kwargs['content'] = body_content @@ -946,7 +929,6 @@ def post_optional_array_parameter( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if body_parameter is not None: body_content = self._serialize.body(body_parameter, '[str]') @@ -1002,7 +984,6 @@ def post_required_array_property( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_body_parameter, 'ArrayWrapper') body_content_kwargs['content'] = body_content @@ -1054,7 +1035,6 @@ def post_optional_array_property( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if _body_parameter is not None: body_content = self._serialize.body(_body_parameter, 'ArrayOptionalWrapper') @@ -1107,7 +1087,6 @@ def post_required_array_header( header_parameters = {} # type: Dict[str, Any] header_parameters['headerParameter'] = self._serialize.header("header_parameter", header_parameter, '[str]', div=',') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1153,7 +1132,6 @@ def post_optional_array_header( if header_parameter is not None: header_parameters['headerParameter'] = self._serialize.header("header_parameter", header_parameter, '[str]', div=',') - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_implicit_operations.py b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_implicit_operations.py index 782eb94dd7d..8712e88212d 100644 --- a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_implicit_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_implicit_operations.py @@ -77,7 +77,6 @@ def get_required_path( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -123,7 +122,6 @@ def put_optional_query( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -169,7 +167,6 @@ def put_optional_header( if query_parameter is not None: header_parameters['queryParameter'] = self._serialize.header("query_parameter", query_parameter, 'str') - # Construct and send request request = self._client.put(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -215,7 +212,6 @@ def put_optional_body( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if body_parameter is not None: body_content = self._serialize.body(body_parameter, 'str') @@ -267,7 +263,6 @@ def get_required_global_path( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -309,7 +304,6 @@ def get_required_global_query( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -352,7 +346,6 @@ def get_optional_global_query( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations_async/_path_items_operations_async.py b/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations_async/_path_items_operations_async.py index c5cc8808aef..9d0457a0a46 100644 --- a/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations_async/_path_items_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations_async/_path_items_operations_async.py @@ -92,7 +92,6 @@ async def get_all_with_values( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -159,7 +158,6 @@ async def get_global_query_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -226,7 +224,6 @@ async def get_global_and_local_query_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -292,7 +289,6 @@ async def get_local_path_item_query_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations_async/_paths_operations_async.py b/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations_async/_paths_operations_async.py index ced45fcf9d4..916b43ce0ba 100644 --- a/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations_async/_paths_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations_async/_paths_operations_async.py @@ -71,7 +71,6 @@ async def get_boolean_true( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -116,7 +115,6 @@ async def get_boolean_false( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -161,7 +159,6 @@ async def get_int_one_million( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -206,7 +203,6 @@ async def get_int_negative_one_million( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -251,7 +247,6 @@ async def get_ten_billion( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -296,7 +291,6 @@ async def get_negative_ten_billion( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -341,7 +335,6 @@ async def float_scientific_positive( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -386,7 +379,6 @@ async def float_scientific_negative( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -431,7 +423,6 @@ async def double_decimal_positive( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -476,7 +467,6 @@ async def double_decimal_negative( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -521,7 +511,6 @@ async def string_unicode( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -566,7 +555,6 @@ async def string_url_encoded( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -613,7 +601,6 @@ async def string_url_non_encoded( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -658,7 +645,6 @@ async def string_empty( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -705,7 +691,6 @@ async def string_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -752,7 +737,6 @@ async def enum_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -799,7 +783,6 @@ async def enum_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -846,7 +829,6 @@ async def byte_multi_byte( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -891,7 +873,6 @@ async def byte_empty( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -938,7 +919,6 @@ async def byte_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -983,7 +963,6 @@ async def date_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1031,7 +1010,6 @@ async def date_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1076,7 +1054,6 @@ async def date_time_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1123,7 +1100,6 @@ async def date_time_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1170,7 +1146,6 @@ async def base64_url( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1219,7 +1194,6 @@ async def array_csv_in_path( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1266,7 +1240,6 @@ async def unix_time_url( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations_async/_queries_operations_async.py b/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations_async/_queries_operations_async.py index 606158b9228..fc8326fb911 100644 --- a/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations_async/_queries_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations_async/_queries_operations_async.py @@ -68,7 +68,6 @@ async def get_boolean_true( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -110,7 +109,6 @@ async def get_boolean_false( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -155,7 +153,6 @@ async def get_boolean_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -197,7 +194,6 @@ async def get_int_one_million( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -239,7 +235,6 @@ async def get_int_negative_one_million( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -284,7 +279,6 @@ async def get_int_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -326,7 +320,6 @@ async def get_ten_billion( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -368,7 +361,6 @@ async def get_negative_ten_billion( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -413,7 +405,6 @@ async def get_long_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -455,7 +446,6 @@ async def float_scientific_positive( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -497,7 +487,6 @@ async def float_scientific_negative( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -542,7 +531,6 @@ async def float_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -584,7 +572,6 @@ async def double_decimal_positive( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -626,7 +613,6 @@ async def double_decimal_negative( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -671,7 +657,6 @@ async def double_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -713,7 +698,6 @@ async def string_unicode( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -755,7 +739,6 @@ async def string_url_encoded( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -797,7 +780,6 @@ async def string_empty( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -842,7 +824,6 @@ async def string_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -887,7 +868,6 @@ async def enum_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -932,7 +912,6 @@ async def enum_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -977,7 +956,6 @@ async def byte_multi_byte( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1019,7 +997,6 @@ async def byte_empty( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1064,7 +1041,6 @@ async def byte_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1106,7 +1082,6 @@ async def date_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1151,7 +1126,6 @@ async def date_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1193,7 +1167,6 @@ async def date_time_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1238,7 +1211,6 @@ async def date_time_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1285,7 +1257,6 @@ async def array_string_csv_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1330,7 +1301,6 @@ async def array_string_csv_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1375,7 +1345,6 @@ async def array_string_csv_empty( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1422,7 +1391,6 @@ async def array_string_ssv_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1469,7 +1437,6 @@ async def array_string_tsv_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1516,7 +1483,6 @@ async def array_string_pipes_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_path_items_operations.py b/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_path_items_operations.py index bcc9ee1afb9..8514033f930 100644 --- a/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_path_items_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_path_items_operations.py @@ -97,7 +97,6 @@ def get_all_with_values( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -165,7 +164,6 @@ def get_global_query_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -233,7 +231,6 @@ def get_global_and_local_query_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -300,7 +297,6 @@ def get_local_path_item_query_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_paths_operations.py b/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_paths_operations.py index 5b2d5f56eb5..a142282285b 100644 --- a/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_paths_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_paths_operations.py @@ -76,7 +76,6 @@ def get_boolean_true( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -122,7 +121,6 @@ def get_boolean_false( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -168,7 +166,6 @@ def get_int_one_million( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -214,7 +211,6 @@ def get_int_negative_one_million( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -260,7 +256,6 @@ def get_ten_billion( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -306,7 +301,6 @@ def get_negative_ten_billion( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -352,7 +346,6 @@ def float_scientific_positive( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -398,7 +391,6 @@ def float_scientific_negative( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -444,7 +436,6 @@ def double_decimal_positive( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -490,7 +481,6 @@ def double_decimal_negative( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -536,7 +526,6 @@ def string_unicode( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -582,7 +571,6 @@ def string_url_encoded( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -630,7 +618,6 @@ def string_url_non_encoded( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -676,7 +663,6 @@ def string_empty( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -724,7 +710,6 @@ def string_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -772,7 +757,6 @@ def enum_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -820,7 +804,6 @@ def enum_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -868,7 +851,6 @@ def byte_multi_byte( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -914,7 +896,6 @@ def byte_empty( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -962,7 +943,6 @@ def byte_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1008,7 +988,6 @@ def date_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1057,7 +1036,6 @@ def date_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1103,7 +1081,6 @@ def date_time_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1151,7 +1128,6 @@ def date_time_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1199,7 +1175,6 @@ def base64_url( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1249,7 +1224,6 @@ def array_csv_in_path( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1297,7 +1271,6 @@ def unix_time_url( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_queries_operations.py b/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_queries_operations.py index ef61cd71a54..1b5c4f0ce1d 100644 --- a/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_queries_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_queries_operations.py @@ -73,7 +73,6 @@ def get_boolean_true( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -116,7 +115,6 @@ def get_boolean_false( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -162,7 +160,6 @@ def get_boolean_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -205,7 +202,6 @@ def get_int_one_million( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -248,7 +244,6 @@ def get_int_negative_one_million( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -294,7 +289,6 @@ def get_int_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -337,7 +331,6 @@ def get_ten_billion( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -380,7 +373,6 @@ def get_negative_ten_billion( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -426,7 +418,6 @@ def get_long_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -469,7 +460,6 @@ def float_scientific_positive( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -512,7 +502,6 @@ def float_scientific_negative( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -558,7 +547,6 @@ def float_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -601,7 +589,6 @@ def double_decimal_positive( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -644,7 +631,6 @@ def double_decimal_negative( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -690,7 +676,6 @@ def double_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -733,7 +718,6 @@ def string_unicode( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -776,7 +760,6 @@ def string_url_encoded( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -819,7 +802,6 @@ def string_empty( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -865,7 +847,6 @@ def string_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -911,7 +892,6 @@ def enum_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -957,7 +937,6 @@ def enum_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1003,7 +982,6 @@ def byte_multi_byte( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1046,7 +1024,6 @@ def byte_empty( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1092,7 +1069,6 @@ def byte_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1135,7 +1111,6 @@ def date_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1181,7 +1156,6 @@ def date_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1224,7 +1198,6 @@ def date_time_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1270,7 +1243,6 @@ def date_time_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1318,7 +1290,6 @@ def array_string_csv_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1364,7 +1335,6 @@ def array_string_csv_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1410,7 +1380,6 @@ def array_string_csv_empty( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1458,7 +1427,6 @@ def array_string_ssv_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1506,7 +1474,6 @@ def array_string_tsv_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1554,7 +1521,6 @@ def array_string_pipes_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations_async/_queries_operations_async.py b/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations_async/_queries_operations_async.py index c7b216a55fa..52ba17b0b0b 100644 --- a/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations_async/_queries_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations_async/_queries_operations_async.py @@ -70,7 +70,6 @@ async def array_string_multi_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -115,7 +114,6 @@ async def array_string_multi_empty( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -162,7 +160,6 @@ async def array_string_multi_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/_queries_operations.py b/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/_queries_operations.py index 729c0ce70b8..78e9b705cfe 100644 --- a/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/_queries_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/_queries_operations.py @@ -75,7 +75,6 @@ def array_string_multi_null( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -121,7 +120,6 @@ def array_string_multi_empty( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -169,7 +167,6 @@ def array_string_multi_valid( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/Validation/validation/aio/operations_async/_auto_rest_validation_test_operations_async.py b/test/vanilla/Expected/AcceptanceTests/Validation/validation/aio/operations_async/_auto_rest_validation_test_operations_async.py index 95fff66add7..3cb23964368 100644 --- a/test/vanilla/Expected/AcceptanceTests/Validation/validation/aio/operations_async/_auto_rest_validation_test_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/Validation/validation/aio/operations_async/_auto_rest_validation_test_operations_async.py @@ -60,7 +60,6 @@ async def validation_of_method_parameters( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -123,7 +122,6 @@ async def validation_of_body( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if body is not None: body_content = self._serialize.body(body, 'Product') @@ -178,7 +176,6 @@ async def get_with_constant_in_path( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -228,7 +225,6 @@ async def post_with_constant_in_body( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if body is not None: body_content = self._serialize.body(body, 'Product') diff --git a/test/vanilla/Expected/AcceptanceTests/Validation/validation/operations/_auto_rest_validation_test_operations.py b/test/vanilla/Expected/AcceptanceTests/Validation/validation/operations/_auto_rest_validation_test_operations.py index 0721a31678a..cd5d314195d 100644 --- a/test/vanilla/Expected/AcceptanceTests/Validation/validation/operations/_auto_rest_validation_test_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Validation/validation/operations/_auto_rest_validation_test_operations.py @@ -65,7 +65,6 @@ def validation_of_method_parameters( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -129,7 +128,6 @@ def validation_of_body( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if body is not None: body_content = self._serialize.body(body, 'Product') @@ -185,7 +183,6 @@ def get_with_constant_in_path( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -236,7 +233,6 @@ def post_with_constant_in_body( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if body is not None: body_content = self._serialize.body(body, 'Product') diff --git a/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/aio/operations_async/_xml_operations_async.py b/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/aio/operations_async/_xml_operations_async.py index d206dbbeebf..65b4573cfe6 100644 --- a/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/aio/operations_async/_xml_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/aio/operations_async/_xml_operations_async.py @@ -66,7 +66,6 @@ async def get_complex_type_ref_no_meta( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -113,7 +112,6 @@ async def put_complex_type_ref_no_meta( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(model, 'RootWithRefAndNoMeta', is_xml=True) body_content_kwargs['content'] = body_content @@ -157,7 +155,6 @@ async def get_complex_type_ref_with_meta( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -204,7 +201,6 @@ async def put_complex_type_ref_with_meta( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(model, 'RootWithRefAndMeta', is_xml=True) body_content_kwargs['content'] = body_content @@ -248,7 +244,6 @@ async def get_simple( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -296,7 +291,6 @@ async def put_simple( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(slideshow, 'Slideshow', is_xml=True) body_content_kwargs['content'] = body_content @@ -341,7 +335,6 @@ async def get_wrapped_lists( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -388,7 +381,6 @@ async def put_wrapped_lists( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(wrapped_lists, 'AppleBarrel', is_xml=True) body_content_kwargs['content'] = body_content @@ -432,7 +424,6 @@ async def get_headers( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -475,7 +466,6 @@ async def get_empty_list( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -522,7 +512,6 @@ async def put_empty_list( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(slideshow, 'Slideshow', is_xml=True) body_content_kwargs['content'] = body_content @@ -566,7 +555,6 @@ async def get_empty_wrapped_lists( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -613,7 +601,6 @@ async def put_empty_wrapped_lists( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(apple_barrel, 'AppleBarrel', is_xml=True) body_content_kwargs['content'] = body_content @@ -657,7 +644,6 @@ async def get_root_list( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -704,7 +690,6 @@ async def put_root_list( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] serialization_ctxt = {'xml': {'name': 'bananas', 'wrapped': True, 'itemsName': 'banana'}} body_content = self._serialize.body(bananas, '[Banana]', is_xml=True, serialization_ctxt=serialization_ctxt) @@ -749,7 +734,6 @@ async def get_root_list_single_item( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -796,7 +780,6 @@ async def put_root_list_single_item( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] serialization_ctxt = {'xml': {'name': 'bananas', 'wrapped': True, 'itemsName': 'banana'}} body_content = self._serialize.body(bananas, '[Banana]', is_xml=True, serialization_ctxt=serialization_ctxt) @@ -841,7 +824,6 @@ async def get_empty_root_list( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -888,7 +870,6 @@ async def put_empty_root_list( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] serialization_ctxt = {'xml': {'name': 'bananas', 'wrapped': True, 'itemsName': 'banana'}} body_content = self._serialize.body(bananas, '[Banana]', is_xml=True, serialization_ctxt=serialization_ctxt) @@ -933,7 +914,6 @@ async def get_empty_child_element( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -980,7 +960,6 @@ async def put_empty_child_element( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(banana, 'Banana', is_xml=True) body_content_kwargs['content'] = body_content @@ -1026,7 +1005,6 @@ async def list_containers( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1073,7 +1051,6 @@ async def get_service_properties( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1124,7 +1101,6 @@ async def put_service_properties( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(properties, 'StorageServiceProperties', is_xml=True) body_content_kwargs['content'] = body_content @@ -1172,7 +1148,6 @@ async def get_acls( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1223,7 +1198,6 @@ async def put_acls( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] serialization_ctxt = {'xml': {'name': 'SignedIdentifiers', 'wrapped': True, 'itemsName': 'SignedIdentifier'}} body_content = self._serialize.body(properties, '[SignedIdentifier]', is_xml=True, serialization_ctxt=serialization_ctxt) @@ -1272,7 +1246,6 @@ async def list_blobs( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1322,7 +1295,6 @@ async def json_input( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_properties, 'JSONInput') body_content_kwargs['content'] = body_content @@ -1366,7 +1338,6 @@ async def json_output( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/operations/_xml_operations.py b/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/operations/_xml_operations.py index 6a059ef9079..d30faf9e485 100644 --- a/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/operations/_xml_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/operations/_xml_operations.py @@ -71,7 +71,6 @@ def get_complex_type_ref_no_meta( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -119,7 +118,6 @@ def put_complex_type_ref_no_meta( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(model, 'RootWithRefAndNoMeta', is_xml=True) body_content_kwargs['content'] = body_content @@ -164,7 +162,6 @@ def get_complex_type_ref_with_meta( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -212,7 +209,6 @@ def put_complex_type_ref_with_meta( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(model, 'RootWithRefAndMeta', is_xml=True) body_content_kwargs['content'] = body_content @@ -257,7 +253,6 @@ def get_simple( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -306,7 +301,6 @@ def put_simple( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(slideshow, 'Slideshow', is_xml=True) body_content_kwargs['content'] = body_content @@ -352,7 +346,6 @@ def get_wrapped_lists( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -400,7 +393,6 @@ def put_wrapped_lists( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(wrapped_lists, 'AppleBarrel', is_xml=True) body_content_kwargs['content'] = body_content @@ -445,7 +437,6 @@ def get_headers( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -489,7 +480,6 @@ def get_empty_list( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -537,7 +527,6 @@ def put_empty_list( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(slideshow, 'Slideshow', is_xml=True) body_content_kwargs['content'] = body_content @@ -582,7 +571,6 @@ def get_empty_wrapped_lists( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -630,7 +618,6 @@ def put_empty_wrapped_lists( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(apple_barrel, 'AppleBarrel', is_xml=True) body_content_kwargs['content'] = body_content @@ -675,7 +662,6 @@ def get_root_list( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -723,7 +709,6 @@ def put_root_list( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] serialization_ctxt = {'xml': {'name': 'bananas', 'wrapped': True, 'itemsName': 'banana'}} body_content = self._serialize.body(bananas, '[Banana]', is_xml=True, serialization_ctxt=serialization_ctxt) @@ -769,7 +754,6 @@ def get_root_list_single_item( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -817,7 +801,6 @@ def put_root_list_single_item( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] serialization_ctxt = {'xml': {'name': 'bananas', 'wrapped': True, 'itemsName': 'banana'}} body_content = self._serialize.body(bananas, '[Banana]', is_xml=True, serialization_ctxt=serialization_ctxt) @@ -863,7 +846,6 @@ def get_empty_root_list( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -911,7 +893,6 @@ def put_empty_root_list( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] serialization_ctxt = {'xml': {'name': 'bananas', 'wrapped': True, 'itemsName': 'banana'}} body_content = self._serialize.body(bananas, '[Banana]', is_xml=True, serialization_ctxt=serialization_ctxt) @@ -957,7 +938,6 @@ def get_empty_child_element( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1005,7 +985,6 @@ def put_empty_child_element( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(banana, 'Banana', is_xml=True) body_content_kwargs['content'] = body_content @@ -1052,7 +1031,6 @@ def list_containers( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1100,7 +1078,6 @@ def get_service_properties( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1152,7 +1129,6 @@ def put_service_properties( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(properties, 'StorageServiceProperties', is_xml=True) body_content_kwargs['content'] = body_content @@ -1201,7 +1177,6 @@ def get_acls( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1253,7 +1228,6 @@ def put_acls( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] serialization_ctxt = {'xml': {'name': 'SignedIdentifiers', 'wrapped': True, 'itemsName': 'SignedIdentifier'}} body_content = self._serialize.body(properties, '[SignedIdentifier]', is_xml=True, serialization_ctxt=serialization_ctxt) @@ -1303,7 +1277,6 @@ def list_blobs( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/xml' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1354,7 +1327,6 @@ def json_input( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_properties, 'JSONInput') body_content_kwargs['content'] = body_content @@ -1399,7 +1371,6 @@ def json_output( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations_async/_pet_operations_async.py b/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations_async/_pet_operations_async.py index 0c4d28e775f..34768ffb10b 100644 --- a/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations_async/_pet_operations_async.py +++ b/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations_async/_pet_operations_async.py @@ -78,7 +78,6 @@ async def get_pet_by_id( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -134,7 +133,6 @@ async def do_something( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/operations/_pet_operations.py b/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/operations/_pet_operations.py index d92e436ca80..2da9e1a0beb 100644 --- a/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/operations/_pet_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/operations/_pet_operations.py @@ -83,7 +83,6 @@ def get_pet_by_id( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -140,7 +139,6 @@ def do_something( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response